echarts2.js
357 KB
define("echarts/chart/bar",["require","./base","zrender/shape/Rectangle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(t){function e(t,e,o,r,n){i.call(this,t,e,o,r,n),this.refresh(r)}var i=t("./base"),o=t("zrender/shape/Rectangle");t("../component/axis"),t("../component/grid"),t("../component/dataZoom");var r=t("../config");r.bar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}},emphasis:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}}}};var n=t("../util/ecData"),s=t("zrender/tool/util"),a=t("zrender/tool/color");return e.prototype={type:r.CHART_TYPE_BAR,_buildShape:function(){this._buildPosition()},_buildNormal:function(t,e,i,n,s){for(var a,h,l,d,c,u,p,f,g,m,_,y,v=this.series,x=i[0][0],b=v[x],T="horizontal"==s,S=this.component.xAxis,C=this.component.yAxis,z=T?S.getAxis(b.xAxisIndex):C.getAxis(b.yAxisIndex),E=this._mapSize(z,i),w=E.gap,A=E.barGap,L=E.barWidthMap,M=E.barMaxWidthMap,k=E.barWidth,I=E.barMinHeightMap,P=E.interval,O=this.deepQuery([this.ecTheme,r],"island.r"),D=0,R=e;R>D&&null!=z.getNameByIndex(D);D++){T?d=z.getCoordByIndex(D)-w/2:c=z.getCoordByIndex(D)+w/2;for(var H=0,B=i.length;B>H;H++){var F=v[i[H][0]].yAxisIndex||0,N=v[i[H][0]].xAxisIndex||0;a=T?C.getAxis(F):S.getAxis(N),p=u=g=f=a.getCoord(0);for(var Y=0,W=i[H].length;W>Y;Y++)x=i[H][Y],b=v[x],_=b.data[D],y=this.getDataFromOption(_,"-"),n[x]=n[x]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},l=Math.min(M[x]||Number.MAX_VALUE,L[x]||k),"-"!==y&&(y>0?(h=Y>0?a.getCoordSize(y):T?p-a.getCoord(y):a.getCoord(y)-p,1===W&&I[x]>h&&(h=I[x]),T?(u-=h,c=u):(d=u,u+=h)):0>y?(h=Y>0?a.getCoordSize(y):T?a.getCoord(y)-g:g-a.getCoord(y),1===W&&I[x]>h&&(h=I[x]),T?(c=f,f+=h):(f-=h,d=f)):(h=0,T?(u-=h,c=u):(d=u,u+=h)),n[x][D]=T?d+l/2:c-l/2,n[x].min>y&&(n[x].min=y,T?(n[x].minY=c,n[x].minX=n[x][D]):(n[x].minX=d+h,n[x].minY=n[x][D])),n[x].max<y&&(n[x].max=y,T?(n[x].maxY=c,n[x].maxX=n[x][D]):(n[x].maxX=d+h,n[x].maxY=n[x][D])),n[x].sum+=y,n[x].counter++,D%P===0&&(m=this._getBarItem(x,D,z.getNameByIndex(D),d,c-(T?0:l),T?l:h,T?h:l,T?"vertical":"horizontal"),this.shapeList.push(new o(m))));for(var Y=0,W=i[H].length;W>Y;Y++)x=i[H][Y],b=v[x],_=b.data[D],y=this.getDataFromOption(_,"-"),l=Math.min(M[x]||Number.MAX_VALUE,L[x]||k),"-"==y&&this.deepQuery([_,b,this.option],"calculable")&&(T?(u-=O,c=u):(d=u,u+=O),m=this._getBarItem(x,D,z.getNameByIndex(D),d,c-(T?0:l),T?l:O,T?O:l,T?"vertical":"horizontal"),m.hoverable=!1,m.draggable=!1,m.style.lineWidth=1,m.style.brushType="stroke",m.style.strokeColor=b.calculableHolderColor||this.ecTheme.calculableHolderColor||r.calculableHolderColor,this.shapeList.push(new o(m)));T?d+=l+A:c-=l+A}}this._calculMarkMapXY(n,i,T?"y":"x")},_buildHorizontal:function(t,e,i,o){return this._buildNormal(t,e,i,o,"horizontal")},_buildVertical:function(t,e,i,o){return this._buildNormal(t,e,i,o,"vertical")},_buildOther:function(t,e,i,r){for(var n=this.series,s=0,a=i.length;a>s;s++)for(var h=0,l=i[s].length;l>h;h++){var d=i[s][h],c=n[d],u=c.xAxisIndex||0,p=this.component.xAxis.getAxis(u),f=p.getCoord(0),g=c.yAxisIndex||0,m=this.component.yAxis.getAxis(g),_=m.getCoord(0);r[d]=r[d]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var y=0,v=c.data.length;v>y;y++){var x=c.data[y],b=this.getDataFromOption(x,"-");if(b instanceof Array){var T,S,C=p.getCoord(b[0]),z=m.getCoord(b[1]),E=[x,c],w=this.deepQuery(E,"barWidth")||10,A=this.deepQuery(E,"barHeight");null!=A?(T="horizontal",b[0]>0?(w=C-f,C-=w):w=b[0]<0?f-C:0,S=this._getBarItem(d,y,b[0],C,z-A/2,w,A,T)):(T="vertical",b[1]>0?A=_-z:b[1]<0?(A=z-_,z-=A):A=0,S=this._getBarItem(d,y,b[0],C-w/2,z,w,A,T)),this.shapeList.push(new o(S)),C=p.getCoord(b[0]),z=m.getCoord(b[1]),r[d].min0>b[0]&&(r[d].min0=b[0],r[d].minY0=z,r[d].minX0=C),r[d].max0<b[0]&&(r[d].max0=b[0],r[d].maxY0=z,r[d].maxX0=C),r[d].sum0+=b[0],r[d].counter0++,r[d].min1>b[1]&&(r[d].min1=b[1],r[d].minY1=z,r[d].minX1=C),r[d].max1<b[1]&&(r[d].max1=b[1],r[d].maxY1=z,r[d].maxX1=C),r[d].sum1+=b[1],r[d].counter1++}}}this._calculMarkMapXY(r,i,"xy")},_mapSize:function(t,e,i){var o,r,n=this._findSpecialBarSzie(e,i),s=n.barWidthMap,a=n.barMaxWidthMap,h=n.barMinHeightMap,l=n.sBarWidthCounter,d=n.sBarWidthTotal,c=n.barGap,u=n.barCategoryGap,p=1;if(e.length!=l){if(i)o=t.getGap(),c=0,r=+(o/e.length).toFixed(2),0>=r&&(p=Math.floor(e.length/o),r=1);else if(o="string"==typeof u&&u.match(/%$/)?(t.getGap()*(100-parseFloat(u))/100).toFixed(2)-0:t.getGap()-u,"string"==typeof c&&c.match(/%$/)?(c=parseFloat(c)/100,r=+((o-d)/((e.length-1)*c+e.length-l)).toFixed(2),c=r*c):(c=parseFloat(c),r=+((o-d-c*(e.length-1))/(e.length-l)).toFixed(2)),0>=r)return this._mapSize(t,e,!0)}else if(o=l>1?"string"==typeof u&&u.match(/%$/)?+(t.getGap()*(100-parseFloat(u))/100).toFixed(2):t.getGap()-u:d,r=0,c=l>1?+((o-d)/(l-1)).toFixed(2):0,0>c)return this._mapSize(t,e,!0);return this._recheckBarMaxWidth(e,s,a,h,o,r,c,p)},_findSpecialBarSzie:function(t,e){for(var i,o,r,n,s=this.series,a={},h={},l={},d=0,c=0,u=0,p=t.length;p>u;u++)for(var f={barWidth:!1,barMaxWidth:!1},g=0,m=t[u].length;m>g;g++){var _=t[u][g],y=s[_];if(!e){if(f.barWidth)a[_]=i;else if(i=this.query(y,"barWidth"),null!=i){a[_]=i,c+=i,d++,f.barWidth=!0;for(var v=0,x=g;x>v;v++){var b=t[u][v];a[b]=i}}if(f.barMaxWidth)h[_]=o;else if(o=this.query(y,"barMaxWidth"),null!=o){h[_]=o,f.barMaxWidth=!0;for(var v=0,x=g;x>v;v++){var b=t[u][v];h[b]=o}}}l[_]=this.query(y,"barMinHeight"),r=null!=r?r:this.query(y,"barGap"),n=null!=n?n:this.query(y,"barCategoryGap")}return{barWidthMap:a,barMaxWidthMap:h,barMinHeightMap:l,sBarWidth:i,sBarMaxWidth:o,sBarWidthCounter:d,sBarWidthTotal:c,barGap:r,barCategoryGap:n}},_recheckBarMaxWidth:function(t,e,i,o,r,n,s,a){for(var h=0,l=t.length;l>h;h++){var d=t[h][0];i[d]&&i[d]<n&&(r-=n-i[d])}return{barWidthMap:e,barMaxWidthMap:i,barMinHeightMap:o,gap:r,barWidth:n,barGap:s,interval:a}},_getBarItem:function(t,e,i,o,r,s,h,l){var d,c=this.series,u=c[t],p=u.data[e],f=this._sIndex2ColorMap[t],g=[p,u],m=this.deepMerge(g,"itemStyle.normal"),_=this.deepMerge(g,"itemStyle.emphasis"),y=m.barBorderWidth;d={zlevel:u.zlevel,z:u.z,clickable:this.deepQuery(g,"clickable"),style:{x:o,y:r,width:s,height:h,brushType:"both",color:this.getItemStyleColor(this.deepQuery(g,"itemStyle.normal.color")||f,t,e,p),radius:m.barBorderRadius,lineWidth:y,strokeColor:m.barBorderColor},highlightStyle:{color:this.getItemStyleColor(this.deepQuery(g,"itemStyle.emphasis.color"),t,e,p),radius:_.barBorderRadius,lineWidth:_.barBorderWidth,strokeColor:_.barBorderColor},_orient:l};var v=d.style;d.highlightStyle.color=d.highlightStyle.color||("string"==typeof v.color?a.lift(v.color,-.3):v.color),v.x=Math.floor(v.x),v.y=Math.floor(v.y),v.height=Math.ceil(v.height),v.width=Math.ceil(v.width),y>0&&v.height>y&&v.width>y?(v.y+=y/2,v.height-=y,v.x+=y/2,v.width-=y):v.brushType="fill",d.highlightStyle.textColor=d.highlightStyle.color,d=this.addLabel(d,u,p,i,l);for(var x=[v,d.highlightStyle],b=0,T=x.length;T>b;b++){var S=x[b].textPosition;if("insideLeft"===S||"insideRight"===S||"insideTop"===S||"insideBottom"===S){var C=5;switch(S){case"insideLeft":x[b].textX=v.x+C,x[b].textY=v.y+v.height/2,x[b].textAlign="left",x[b].textBaseline="middle";break;case"insideRight":x[b].textX=v.x+v.width-C,x[b].textY=v.y+v.height/2,x[b].textAlign="right",x[b].textBaseline="middle";break;case"insideTop":x[b].textX=v.x+v.width/2,x[b].textY=v.y+C/2,x[b].textAlign="center",x[b].textBaseline="top";break;case"insideBottom":x[b].textX=v.x+v.width/2,x[b].textY=v.y+v.height-C/2,x[b].textAlign="center",x[b].textBaseline="bottom"}x[b].textPosition="specific",x[b].textColor=x[b].textColor||"#fff"}}return this.deepQuery([p,u,this.option],"calculable")&&(this.setCalculable(d),d.draggable=!0),n.pack(d,c[t],t,c[t].data[e],e,i),d},getMarkCoord:function(t,e){var i,o,r=this.series[t],n=this.xMarkMap[t],s=this.component.xAxis.getAxis(r.xAxisIndex),a=this.component.yAxis.getAxis(r.yAxisIndex);if(!e.type||"max"!==e.type&&"min"!==e.type&&"average"!==e.type)if(n.isHorizontal){i="string"==typeof e.xAxis&&s.getIndexByName?s.getIndexByName(e.xAxis):e.xAxis||0;var h=n[i];h=null!=h?h:"string"!=typeof e.xAxis&&s.getCoordByIndex?s.getCoordByIndex(e.xAxis||0):s.getCoord(e.xAxis||0),o=[h,a.getCoord(e.yAxis||0)]}else{i="string"==typeof e.yAxis&&a.getIndexByName?a.getIndexByName(e.yAxis):e.yAxis||0;var l=n[i];l=null!=l?l:"string"!=typeof e.yAxis&&a.getCoordByIndex?a.getCoordByIndex(e.yAxis||0):a.getCoord(e.yAxis||0),o=[s.getCoord(e.xAxis||0),l]}else{var d=null!=e.valueIndex?e.valueIndex:null!=n.maxX0?"1":"";o=[n[e.type+"X"+d],n[e.type+"Y"+d],n[e.type+"Line"+d],n[e.type+d]]}return o},refresh:function(t){t&&(this.option=t,this.series=t.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(t,e){function i(){g--,0===g&&e&&e()}for(var o=this.series,r={},s=0,a=t.length;a>s;s++)r[t[s][0]]=t[s];for(var h,l,d,c,u,p,f,g=0,s=this.shapeList.length-1;s>=0;s--)if(p=n.get(this.shapeList[s],"seriesIndex"),r[p]&&!r[p][3]&&"rectangle"===this.shapeList[s].type){if(f=n.get(this.shapeList[s],"dataIndex"),u=o[p],r[p][2]&&f===u.data.length-1){this.zr.delShape(this.shapeList[s].id);continue}if(!r[p][2]&&0===f){this.zr.delShape(this.shapeList[s].id);continue}"horizontal"===this.shapeList[s]._orient?(c=this.component.yAxis.getAxis(u.yAxisIndex||0).getGap(),d=r[p][2]?-c:c,h=0):(l=this.component.xAxis.getAxis(u.xAxisIndex||0).getGap(),h=r[p][2]?l:-l,d=0),this.shapeList[s].position=[0,0],g++,this.zr.animate(this.shapeList[s].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[h,d]}).done(i).start()}g||e&&e()}},s.inherits(e,i),t("../chart").define("bar",e),e}),define("echarts/component/grid",["require","./base","zrender/shape/Rectangle","../config","zrender/tool/util","../component"],function(t){function e(t,e,o,r,n){i.call(this,t,e,o,r,n),this.refresh(r)}var i=t("./base"),o=t("zrender/shape/Rectangle"),r=t("../config");r.grid={zlevel:0,z:0,x:80,y:60,x2:80,y2:60,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var n=t("zrender/tool/util");return e.prototype={type:r.COMPONENT_TYPE_GRID,getX:function(){return this._x},getY:function(){return this._y},getWidth:function(){return this._width},getHeight:function(){return this._height},getXend:function(){return this._x+this._width},getYend:function(){return this._y+this._height},getArea:function(){return{x:this._x,y:this._y,width:this._width,height:this._height}},getBbox:function(){return[[this._x,this._y],[this.getXend(),this.getYend()]]},refixAxisShape:function(t){for(var e,i,o,n=t.xAxis._axisList.concat(t.yAxis?t.yAxis._axisList:[]),s=n.length;s--;)o=n[s],o.type==r.COMPONENT_TYPE_AXIS_VALUE&&o._min<0&&o._max>=0&&(o.isHorizontal()?e=o.getCoord(0):i=o.getCoord(0));if("undefined"!=typeof e||"undefined"!=typeof i)for(s=n.length;s--;)n[s].refixAxisShape(e,i)},refresh:function(t){if(t||this._zrWidth!=this.zr.getWidth()||this._zrHeight!=this.zr.getHeight()){this.clear(),this.option=t||this.option,this.option.grid=this.reformOption(this.option.grid);var e=this.option.grid;this._zrWidth=this.zr.getWidth(),this._zrHeight=this.zr.getHeight(),this._x=this.parsePercent(e.x,this._zrWidth),this._y=this.parsePercent(e.y,this._zrHeight);var i=this.parsePercent(e.x2,this._zrWidth),r=this.parsePercent(e.y2,this._zrHeight);this._width="undefined"==typeof e.width?this._zrWidth-this._x-i:this.parsePercent(e.width,this._zrWidth),this._width=this._width<=0?10:this._width,this._height="undefined"==typeof e.height?this._zrHeight-this._y-r:this.parsePercent(e.height,this._zrHeight),this._height=this._height<=0?10:this._height,this._x=this.subPixelOptimize(this._x,e.borderWidth),this._y=this.subPixelOptimize(this._y,e.borderWidth),this.shapeList.push(new o({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._x,y:this._y,width:this._width,height:this._height,brushType:e.borderWidth>0?"both":"fill",color:e.backgroundColor,strokeColor:e.borderColor,lineWidth:e.borderWidth}})),this.zr.addShape(this.shapeList[0])}}},n.inherits(e,i),t("../component").define("grid",e),e}),define("echarts/config",[],function(){var t={CHART_TYPE_LINE:"line",CHART_TYPE_BAR:"bar",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_PIE:"pie",CHART_TYPE_RADAR:"radar",CHART_TYPE_VENN:"venn",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_TREE:"tree",CHART_TYPE_MAP:"map",CHART_TYPE_K:"k",CHART_TYPE_ISLAND:"island",CHART_TYPE_FORCE:"force",CHART_TYPE_CHORD:"chord",CHART_TYPE_GAUGE:"gauge",CHART_TYPE_FUNNEL:"funnel",CHART_TYPE_EVENTRIVER:"eventRiver",CHART_TYPE_WORDCLOUD:"wordCloud",CHART_TYPE_HEATMAP:"heatmap",COMPONENT_TYPE_TITLE:"title",COMPONENT_TYPE_LEGEND:"legend",COMPONENT_TYPE_DATARANGE:"dataRange",COMPONENT_TYPE_DATAVIEW:"dataView",COMPONENT_TYPE_DATAZOOM:"dataZoom",COMPONENT_TYPE_TOOLBOX:"toolbox",COMPONENT_TYPE_TOOLTIP:"tooltip",COMPONENT_TYPE_GRID:"grid",COMPONENT_TYPE_AXIS:"axis",COMPONENT_TYPE_POLAR:"polar",COMPONENT_TYPE_X_AXIS:"xAxis",COMPONENT_TYPE_Y_AXIS:"yAxis",COMPONENT_TYPE_AXIS_CATEGORY:"categoryAxis",COMPONENT_TYPE_AXIS_VALUE:"valueAxis",COMPONENT_TYPE_TIMELINE:"timeline",COMPONENT_TYPE_ROAMCONTROLLER:"roamController",backgroundColor:"rgba(0,0,0,0)",color:["#ff7f50","#87cefa","#da70d6","#32cd32","#6495ed","#ff69b4","#ba55d3","#cd5c5c","#ffa500","#40e0d0","#1e90ff","#ff6347","#7b68ee","#00fa9a","#ffd700","#6699FF","#ff6666","#3cb371","#b8860b","#30e0e0"],markPoint:{clickable:!0,symbol:"pin",symbolSize:10,large:!1,effect:{show:!1,loop:!0,period:15,type:"scale",scaleSize:2,bounceDistance:10},itemStyle:{normal:{borderWidth:2,label:{show:!0,position:"inside"}},emphasis:{label:{show:!0}}}},markLine:{clickable:!0,symbol:["circle","arrow"],symbolSize:[2,4],smoothness:.2,precision:2,effect:{show:!1,loop:!0,period:15,scaleSize:2},bundling:{enable:!1,maxTurningAngle:45},itemStyle:{normal:{borderWidth:1.5,label:{show:!0,position:"end"},lineStyle:{type:"dashed"}},emphasis:{label:{show:!1},lineStyle:{}}}},textStyle:{decoration:"none",fontFamily:"Arial, Verdana, sans-serif",fontFamily2:"微软雅黑",fontSize:12,fontStyle:"normal",fontWeight:"normal"},EVENT:{REFRESH:"refresh",RESTORE:"restore",RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",MOUSEOUT:"mouseout",DATA_CHANGED:"dataChanged",DATA_ZOOM:"dataZoom",DATA_RANGE:"dataRange",DATA_RANGE_SELECTED:"dataRangeSelected",DATA_RANGE_HOVERLINK:"dataRangeHoverLink",LEGEND_SELECTED:"legendSelected",LEGEND_HOVERLINK:"legendHoverLink",MAP_SELECTED:"mapSelected",PIE_SELECTED:"pieSelected",MAGIC_TYPE_CHANGED:"magicTypeChanged",DATA_VIEW_CHANGED:"dataViewChanged",TIMELINE_CHANGED:"timelineChanged",MAP_ROAM:"mapRoam",FORCE_LAYOUT_END:"forceLayoutEnd",TOOLTIP_HOVER:"tooltipHover",TOOLTIP_IN_GRID:"tooltipInGrid",TOOLTIP_OUT_GRID:"tooltipOutGrid",ROAMCONTROLLER:"roamController"},DRAG_ENABLE_TIME:120,EFFECT_ZLEVEL:10,effectBlendAlpha:.95,symbolList:["circle","rectangle","triangle","diamond","emptyCircle","emptyRectangle","emptyTriangle","emptyDiamond"],loadingEffect:"spin",loadingText:"数据读取中...",noDataEffect:"bubble",noDataText:"暂无数据",calculable:!1,calculableColor:"rgba(255,165,0,0.6)",calculableHolderColor:"#ccc",nameConnector:" & ",valueConnector:": ",animation:!0,addDataAnimation:!0,animationThreshold:2e3,animationDuration:2e3,animationDurationUpdate:500,animationEasing:"ExponentialOut"};return t}),define("echarts/component/dataZoom",["require","./base","zrender/shape/Rectangle","zrender/shape/Polygon","../util/shape/Icon","../config","../util/date","zrender/tool/util","../component"],function(t){function e(t,e,o,r,n){i.call(this,t,e,o,r,n);var s=this;s._ondrift=function(t,e){return s.__ondrift(this,t,e)},s._ondragend=function(){return s.__ondragend()},this._fillerSize=30,this._isSilence=!1,this._zoom={},this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this._handleSize=this.zoomOption.handleSize,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom.show&&this._buildShape(),this._syncData()}var i=t("./base"),o=t("zrender/shape/Rectangle"),r=t("zrender/shape/Polygon"),n=t("../util/shape/Icon"),s=t("../config");s.dataZoom={zlevel:0,z:4,show:!1,orient:"horizontal",backgroundColor:"rgba(0,0,0,0)",dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"rgba(70,130,180,0.8)",handleSize:8,showDetail:!0,realtime:!0};var a=t("../util/date"),h=t("zrender/tool/util");return e.prototype={type:s.COMPONENT_TYPE_DATAZOOM,_buildShape:function(){this._buildBackground(),this._buildFiller(),this._buildHandle(),this._buildFrame();for(var t=0,e=this.shapeList.length;e>t;t++)this.zr.addShape(this.shapeList[t]);this._syncFrameShape()},_getLocation:function(){var t,e,i,o,r=this.component.grid;return"horizontal"==this.zoomOption.orient?(i=this.zoomOption.width||r.getWidth(),o=this.zoomOption.height||this._fillerSize,t=null!=this.zoomOption.x?this.zoomOption.x:r.getX(),e=null!=this.zoomOption.y?this.zoomOption.y:this.zr.getHeight()-o-2):(i=this.zoomOption.width||this._fillerSize,o=this.zoomOption.height||r.getHeight(),t=null!=this.zoomOption.x?this.zoomOption.x:2,e=null!=this.zoomOption.y?this.zoomOption.y:r.getY()),{x:t,y:e,width:i,height:o}},_getZoom:function(){var t=this.option.series,e=this.option.xAxis;!e||e instanceof Array||(e=[e],this.option.xAxis=e);var i=this.option.yAxis;!i||i instanceof Array||(i=[i],this.option.yAxis=i);var o,r,n=[],a=this.zoomOption.xAxisIndex;if(e&&null==a){o=[];for(var h=0,l=e.length;l>h;h++)("category"==e[h].type||null==e[h].type)&&o.push(h)}else o=a instanceof Array?a:null!=a?[a]:[];if(a=this.zoomOption.yAxisIndex,i&&null==a){r=[];for(var h=0,l=i.length;l>h;h++)"category"==i[h].type&&r.push(h)}else r=a instanceof Array?a:null!=a?[a]:[];for(var d,h=0,l=t.length;l>h;h++)if(d=t[h],d.type==s.CHART_TYPE_LINE||d.type==s.CHART_TYPE_BAR||d.type==s.CHART_TYPE_SCATTER||d.type==s.CHART_TYPE_K){for(var c=0,u=o.length;u>c;c++)if(o[c]==(d.xAxisIndex||0)){n.push(h);break}for(var c=0,u=r.length;u>c;c++)if(r[c]==(d.yAxisIndex||0)){n.push(h);break}null==this.zoomOption.xAxisIndex&&null==this.zoomOption.yAxisIndex&&d.data&&this.getDataFromOption(d.data[0])instanceof Array&&(d.type==s.CHART_TYPE_SCATTER||d.type==s.CHART_TYPE_LINE||d.type==s.CHART_TYPE_BAR)&&n.push(h)}var p=null!=this._zoom.start?this._zoom.start:null!=this.zoomOption.start?this.zoomOption.start:0,f=null!=this._zoom.end?this._zoom.end:null!=this.zoomOption.end?this.zoomOption.end:100;p>f&&(p+=f,f=p-f,p-=f);var g=Math.round((f-p)/100*("horizontal"==this.zoomOption.orient?this._location.width:this._location.height));return{start:p,end:f,start2:0,end2:100,size:g,xAxisIndex:o,yAxisIndex:r,seriesIndex:n,scatterMap:this._zoom.scatterMap||{}}},_backupData:function(){this._originalData={xAxis:{},yAxis:{},series:{}};for(var t=this.option.xAxis,e=this._zoom.xAxisIndex,i=0,o=e.length;o>i;i++)this._originalData.xAxis[e[i]]=t[e[i]].data;for(var r=this.option.yAxis,n=this._zoom.yAxisIndex,i=0,o=n.length;o>i;i++)this._originalData.yAxis[n[i]]=r[n[i]].data;for(var a,h=this.option.series,l=this._zoom.seriesIndex,i=0,o=l.length;o>i;i++)a=h[l[i]],this._originalData.series[l[i]]=a.data,a.data&&this.getDataFromOption(a.data[0])instanceof Array&&(a.type==s.CHART_TYPE_SCATTER||a.type==s.CHART_TYPE_LINE||a.type==s.CHART_TYPE_BAR)&&(this._backupScale(),this._calculScatterMap(l[i]))},_calculScatterMap:function(e){this._zoom.scatterMap=this._zoom.scatterMap||{},this._zoom.scatterMap[e]=this._zoom.scatterMap[e]||{};var i=t("../component"),o=i.get("axis"),r=h.clone(this.option.xAxis);"category"==r[0].type&&(r[0].type="value"),r[1]&&"category"==r[1].type&&(r[1].type="value");var n=new o(this.ecTheme,null,!1,{xAxis:r,series:this.option.series},this,"xAxis"),s=this.option.series[e].xAxisIndex||0;this._zoom.scatterMap[e].x=n.getAxis(s).getExtremum(),n.dispose(),r=h.clone(this.option.yAxis),"category"==r[0].type&&(r[0].type="value"),r[1]&&"category"==r[1].type&&(r[1].type="value"),n=new o(this.ecTheme,null,!1,{yAxis:r,series:this.option.series},this,"yAxis"),s=this.option.series[e].yAxisIndex||0,this._zoom.scatterMap[e].y=n.getAxis(s).getExtremum(),n.dispose()},_buildBackground:function(){var t=this._location.width,e=this._location.height;this.shapeList.push(new o({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x,y:this._location.y,width:t,height:e,color:this.zoomOption.backgroundColor}}));for(var i=0,n=this._originalData.xAxis,a=this._zoom.xAxisIndex,h=0,l=a.length;l>h;h++)i=Math.max(i,n[a[h]].length);for(var d=this._originalData.yAxis,c=this._zoom.yAxisIndex,h=0,l=c.length;l>h;h++)i=Math.max(i,d[c[h]].length);for(var u,p=this._zoom.seriesIndex[0],f=this._originalData.series[p],g=Number.MIN_VALUE,m=Number.MAX_VALUE,h=0,l=f.length;l>h;h++)u=this.getDataFromOption(f[h],0),this.option.series[p].type==s.CHART_TYPE_K&&(u=u[1]),isNaN(u)&&(u=0),g=Math.max(g,u),m=Math.min(m,u);var _=g-m,y=[],v=t/(i-(i>1?1:0)),x=e/(i-(i>1?1:0)),b=1;"horizontal"==this.zoomOption.orient&&1>v?b=Math.floor(3*i/t):"vertical"==this.zoomOption.orient&&1>x&&(b=Math.floor(3*i/e));for(var h=0,l=i;l>h;h+=b)u=this.getDataFromOption(f[h],0),this.option.series[p].type==s.CHART_TYPE_K&&(u=u[1]),isNaN(u)&&(u=0),y.push("horizontal"==this.zoomOption.orient?[this._location.x+v*h,this._location.y+e-1-Math.round((u-m)/_*(e-10))]:[this._location.x+1+Math.round((u-m)/_*(t-10)),this._location.y+x*(l-h-1)]);"horizontal"==this.zoomOption.orient?(y.push([this._location.x+t,this._location.y+e]),y.push([this._location.x,this._location.y+e])):(y.push([this._location.x,this._location.y]),y.push([this._location.x,this._location.y+e])),this.shapeList.push(new r({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:y,color:this.zoomOption.dataBackgroundColor},hoverable:!1}))},_buildFiller:function(){this._fillerShae={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,_type:"filler"},this._fillerShae.style="horizontal"==this.zoomOption.orient?{x:this._location.x+Math.round(this._zoom.start/100*this._location.width)+this._handleSize,y:this._location.y,width:this._zoom.size-2*this._handleSize,height:this._location.height,color:this.zoomOption.fillerColor,text:":::",textPosition:"inside"}:{x:this._location.x,y:this._location.y+Math.round(this._zoom.start/100*this._location.height)+this._handleSize,width:this._location.width,height:this._zoom.size-2*this._handleSize,color:this.zoomOption.fillerColor,text:"::",textPosition:"inside"},this._fillerShae.highlightStyle={brushType:"fill",color:"rgba(0,0,0,0)"},this._fillerShae=new o(this._fillerShae),this.shapeList.push(this._fillerShae)},_buildHandle:function(){var t=this.zoomOption.showDetail?this._getDetail():{start:"",end:""};this._startShape={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,style:{iconType:"rectangle",x:this._location.x,y:this._location.y,width:this._handleSize,height:this._handleSize,color:this.zoomOption.handleColor,text:"=",textPosition:"inside"},highlightStyle:{text:t.start,brushType:"fill",textPosition:"left"},ondrift:this._ondrift,ondragend:this._ondragend},"horizontal"==this.zoomOption.orient?(this._startShape.style.height=this._location.height,this._endShape=h.clone(this._startShape),this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endShape.highlightStyle.text=t.end,this._endShape.highlightStyle.textPosition="right"):(this._startShape.style.width=this._location.width,this._endShape=h.clone(this._startShape),this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startShape.highlightStyle.textPosition="bottom",this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._endShape.highlightStyle.text=t.end,this._endShape.highlightStyle.textPosition="top"),this._startShape=new n(this._startShape),this._endShape=new n(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_buildFrame:function(){var t=this.subPixelOptimize(this._location.x,1),e=this.subPixelOptimize(this._location.y,1);this._startFrameShape={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:t,y:e,width:this._location.width-(t>this._location.x?1:0),height:this._location.height-(e>this._location.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:this.zoomOption.handleColor}},this._endFrameShape=h.clone(this._startFrameShape),this._startFrameShape=new o(this._startFrameShape),this._endFrameShape=new o(this._endFrameShape),this.shapeList.push(this._startFrameShape),this.shapeList.push(this._endFrameShape)},_syncHandleShape:function(){"horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._zoom.start=(this._startShape.style.x-this._location.x)/this._location.width*100,this._zoom.end=(this._endShape.style.x+this._handleSize-this._location.x)/this._location.width*100):(this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._zoom.start=(this._location.y+this._location.height-this._startShape.style.y)/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-this._endShape.style.y-this._handleSize)/this._location.height*100),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFillerShape:function(){var t,e;"horizontal"==this.zoomOption.orient?(t=this._startShape.style.x,e=this._endShape.style.x,this._fillerShae.style.x=Math.min(t,e)+this._handleSize,this._fillerShae.style.width=Math.abs(t-e)-this._handleSize,this._zoom.start=(Math.min(t,e)-this._location.x)/this._location.width*100,this._zoom.end=(Math.max(t,e)+this._handleSize-this._location.x)/this._location.width*100):(t=this._startShape.style.y,e=this._endShape.style.y,this._fillerShae.style.y=Math.min(t,e)+this._handleSize,this._fillerShae.style.height=Math.abs(t-e)-this._handleSize,this._zoom.start=(this._location.y+this._location.height-Math.max(t,e))/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-Math.min(t,e)-this._handleSize)/this._location.height*100),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFrameShape:function(){"horizontal"==this.zoomOption.orient?(this._startFrameShape.style.width=this._fillerShae.style.x-this._location.x,this._endFrameShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endFrameShape.style.width=this._location.x+this._location.width-this._endFrameShape.style.x):(this._startFrameShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startFrameShape.style.height=this._location.y+this._location.height-this._startFrameShape.style.y,this._endFrameShape.style.height=this._fillerShae.style.y-this._location.y),this.zr.modShape(this._startFrameShape.id),this.zr.modShape(this._endFrameShape.id)},_syncShape:function(){this.zoomOption.show&&("horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._location.x+this._zoom.start/100*this._location.width,this._endShape.style.x=this._location.x+this._zoom.end/100*this._location.width-this._handleSize,this._fillerShae.style.x=this._startShape.style.x+this._handleSize,this._fillerShae.style.width=this._endShape.style.x-this._startShape.style.x-this._handleSize):(this._startShape.style.y=this._location.y+this._location.height-this._zoom.start/100*this._location.height,this._endShape.style.y=this._location.y+this._location.height-this._zoom.end/100*this._location.height-this._handleSize,this._fillerShae.style.y=this._endShape.style.y+this._handleSize,this._fillerShae.style.height=this._startShape.style.y-this._endShape.style.y-this._handleSize),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refresh())},_syncData:function(t){var e,i,o,r,n;for(var a in this._originalData){e=this._originalData[a];for(var h in e)n=e[h],null!=n&&(r=n.length,i=Math.floor(this._zoom.start/100*r),o=Math.ceil(this._zoom.end/100*r),this.getDataFromOption(n[0])instanceof Array&&this.option[a][h].type!=s.CHART_TYPE_K?(this._setScale(),this.option[a][h].data=this._synScatterData(h,n)):this.option[a][h].data=n.slice(i,o))}this._isSilence||!this.zoomOption.realtime&&!t||this.messageCenter.dispatch(s.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart)},_synScatterData:function(t,e){if(0===this._zoom.start&&100==this._zoom.end&&0===this._zoom.start2&&100==this._zoom.end2)return e;var i,o,r,n,s,a=[],h=this._zoom.scatterMap[t];"horizontal"==this.zoomOption.orient?(i=h.x.max-h.x.min,o=this._zoom.start/100*i+h.x.min,r=this._zoom.end/100*i+h.x.min,i=h.y.max-h.y.min,n=this._zoom.start2/100*i+h.y.min,s=this._zoom.end2/100*i+h.y.min):(i=h.x.max-h.x.min,o=this._zoom.start2/100*i+h.x.min,r=this._zoom.end2/100*i+h.x.min,i=h.y.max-h.y.min,n=this._zoom.start/100*i+h.y.min,s=this._zoom.end/100*i+h.y.min);var l;(l=h.x.dataMappingMethods)&&(o=l.coord2Value(o),r=l.coord2Value(r)),(l=h.y.dataMappingMethods)&&(n=l.coord2Value(n),s=l.coord2Value(s));for(var d,c=0,u=e.length;u>c;c++)d=e[c].value||e[c],d[0]>=o&&d[0]<=r&&d[1]>=n&&d[1]<=s&&a.push(e[c]);return a},_setScale:function(){var t=0!==this._zoom.start||100!==this._zoom.end||0!==this._zoom.start2||100!==this._zoom.end2,e={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var i in e)for(var o=0,r=e[i].length;r>o;o++)e[i][o].scale=t||e[i][o]._scale},_backupScale:function(){var t={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var e in t)for(var i=0,o=t[e].length;o>i;i++)t[e][i]._scale=t[e][i].scale},_getDetail:function(){for(var t=["xAxis","yAxis"],e=0,i=t.length;i>e;e++){var o=this._originalData[t[e]];for(var r in o){var n=o[r];if(null!=n){var s=n.length,h=Math.floor(this._zoom.start/100*s),l=Math.ceil(this._zoom.end/100*s);return l-=l>0?1:0,{start:this.getDataFromOption(n[h]),end:this.getDataFromOption(n[l])}}}}t="horizontal"==this.zoomOption.orient?"xAxis":"yAxis";var d=this._zoom.seriesIndex[0],c=this.option.series[d][t+"Index"]||0,u=this.option[t][c].type,p=this._zoom.scatterMap[d][t.charAt(0)].min,f=this._zoom.scatterMap[d][t.charAt(0)].max,g=f-p;if("value"==u)return{start:p+g*this._zoom.start/100,end:p+g*this._zoom.end/100};if("time"==u){f=p+g*this._zoom.end/100,p+=g*this._zoom.start/100;var m=a.getAutoFormatter(p,f).formatter;return{start:a.format(m,p),end:a.format(m,f)}}return{start:"",end:""}},__ondrift:function(t,e,i){this.zoomOption.zoomLock&&(t=this._fillerShae);var o="filler"==t._type?this._handleSize:0;if("horizontal"==this.zoomOption.orient?t.style.x+e-o<=this._location.x?t.style.x=this._location.x+o:t.style.x+e+t.style.width+o>=this._location.x+this._location.width?t.style.x=this._location.x+this._location.width-t.style.width-o:t.style.x+=e:t.style.y+i-o<=this._location.y?t.style.y=this._location.y+o:t.style.y+i+t.style.height+o>=this._location.y+this._location.height?t.style.y=this._location.y+this._location.height-t.style.height-o:t.style.y+=i,"filler"==t._type?this._syncHandleShape():this._syncFillerShape(),this.zoomOption.realtime&&this._syncData(),this.zoomOption.showDetail){var r=this._getDetail();this._startShape.style.text=this._startShape.highlightStyle.text=r.start,this._endShape.style.text=this._endShape.highlightStyle.text=r.end,this._startShape.style.textPosition=this._startShape.highlightStyle.textPosition,this._endShape.style.textPosition=this._endShape.highlightStyle.textPosition}return!0},__ondragend:function(){this.zoomOption.showDetail&&(this._startShape.style.text=this._endShape.style.text="=",this._startShape.style.textPosition=this._endShape.style.textPosition="inside",this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.refreshNextFrame()),this.isDragend=!0
},ondragend:function(t,e){this.isDragend&&t.target&&(!this.zoomOption.realtime&&this._syncData(),e.dragOut=!0,e.dragIn=!0,this._isSilence||this.zoomOption.realtime||this.messageCenter.dispatch(s.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart),e.needRefresh=!1,this.isDragend=!1)},ondataZoom:function(t,e){e.needRefresh=!0},absoluteZoom:function(t){this._zoom.start=t.start,this._zoom.end=t.end,this._zoom.start2=t.start2,this._zoom.end2=t.end2,this._syncShape(),this._syncData(!0)},rectZoom:function(t){if(!t)return this._zoom.start=this._zoom.start2=0,this._zoom.end=this._zoom.end2=100,this._syncShape(),this._syncData(!0),this._zoom;var e=this.component.grid.getArea(),i={x:t.x,y:t.y,width:t.width,height:t.height};if(i.width<0&&(i.x+=i.width,i.width=-i.width),i.height<0&&(i.y+=i.height,i.height=-i.height),i.x>e.x+e.width||i.y>e.y+e.height)return!1;i.x<e.x&&(i.x=e.x),i.x+i.width>e.x+e.width&&(i.width=e.x+e.width-i.x),i.y+i.height>e.y+e.height&&(i.height=e.y+e.height-i.y);var o,r=(i.x-e.x)/e.width,n=1-(i.x+i.width-e.x)/e.width,s=1-(i.y+i.height-e.y)/e.height,a=(i.y-e.y)/e.height;return"horizontal"==this.zoomOption.orient?(o=this._zoom.end-this._zoom.start,this._zoom.start+=o*r,this._zoom.end-=o*n,o=this._zoom.end2-this._zoom.start2,this._zoom.start2+=o*s,this._zoom.end2-=o*a):(o=this._zoom.end-this._zoom.start,this._zoom.start+=o*s,this._zoom.end-=o*a,o=this._zoom.end2-this._zoom.start2,this._zoom.start2+=o*r,this._zoom.end2-=o*n),this._syncShape(),this._syncData(!0),this._zoom},syncBackupData:function(t){for(var e,i,o=this._originalData.series,r=t.series,n=0,s=r.length;s>n;n++){i=r[n].data||r[n].eventList,e=o[n]?Math.floor(this._zoom.start/100*o[n].length):0;for(var a=0,h=i.length;h>a;a++)o[n]&&(o[n][a+e]=i[a])}},syncOption:function(t){this.silence(!0),this.option=t,this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom&&this.option.dataZoom.show&&this._buildShape(),this._syncData(),this.silence(!1)},silence:function(t){this._isSilence=t},getRealDataIndex:function(t,e){if(!this._originalData||0===this._zoom.start&&100==this._zoom.end)return e;var i=this._originalData.series;return i[t]?Math.floor(this._zoom.start/100*i[t].length)+e:-1},resize:function(){this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this.option.dataZoom.show&&this._buildShape()}},h.inherits(e,i),t("../component").define("dataZoom",e),e}),define("echarts/component/axis",["require","./base","zrender/shape/Line","../config","../util/ecData","zrender/tool/util","zrender/tool/color","./categoryAxis","./valueAxis","../component"],function(t){function e(t,e,o,r,n,s){i.call(this,t,e,o,r,n),this.axisType=s,this._axisList=[],this.refresh(r)}var i=t("./base"),o=t("zrender/shape/Line"),r=t("../config"),n=t("../util/ecData"),s=t("zrender/tool/util"),a=t("zrender/tool/color");return e.prototype={type:r.COMPONENT_TYPE_AXIS,axisBase:{_buildAxisLine:function(){var t=this.option.axisLine.lineStyle.width,e=t/2,i={_axisShape:"axisLine",zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1},r=this.grid;switch(this.option.position){case"left":i.style={xStart:r.getX()-e,yStart:r.getYend(),xEnd:r.getX()-e,yEnd:r.getY(),lineCap:"round"};break;case"right":i.style={xStart:r.getXend()+e,yStart:r.getYend(),xEnd:r.getXend()+e,yEnd:r.getY(),lineCap:"round"};break;case"bottom":i.style={xStart:r.getX(),yStart:r.getYend()+e,xEnd:r.getXend(),yEnd:r.getYend()+e,lineCap:"round"};break;case"top":i.style={xStart:r.getX(),yStart:r.getY()-e,xEnd:r.getXend(),yEnd:r.getY()-e,lineCap:"round"}}var n=i.style;""!==this.option.name&&(n.text=this.option.name,n.textPosition=this.option.nameLocation,n.textFont=this.getFont(this.option.nameTextStyle),this.option.nameTextStyle.align&&(n.textAlign=this.option.nameTextStyle.align),this.option.nameTextStyle.baseline&&(n.textBaseline=this.option.nameTextStyle.baseline),this.option.nameTextStyle.color&&(n.textColor=this.option.nameTextStyle.color)),n.strokeColor=this.option.axisLine.lineStyle.color,n.lineWidth=t,this.isHorizontal()?n.yStart=n.yEnd=this.subPixelOptimize(n.yEnd,t):n.xStart=n.xEnd=this.subPixelOptimize(n.xEnd,t),n.lineType=this.option.axisLine.lineStyle.type,i=new o(i),this.shapeList.push(i)},_axisLabelClickable:function(t,e){return t?(n.pack(e,void 0,-1,void 0,-1,e.style.text),e.hoverable=!0,e.clickable=!0,e.highlightStyle={color:a.lift(e.style.color,1),brushType:"fill"},e):e},refixAxisShape:function(t,e){if(this.option.axisLine.onZero){var i;if(this.isHorizontal()&&null!=e)for(var o=0,r=this.shapeList.length;r>o;o++)"axisLine"===this.shapeList[o]._axisShape?(this.shapeList[o].style.yStart=this.shapeList[o].style.yEnd=this.subPixelOptimize(e,this.shapeList[o].stylelineWidth),this.zr.modShape(this.shapeList[o].id)):"axisTick"===this.shapeList[o]._axisShape&&(i=this.shapeList[o].style.yEnd-this.shapeList[o].style.yStart,this.shapeList[o].style.yStart=e-i,this.shapeList[o].style.yEnd=e,this.zr.modShape(this.shapeList[o].id));if(!this.isHorizontal()&&null!=t)for(var o=0,r=this.shapeList.length;r>o;o++)"axisLine"===this.shapeList[o]._axisShape?(this.shapeList[o].style.xStart=this.shapeList[o].style.xEnd=this.subPixelOptimize(t,this.shapeList[o].stylelineWidth),this.zr.modShape(this.shapeList[o].id)):"axisTick"===this.shapeList[o]._axisShape&&(i=this.shapeList[o].style.xEnd-this.shapeList[o].style.xStart,this.shapeList[o].style.xStart=t,this.shapeList[o].style.xEnd=t+i,this.zr.modShape(this.shapeList[o].id))}},getPosition:function(){return this.option.position},isHorizontal:function(){return"bottom"===this.option.position||"top"===this.option.position}},reformOption:function(t){if(!t||t instanceof Array&&0===t.length?t=[{type:r.COMPONENT_TYPE_AXIS_VALUE}]:t instanceof Array||(t=[t]),t.length>2&&(t=[t[0],t[1]]),"xAxis"===this.axisType){(!t[0].position||"bottom"!=t[0].position&&"top"!=t[0].position)&&(t[0].position="bottom"),t.length>1&&(t[1].position="bottom"===t[0].position?"top":"bottom");for(var e=0,i=t.length;i>e;e++)t[e].type=t[e].type||"category",t[e].xAxisIndex=e,t[e].yAxisIndex=-1}else{(!t[0].position||"left"!=t[0].position&&"right"!=t[0].position)&&(t[0].position="left"),t.length>1&&(t[1].position="left"===t[0].position?"right":"left");for(var e=0,i=t.length;i>e;e++)t[e].type=t[e].type||"value",t[e].xAxisIndex=-1,t[e].yAxisIndex=e}return t},refresh:function(e){var i;e&&(this.option=e,"xAxis"===this.axisType?(this.option.xAxis=this.reformOption(e.xAxis),i=this.option.xAxis):(this.option.yAxis=this.reformOption(e.yAxis),i=this.option.yAxis),this.series=e.series);for(var o=t("./categoryAxis"),r=t("./valueAxis"),n=Math.max(i&&i.length||0,this._axisList.length),s=0;n>s;s++)!this._axisList[s]||!e||i[s]&&this._axisList[s].type==i[s].type||(this._axisList[s].dispose&&this._axisList[s].dispose(),this._axisList[s]=!1),this._axisList[s]?this._axisList[s].refresh&&this._axisList[s].refresh(i?i[s]:!1,this.series):i&&i[s]&&(this._axisList[s]="category"===i[s].type?new o(this.ecTheme,this.messageCenter,this.zr,i[s],this.myChart,this.axisBase):new r(this.ecTheme,this.messageCenter,this.zr,i[s],this.myChart,this.axisBase,this.series))},getAxis:function(t){return this._axisList[t]},getAxisCount:function(){return this._axisList.length},clear:function(){for(var t=0,e=this._axisList.length;e>t;t++)this._axisList[t].dispose&&this._axisList[t].dispose();this._axisList=[]}},s.inherits(e,i),t("../component").define("axis",e),e}),define("echarts/util/ecData",[],function(){function t(t,e,i,o,r,n,s,a){var h;return"undefined"!=typeof o&&(h=null==o.value?o:o.value),t._echartsData={_series:e,_seriesIndex:i,_data:o,_dataIndex:r,_name:n,_value:h,_special:s,_special2:a},t._echartsData}function e(t,e){var i=t._echartsData;if(!e)return i;switch(e){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":return i&&i["_"+e]}return null}function i(t,e,i){switch(t._echartsData=t._echartsData||{},e){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":t._echartsData["_"+e]=i}}function o(t,e){e._echartsData={_series:t._echartsData._series,_seriesIndex:t._echartsData._seriesIndex,_data:t._echartsData._data,_dataIndex:t._echartsData._dataIndex,_name:t._echartsData._name,_value:t._echartsData._value,_special:t._echartsData._special,_special2:t._echartsData._special2}}return{pack:t,set:i,get:e,clone:o}}),define("zrender/tool/util",["require","../dep/excanvas"],function(t){function e(t){return t&&1===t.nodeType&&"string"==typeof t.nodeName}function i(t){if("object"==typeof t&&null!==t){var o=t;if(t instanceof Array){o=[];for(var r=0,n=t.length;n>r;r++)o[r]=i(t[r])}else if(!_[y.call(t)]&&!e(t)){o={};for(var s in t)t.hasOwnProperty(s)&&(o[s]=i(t[s]))}return o}return t}function o(t,i,o,n){if(i.hasOwnProperty(o)){var s=t[o];"object"!=typeof s||_[y.call(s)]||e(s)?!n&&o in t||(t[o]=i[o]):r(t[o],i[o],n)}}function r(t,e,i){for(var r in e)o(t,e,r,i);return t}function n(){if(!u)if(t("../dep/excanvas"),window.G_vmlCanvasManager){var e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",document.body.appendChild(e),u=G_vmlCanvasManager.initElement(e).getContext("2d")}else u=document.createElement("canvas").getContext("2d");return u}function s(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,o=t.length;o>i;i++)if(t[i]===e)return i;return-1}function a(t,e){function i(){}var o=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in o)t.prototype[r]=o[r];t.constructor=t}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===f)t.forEach(e,i);else if(t.length===+t.length)for(var o=0,r=t.length;r>o;o++)e.call(i,t[o],o,t);else for(var n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function l(t,e,i){if(t&&e){if(t.map&&t.map===g)return t.map(e,i);for(var o=[],r=0,n=t.length;n>r;r++)o.push(e.call(i,t[r],r,t));return o}}function d(t,e,i){if(t&&e){if(t.filter&&t.filter===m)return t.filter(e,i);for(var o=[],r=0,n=t.length;n>r;r++)e.call(i,t[r],r,t)&&o.push(t[r]);return o}}function c(t,e){return function(){t.apply(e,arguments)}}var u,p=Array.prototype,f=p.forEach,g=p.map,m=p.filter,_={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},y=Object.prototype.toString;return{inherits:a,clone:i,merge:r,getContext:n,indexOf:s,each:h,map:l,filter:d,bind:c}}),define("zrender/shape/Rectangle",["require","./Base","../tool/util"],function(t){var e=t("./Base"),i=function(t){e.call(this,t)};return i.prototype={type:"rectangle",_buildRadiusPath:function(t,e){var i,o,r,n,s=e.x,a=e.y,h=e.width,l=e.height,d=e.radius;"number"==typeof d?i=o=r=n=d:d instanceof Array?1===d.length?i=o=r=n=d[0]:2===d.length?(i=r=d[0],o=n=d[1]):3===d.length?(i=d[0],o=n=d[1],r=d[2]):(i=d[0],o=d[1],r=d[2],n=d[3]):i=o=r=n=0;var c;i+o>h&&(c=i+o,i*=h/c,o*=h/c),r+n>h&&(c=r+n,r*=h/c,n*=h/c),o+r>l&&(c=o+r,o*=l/c,r*=l/c),i+n>l&&(c=i+n,i*=l/c,n*=l/c),t.moveTo(s+i,a),t.lineTo(s+h-o,a),0!==o&&t.quadraticCurveTo(s+h,a,s+h,a+o),t.lineTo(s+h,a+l-r),0!==r&&t.quadraticCurveTo(s+h,a+l,s+h-r,a+l),t.lineTo(s+n,a+l),0!==n&&t.quadraticCurveTo(s,a+l,s,a+l-n),t.lineTo(s,a+i),0!==i&&t.quadraticCurveTo(s,a,s+i,a)},buildPath:function(t,e){e.radius?this._buildRadiusPath(t,e):(t.moveTo(e.x,e.y),t.lineTo(e.x+e.width,e.y),t.lineTo(e.x+e.width,e.y+e.height),t.lineTo(e.x,e.y+e.height),t.lineTo(e.x,e.y)),t.closePath()},getRect:function(t){if(t.__rect)return t.__rect;var e;return e="stroke"==t.brushType||"fill"==t.brushType?t.lineWidth||1:0,t.__rect={x:Math.round(t.x-e/2),y:Math.round(t.y-e/2),width:t.width+e,height:t.height+e},t.__rect}},t("../tool/util").inherits(i,e),i}),define("echarts/chart/base",["require","zrender/shape/Image","../util/shape/Icon","../util/shape/MarkLine","../util/shape/Symbol","zrender/shape/Polyline","zrender/shape/ShapeBundle","../config","../util/ecData","../util/ecAnimation","../util/ecEffect","../util/accMath","../component/base","../layout/EdgeBundling","zrender/tool/util","zrender/tool/area"],function(t){function e(t){return null!=t.x&&null!=t.y}function i(t,e,i,o,r){f.call(this,t,e,i,o,r);var n=this;this.selectedMap={},this.lastShapeList=[],this.shapeHandler={onclick:function(){n.isClick=!0},ondragover:function(t){var e=t.target;e.highlightStyle=e.highlightStyle||{};var i=e.highlightStyle,o=i.brushTyep,r=i.strokeColor,s=i.lineWidth;i.brushType="stroke",i.strokeColor=n.ecTheme.calculableColor||l.calculableColor,i.lineWidth="icon"===e.type?30:10,n.zr.addHoverShape(e),setTimeout(function(){i&&(i.brushType=o,i.strokeColor=r,i.lineWidth=s)},20)},ondrop:function(t){null!=d.get(t.dragged,"data")&&(n.isDrop=!0)},ondragend:function(){n.isDragend=!0}}}var o=t("zrender/shape/Image"),r=t("../util/shape/Icon"),n=t("../util/shape/MarkLine"),s=t("../util/shape/Symbol"),a=t("zrender/shape/Polyline"),h=t("zrender/shape/ShapeBundle"),l=t("../config"),d=t("../util/ecData"),c=t("../util/ecAnimation"),u=t("../util/ecEffect"),p=t("../util/accMath"),f=t("../component/base"),g=t("../layout/EdgeBundling"),m=t("zrender/tool/util"),_=t("zrender/tool/area");return i.prototype={setCalculable:function(t){return t.dragEnableTime=this.ecTheme.DRAG_ENABLE_TIME||l.DRAG_ENABLE_TIME,t.ondragover=this.shapeHandler.ondragover,t.ondragend=this.shapeHandler.ondragend,t.ondrop=this.shapeHandler.ondrop,t},ondrop:function(t,e){if(this.isDrop&&t.target&&!e.dragIn){var i,o=t.target,r=t.dragged,n=d.get(o,"seriesIndex"),s=d.get(o,"dataIndex"),a=this.series,h=this.component.legend;if(-1===s){if(d.get(r,"seriesIndex")==n)return e.dragOut=e.dragIn=e.needRefresh=!0,void(this.isDrop=!1);i={value:d.get(r,"value"),name:d.get(r,"name")},this.type===l.CHART_TYPE_PIE&&i.value<0&&(i.value=0);for(var c=!1,u=a[n].data,f=0,g=u.length;g>f;f++)u[f].name===i.name&&"-"===u[f].value&&(a[n].data[f].value=i.value,c=!0);!c&&a[n].data.push(i),h&&h.add(i.name,r.style.color||r.style.strokeColor)}else i=a[n].data[s]||"-",null!=i.value?(a[n].data[s].value="-"!=i.value?p.accAdd(a[n].data[s].value,d.get(r,"value")):d.get(r,"value"),(this.type===l.CHART_TYPE_FUNNEL||this.type===l.CHART_TYPE_PIE)&&(h&&1===h.getRelatedAmount(i.name)&&this.component.legend.del(i.name),i.name+=this.option.nameConnector+d.get(r,"name"),h&&h.add(i.name,r.style.color||r.style.strokeColor))):a[n].data[s]="-"!=i?p.accAdd(a[n].data[s],d.get(r,"value")):d.get(r,"value");e.dragIn=e.dragIn||!0,this.isDrop=!1;var m=this;setTimeout(function(){m.zr.trigger("mousemove",t.event)},300)}},ondragend:function(t,e){if(this.isDragend&&t.target&&!e.dragOut){var i=t.target,o=d.get(i,"seriesIndex"),r=d.get(i,"dataIndex"),n=this.series;if(null!=n[o].data[r].value){n[o].data[r].value="-";var s=n[o].data[r].name,a=this.component.legend;a&&0===a.getRelatedAmount(s)&&a.del(s)}else n[o].data[r]="-";e.dragOut=!0,e.needRefresh=!0,this.isDragend=!1}},onlegendSelected:function(t,e){var i=t.selected;for(var o in this.selectedMap)this.selectedMap[o]!=i[o]&&(e.needRefresh=!0),this.selectedMap[o]=i[o]},_buildPosition:function(){this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this._sIndex2ColorMap={},this.selectedMap={},this.xMarkMap={};for(var t,e,i,o,r=this.series,n={top:[],bottom:[],left:[],right:[],other:[]},s=0,a=r.length;a>s;s++)r[s].type===this.type&&(r[s]=this.reformOption(r[s]),this.legendHoverLink=r[s].legendHoverLink||this.legendHoverLink,t=r[s].xAxisIndex,e=r[s].yAxisIndex,i=this.component.xAxis.getAxis(t),o=this.component.yAxis.getAxis(e),i.type===l.COMPONENT_TYPE_AXIS_CATEGORY?n[i.getPosition()].push(s):o.type===l.COMPONENT_TYPE_AXIS_CATEGORY?n[o.getPosition()].push(s):n.other.push(s));for(var h in n)n[h].length>0&&this._buildSinglePosition(h,n[h]);this.addShapeList()},_buildSinglePosition:function(t,e){var i=this._mapData(e),o=i.locationMap,r=i.maxDataLength;if(0!==r&&0!==o.length){switch(t){case"bottom":case"top":this._buildHorizontal(e,r,o,this.xMarkMap);break;case"left":case"right":this._buildVertical(e,r,o,this.xMarkMap);break;case"other":this._buildOther(e,r,o,this.xMarkMap)}for(var n=0,s=e.length;s>n;n++)this.buildMark(e[n])}},_mapData:function(t){for(var e,i,o,r,n=this.series,s=0,a={},h="__kener__stack__",d=this.component.legend,c=[],u=0,p=0,f=t.length;f>p;p++){if(e=n[t[p]],o=e.name,this._sIndex2ShapeMap[t[p]]=this._sIndex2ShapeMap[t[p]]||this.query(e,"symbol")||this._symbol[p%this._symbol.length],d){if(this.selectedMap[o]=d.isSelected(o),this._sIndex2ColorMap[t[p]]=d.getColor(o),r=d.getItemShape(o)){var g=r.style;if(this.type==l.CHART_TYPE_LINE)g.iconType="legendLineIcon",g.symbol=this._sIndex2ShapeMap[t[p]];else if(e.itemStyle.normal.barBorderWidth>0){var m=r.highlightStyle;g.brushType="both",g.x+=1,g.y+=1,g.width-=2,g.height-=2,g.strokeColor=m.strokeColor=e.itemStyle.normal.barBorderColor,m.lineWidth=3}d.setItemShape(o,r)}}else this.selectedMap[o]=!0,this._sIndex2ColorMap[t[p]]=this.zr.getColor(t[p]);this.selectedMap[o]&&(i=e.stack||h+t[p],null==a[i]?(a[i]=s,c[s]=[t[p]],s++):c[a[i]].push(t[p])),u=Math.max(u,e.data.length)}return{locationMap:c,maxDataLength:u}},_calculMarkMapXY:function(t,e,i){for(var o=this.series,r=0,n=e.length;n>r;r++)for(var s=0,a=e[r].length;a>s;s++){var h=e[r][s],l="xy"==i?0:"",d=this.component.grid,c=t[h];if("-1"!=i.indexOf("x")){c["counter"+l]>0&&(c["average"+l]=c["sum"+l]/c["counter"+l]);var u=this.component.xAxis.getAxis(o[h].xAxisIndex||0).getCoord(c["average"+l]);c["averageLine"+l]=[[u,d.getYend()],[u,d.getY()]],c["minLine"+l]=[[c["minX"+l],d.getYend()],[c["minX"+l],d.getY()]],c["maxLine"+l]=[[c["maxX"+l],d.getYend()],[c["maxX"+l],d.getY()]],c.isHorizontal=!1}if(l="xy"==i?1:"","-1"!=i.indexOf("y")){c["counter"+l]>0&&(c["average"+l]=c["sum"+l]/c["counter"+l]);var p=this.component.yAxis.getAxis(o[h].yAxisIndex||0).getCoord(c["average"+l]);c["averageLine"+l]=[[d.getX(),p],[d.getXend(),p]],c["minLine"+l]=[[d.getX(),c["minY"+l]],[d.getXend(),c["minY"+l]]],c["maxLine"+l]=[[d.getX(),c["maxY"+l]],[d.getXend(),c["maxY"+l]]],c.isHorizontal=!0}}},addLabel:function(t,e,i,o,r){var n=[i,e],s=this.deepMerge(n,"itemStyle.normal.label"),a=this.deepMerge(n,"itemStyle.emphasis.label"),h=s.textStyle||{},l=a.textStyle||{};if(s.show){var d=t.style;d.text=this._getLabelText(e,i,o,"normal"),d.textPosition=null==s.position?"horizontal"===r?"right":"top":s.position,d.textColor=h.color,d.textFont=this.getFont(h),d.textAlign=h.align,d.textBaseline=h.baseline}if(a.show){var c=t.highlightStyle;c.text=this._getLabelText(e,i,o,"emphasis"),c.textPosition=s.show?t.style.textPosition:null==a.position?"horizontal"===r?"right":"top":a.position,c.textColor=l.color,c.textFont=this.getFont(l),c.textAlign=l.align,c.textBaseline=l.baseline}return t},_getLabelText:function(t,e,i,o){var r=this.deepQuery([e,t],"itemStyle."+o+".label.formatter");r||"emphasis"!==o||(r=this.deepQuery([e,t],"itemStyle.normal.label.formatter"));var n=this.getDataFromOption(e,"-");return r?"function"==typeof r?r.call(this.myChart,{seriesName:t.name,series:t,name:i,value:n,data:e,status:o}):"string"==typeof r?r=r.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",t.name).replace("{b0}",i).replace("{c0}",this.numAddCommas(n)):void 0:n instanceof Array?null!=n[2]?this.numAddCommas(n[2]):n[0]+" , "+n[1]:this.numAddCommas(n)},buildMark:function(t){var e=this.series[t];this.selectedMap[e.name]&&(e.markLine&&this._buildMarkLine(t),e.markPoint&&this._buildMarkPoint(t))},_buildMarkPoint:function(t){for(var e,i,o=(this.markAttachStyle||{})[t],r=this.series[t],n=m.clone(r.markPoint),s=0,a=n.data.length;a>s;s++)e=n.data[s],i=this.getMarkCoord(t,e),e.x=null!=e.x?e.x:i[0],e.y=null!=e.y?e.y:i[1],!e.type||"max"!==e.type&&"min"!==e.type||(e.value=i[3],e.name=e.name||e.type,e.symbolSize=e.symbolSize||_.getTextWidth(i[3],this.getFont())/2+5);for(var h=this._markPoint(t,n),s=0,a=h.length;a>s;s++){var d=h[s];d.zlevel=r.zlevel,d.z=r.z+1;for(var c in o)d[c]=m.clone(o[c]);this.shapeList.push(d)}if(this.type===l.CHART_TYPE_FORCE||this.type===l.CHART_TYPE_CHORD)for(var s=0,a=h.length;a>s;s++)this.zr.addShape(h[s])},_buildMarkLine:function(t){for(var e,i=(this.markAttachStyle||{})[t],o=this.series[t],r=m.clone(o.markLine),n=0,s=r.data.length;s>n;n++){var a=r.data[n];!a.type||"max"!==a.type&&"min"!==a.type&&"average"!==a.type?e=[this.getMarkCoord(t,a[0]),this.getMarkCoord(t,a[1])]:(e=this.getMarkCoord(t,a),r.data[n]=[m.clone(a),{}],r.data[n][0].name=a.name||a.type,r.data[n][0].value="average"!==a.type?e[3]:+e[3].toFixed(null!=r.precision?r.precision:this.deepQuery([this.ecTheme,l],"markLine.precision")),e=e[2],a=[{},{}]),null!=e&&null!=e[0]&&null!=e[1]&&(r.data[n][0].x=null!=a[0].x?a[0].x:e[0][0],r.data[n][0].y=null!=a[0].y?a[0].y:e[0][1],r.data[n][1].x=null!=a[1].x?a[1].x:e[1][0],r.data[n][1].y=null!=a[1].y?a[1].y:e[1][1])}var d=this._markLine(t,r),c=r.large;if(c){var u=new h({style:{shapeList:d}}),p=d[0];if(p){m.merge(u.style,p.style),m.merge(u.highlightStyle={},p.highlightStyle),u.style.brushType="stroke",u.zlevel=o.zlevel,u.z=o.z+1,u.hoverable=!1;for(var f in i)u[f]=m.clone(i[f])}this.shapeList.push(u),this.zr.addShape(u),u._mark="largeLine";var g=r.effect;g.show&&(u.effect=g)}else{for(var n=0,s=d.length;s>n;n++){var _=d[n];_.zlevel=o.zlevel,_.z=o.z+1;for(var f in i)_[f]=m.clone(i[f]);this.shapeList.push(_)}if(this.type===l.CHART_TYPE_FORCE||this.type===l.CHART_TYPE_CHORD)for(var n=0,s=d.length;s>n;n++)this.zr.addShape(d[n])}},_markPoint:function(t,e){var i=this.series[t],o=this.component;m.merge(m.merge(e,m.clone(this.ecTheme.markPoint||{})),m.clone(l.markPoint)),e.name=i.name;var r,n,s,a,h,c,u,p=[],f=e.data,g=o.dataRange,_=o.legend,y=this.zr.getWidth(),v=this.zr.getHeight();if(e.large)r=this.getLargeMarkPointShape(t,e),r._mark="largePoint",r&&p.push(r);else for(var x=0,b=f.length;b>x;x++)null!=f[x].x&&null!=f[x].y&&(s=null!=f[x].value?f[x].value:"",_&&(n=_.getColor(i.name)),g&&(n=isNaN(s)?n:g.getColor(s),a=[f[x],e],h=this.deepQuery(a,"itemStyle.normal.color")||n,c=this.deepQuery(a,"itemStyle.emphasis.color")||h,null==h&&null==c)||(n=null==n?this.zr.getColor(t):n,f[x].tooltip=f[x].tooltip||e.tooltip||{trigger:"item"},f[x].name=null!=f[x].name?f[x].name:"",f[x].value=s,r=this.getSymbolShape(e,t,f[x],x,f[x].name,this.parsePercent(f[x].x,y),this.parsePercent(f[x].y,v),"pin",n,"rgba(0,0,0,0)","horizontal"),r._mark="point",u=this.deepMerge([f[x],e],"effect"),u.show&&(r.effect=u),i.type===l.CHART_TYPE_MAP&&(r._geo=this.getMarkGeo(f[x])),d.pack(r,i,t,f[x],x,f[x].name,s),p.push(r)));return p},_markLine:function(){function t(t,e){t[e]=t[e]instanceof Array?t[e].length>1?t[e]:[t[e][0],t[e][0]]:[t[e],t[e]]}return function(i,o){var r=this.series[i],n=this.component,s=n.dataRange,a=n.legend;m.merge(m.merge(o,m.clone(this.ecTheme.markLine||{})),m.clone(l.markLine));var h=a?a.getColor(r.name):this.zr.getColor(i);t(o,"symbol"),t(o,"symbolSize"),t(o,"symbolRotate");for(var c=o.data,u=[],p=this.zr.getWidth(),f=this.zr.getHeight(),_=0;_<c.length;_++){var y=c[_];if(e(y[0])&&e(y[1])){var v=this.deepMerge(y),x=[v,o],b=h,T=null!=v.value?v.value:"";if(s){b=isNaN(T)?b:s.getColor(T);var S=this.deepQuery(x,"itemStyle.normal.color")||b,C=this.deepQuery(x,"itemStyle.emphasis.color")||S;if(null==S&&null==C)continue}y[0].tooltip=v.tooltip||o.tooltip||{trigger:"item"},y[0].name=y[0].name||"",y[1].name=y[1].name||"",y[0].value=T,u.push({points:[[this.parsePercent(y[0].x,p),this.parsePercent(y[0].y,f)],[this.parsePercent(y[1].x,p),this.parsePercent(y[1].y,f)]],rawData:y,color:b})}}var z=this.query(o,"bundling.enable");if(z){var E=new g;E.maxTurningAngle=this.query(o,"bundling.maxTurningAngle")/180*Math.PI,u=E.run(u)}o.name=r.name;for(var w=[],_=0,A=u.length;A>_;_++){var L=u[_],M=L.rawEdge||L,y=M.rawData,T=null!=y.value?y.value:"",k=this.getMarkLineShape(o,i,y,_,L.points,z,M.color);k._mark="line";var I=this.deepMerge([y[0],y[1],o],"effect");I.show&&(k.effect=I,k.effect.large=o.large),r.type===l.CHART_TYPE_MAP&&(k._geo=[this.getMarkGeo(y[0]),this.getMarkGeo(y[1])]),d.pack(k,r,i,y[0],_,y[0].name+(""!==y[1].name?" > "+y[1].name:""),T),w.push(k)}return w}}(),getMarkCoord:function(){return[0,0]},getSymbolShape:function(t,e,i,n,s,a,h,l,c,u,p){var f=[i,t],g=this.getDataFromOption(i,"-");l=this.deepQuery(f,"symbol")||l;var m=this.deepQuery(f,"symbolSize");m="function"==typeof m?m(g):m,"number"==typeof m&&(m=[m,m]);var _=this.deepQuery(f,"symbolRotate"),y=this.deepMerge(f,"itemStyle.normal"),v=this.deepMerge(f,"itemStyle.emphasis"),x=null!=y.borderWidth?y.borderWidth:y.lineStyle&&y.lineStyle.width;null==x&&(x=l.match("empty")?2:0);var b=null!=v.borderWidth?v.borderWidth:v.lineStyle&&v.lineStyle.width;null==b&&(b=x+2);var T=this.getItemStyleColor(y.color,e,n,i),S=this.getItemStyleColor(v.color,e,n,i),C=m[0],z=m[1],E=new r({style:{iconType:l.replace("empty","").toLowerCase(),x:a-C,y:h-z,width:2*C,height:2*z,brushType:"both",color:l.match("empty")?u:T||c,strokeColor:y.borderColor||T||c,lineWidth:x},highlightStyle:{color:l.match("empty")?u:S||T||c,strokeColor:v.borderColor||y.borderColor||S||T||c,lineWidth:b},clickable:this.deepQuery(f,"clickable")});return l.match("image")&&(E.style.image=l.replace(new RegExp("^image:\\/\\/"),""),E=new o({style:E.style,highlightStyle:E.highlightStyle,clickable:this.deepQuery(f,"clickable")})),null!=_&&(E.rotation=[_*Math.PI/180,a,h]),l.match("star")&&(E.style.iconType="star",E.style.n=l.replace("empty","").replace("star","")-0||5),"none"===l&&(E.invisible=!0,E.hoverable=!1),E=this.addLabel(E,t,i,s,p),l.match("empty")&&(null==E.style.textColor&&(E.style.textColor=E.style.strokeColor),null==E.highlightStyle.textColor&&(E.highlightStyle.textColor=E.highlightStyle.strokeColor)),d.pack(E,t,e,i,n,s),E._x=a,E._y=h,E._dataIndex=n,E._seriesIndex=e,E},getMarkLineShape:function(t,e,i,o,r,s,h){var l=null!=i[0].value?i[0].value:"-",d=null!=i[1].value?i[1].value:"-",c=[i[0].symbol||t.symbol[0],i[1].symbol||t.symbol[1]],u=[i[0].symbolSize||t.symbolSize[0],i[1].symbolSize||t.symbolSize[1]];u[0]="function"==typeof u[0]?u[0](l):u[0],u[1]="function"==typeof u[1]?u[1](d):u[1];var p=[this.query(i[0],"symbolRotate")||t.symbolRotate[0],this.query(i[1],"symbolRotate")||t.symbolRotate[1]],f=[i[0],i[1],t],g=this.deepMerge(f,"itemStyle.normal");g.color=this.getItemStyleColor(g.color,e,o,i);var m=this.deepMerge(f,"itemStyle.emphasis");m.color=this.getItemStyleColor(m.color,e,o,i);var _=g.lineStyle,y=m.lineStyle,v=_.width;null==v&&(v=g.borderWidth);var x=y.width;null==x&&(x=null!=m.borderWidth?m.borderWidth:v+2);var b=this.deepQuery(f,"smoothness");this.deepQuery(f,"smooth")||(b=0);var T=s?a:n,S=new T({style:{symbol:c,symbolSize:u,symbolRotate:p,brushType:"both",lineType:_.type,shadowColor:_.shadowColor||_.color||g.borderColor||g.color||h,shadowBlur:_.shadowBlur,shadowOffsetX:_.shadowOffsetX,shadowOffsetY:_.shadowOffsetY,color:g.color||h,strokeColor:_.color||g.borderColor||g.color||h,lineWidth:v,symbolBorderColor:g.borderColor||g.color||h,symbolBorder:g.borderWidth},highlightStyle:{shadowColor:y.shadowColor,shadowBlur:y.shadowBlur,shadowOffsetX:y.shadowOffsetX,shadowOffsetY:y.shadowOffsetY,color:m.color||g.color||h,strokeColor:y.color||_.color||m.borderColor||g.borderColor||m.color||g.color||h,lineWidth:x,symbolBorderColor:m.borderColor||g.borderColor||m.color||g.color||h,symbolBorder:null==m.borderWidth?g.borderWidth+2:m.borderWidth},clickable:this.deepQuery(f,"clickable")}),C=S.style;return s?(C.pointList=r,C.smooth=b):(C.xStart=r[0][0],C.yStart=r[0][1],C.xEnd=r[1][0],C.yEnd=r[1][1],C.curveness=b,S.updatePoints(S.style)),S=this.addLabel(S,t,i[0],i[0].name+" : "+i[1].name)},getLargeMarkPointShape:function(t,e){var i,o,r,n,a,h,l=this.series[t],d=this.component,c=e.data,u=d.dataRange,p=d.legend,f=[c[0],e];if(p&&(o=p.getColor(l.name)),!u||(r=null!=c[0].value?c[0].value:"",o=isNaN(r)?o:u.getColor(r),n=this.deepQuery(f,"itemStyle.normal.color")||o,a=this.deepQuery(f,"itemStyle.emphasis.color")||n,null!=n||null!=a)){o=this.deepMerge(f,"itemStyle.normal").color||o;var g=this.deepQuery(f,"symbol")||"circle";g=g.replace("empty","").replace(/\d/g,""),h=this.deepMerge([c[0],e],"effect");var m=window.devicePixelRatio||1;return i=new s({style:{pointList:c,color:o,strokeColor:o,shadowColor:h.shadowColor||o,shadowBlur:(null!=h.shadowBlur?h.shadowBlur:8)*m,size:this.deepQuery(f,"symbolSize"),iconType:g,brushType:"fill",lineWidth:1},draggable:!1,hoverable:!1}),h.show&&(i.effect=h),i}},backupShapeList:function(){this.shapeList&&this.shapeList.length>0?(this.lastShapeList=this.shapeList,this.shapeList=[]):this.lastShapeList=[]},addShapeList:function(){var t,e,i=this.option.animationThreshold/(this.canvasSupported?2:4),o=this.lastShapeList,r=this.shapeList,n=o.length>0,s=n?this.query(this.option,"animationDurationUpdate"):this.query(this.option,"animationDuration"),a=this.query(this.option,"animationEasing"),h={},d={};if(this.option.animation&&!this.option.renderAsImage&&r.length<i&&!this.motionlessOnce){for(var c=0,u=o.length;u>c;c++)e=this._getAnimationKey(o[c]),e.match("undefined")?this.zr.delShape(o[c].id):(e+=o[c].type,h[e]?this.zr.delShape(o[c].id):h[e]=o[c]);for(var c=0,u=r.length;u>c;c++)e=this._getAnimationKey(r[c]),e.match("undefined")?this.zr.addShape(r[c]):(e+=r[c].type,d[e]=r[c]);for(e in h)d[e]||this.zr.delShape(h[e].id);for(e in d)h[e]?(this.zr.delShape(h[e].id),this._animateMod(h[e],d[e],s,a,0,n)):(t=this.type!=l.CHART_TYPE_LINE&&this.type!=l.CHART_TYPE_RADAR||0===e.indexOf("icon")?0:s/2,this._animateMod(!1,d[e],s,a,t,n));this.zr.refresh(),this.animationEffect()}else{this.motionlessOnce=!1,this.zr.delShape(o);for(var c=0,u=r.length;u>c;c++)this.zr.addShape(r[c])}},_getAnimationKey:function(t){return this.type!=l.CHART_TYPE_MAP&&this.type!=l.CHART_TYPE_TREEMAP&&this.type!=l.CHART_TYPE_VENN&&this.type!=l.CHART_TYPE_TREE?d.get(t,"seriesIndex")+"_"+d.get(t,"dataIndex")+(t._mark?t._mark:"")+(this.type===l.CHART_TYPE_RADAR?d.get(t,"special"):""):d.get(t,"seriesIndex")+"_"+d.get(t,"dataIndex")+(t._mark?t._mark:"undefined")},_animateMod:function(t,e,i,o,r,n){switch(e.type){case"polyline":case"half-smooth-polygon":c.pointList(this.zr,t,e,i,o);break;case"rectangle":c.rectangle(this.zr,t,e,i,o);break;case"image":case"icon":c.icon(this.zr,t,e,i,o,r);break;case"candle":n?this.zr.addShape(e):c.candle(this.zr,t,e,i,o);break;case"ring":case"sector":case"circle":n?"sector"===e.type?c.sector(this.zr,t,e,i,o):this.zr.addShape(e):c.ring(this.zr,t,e,i+(d.get(e,"dataIndex")||0)%20*100,o);break;case"text":c.text(this.zr,t,e,i,o);break;case"polygon":n?c.pointList(this.zr,t,e,i,o):c.polygon(this.zr,t,e,i,o);break;case"ribbon":c.ribbon(this.zr,t,e,i,o);break;case"gauge-pointer":c.gaugePointer(this.zr,t,e,i,o);break;case"mark-line":c.markline(this.zr,t,e,i,o);break;case"bezier-curve":case"line":c.line(this.zr,t,e,i,o);break;default:this.zr.addShape(e)}},animationMark:function(t,e,i){for(var i=i||this.shapeList,o=0,r=i.length;r>o;o++)i[o]._mark&&this._animateMod(!1,i[o],t,e,0,!0);this.animationEffect(i)},animationEffect:function(t){if(!t&&this.clearEffectShape(),t=t||this.shapeList,null!=t){var e=l.EFFECT_ZLEVEL;this.canvasSupported&&this.zr.modLayer(e,{motionBlur:!0,lastFrameAlpha:this.option.effectBlendAlpha||l.effectBlendAlpha});for(var i,o=0,r=t.length;r>o;o++)i=t[o],i._mark&&i.effect&&i.effect.show&&u[i._mark]&&(u[i._mark](this.zr,this.effectList,i,e),this.effectList[this.effectList.length-1]._mark=i._mark)}},clearEffectShape:function(t){var e=this.effectList;if(this.zr&&e&&e.length>0){t&&this.zr.modLayer(l.EFFECT_ZLEVEL,{motionBlur:!1}),this.zr.delShape(e);for(var i=0;i<e.length;i++)e[i].effectAnimator&&e[i].effectAnimator.stop()}this.effectList=[]},addMark:function(t,e,i){var o=this.series[t];if(this.selectedMap[o.name]){var r=this.query(this.option,"animationDurationUpdate"),n=this.query(this.option,"animationEasing"),s=o[i].data,a=this.shapeList.length;if(o[i].data=e.data,this["_build"+i.replace("m","M")](t),this.option.animation&&!this.option.renderAsImage)this.animationMark(r,n,this.shapeList.slice(a));else{for(var h=a,l=this.shapeList.length;l>h;h++)this.zr.addShape(this.shapeList[h]);
this.zr.refreshNextFrame()}o[i].data=s}},delMark:function(t,e,i){i=i.replace("mark","").replace("large","").toLowerCase();var o=this.series[t];if(this.selectedMap[o.name]){for(var r=!1,n=[this.shapeList,this.effectList],s=2;s--;)for(var a=0,h=n[s].length;h>a;a++)if(n[s][a]._mark==i&&d.get(n[s][a],"seriesIndex")==t&&d.get(n[s][a],"name")==e){this.zr.delShape(n[s][a].id),n[s].splice(a,1),r=!0;break}r&&this.zr.refreshNextFrame()}}},m.inherits(i,f),i}),define("echarts/chart",[],function(){var t={},e={};return t.define=function(i,o){return e[i]=o,t},t.get=function(t){return e[t]},t}),define("echarts/util/shape/MarkLine",["require","zrender/shape/Base","./Icon","zrender/shape/Line","zrender/shape/BezierCurve","zrender/tool/area","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/curve"],function(t){function e(t){i.call(this,t),this.style.curveness>0&&this.updatePoints(this.style),this.highlightStyle.curveness>0&&this.updatePoints(this.highlightStyle)}var i=t("zrender/shape/Base"),o=t("./Icon"),r=t("zrender/shape/Line"),n=new r({}),s=t("zrender/shape/BezierCurve"),a=new s({}),h=t("zrender/tool/area"),l=t("zrender/shape/util/dashedLineTo"),d=t("zrender/tool/util"),c=t("zrender/tool/curve");return e.prototype={type:"mark-line",brush:function(t,e){var i=this.style;e&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),t.save(),this.setContext(t,i),this.setTransform(t),t.save(),t.beginPath(),this.buildPath(t,i),t.stroke(),t.restore(),this.brushSymbol(t,i,0),this.brushSymbol(t,i,1),this.drawText(t,i,this.style),t.restore()},buildPath:function(t,e){var i=e.lineType||"solid";if(t.moveTo(e.xStart,e.yStart),e.curveness>0){var o=null;switch(i){case"dashed":o=[5,5];break;case"dotted":o=[1,1]}o&&t.setLineDash&&t.setLineDash(o),t.quadraticCurveTo(e.cpX1,e.cpY1,e.xEnd,e.yEnd)}else if("solid"==i)t.lineTo(e.xEnd,e.yEnd);else{var r=(e.lineWidth||1)*("dashed"==e.lineType?5:1);l(t,e.xStart,e.yStart,e.xEnd,e.yEnd,r)}},updatePoints:function(t){var e=t.curveness||0,i=1,o=t.xStart,r=t.yStart,n=t.xEnd,s=t.yEnd,a=(o+n)/2-i*(r-s)*e,h=(r+s)/2-i*(n-o)*e;t.cpX1=a,t.cpY1=h},brushSymbol:function(t,e,i){if("none"!=e.symbol[i]){t.save(),t.beginPath(),t.lineWidth=e.symbolBorder,t.strokeStyle=e.symbolBorderColor;var r=e.symbol[i].replace("empty","").toLowerCase();e.symbol[i].match("empty")&&(t.fillStyle="#fff");var n=e.xStart,s=e.yStart,a=e.xEnd,h=e.yEnd,l=0===i?n:a,d=0===i?s:h,u=e.curveness||0,p=null!=e.symbolRotate[i]?e.symbolRotate[i]-0:0;if(p=p/180*Math.PI,"arrow"==r&&0===p)if(0===u){var f=0===i?-1:1;p=Math.PI/2+Math.atan2(f*(h-s),f*(a-n))}else{var g=e.cpX1,m=e.cpY1,_=c.quadraticDerivativeAt,y=_(n,g,a,i),v=_(s,m,h,i);p=Math.PI/2+Math.atan2(v,y)}t.translate(l,d),0!==p&&t.rotate(p);var x=e.symbolSize[i];o.prototype.buildPath(t,{x:-x,y:-x,width:2*x,height:2*x,iconType:r}),t.closePath(),t.fill(),t.stroke(),t.restore()}},getRect:function(t){return t.curveness>0?a.getRect(t):n.getRect(t),t.__rect},isCover:function(t,e){var i=this.transformCoordToLocal(t,e);return t=i[0],e=i[1],this.isCoverRect(t,e)?this.style.curveness>0?h.isInside(a,this.style,t,e):h.isInside(n,this.style,t,e):!1}},d.inherits(e,i),e}),define("zrender/shape/Image",["require","./Base","../tool/util"],function(t){var e=t("./Base"),i=function(t){e.call(this,t)};return i.prototype={type:"image",brush:function(t,e,i){var o=this.style||{};e&&(o=this.getHighlightStyle(o,this.highlightStyle||{}));var r=o.image,n=this;if(this._imageCache||(this._imageCache={}),"string"==typeof r){var s=r;this._imageCache[s]?r=this._imageCache[s]:(r=new Image,r.onload=function(){r.onload=null,n.modSelf(),i()},r.src=s,this._imageCache[s]=r)}if(r){if("IMG"==r.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=r.readyState)return}else if(!r.complete)return;var a=o.width||r.width,h=o.height||r.height,l=o.x,d=o.y;if(!r.width||!r.height)return;if(t.save(),this.doClip(t),this.setContext(t,o),this.setTransform(t),o.sWidth&&o.sHeight){var c=o.sx||0,u=o.sy||0;t.drawImage(r,c,u,o.sWidth,o.sHeight,l,d,a,h)}else if(o.sx&&o.sy){var c=o.sx,u=o.sy,p=a-c,f=h-u;t.drawImage(r,c,u,p,f,l,d,a,h)}else t.drawImage(r,l,d,a,h);o.width||(o.width=a),o.height||(o.height=h),this.style.width||(this.style.width=a),this.style.height||(this.style.height=h),this.drawText(t,o,this.style),t.restore()}},getRect:function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}},clearCache:function(){this._imageCache={}}},t("../tool/util").inherits(i,e),i}),define("echarts/echarts",["require","./config","zrender/tool/util","zrender/tool/event","zrender/tool/env","zrender","zrender/config","./chart/island","./component/toolbox","./component","./component/title","./component/tooltip","./component/legend","./util/ecData","./chart","zrender/tool/color","./component/timeline","zrender/shape/Image","zrender/loadingEffect/Bar","zrender/loadingEffect/Bubble","zrender/loadingEffect/DynamicLine","zrender/loadingEffect/Ring","zrender/loadingEffect/Spin","zrender/loadingEffect/Whirling","./theme/macarons","./theme/infographic"],function(t){function e(){s.Dispatcher.call(this)}function i(t){t.innerHTML="",this._themeConfig={},this.dom=t,this._connected=!1,this._status={dragIn:!1,dragOut:!1,needRefresh:!1},this._curEventType=!1,this._chartList=[],this._messageCenter=new e,this._messageCenterOutSide=new e,this.resize=this.resize(),this._init()}function o(t,e,i,o,r){for(var n=t._chartList,s=n.length;s--;){var a=n[s];"function"==typeof a[e]&&a[e](i,o,r)}}var r=t("./config"),n=t("zrender/tool/util"),s=t("zrender/tool/event"),a={},h=t("zrender/tool/env").canvasSupported,l=new Date-0,d={},c="_echarts_instance_";a.version="2.2.7",a.dependencies={zrender:"2.1.1"},a.init=function(e,o){var r=t("zrender");r.version.replace(".","")-0<a.dependencies.zrender.replace(".","")-0&&console.error("ZRender "+r.version+" is too old for ECharts "+a.version+". Current version need ZRender "+a.dependencies.zrender+"+"),e=e instanceof Array?e[0]:e;var n=e.getAttribute(c);return n||(n=l++,e.setAttribute(c,n)),d[n]&&d[n].dispose(),d[n]=new i(e),d[n].id=n,d[n].canvasSupported=h,d[n].setTheme(o),d[n]},a.getInstanceById=function(t){return d[t]},n.merge(e.prototype,s.Dispatcher.prototype,!0);var u=t("zrender/config").EVENT,p=["CLICK","DBLCLICK","MOUSEOVER","MOUSEOUT","DRAGSTART","DRAGEND","DRAGENTER","DRAGOVER","DRAGLEAVE","DROP"];return i.prototype={_init:function(){var e=this,i=t("zrender").init(this.dom);this._zr=i,this._messageCenter.dispatch=function(t,i,o,r){o=o||{},o.type=t,o.event=i,e._messageCenter.dispatchWithContext(t,o,r),e._messageCenterOutSide.dispatchWithContext(t,o,r)},this._onevent=function(t){return e.__onevent(t)};for(var o in r.EVENT)"CLICK"!=o&&"DBLCLICK"!=o&&"HOVER"!=o&&"MOUSEOUT"!=o&&"MAP_ROAM"!=o&&this._messageCenter.bind(r.EVENT[o],this._onevent,this);var n={};this._onzrevent=function(t){return e[n[t.type]](t)};for(var s=0,a=p.length;a>s;s++){var h=p[s],l=u[h];n[l]="_on"+h.toLowerCase(),i.on(l,this._onzrevent)}this.chart={},this.component={};var d=t("./chart/island");this._island=new d(this._themeConfig,this._messageCenter,i,{},this),this.chart.island=this._island;var c=t("./component/toolbox");this._toolbox=new c(this._themeConfig,this._messageCenter,i,{},this),this.component.toolbox=this._toolbox;var f=t("./component");f.define("title",t("./component/title")),f.define("tooltip",t("./component/tooltip")),f.define("legend",t("./component/legend")),(0===i.getWidth()||0===i.getHeight())&&console.error("Dom’s width & height should be ready before init.")},__onevent:function(t){t.__echartsId=t.__echartsId||this.id;var e=t.__echartsId===this.id;switch(this._curEventType||(this._curEventType=t.type),t.type){case r.EVENT.LEGEND_SELECTED:this._onlegendSelected(t);break;case r.EVENT.DATA_ZOOM:if(!e){var i=this.component.dataZoom;i&&(i.silence(!0),i.absoluteZoom(t.zoom),i.silence(!1))}this._ondataZoom(t);break;case r.EVENT.DATA_RANGE:e&&this._ondataRange(t);break;case r.EVENT.MAGIC_TYPE_CHANGED:if(!e){var o=this.component.toolbox;o&&(o.silence(!0),o.setMagicType(t.magicType),o.silence(!1))}this._onmagicTypeChanged(t);break;case r.EVENT.DATA_VIEW_CHANGED:e&&this._ondataViewChanged(t);break;case r.EVENT.TOOLTIP_HOVER:e&&this._tooltipHover(t);break;case r.EVENT.RESTORE:this._onrestore();break;case r.EVENT.REFRESH:e&&this._onrefresh(t);break;case r.EVENT.TOOLTIP_IN_GRID:case r.EVENT.TOOLTIP_OUT_GRID:if(e){if(this._connected){var n=this.component.grid;n&&(t.x=(t.event.zrenderX-n.getX())/n.getWidth(),t.y=(t.event.zrenderY-n.getY())/n.getHeight())}}else{var n=this.component.grid;n&&this._zr.trigger("mousemove",{connectTrigger:!0,zrenderX:n.getX()+t.x*n.getWidth(),zrenderY:n.getY()+t.y*n.getHeight()})}}if(this._connected&&e&&this._curEventType===t.type){for(var s in this._connected)this._connected[s].connectedEventHandler(t);this._curEventType=null}(!e||!this._connected&&e)&&(this._curEventType=null)},_onclick:function(t){if(o(this,"onclick",t),t.target){var e=this._eventPackage(t.target);e&&null!=e.seriesIndex&&this._messageCenter.dispatch(r.EVENT.CLICK,t.event,e,this)}},_ondblclick:function(t){if(o(this,"ondblclick",t),t.target){var e=this._eventPackage(t.target);e&&null!=e.seriesIndex&&this._messageCenter.dispatch(r.EVENT.DBLCLICK,t.event,e,this)}},_onmouseover:function(t){if(t.target){var e=this._eventPackage(t.target);e&&null!=e.seriesIndex&&this._messageCenter.dispatch(r.EVENT.HOVER,t.event,e,this)}},_onmouseout:function(t){if(t.target){var e=this._eventPackage(t.target);e&&null!=e.seriesIndex&&this._messageCenter.dispatch(r.EVENT.MOUSEOUT,t.event,e,this)}},_ondragstart:function(t){this._status={dragIn:!1,dragOut:!1,needRefresh:!1},o(this,"ondragstart",t)},_ondragenter:function(t){o(this,"ondragenter",t)},_ondragover:function(t){o(this,"ondragover",t)},_ondragleave:function(t){o(this,"ondragleave",t)},_ondrop:function(t){o(this,"ondrop",t,this._status),this._island.ondrop(t,this._status)},_ondragend:function(t){if(o(this,"ondragend",t,this._status),this._timeline&&this._timeline.ondragend(t,this._status),this._island.ondragend(t,this._status),this._status.needRefresh){this._syncBackupData(this._option);var e=this._messageCenter;e.dispatch(r.EVENT.DATA_CHANGED,t.event,this._eventPackage(t.target),this),e.dispatch(r.EVENT.REFRESH,null,null,this)}},_onlegendSelected:function(t){this._status.needRefresh=!1,o(this,"onlegendSelected",t,this._status),this._status.needRefresh&&this._messageCenter.dispatch(r.EVENT.REFRESH,null,null,this)},_ondataZoom:function(t){this._status.needRefresh=!1,o(this,"ondataZoom",t,this._status),this._status.needRefresh&&this._messageCenter.dispatch(r.EVENT.REFRESH,null,null,this)},_ondataRange:function(t){this._clearEffect(),this._status.needRefresh=!1,o(this,"ondataRange",t,this._status),this._status.needRefresh&&this._zr.refreshNextFrame()},_onmagicTypeChanged:function(){this._clearEffect(),this._render(this._toolbox.getMagicOption())},_ondataViewChanged:function(t){this._syncBackupData(t.option),this._messageCenter.dispatch(r.EVENT.DATA_CHANGED,null,t,this),this._messageCenter.dispatch(r.EVENT.REFRESH,null,null,this)},_tooltipHover:function(t){var e=[];o(this,"ontooltipHover",t,e)},_onrestore:function(){this.restore()},_onrefresh:function(t){this._refreshInside=!0,this.refresh(t),this._refreshInside=!1},_syncBackupData:function(t){this.component.dataZoom&&this.component.dataZoom.syncBackupData(t)},_eventPackage:function(e){if(e){var i=t("./util/ecData"),o=i.get(e,"seriesIndex"),r=i.get(e,"dataIndex");return r=-1!=o&&this.component.dataZoom?this.component.dataZoom.getRealDataIndex(o,r):r,{seriesIndex:o,seriesName:(i.get(e,"series")||{}).name,dataIndex:r,data:i.get(e,"data"),name:i.get(e,"name"),value:i.get(e,"value"),special:i.get(e,"special")}}},_noDataCheck:function(t){for(var e=t.series,i=0,o=e.length;o>i;i++)if(e[i].type==r.CHART_TYPE_MAP||e[i].data&&e[i].data.length>0||e[i].markPoint&&e[i].markPoint.data&&e[i].markPoint.data.length>0||e[i].markLine&&e[i].markLine.data&&e[i].markLine.data.length>0||e[i].nodes&&e[i].nodes.length>0||e[i].links&&e[i].links.length>0||e[i].matrix&&e[i].matrix.length>0||e[i].eventList&&e[i].eventList.length>0)return!1;var n=this._option&&this._option.noDataLoadingOption||this._themeConfig.noDataLoadingOption||r.noDataLoadingOption||{text:this._option&&this._option.noDataText||this._themeConfig.noDataText||r.noDataText,effect:this._option&&this._option.noDataEffect||this._themeConfig.noDataEffect||r.noDataEffect};return this.clear(),this.showLoading(n),!0},_render:function(e){if(this._mergeGlobalConifg(e),!this._noDataCheck(e)){var i=e.backgroundColor;if(i)if(h||-1==i.indexOf("rgba"))this.dom.style.backgroundColor=i;else{var o=i.split(",");this.dom.style.filter="alpha(opacity="+100*o[3].substring(0,o[3].lastIndexOf(")"))+")",o.length=3,o[0]=o[0].replace("a",""),this.dom.style.backgroundColor=o.join(",")+")"}this._zr.clearAnimation(),this._chartList=[];var n=t("./chart"),s=t("./component");(e.xAxis||e.yAxis)&&(e.grid=e.grid||{},e.dataZoom=e.dataZoom||{});for(var a,l,d,c=["title","legend","tooltip","dataRange","roamController","grid","dataZoom","xAxis","yAxis","polar"],u=0,p=c.length;p>u;u++)l=c[u],d=this.component[l],e[l]?(d?d.refresh&&d.refresh(e):(a=s.get(/^[xy]Axis$/.test(l)?"axis":l),d=new a(this._themeConfig,this._messageCenter,this._zr,e,this,l),this.component[l]=d),this._chartList.push(d)):d&&(d.dispose(),this.component[l]=null,delete this.component[l]);for(var f,g,m,_={},u=0,p=e.series.length;p>u;u++)g=e.series[u].type,g?_[g]||(_[g]=!0,f=n.get(g),f?(this.chart[g]?(m=this.chart[g],m.refresh(e)):m=new f(this._themeConfig,this._messageCenter,this._zr,e,this),this._chartList.push(m),this.chart[g]=m):console.error(g+" has not been required.")):console.error("series["+u+"] chart type has not been defined.");for(g in this.chart)g==r.CHART_TYPE_ISLAND||_[g]||(this.chart[g].dispose(),this.chart[g]=null,delete this.chart[g]);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._island.refresh(e),this._toolbox.refresh(e),e.animation&&!e.renderAsImage?this._zr.refresh():this._zr.render();var y="IMG"+this.id,v=document.getElementById(y);e.renderAsImage&&h?(v?v.src=this.getDataURL(e.renderAsImage):(v=this.getImage(e.renderAsImage),v.id=y,v.style.position="absolute",v.style.left=0,v.style.top=0,this.dom.firstChild.appendChild(v)),this.un(),this._zr.un(),this._disposeChartList(),this._zr.clear()):v&&v.parentNode.removeChild(v),v=null,this._option=e}},restore:function(){this._clearEffect(),this._option=n.clone(this._optionRestore),this._disposeChartList(),this._island.clear(),this._toolbox.reset(this._option,!0),this._render(this._option)},refresh:function(t){this._clearEffect(),t=t||{};var e=t.option;!this._refreshInside&&e&&(e=this.getOption(),n.merge(e,t.option,!0),n.merge(this._optionRestore,t.option,!0),this._toolbox.reset(e)),this._island.refresh(e),this._toolbox.refresh(e),this._zr.clearAnimation();for(var i=0,o=this._chartList.length;o>i;i++)this._chartList[i].refresh&&this._chartList[i].refresh(e);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._zr.refresh()},_disposeChartList:function(){this._clearEffect(),this._zr.clearAnimation();for(var t=this._chartList.length;t--;){var e=this._chartList[t];if(e){var i=e.type;this.chart[i]&&delete this.chart[i],this.component[i]&&delete this.component[i],e.dispose&&e.dispose()}}this._chartList=[]},_mergeGlobalConifg:function(e){for(var i=["backgroundColor","calculable","calculableColor","calculableHolderColor","nameConnector","valueConnector","animation","animationThreshold","animationDuration","animationDurationUpdate","animationEasing","addDataAnimation","symbolList","DRAG_ENABLE_TIME"],o=i.length;o--;){var n=i[o];null==e[n]&&(e[n]=null!=this._themeConfig[n]?this._themeConfig[n]:r[n])}var s=e.color;s&&s.length||(s=this._themeConfig.color||r.color),this._zr.getColor=function(e){var i=t("zrender/tool/color");return i.getColor(e,s)},h||(e.animation=!1,e.addDataAnimation=!1)},setOption:function(t,e){return t.timeline?this._setTimelineOption(t):this._setOption(t,e)},_setOption:function(t,e,i){return!e&&this._option?this._option=n.merge(this.getOption(),n.clone(t),!0):(this._option=n.clone(t),!i&&this._timeline&&this._timeline.dispose()),this._optionRestore=n.clone(this._option),this._option.series&&0!==this._option.series.length?(this.component.dataZoom&&(this._option.dataZoom||this._option.toolbox&&this._option.toolbox.feature&&this._option.toolbox.feature.dataZoom&&this._option.toolbox.feature.dataZoom.show)&&this.component.dataZoom.syncOption(this._option),this._toolbox.reset(this._option),this._render(this._option),this):void this._zr.clear()},getOption:function(){function t(t){var o=i._optionRestore[t];if(o)if(o instanceof Array)for(var r=o.length;r--;)e[t][r].data=n.clone(o[r].data);else e[t].data=n.clone(o.data)}var e=n.clone(this._option),i=this;return t("xAxis"),t("yAxis"),t("series"),e},setSeries:function(t,e){return e?(this._option.series=t,this.setOption(this._option,e)):this.setOption({series:t}),this},getSeries:function(){return this.getOption().series},_setTimelineOption:function(e){this._timeline&&this._timeline.dispose();var i=t("./component/timeline"),o=new i(this._themeConfig,this._messageCenter,this._zr,e,this);return this._timeline=o,this.component.timeline=this._timeline,this},addData:function(t,e,i,o,s){function a(){if(c._zr){c._zr.clearAnimation();for(var t=0,e=E.length;e>t;t++)E[t].motionlessOnce=l.addDataAnimation&&E[t].addDataAnimation;c._messageCenter.dispatch(r.EVENT.REFRESH,null,{option:l},c)}}for(var h=t instanceof Array?t:[[t,e,i,o,s]],l=this.getOption(),d=this._optionRestore,c=this,u=0,p=h.length;p>u;u++){t=h[u][0],e=h[u][1],i=h[u][2],o=h[u][3],s=h[u][4];var f=d.series[t],g=i?"unshift":"push",m=i?"pop":"shift";if(f){var _=f.data,y=l.series[t].data;if(_[g](e),y[g](e),o||(_[m](),e=y[m]()),null!=s){var v,x;if(f.type===r.CHART_TYPE_PIE&&(v=d.legend)&&(x=v.data)){var b=l.legend.data;if(x[g](s),b[g](s),!o){var T=n.indexOf(x,e.name);-1!=T&&x.splice(T,1),T=n.indexOf(b,e.name),-1!=T&&b.splice(T,1)}}else if(null!=d.xAxis&&null!=d.yAxis){var S,C,z=f.xAxisIndex||0;(null==d.xAxis[z].type||"category"===d.xAxis[z].type)&&(S=d.xAxis[z].data,C=l.xAxis[z].data,S[g](s),C[g](s),o||(S[m](),C[m]())),z=f.yAxisIndex||0,"category"===d.yAxis[z].type&&(S=d.yAxis[z].data,C=l.yAxis[z].data,S[g](s),C[g](s),o||(S[m](),C[m]()))}}this._option.series[t].data=l.series[t].data}}this._zr.clearAnimation();for(var E=this._chartList,w=0,A=function(){w--,0===w&&a()},u=0,p=E.length;p>u;u++)l.addDataAnimation&&E[u].addDataAnimation&&(w++,E[u].addDataAnimation(h,A));return this.component.dataZoom&&this.component.dataZoom.syncOption(l),this._option=l,l.addDataAnimation||setTimeout(a,0),this},addMarkPoint:function(t,e){return this._addMark(t,e,"markPoint")},addMarkLine:function(t,e){return this._addMark(t,e,"markLine")},_addMark:function(t,e,i){var o,r=this._option.series;if(r&&(o=r[t])){var s=this._optionRestore.series,a=s[t],h=o[i],l=a[i];h=o[i]=h||{data:[]},l=a[i]=l||{data:[]};for(var d in e)"data"===d?(h.data=h.data.concat(e.data),l.data=l.data.concat(e.data)):"object"!=typeof e[d]||null==h[d]?h[d]=l[d]=e[d]:(n.merge(h[d],e[d],!0),n.merge(l[d],e[d],!0));var c=this.chart[o.type];c&&c.addMark(t,e,i)}return this},delMarkPoint:function(t,e){return this._delMark(t,e,"markPoint")},delMarkLine:function(t,e){return this._delMark(t,e,"markLine")},_delMark:function(t,e,i){var o,r,n,s=this._option.series;if(!(s&&(o=s[t])&&(r=o[i])&&(n=r.data)))return this;e=e.split(" > ");for(var a=-1,h=0,l=n.length;l>h;h++){var d=n[h];if(d instanceof Array){if(d[0].name===e[0]&&d[1].name===e[1]){a=h;break}}else if(d.name===e[0]){a=h;break}}if(a>-1){n.splice(a,1),this._optionRestore.series[t][i].data.splice(a,1);var c=this.chart[o.type];c&&c.delMark(t,e.join(" > "),i)}return this},getDom:function(){return this.dom},getZrender:function(){return this._zr},getDataURL:function(t){if(!h)return"";if(0===this._chartList.length){var e="IMG"+this.id,i=document.getElementById(e);if(i)return i.src}var o=this.component.tooltip;switch(o&&o.hideTip(),t){case"jpeg":break;default:t="png"}var r=this._option.backgroundColor;return r&&"rgba(0,0,0,0)"===r.replace(" ","")&&(r="#fff"),this._zr.toDataURL("image/"+t,r)},getImage:function(t){var e=this._optionRestore.title,i=document.createElement("img");return i.src=this.getDataURL(t),i.title=e&&e.text||"ECharts",i},getConnectedDataURL:function(e){if(!this.isConnected())return this.getDataURL(e);var i=this.dom,o={self:{img:this.getDataURL(e),left:i.offsetLeft,top:i.offsetTop,right:i.offsetLeft+i.offsetWidth,bottom:i.offsetTop+i.offsetHeight}},r=o.self.left,n=o.self.top,s=o.self.right,a=o.self.bottom;for(var h in this._connected)i=this._connected[h].getDom(),o[h]={img:this._connected[h].getDataURL(e),left:i.offsetLeft,top:i.offsetTop,right:i.offsetLeft+i.offsetWidth,bottom:i.offsetTop+i.offsetHeight},r=Math.min(r,o[h].left),n=Math.min(n,o[h].top),s=Math.max(s,o[h].right),a=Math.max(a,o[h].bottom);var l=document.createElement("div");l.style.position="absolute",l.style.left="-4000px",l.style.width=s-r+"px",l.style.height=a-n+"px",document.body.appendChild(l);var d=t("zrender").init(l),c=t("zrender/shape/Image");for(var h in o)d.addShape(new c({style:{x:o[h].left-r,y:o[h].top-n,image:o[h].img}}));d.render();var u=this._option.backgroundColor;u&&"rgba(0,0,0,0)"===u.replace(/ /g,"")&&(u="#fff");var p=d.toDataURL("image/png",u);return setTimeout(function(){d.dispose(),l.parentNode.removeChild(l),l=null},100),p},getConnectedImage:function(t){var e=this._optionRestore.title,i=document.createElement("img");return i.src=this.getConnectedDataURL(t),i.title=e&&e.text||"ECharts",i},on:function(t,e){return this._messageCenterOutSide.bind(t,e,this),this},un:function(t,e){return this._messageCenterOutSide.unbind(t,e),this},connect:function(t){if(!t)return this;if(this._connected||(this._connected={}),t instanceof Array)for(var e=0,i=t.length;i>e;e++)this._connected[t[e].id]=t[e];else this._connected[t.id]=t;return this},disConnect:function(t){if(!t||!this._connected)return this;if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)delete this._connected[t[e].id];else delete this._connected[t.id];for(var o in this._connected)return this;return this._connected=!1,this},connectedEventHandler:function(t){t.__echartsId!=this.id&&this._onevent(t)},isConnected:function(){return!!this._connected},showLoading:function(e){var i={bar:t("zrender/loadingEffect/Bar"),bubble:t("zrender/loadingEffect/Bubble"),dynamicLine:t("zrender/loadingEffect/DynamicLine"),ring:t("zrender/loadingEffect/Ring"),spin:t("zrender/loadingEffect/Spin"),whirling:t("zrender/loadingEffect/Whirling")};this._toolbox.hideDataView(),e=e||{};var o=e.textStyle||{};e.textStyle=o;var s=n.merge(n.merge(n.clone(o),this._themeConfig.textStyle),r.textStyle);o.textFont=s.fontStyle+" "+s.fontWeight+" "+s.fontSize+"px "+s.fontFamily,o.text=e.text||this._option&&this._option.loadingText||this._themeConfig.loadingText||r.loadingText,null!=e.x&&(o.x=e.x),null!=e.y&&(o.y=e.y),e.effectOption=e.effectOption||{},e.effectOption.textStyle=o;var a=e.effect;return("string"==typeof a||null==a)&&(a=i[e.effect||this._option&&this._option.loadingEffect||this._themeConfig.loadingEffect||r.loadingEffect]||i.spin),this._zr.showLoading(new a(e.effectOption)),this},hideLoading:function(){return this._zr.hideLoading(),this},setTheme:function(e){if(e){if("string"==typeof e)switch(e){case"macarons":e=t("./theme/macarons");break;case"infographic":e=t("./theme/infographic");break;default:e={}}else e=e||{};this._themeConfig=e}if(!h){var i=this._themeConfig.textStyle;i&&i.fontFamily&&i.fontFamily2&&(i.fontFamily=i.fontFamily2),i=r.textStyle,i.fontFamily=i.fontFamily2}this._timeline&&this._timeline.setTheme(!0),this._optionRestore&&this.restore()},resize:function(){var t=this;return function(){if(t._clearEffect(),t._zr.resize(),t._option&&t._option.renderAsImage&&h)return t._render(t._option),t;t._zr.clearAnimation(),t._island.resize(),t._toolbox.resize(),t._timeline&&t._timeline.resize();for(var e=0,i=t._chartList.length;i>e;e++)t._chartList[e].resize&&t._chartList[e].resize();return t.component.grid&&t.component.grid.refixAxisShape(t.component),t._zr.refresh(),t._messageCenter.dispatch(r.EVENT.RESIZE,null,null,t),t}},_clearEffect:function(){this._zr.modLayer(r.EFFECT_ZLEVEL,{motionBlur:!1}),this._zr.painter.clearLayer(r.EFFECT_ZLEVEL)},clear:function(){return this._disposeChartList(),this._zr.clear(),this._option={},this._optionRestore={},this.dom.style.backgroundColor=null,this},dispose:function(){var t=this.dom.getAttribute(c);t&&delete d[t],this._island.dispose(),this._toolbox.dispose(),this._timeline&&this._timeline.dispose(),this._messageCenter.unbind(),this.clear(),this._zr.dispose(),this._zr=null}},a}),define("zrender/shape/Polyline",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","./Polygon","../tool/util"],function(t){var e=t("./Base"),i=t("./util/smoothSpline"),o=t("./util/smoothBezier"),r=t("./util/dashedLineTo"),n=function(t){this.brushTypeOnly="stroke",this.textPosition="end",e.call(this,t)};return n.prototype={type:"polyline",buildPath:function(t,e){var o=e.pointList;if(!(o.length<2)){var n=Math.min(e.pointList.length,Math.round(e.pointListLength||e.pointList.length));if(e.smooth&&"spline"!==e.smooth){e.controlPointList||this.updateControlPoints(e);var s=e.controlPointList;t.moveTo(o[0][0],o[0][1]);for(var a,h,l,d=0;n-1>d;d++)a=s[2*d],h=s[2*d+1],l=o[d+1],t.bezierCurveTo(a[0],a[1],h[0],h[1],l[0],l[1])}else if("spline"===e.smooth&&(o=i(o),n=o.length),e.lineType&&"solid"!=e.lineType){if("dashed"==e.lineType||"dotted"==e.lineType){var c=(e.lineWidth||1)*("dashed"==e.lineType?5:1);t.moveTo(o[0][0],o[0][1]);for(var d=1;n>d;d++)r(t,o[d-1][0],o[d-1][1],o[d][0],o[d][1],c)}}else{t.moveTo(o[0][0],o[0][1]);for(var d=1;n>d;d++)t.lineTo(o[d][0],o[d][1])}}},updateControlPoints:function(t){t.controlPointList=o(t.pointList,t.smooth,!1,t.smoothConstraint)},getRect:function(e){return t("./Polygon").prototype.getRect(e)}},t("../tool/util").inherits(n,e),n}),define("echarts/util/shape/Icon",["require","zrender/tool/util","zrender/shape/Star","zrender/shape/Heart","zrender/shape/Droplet","zrender/shape/Image","zrender/shape/Base"],function(t){function e(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i,o+e.height),t.lineTo(i+5*r,o+14*n),t.lineTo(i+e.width,o+3*n),t.lineTo(i+13*r,o),t.lineTo(i+2*r,o+11*n),t.lineTo(i,o+e.height),t.moveTo(i+6*r,o+10*n),t.lineTo(i+14*r,o+2*n),t.moveTo(i+10*r,o+13*n),t.lineTo(i+e.width,o+13*n),t.moveTo(i+13*r,o+10*n),t.lineTo(i+13*r,o+e.height)}function i(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i,o+e.height),t.lineTo(i+5*r,o+14*n),t.lineTo(i+e.width,o+3*n),t.lineTo(i+13*r,o),t.lineTo(i+2*r,o+11*n),t.lineTo(i,o+e.height),t.moveTo(i+6*r,o+10*n),t.lineTo(i+14*r,o+2*n),t.moveTo(i+10*r,o+13*n),t.lineTo(i+e.width,o+13*n)}function o(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i+4*r,o+15*n),t.lineTo(i+9*r,o+13*n),t.lineTo(i+14*r,o+8*n),t.lineTo(i+11*r,o+5*n),t.lineTo(i+6*r,o+10*n),t.lineTo(i+4*r,o+15*n),t.moveTo(i+5*r,o),t.lineTo(i+11*r,o),t.moveTo(i+5*r,o+n),t.lineTo(i+11*r,o+n),t.moveTo(i,o+2*n),t.lineTo(i+e.width,o+2*n),t.moveTo(i,o+5*n),t.lineTo(i+3*r,o+e.height),t.lineTo(i+13*r,o+e.height),t.lineTo(i+e.width,o+5*n)}function r(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i,o+3*n),t.lineTo(i+6*r,o+3*n),t.moveTo(i+3*r,o),t.lineTo(i+3*r,o+6*n),t.moveTo(i+3*r,o+8*n),t.lineTo(i+3*r,o+e.height),t.lineTo(i+e.width,o+e.height),t.lineTo(i+e.width,o+3*n),t.lineTo(i+8*r,o+3*n)}function n(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i+6*r,o),t.lineTo(i+2*r,o+3*n),t.lineTo(i+6*r,o+6*n),t.moveTo(i+2*r,o+3*n),t.lineTo(i+14*r,o+3*n),t.lineTo(i+14*r,o+11*n),t.moveTo(i+2*r,o+5*n),t.lineTo(i+2*r,o+13*n),t.lineTo(i+14*r,o+13*n),t.moveTo(i+10*r,o+10*n),t.lineTo(i+14*r,o+13*n),t.lineTo(i+10*r,o+e.height)}function s(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16,s=e.width/2;t.lineWidth=1.5,t.arc(i+s,o+s,s-r,0,2*Math.PI/3),t.moveTo(i+3*r,o+e.height),t.lineTo(i+0*r,o+12*n),t.lineTo(i+5*r,o+11*n),t.moveTo(i,o+8*n),t.arc(i+s,o+s,s-r,Math.PI,5*Math.PI/3),t.moveTo(i+13*r,o),t.lineTo(i+e.width,o+4*n),t.lineTo(i+11*r,o+5*n)}function a(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i,o),t.lineTo(i,o+e.height),t.lineTo(i+e.width,o+e.height),t.moveTo(i+2*r,o+14*n),t.lineTo(i+7*r,o+6*n),t.lineTo(i+11*r,o+11*n),t.lineTo(i+15*r,o+2*n)}function h(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i,o),t.lineTo(i,o+e.height),t.lineTo(i+e.width,o+e.height),t.moveTo(i+3*r,o+14*n),t.lineTo(i+3*r,o+6*n),t.lineTo(i+4*r,o+6*n),t.lineTo(i+4*r,o+14*n),t.moveTo(i+7*r,o+14*n),t.lineTo(i+7*r,o+2*n),t.lineTo(i+8*r,o+2*n),t.lineTo(i+8*r,o+14*n),t.moveTo(i+11*r,o+14*n),t.lineTo(i+11*r,o+9*n),t.lineTo(i+12*r,o+9*n),t.lineTo(i+12*r,o+14*n)}function l(t,e){var i=e.x,o=e.y,r=e.width-2,n=e.height-2,s=Math.min(r,n)/2;o+=2,t.moveTo(i+s+3,o+s-3),t.arc(i+s+3,o+s-3,s-1,0,-Math.PI/2,!0),t.lineTo(i+s+3,o+s-3),t.moveTo(i+s,o),t.lineTo(i+s,o+s),t.arc(i+s,o+s,s,-Math.PI/2,2*Math.PI,!0),t.lineTo(i+s,o+s),t.lineWidth=1.5}function d(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;o-=n,t.moveTo(i+1*r,o+2*n),t.lineTo(i+15*r,o+2*n),t.lineTo(i+14*r,o+3*n),t.lineTo(i+2*r,o+3*n),t.moveTo(i+3*r,o+6*n),t.lineTo(i+13*r,o+6*n),t.lineTo(i+12*r,o+7*n),t.lineTo(i+4*r,o+7*n),t.moveTo(i+5*r,o+10*n),t.lineTo(i+11*r,o+10*n),t.lineTo(i+10*r,o+11*n),t.lineTo(i+6*r,o+11*n),t.moveTo(i+7*r,o+14*n),t.lineTo(i+9*r,o+14*n),t.lineTo(i+8*r,o+15*n),t.lineTo(i+7*r,o+15*n)}function c(t,e){var i=e.x,o=e.y,r=e.width,n=e.height,s=r/16,a=n/16,h=2*Math.min(s,a);t.moveTo(i+s+h,o+a+h),t.arc(i+s,o+a,h,Math.PI/4,3*Math.PI),t.lineTo(i+7*s-h,o+6*a-h),t.arc(i+7*s,o+6*a,h,Math.PI/4*5,4*Math.PI),t.arc(i+7*s,o+6*a,h/2,Math.PI/4*5,4*Math.PI),t.moveTo(i+7*s-h/2,o+6*a+h),t.lineTo(i+s+h,o+14*a-h),t.arc(i+s,o+14*a,h,-Math.PI/4,2*Math.PI),t.moveTo(i+7*s+h/2,o+6*a),t.lineTo(i+14*s-h,o+10*a-h/2),t.moveTo(i+16*s,o+10*a),t.arc(i+14*s,o+10*a,h,0,3*Math.PI),t.lineWidth=1.5}function u(t,e){var i=e.x,o=e.y,r=e.width,n=e.height,s=Math.min(r,n)/2;t.moveTo(i+r,o+n/2),t.arc(i+s,o+s,s,0,2*Math.PI),t.arc(i+s,o,s,Math.PI/4,Math.PI/5*4),t.arc(i,o+s,s,-Math.PI/3,Math.PI/3),t.arc(i+r,o+n,s,Math.PI,Math.PI/2*3),t.lineWidth=1.5}function p(t,e){for(var i=e.x,o=e.y,r=e.width,n=e.height,s=Math.round(n/3),a=Math.round((s-2)/2),h=3;h--;)t.rect(i,o+s*h+a,r,2)}function f(t,e){for(var i=e.x,o=e.y,r=e.width,n=e.height,s=Math.round(r/3),a=Math.round((s-2)/2),h=3;h--;)t.rect(i+s*h+a,o,2,n)}function g(t,e){var i=e.x,o=e.y,r=e.width/16;t.moveTo(i+r,o),t.lineTo(i+r,o+e.height),t.lineTo(i+15*r,o+e.height),t.lineTo(i+15*r,o),t.lineTo(i+r,o),t.moveTo(i+3*r,o+3*r),t.lineTo(i+13*r,o+3*r),t.moveTo(i+3*r,o+6*r),t.lineTo(i+13*r,o+6*r),t.moveTo(i+3*r,o+9*r),t.lineTo(i+13*r,o+9*r),t.moveTo(i+3*r,o+12*r),t.lineTo(i+9*r,o+12*r)}function m(t,e){var i=e.x,o=e.y,r=e.width/16,n=e.height/16;t.moveTo(i,o),t.lineTo(i,o+e.height),t.lineTo(i+e.width,o+e.height),t.lineTo(i+e.width,o),t.lineTo(i,o),t.moveTo(i+4*r,o),t.lineTo(i+4*r,o+8*n),t.lineTo(i+12*r,o+8*n),t.lineTo(i+12*r,o),t.moveTo(i+6*r,o+11*n),t.lineTo(i+6*r,o+13*n),t.lineTo(i+10*r,o+13*n),t.lineTo(i+10*r,o+11*n),t.lineTo(i+6*r,o+11*n)}function _(t,e){var i=e.x,o=e.y,r=e.width,n=e.height;t.moveTo(i,o+n/2),t.lineTo(i+r,o+n/2),t.moveTo(i+r/2,o),t.lineTo(i+r/2,o+n)}function y(t,e){var i=e.width/2,o=e.height/2,r=Math.min(i,o);t.moveTo(e.x+i+r,e.y+o),t.arc(e.x+i,e.y+o,r,0,2*Math.PI),t.closePath()}function v(t,e){t.rect(e.x,e.y,e.width,e.height),t.closePath()}function x(t,e){var i=e.width/2,o=e.height/2,r=e.x+i,n=e.y+o,s=Math.min(i,o);t.moveTo(r,n-s),t.lineTo(r+s,n+s),t.lineTo(r-s,n+s),t.lineTo(r,n-s),t.closePath()}function b(t,e){var i=e.width/2,o=e.height/2,r=e.x+i,n=e.y+o,s=Math.min(i,o);t.moveTo(r,n-s),t.lineTo(r+s,n),t.lineTo(r,n+s),t.lineTo(r-s,n),t.lineTo(r,n-s),t.closePath()}function T(t,e){var i=e.x,o=e.y,r=e.width/16;t.moveTo(i+8*r,o),t.lineTo(i+r,o+e.height),t.lineTo(i+8*r,o+e.height/4*3),t.lineTo(i+15*r,o+e.height),t.lineTo(i+8*r,o),t.closePath()}function S(e,i){var o=t("zrender/shape/Star"),r=i.width/2,n=i.height/2;
o.prototype.buildPath(e,{x:i.x+r,y:i.y+n,r:Math.min(r,n),n:i.n||5})}function C(e,i){var o=t("zrender/shape/Heart");o.prototype.buildPath(e,{x:i.x+i.width/2,y:i.y+.2*i.height,a:i.width/2,b:.8*i.height})}function z(e,i){var o=t("zrender/shape/Droplet");o.prototype.buildPath(e,{x:i.x+.5*i.width,y:i.y+.5*i.height,a:.5*i.width,b:.8*i.height})}function E(t,e){var i=e.x,o=e.y-e.height/2*1.5,r=e.width/2,n=e.height/2,s=Math.min(r,n);t.arc(i+r,o+n,s,Math.PI/5*4,Math.PI/5),t.lineTo(i+r,o+n+1.5*s),t.closePath()}function w(e,i,o){var r=t("zrender/shape/Image");this._imageShape=this._imageShape||new r({style:{}});for(var n in i)this._imageShape.style[n]=i[n];this._imageShape.brush(e,!1,o)}function A(t){M.call(this,t)}var L=t("zrender/tool/util"),M=t("zrender/shape/Base");return A.prototype={type:"icon",iconLibrary:{mark:e,markUndo:i,markClear:o,dataZoom:r,dataZoomReset:n,restore:s,lineChart:a,barChart:h,pieChart:l,funnelChart:d,forceChart:c,chordChart:u,stackChart:p,tiledChart:f,dataView:g,saveAsImage:m,cross:_,circle:y,rectangle:v,triangle:x,diamond:b,arrow:T,star:S,heart:C,droplet:z,pin:E,image:w},brush:function(e,i,o){var r=i?this.highlightStyle:this.style;r=r||{};var n=r.iconType||this.style.iconType;if("image"===n){var s=t("zrender/shape/Image");s.prototype.brush.call(this,e,i,o)}else{var r=this.beforeBrush(e,i);switch(e.beginPath(),this.buildPath(e,r,o),r.brushType){case"both":e.fill();case"stroke":r.lineWidth>0&&e.stroke();break;default:e.fill()}this.drawText(e,r,this.style),this.afterBrush(e)}},buildPath:function(t,e,i){this.iconLibrary[e.iconType]?this.iconLibrary[e.iconType].call(this,t,e,i):(t.moveTo(e.x,e.y),t.lineTo(e.x+e.width,e.y),t.lineTo(e.x+e.width,e.y+e.height),t.lineTo(e.x,e.y+e.height),t.lineTo(e.x,e.y),t.closePath())},getRect:function(t){return t.__rect?t.__rect:(t.__rect={x:Math.round(t.x),y:Math.round(t.y-("pin"==t.iconType?t.height/2*1.5:0)),width:t.width,height:t.height*("pin"===t.iconType?1.25:1)},t.__rect)},isCover:function(t,e){var i=this.transformCoordToLocal(t,e);t=i[0],e=i[1];var o=this.style.__rect;o||(o=this.style.__rect=this.getRect(this.style));var r=o.height<8||o.width<8?4:0;return t>=o.x-r&&t<=o.x+o.width+r&&e>=o.y-r&&e<=o.y+o.height+r}},L.inherits(A,M),A}),define("echarts/util/shape/Symbol",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util","./normalIsCover"],function(t){function e(t){i.call(this,t)}var i=t("zrender/shape/Base"),o=t("zrender/shape/Polygon"),r=new o({}),n=t("zrender/tool/util");return e.prototype={type:"symbol",buildPath:function(t,e){var i=e.pointList,o=i.length;if(0!==o)for(var r,n,s,a,h,l=1e4,d=Math.ceil(o/l),c=i[0]instanceof Array,u=e.size?e.size:2,p=u,f=u/2,g=2*Math.PI,m=0;d>m;m++){t.beginPath(),r=m*l,n=r+l,n=n>o?o:n;for(var _=r;n>_;_++)if(e.random&&(s=e["randomMap"+_%20]/100,p=u*s*s,f=p/2),c?(a=i[_][0],h=i[_][1]):(a=i[_].x,h=i[_].y),3>p)t.rect(a-f,h-f,p,p);else switch(e.iconType){case"circle":t.moveTo(a,h),t.arc(a,h,f,0,g,!0);break;case"diamond":t.moveTo(a,h-f),t.lineTo(a+f/3,h-f/3),t.lineTo(a+f,h),t.lineTo(a+f/3,h+f/3),t.lineTo(a,h+f),t.lineTo(a-f/3,h+f/3),t.lineTo(a-f,h),t.lineTo(a-f/3,h-f/3),t.lineTo(a,h-f);break;default:t.rect(a-f,h-f,p,p)}if(t.closePath(),d-1>m)switch(e.brushType){case"both":t.fill(),e.lineWidth>0&&t.stroke();break;case"stroke":e.lineWidth>0&&t.stroke();break;default:t.fill()}}},getRect:function(t){return t.__rect||r.getRect(t)},isCover:t("./normalIsCover")},n.inherits(e,i),e}),define("zrender/tool/color",["require","../tool/util"],function(t){function e(t){W=t}function i(){W=G}function o(t,e){return t=0|t,e=e||W,e[t%e.length]}function r(t){q=t}function n(){X=q}function s(){return q}function a(t,e,i,o,r,n,s){N||(N=Y.getContext());for(var a=N.createRadialGradient(t,e,i,o,r,n),h=0,l=s.length;l>h;h++)a.addColorStop(s[h][0],s[h][1]);return a.__nonRecursion=!0,a}function h(t,e,i,o,r){N||(N=Y.getContext());for(var n=N.createLinearGradient(t,e,i,o),s=0,a=r.length;a>s;s++)n.addColorStop(r[s][0],r[s][1]);return n.__nonRecursion=!0,n}function l(t,e,i){t=f(t),e=f(e),t=M(t),e=M(e);for(var o=[],r=(e[0]-t[0])/i,n=(e[1]-t[1])/i,s=(e[2]-t[2])/i,a=(e[3]-t[3])/i,h=0,l=t[0],d=t[1],u=t[2],p=t[3];i>h;h++)o[h]=c([P(Math.floor(l),[0,255]),P(Math.floor(d),[0,255]),P(Math.floor(u),[0,255]),p.toFixed(4)-0],"rgba"),l+=r,d+=n,u+=s,p+=a;return l=e[0],d=e[1],u=e[2],p=e[3],o[h]=c([l,d,u,p],"rgba"),o}function d(t,e){var i=[],o=t.length;if(void 0===e&&(e=20),1===o)i=l(t[0],t[0],e);else if(o>1)for(var r=0,n=o-1;n>r;r++){var s=l(t[r],t[r+1],e);n-1>r&&s.pop(),i=i.concat(s)}return i}function c(t,e){if(e=e||"rgb",t&&(3===t.length||4===t.length)){if(t=I(t,function(t){return t>1?Math.ceil(t):t}),e.indexOf("hex")>-1)return"#"+((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1);if(e.indexOf("hs")>-1){var i=I(t.slice(1,3),function(t){return t+"%"});t[1]=i[0],t[2]=i[1]}return e.indexOf("a")>-1?(3===t.length&&t.push(1),t[3]=P(t[3],[0,1]),e+"("+t.slice(0,4).join(",")+")"):e+"("+t.slice(0,3).join(",")+")"}}function u(t){t=C(t),t.indexOf("rgba")<0&&(t=f(t));var e=[],i=0;return t.replace(/[\d.]+/g,function(t){t=3>i?0|t:+t,e[i++]=t}),e}function p(t,e){if(!O(t))return t;var i=M(t),o=i[3];return"undefined"==typeof o&&(o=1),t.indexOf("hsb")>-1?i=D(i):t.indexOf("hsl")>-1&&(i=R(i)),e.indexOf("hsb")>-1||e.indexOf("hsv")>-1?i=B(i):e.indexOf("hsl")>-1&&(i=F(i)),i[3]=o,c(i,e)}function f(t){return p(t,"rgba")}function g(t){return p(t,"rgb")}function m(t){return p(t,"hex")}function _(t){return p(t,"hsva")}function y(t){return p(t,"hsv")}function v(t){return p(t,"hsba")}function x(t){return p(t,"hsb")}function b(t){return p(t,"hsla")}function T(t){return p(t,"hsl")}function S(t){for(var e in Z)if(m(Z[e])===m(t))return e;return null}function C(t){return String(t).replace(/\s+/g,"")}function z(t){if(Z[t]&&(t=Z[t]),t=C(t),t=t.replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(t)){t=parseInt(t.slice(1),16);var e=(3840&t)<<8,i=(240&t)<<4,o=15&t;t="#"+((1<<24)+(e<<4)+e+(i<<4)+i+(o<<4)+o).toString(16).slice(1)}return t}function E(t,e){if(!O(t))return t;var i=e>0?1:-1;"undefined"==typeof e&&(e=0),e=Math.abs(e)>1?1:Math.abs(e),t=g(t);for(var o=M(t),r=0;3>r;r++)o[r]=1===i?o[r]*(1-e)|0:(255-o[r])*e+o[r]|0;return"rgb("+o.join(",")+")"}function w(t){if(!O(t))return t;var e=M(f(t));return e=I(e,function(t){return 255-t}),c(e,"rgb")}function A(t,e,i){if(!O(t)||!O(e))return t;"undefined"==typeof i&&(i=.5),i=1-P(i,[0,1]);for(var o=2*i-1,r=M(f(t)),n=M(f(e)),s=r[3]-n[3],a=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,h=1-a,l=[],d=0;3>d;d++)l[d]=r[d]*a+n[d]*h;var u=r[3]*i+n[3]*(1-i);return u=Math.max(0,Math.min(1,u)),1===r[3]&&1===n[3]?c(l,"rgb"):(l[3]=u,c(l,"rgba"))}function L(){return"#"+(Math.random().toString(16)+"0000").slice(2,8)}function M(t){t=z(t);var e=t.match(V);if(null===e)throw new Error("The color format error");var i,o,r,n=[];if(e[2])i=e[2].replace("#","").split(""),r=[i[0]+i[1],i[2]+i[3],i[4]+i[5]],n=I(r,function(t){return P(parseInt(t,16),[0,255])});else if(e[4]){var s=e[4].split(",");o=s[3],r=s.slice(0,3),n=I(r,function(t){return t=Math.floor(t.indexOf("%")>0?2.55*parseInt(t,0):t),P(t,[0,255])}),"undefined"!=typeof o&&n.push(P(parseFloat(o),[0,1]))}else if(e[5]||e[6]){var a=(e[5]||e[6]).split(","),h=parseInt(a[0],0)/360,l=a[1],d=a[2];o=a[3],n=I([l,d],function(t){return P(parseFloat(t)/100,[0,1])}),n.unshift(h),"undefined"!=typeof o&&n.push(P(parseFloat(o),[0,1]))}return n}function k(t,e){if(!O(t))return t;null===e&&(e=1);var i=M(f(t));return i[3]=P(Number(e).toFixed(4),[0,1]),c(i,"rgba")}function I(t,e){if("function"!=typeof e)throw new TypeError;for(var i=t?t.length:0,o=0;i>o;o++)t[o]=e(t[o]);return t}function P(t,e){return t<=e[0]?t=e[0]:t>=e[1]&&(t=e[1]),t}function O(t){return t instanceof Array||"string"==typeof t}function D(t){var e,i,o,r=t[0],n=t[1],s=t[2];if(0===n)e=255*s,i=255*s,o=255*s;else{var a=6*r;6===a&&(a=0);var h=0|a,l=s*(1-n),d=s*(1-n*(a-h)),c=s*(1-n*(1-(a-h))),u=0,p=0,f=0;0===h?(u=s,p=c,f=l):1===h?(u=d,p=s,f=l):2===h?(u=l,p=s,f=c):3===h?(u=l,p=d,f=s):4===h?(u=c,p=l,f=s):(u=s,p=l,f=d),e=255*u,i=255*p,o=255*f}return[e,i,o]}function R(t){var e,i,o,r=t[0],n=t[1],s=t[2];if(0===n)e=255*s,i=255*s,o=255*s;else{var a;a=.5>s?s*(1+n):s+n-n*s;var h=2*s-a;e=255*H(h,a,r+1/3),i=255*H(h,a,r),o=255*H(h,a,r-1/3)}return[e,i,o]}function H(t,e,i){return 0>i&&(i+=1),i>1&&(i-=1),1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function B(t){var e,i,o=t[0]/255,r=t[1]/255,n=t[2]/255,s=Math.min(o,r,n),a=Math.max(o,r,n),h=a-s,l=a;if(0===h)e=0,i=0;else{i=h/a;var d=((a-o)/6+h/2)/h,c=((a-r)/6+h/2)/h,u=((a-n)/6+h/2)/h;o===a?e=u-c:r===a?e=1/3+d-u:n===a&&(e=2/3+c-d),0>e&&(e+=1),e>1&&(e-=1)}return e=360*e,i=100*i,l=100*l,[e,i,l]}function F(t){var e,i,o=t[0]/255,r=t[1]/255,n=t[2]/255,s=Math.min(o,r,n),a=Math.max(o,r,n),h=a-s,l=(a+s)/2;if(0===h)e=0,i=0;else{i=.5>l?h/(a+s):h/(2-a-s);var d=((a-o)/6+h/2)/h,c=((a-r)/6+h/2)/h,u=((a-n)/6+h/2)/h;o===a?e=u-c:r===a?e=1/3+d-u:n===a&&(e=2/3+c-d),0>e&&(e+=1),e>1&&(e-=1)}return e=360*e,i=100*i,l=100*l,[e,i,l]}var N,Y=t("../tool/util"),W=["#ff9277"," #dddd00"," #ffc877"," #bbe3ff"," #d5ffbb","#bbbbff"," #ddb000"," #b0dd00"," #e2bbff"," #ffbbe3","#ff7777"," #ff9900"," #83dd00"," #77e3ff"," #778fff","#c877ff"," #ff77ab"," #ff6600"," #aa8800"," #77c7ff","#ad77ff"," #ff77ff"," #dd0083"," #777700"," #00aa00","#0088aa"," #8400dd"," #aa0088"," #dd0000"," #772e00"],G=W,q="rgba(255,255,0,0.5)",X=q,V=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,Z={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"};return{customPalette:e,resetPalette:i,getColor:o,getHighlightColor:s,customHighlight:r,resetHighlight:n,getRadialGradient:a,getLinearGradient:h,getGradientColors:d,getStepColors:l,reverse:w,mix:A,lift:E,trim:C,random:L,toRGB:g,toRGBA:f,toHex:m,toHSL:T,toHSLA:b,toHSB:x,toHSBA:v,toHSV:y,toHSVA:_,toName:S,toColor:c,toArray:u,alpha:k,getData:M}}),define("echarts/util/ecEffect",["require","../util/ecData","zrender/shape/Circle","zrender/shape/Image","zrender/tool/curve","../util/shape/Icon","../util/shape/Symbol","zrender/shape/ShapeBundle","zrender/shape/Polyline","zrender/tool/vector","zrender/tool/env"],function(t){function e(t,e,i,o){var r,s=i.effect,h=s.color||i.style.strokeColor||i.style.color,d=s.shadowColor||h,c=s.scaleSize,u=s.bounceDistance,p="undefined"!=typeof s.shadowBlur?s.shadowBlur:c;"image"!==i.type?(r=new l({zlevel:o,style:{brushType:"stroke",iconType:"droplet"!=i.style.iconType?i.style.iconType:"circle",x:p+1,y:p+1,n:i.style.n,width:i.style._width*c,height:i.style._height*c,lineWidth:1,strokeColor:h,shadowColor:d,shadowBlur:p},draggable:!1,hoverable:!1}),"pin"==i.style.iconType&&(r.style.y+=r.style.height/2*1.5),f&&(r.style.image=t.shapeToImage(r,r.style.width+2*p+2,r.style.height+2*p+2).style.image,r=new a({zlevel:r.zlevel,style:r.style,draggable:!1,hoverable:!1}))):r=new a({zlevel:o,style:i.style,draggable:!1,hoverable:!1}),n.clone(i,r),r.position=i.position,e.push(r),t.addShape(r);var g="image"!==i.type?window.devicePixelRatio||1:1,m=(r.style.width/g-i.style._width)/2;r.style.x=i.style._x-m,r.style.y=i.style._y-m,"pin"==i.style.iconType&&(r.style.y-=i.style.height/2*1.5);var _=100*(s.period+10*Math.random());t.modShape(i.id,{invisible:!0});var y=r.style.x+r.style.width/2/g,v=r.style.y+r.style.height/2/g;"scale"===s.type?(t.modShape(r.id,{scale:[.1,.1,y,v]}),t.animate(r.id,"",s.loop).when(_,{scale:[1,1,y,v]}).done(function(){i.effect.show=!1,t.delShape(r.id)}).start()):t.animate(r.id,"style",s.loop).when(_,{y:r.style.y-u}).when(2*_,{y:r.style.y}).done(function(){i.effect.show=!1,t.delShape(r.id)}).start()}function i(t,e,i,o){var r=i.effect,n=r.color||i.style.strokeColor||i.style.color,s=r.scaleSize,a=r.shadowColor||n,h="undefined"!=typeof r.shadowBlur?r.shadowBlur:2*s,l=window.devicePixelRatio||1,c=new d({zlevel:o,position:i.position,scale:i.scale,style:{pointList:i.style.pointList,iconType:i.style.iconType,color:n,strokeColor:n,shadowColor:a,shadowBlur:h*l,random:!0,brushType:"fill",lineWidth:1,size:i.style.size},draggable:!1,hoverable:!1});e.push(c),t.addShape(c),t.modShape(i.id,{invisible:!0});for(var u=Math.round(100*r.period),p={},f={},g=0;20>g;g++)c.style["randomMap"+g]=0,p={},p["randomMap"+g]=100,f={},f["randomMap"+g]=0,c.style["randomMap"+g]=100*Math.random(),t.animate(c.id,"style",!0).when(u,p).when(2*u,f).when(3*u,p).when(4*u,p).delay(Math.random()*u*g).start()}function o(t,e,i,o,r){var a=i.effect,l=i.style,d=a.color||l.strokeColor||l.color,c=a.shadowColor||l.strokeColor||d,g=l.lineWidth*a.scaleSize,m="undefined"!=typeof a.shadowBlur?a.shadowBlur:g,_=new s({zlevel:o,style:{x:m,y:m,r:g,color:d,shadowColor:c,shadowBlur:m},hoverable:!1}),y=0;if(f&&!r){var o=_.zlevel;_=t.shapeToImage(_,2*(g+m),2*(g+m)),_.zlevel=o,_.hoverable=!1,y=m}r||(n.clone(i,_),_.position=i.position,e.push(_),t.addShape(_));var v=function(){r||(i.effect.show=!1,t.delShape(_.id)),_.effectAnimator=null};if(i instanceof u){for(var x=[0],b=0,T=l.pointList,S=l.controlPointList,C=1;C<T.length;C++){if(S){var z=S[2*(C-1)],E=S[2*(C-1)+1];b+=p.dist(T[C-1],z)+p.dist(z,E)+p.dist(E,T[C])}else b+=p.dist(T[C-1],T[C]);x.push(b)}for(var w={p:0},A=t.animation.animate(w,{loop:a.loop}),C=0;C<x.length;C++)A.when(x[C]*a.period,{p:C});A.during(function(){var e,i,o=Math.floor(w.p);if(o==T.length-1)e=T[o][0],i=T[o][1];else{var n=w.p-o,s=T[o],a=T[o+1];if(S){var l=S[2*o],d=S[2*o+1];e=h.cubicAt(s[0],l[0],d[0],a[0],n),i=h.cubicAt(s[1],l[1],d[1],a[1],n)}else e=(a[0]-s[0])*n+s[0],i=(a[1]-s[1])*n+s[1]}_.style.x=e,_.style.y=i,r||t.modShape(_)}).done(v).start(),A.duration=b*a.period,_.effectAnimator=A}else{var L=l.xStart-y,M=l.yStart-y,k=l.xEnd-y,I=l.yEnd-y;_.style.x=L,_.style.y=M;var P=(k-L)*(k-L)+(I-M)*(I-M),O=Math.round(Math.sqrt(Math.round(P*a.period*a.period)));if(i.style.curveness>0){var D=l.cpX1-y,R=l.cpY1-y;_.effectAnimator=t.animation.animate(_,{loop:a.loop}).when(O,{p:1}).during(function(e,i){_.style.x=h.quadraticAt(L,D,k,i),_.style.y=h.quadraticAt(M,R,I,i),r||t.modShape(_)}).done(v).start()}else _.effectAnimator=t.animation.animate(_.style,{loop:a.loop}).when(O,{x:k,y:I}).during(function(){r||t.modShape(_)}).done(v).start();_.effectAnimator.duration=O}return _}function r(t,e,i,r){var n=new c({style:{shapeList:[]},zlevel:r,hoverable:!1}),s=i.style.shapeList,a=i.effect;n.position=i.position;for(var h=0,l=[],d=0;d<s.length;d++){s[d].effect=a;var u=o(t,null,s[d],r,!0),p=u.effectAnimator;n.style.shapeList.push(u),p.duration>h&&(h=p.duration),0===d&&(n.style.color=u.style.color,n.style.shadowBlur=u.style.shadowBlur,n.style.shadowColor=u.style.shadowColor),l.push(p)}e.push(n),t.addShape(n);var f=function(){for(var t=0;t<l.length;t++)l[t].stop()};if(h){n.__dummy=0;var g=t.animate(n.id,"",a.loop).when(h,{__dummy:1}).during(function(){t.modShape(n)}).done(function(){i.effect.show=!1,t.delShape(n.id)}).start(),m=g.stop;g.stop=function(){f(),m.call(this)}}}var n=t("../util/ecData"),s=t("zrender/shape/Circle"),a=t("zrender/shape/Image"),h=t("zrender/tool/curve"),l=t("../util/shape/Icon"),d=t("../util/shape/Symbol"),c=t("zrender/shape/ShapeBundle"),u=t("zrender/shape/Polyline"),p=t("zrender/tool/vector"),f=t("zrender/tool/env").canvasSupported;return{point:e,largePoint:i,line:o,largeLine:r}}),define("echarts/util/accMath",[],function(){function t(t,e){var i=t.toString(),o=e.toString(),r=0;try{r=o.split(".")[1].length}catch(n){}try{r-=i.split(".")[1].length}catch(n){}return(i.replace(".","")-0)/(o.replace(".","")-0)*Math.pow(10,r)}function e(t,e){var i=t.toString(),o=e.toString(),r=0;try{r+=i.split(".")[1].length}catch(n){}try{r+=o.split(".")[1].length}catch(n){}return(i.replace(".","")-0)*(o.replace(".","")-0)/Math.pow(10,r)}function i(t,e){var i=0,o=0;try{i=t.toString().split(".")[1].length}catch(r){}try{o=e.toString().split(".")[1].length}catch(r){}var n=Math.pow(10,Math.max(i,o));return(Math.round(t*n)+Math.round(e*n))/n}function o(t,e){return i(t,-e)}return{accDiv:t,accMul:e,accAdd:i,accSub:o}}),define("echarts/component/base",["require","../config","../util/ecData","../util/ecQuery","../util/number","zrender/tool/util","zrender/tool/env"],function(t){function e(t,e,r,n,s){this.ecTheme=t,this.messageCenter=e,this.zr=r,this.option=n,this.series=n.series,this.myChart=s,this.component=s.component,this.shapeList=[],this.effectList=[];var a=this;a._onlegendhoverlink=function(t){if(a.legendHoverLink)for(var e,r=t.target,n=a.shapeList.length-1;n>=0;n--)e=a.type==i.CHART_TYPE_PIE||a.type==i.CHART_TYPE_FUNNEL?o.get(a.shapeList[n],"name"):(o.get(a.shapeList[n],"series")||{}).name,e!=r||a.shapeList[n].invisible||a.shapeList[n].__animating||a.zr.addHoverShape(a.shapeList[n])},e&&e.bind(i.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink)}var i=t("../config"),o=t("../util/ecData"),r=t("../util/ecQuery"),n=t("../util/number"),s=t("zrender/tool/util");return e.prototype={canvasSupported:t("zrender/tool/env").canvasSupported,_getZ:function(t){if(null!=this[t])return this[t];var e=this.ecTheme[this.type];return e&&null!=e[t]?e[t]:(e=i[this.type],e&&null!=e[t]?e[t]:0)},getZlevelBase:function(){return this._getZ("zlevel")},getZBase:function(){return this._getZ("z")},reformOption:function(t){return t=s.merge(s.merge(t||{},s.clone(this.ecTheme[this.type]||{})),s.clone(i[this.type]||{})),this.z=t.z,this.zlevel=t.zlevel,t},reformCssArray:function(t){if(!(t instanceof Array))return[t,t,t,t];switch(t.length+""){case"4":return t;case"3":return[t[0],t[1],t[2],t[1]];case"2":return[t[0],t[1],t[0],t[1]];case"1":return[t[0],t[0],t[0],t[0]];case"0":return[0,0,0,0]}},getShapeById:function(t){for(var e=0,i=this.shapeList.length;i>e;e++)if(this.shapeList[e].id===t)return this.shapeList[e];return null},getFont:function(t){var e=this.getTextStyle(s.clone(t));return e.fontStyle+" "+e.fontWeight+" "+e.fontSize+"px "+e.fontFamily},getTextStyle:function(t){return s.merge(s.merge(t||{},this.ecTheme.textStyle),i.textStyle)},getItemStyleColor:function(t,e,i,o){return"function"==typeof t?t.call(this.myChart,{seriesIndex:e,series:this.series[e],dataIndex:i,data:o}):t},getDataFromOption:function(t,e){return null!=t?null!=t.value?t.value:t:e},subPixelOptimize:function(t,e){return t=e%2===1?Math.floor(t)+.5:Math.round(t)},resize:function(){this.refresh&&this.refresh(),this.clearEffectShape&&this.clearEffectShape(!0);var t=this;setTimeout(function(){t.animationEffect&&t.animationEffect()},200)},clear:function(){this.clearEffectShape&&this.clearEffectShape(),this.zr&&this.zr.delShape(this.shapeList),this.shapeList=[]},dispose:function(){this.onbeforDispose&&this.onbeforDispose(),this.clear(),this.shapeList=null,this.effectList=null,this.messageCenter&&this.messageCenter.unbind(i.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink),this.onafterDispose&&this.onafterDispose()},query:r.query,deepQuery:r.deepQuery,deepMerge:r.deepMerge,parsePercent:n.parsePercent,parseCenter:n.parseCenter,parseRadius:n.parseRadius,numAddCommas:n.addCommas,getPrecision:n.getPrecision},e}),define("zrender/shape/ShapeBundle",["require","./Base","../tool/util"],function(t){var e=t("./Base"),i=function(t){e.call(this,t)};return i.prototype={constructor:i,type:"shape-bundle",brush:function(t,e){var i=this.beforeBrush(t,e);t.beginPath();for(var o=0;o<i.shapeList.length;o++){var r=i.shapeList[o],n=r.style;e&&(n=r.getHighlightStyle(n,r.highlightStyle||{},r.brushTypeOnly)),r.buildPath(t,n)}switch(i.brushType){case"both":t.fill();case"stroke":i.lineWidth>0&&t.stroke();break;default:t.fill()}this.drawText(t,i,this.style),this.afterBrush(t)},getRect:function(t){if(t.__rect)return t.__rect;for(var e=1/0,i=-1/0,o=1/0,r=-1/0,n=0;n<t.shapeList.length;n++)var s=t.shapeList[n],a=s.getRect(s.style),e=Math.min(a.x,e),o=Math.min(a.y,o),i=Math.max(a.x+a.width,i),r=Math.max(a.y+a.height,r);return t.__rect={x:e,y:o,width:i-e,height:r-o},t.__rect},isCover:function(t,e){var i=this.transformCoordToLocal(t,e);if(t=i[0],e=i[1],this.isCoverRect(t,e))for(var o=0;o<this.style.shapeList.length;o++){var r=this.style.shapeList[o];if(r.isCover(t,e))return!0}return!1}},t("../tool/util").inherits(i,e),i}),define("zrender/tool/event",["require","../mixin/Eventful"],function(t){"use strict";function e(t){return"undefined"!=typeof t.zrenderX&&t.zrenderX||"undefined"!=typeof t.offsetX&&t.offsetX||"undefined"!=typeof t.layerX&&t.layerX||"undefined"!=typeof t.clientX&&t.clientX}function i(t){return"undefined"!=typeof t.zrenderY&&t.zrenderY||"undefined"!=typeof t.offsetY&&t.offsetY||"undefined"!=typeof t.layerY&&t.layerY||"undefined"!=typeof t.clientY&&t.clientY}function o(t){return"undefined"!=typeof t.zrenderDelta&&t.zrenderDelta||"undefined"!=typeof t.wheelDelta&&t.wheelDelta||"undefined"!=typeof t.detail&&-t.detail}var r=t("../mixin/Eventful"),n="function"==typeof window.addEventListener?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{getX:e,getY:i,getDelta:o,stop:n,Dispatcher:r}}),define("zrender/tool/env",[],function(){function t(t){var e=this.os={},i=this.browser={},o=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),n=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),a=!n&&t.match(/(iPhone\sOS)\s([\d_]+)/),h=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),l=h&&t.match(/TouchPad/),d=t.match(/Kindle\/([\d.]+)/),c=t.match(/Silk\/([\d._]+)/),u=t.match(/(BlackBerry).*Version\/([\d.]+)/),p=t.match(/(BB10).*Version\/([\d.]+)/),f=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),g=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),_=t.match(/Firefox\/([\d.]+)/),y=t.match(/MSIE ([\d.]+)/),v=o&&t.match(/Mobile\//)&&!m,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,y=t.match(/MSIE\s([\d.]+)/);return(i.webkit=!!o)&&(i.version=o[1]),r&&(e.android=!0,e.version=r[2]),a&&!s&&(e.ios=e.iphone=!0,e.version=a[2].replace(/_/g,".")),n&&(e.ios=e.ipad=!0,e.version=n[2].replace(/_/g,".")),s&&(e.ios=e.ipod=!0,e.version=s[3]?s[3].replace(/_/g,"."):null),h&&(e.webos=!0,e.version=h[2]),l&&(e.touchpad=!0),u&&(e.blackberry=!0,e.version=u[2]),p&&(e.bb10=!0,e.version=p[2]),f&&(e.rimtabletos=!0,e.version=f[2]),g&&(i.playbook=!0),d&&(e.kindle=!0,e.version=d[1]),c&&(i.silk=!0,i.version=c[1]),!c&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),_&&(i.firefox=!0,i.version=_[1]),y&&(i.ie=!0,i.version=y[1]),v&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(i.webview=!0),y&&(i.ie=!0,i.version=y[1]),e.tablet=!!(n||g||r&&!t.match(/Mobile/)||_&&t.match(/Tablet/)||y&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||a||h||u||p||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||_&&t.match(/Mobile/)||y&&t.match(/Touch/))),{browser:i,os:e,canvasSupported:document.createElement("canvas").getContext?!0:!1}}return t(navigator.userAgent)}),define("echarts/util/ecAnimation",["require","zrender/tool/util","zrender/tool/curve","zrender/shape/Polygon"],function(t){function e(t,e,i,o,r){var n,s=i.style.pointList,a=s.length;if(!e){if(n=[],"vertical"!=i._orient)for(var h=s[0][1],l=0;a>l;l++)n[l]=[s[l][0],h];else for(var d=s[0][0],l=0;a>l;l++)n[l]=[d,s[l][1]];"half-smooth-polygon"==i.type&&(n[a-1]=f.clone(s[a-1]),n[a-2]=f.clone(s[a-2])),e={style:{pointList:n}}}n=e.style.pointList;var c=n.length;i.style.pointList=c==a?n:a>c?n.concat(s.slice(c)):n.slice(0,a),t.addShape(i),i.__animating=!0,t.animate(i.id,"style").when(o,{pointList:s}).during(function(){i.updateControlPoints&&i.updateControlPoints(i.style)}).done(function(){i.__animating=!1}).start(r)}function i(t,e){for(var i=arguments.length,o=2;i>o;o++){var r=arguments[o];t.style[r]=e.style[r]}}function o(t,e,o,r,n){var s=o.style;e||(e={position:o.position,style:{x:s.x,y:"vertical"==o._orient?s.y+s.height:s.y,width:"vertical"==o._orient?s.width:0,height:"vertical"!=o._orient?s.height:0}});var a=s.x,h=s.y,l=s.width,d=s.height,c=[o.position[0],o.position[1]];i(o,e,"x","y","width","height"),o.position=e.position,t.addShape(o),(c[0]!=e.position[0]||c[1]!=e.position[1])&&t.animate(o.id,"").when(r,{position:c}).start(n),o.__animating=!0,t.animate(o.id,"style").when(r,{x:a,y:h,width:l,height:d}).done(function(){o.__animating=!1}).start(n)}function r(t,e,i,o,r){if(!e){var n=i.style.y;e={style:{y:[n[0],n[0],n[0],n[0]]}}}var s=i.style.y;i.style.y=e.style.y,t.addShape(i),i.__animating=!0,t.animate(i.id,"style").when(o,{y:s}).done(function(){i.__animating=!1}).start(r)}function n(t,e,i,o,r){var n=i.style.x,s=i.style.y,a=i.style.r0,h=i.style.r;i.__animating=!0,"r"!=i._animationAdd?(i.style.r0=0,i.style.r=0,i.rotation=[2*Math.PI,n,s],t.addShape(i),t.animate(i.id,"style").when(o,{r0:a,r:h}).done(function(){i.__animating=!1}).start(r),t.animate(i.id,"").when(o,{rotation:[0,n,s]}).start(r)):(i.style.r0=i.style.r,t.addShape(i),t.animate(i.id,"style").when(o,{r0:a}).done(function(){i.__animating=!1}).start(r))}function s(t,e,o,r,n){e||(e="r"!=o._animationAdd?{style:{startAngle:o.style.startAngle,endAngle:o.style.startAngle}}:{style:{r0:o.style.r}});var s=o.style.startAngle,a=o.style.endAngle;i(o,e,"startAngle","endAngle"),t.addShape(o),o.__animating=!0,t.animate(o.id,"style").when(r,{startAngle:s,endAngle:a}).done(function(){o.__animating=!1}).start(n)}function a(t,e,o,r,n){e||(e={style:{x:"left"==o.style.textAlign?o.style.x+100:o.style.x-100,y:o.style.y}});var s=o.style.x,a=o.style.y;i(o,e,"x","y"),t.addShape(o),o.__animating=!0,t.animate(o.id,"style").when(r,{x:s,y:a}).done(function(){o.__animating=!1}).start(n)}function h(e,i,o,r,n){var s=t("zrender/shape/Polygon").prototype.getRect(o.style),a=s.x+s.width/2,h=s.y+s.height/2;o.scale=[.1,.1,a,h],e.addShape(o),o.__animating=!0,e.animate(o.id,"").when(r,{scale:[1,1,a,h]}).done(function(){o.__animating=!1}).start(n)}function l(t,e,o,r,n){e||(e={style:{source0:0,source1:o.style.source1>0?360:-360,target0:0,target1:o.style.target1>0?360:-360}});var s=o.style.source0,a=o.style.source1,h=o.style.target0,l=o.style.target1;e.style&&i(o,e,"source0","source1","target0","target1"),t.addShape(o),o.__animating=!0,t.animate(o.id,"style").when(r,{source0:s,source1:a,target0:h,target1:l}).done(function(){o.__animating=!1}).start(n)}function d(t,e,i,o,r){e||(e={style:{angle:i.style.startAngle}});var n=i.style.angle;i.style.angle=e.style.angle,t.addShape(i),i.__animating=!0,t.animate(i.id,"style").when(o,{angle:n}).done(function(){i.__animating=!1}).start(r)}function c(t,e,i,r,n,s){if(i.style._x=i.style.x,i.style._y=i.style.y,i.style._width=i.style.width,i.style._height=i.style.height,e)o(t,e,i,r,n);else{var a=i._x||0,h=i._y||0;i.scale=[.01,.01,a,h],t.addShape(i),i.__animating=!0,t.animate(i.id,"").delay(s).when(r,{scale:[1,1,a,h]}).done(function(){i.__animating=!1}).start(n||"QuinticOut")}}function u(t,e,o,r,n){e||(e={style:{xStart:o.style.xStart,yStart:o.style.yStart,xEnd:o.style.xStart,yEnd:o.style.yStart}});var s=o.style.xStart,a=o.style.xEnd,h=o.style.yStart,l=o.style.yEnd;i(o,e,"xStart","xEnd","yStart","yEnd"),t.addShape(o),o.__animating=!0,t.animate(o.id,"style").when(r,{xStart:s,xEnd:a,yStart:h,yEnd:l}).done(function(){o.__animating=!1}).start(n)}function p(t,e,i,o,r){r=r||"QuinticOut",i.__animating=!0,t.addShape(i);var n=i.style,s=function(){i.__animating=!1},a=n.xStart,h=n.yStart,l=n.xEnd,d=n.yEnd;if(n.curveness>0){i.updatePoints(n);var c={p:0},u=n.cpX1,p=n.cpY1,f=[],m=[],_=g.quadraticSubdivide;t.animation.animate(c).when(o,{p:1}).during(function(){_(a,u,l,c.p,f),_(h,p,d,c.p,m),n.cpX1=f[1],n.cpY1=m[1],n.xEnd=f[2],n.yEnd=m[2],t.modShape(i)}).done(s).start(r)}else t.animate(i.id,"style").when(0,{xEnd:a,yEnd:h}).when(o,{xEnd:l,yEnd:d}).done(s).start(r)}var f=t("zrender/tool/util"),g=t("zrender/tool/curve");return{pointList:e,rectangle:o,candle:r,ring:n,sector:s,text:a,polygon:h,ribbon:l,gaugePointer:d,icon:c,line:u,markline:p}}),define("zrender/config",[],function(){var t={EVENT:{RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300},elementClassName:"zr-element",catchBrushException:!1,debugMode:0,devicePixelRatio:Math.max(window.devicePixelRatio||1,1)};return t}),define("zrender/shape/Base",["require","../tool/matrix","../tool/guid","../tool/util","../tool/log","../mixin/Transformable","../mixin/Eventful","../tool/area","../tool/color"],function(t){function e(e,o,r,n,s,a,h){s&&(e.font=s),e.textAlign=a,e.textBaseline=h;var l=i(o,r,n,s,a,h);o=(o+"").split("\n");var d=t("../tool/area").getTextHeight("国",s);switch(h){case"top":n=l.y;break;case"bottom":n=l.y+d;break;default:n=l.y+d/2}for(var c=0,u=o.length;u>c;c++)e.fillText(o[c],r,n),n+=d}function i(e,i,o,r,n,s){var a=t("../tool/area"),h=a.getTextWidth(e,r),l=a.getTextHeight("国",r);switch(e=(e+"").split("\n"),n){case"end":case"right":i-=h;break;case"center":i-=h/2}switch(s){case"top":break;case"bottom":o-=l*e.length;break;default:o-=l*e.length/2}return{x:i,y:o,width:h,height:l*e.length}}var o=window.G_vmlCanvasManager,r=t("../tool/matrix"),n=t("../tool/guid"),s=t("../tool/util"),a=t("../tool/log"),h=t("../mixin/Transformable"),l=t("../mixin/Eventful"),d=function(t){t=t||{},this.id=t.id||n();
for(var e in t)this[e]=t[e];this.style=this.style||{},this.highlightStyle=this.highlightStyle||null,this.parent=null,this.__dirty=!0,this.__clipShapes=[],h.call(this),l.call(this)};d.prototype.invisible=!1,d.prototype.ignore=!1,d.prototype.zlevel=0,d.prototype.draggable=!1,d.prototype.clickable=!1,d.prototype.hoverable=!0,d.prototype.z=0,d.prototype.brush=function(t,e){var i=this.beforeBrush(t,e);switch(t.beginPath(),this.buildPath(t,i),i.brushType){case"both":t.fill();case"stroke":i.lineWidth>0&&t.stroke();break;default:t.fill()}this.drawText(t,i,this.style),this.afterBrush(t)},d.prototype.beforeBrush=function(t,e){var i=this.style;return this.brushTypeOnly&&(i.brushType=this.brushTypeOnly),e&&(i=this.getHighlightStyle(i,this.highlightStyle||{},this.brushTypeOnly)),"stroke"==this.brushTypeOnly&&(i.strokeColor=i.strokeColor||i.color),t.save(),this.doClip(t),this.setContext(t,i),this.setTransform(t),i},d.prototype.afterBrush=function(t){t.restore()};var c=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]];d.prototype.setContext=function(t,e){for(var i=0,o=c.length;o>i;i++){var r=c[i][0],n=e[r],s=c[i][1];"undefined"!=typeof n&&(t[s]=n)}};var u=r.create();return d.prototype.doClip=function(t){if(this.__clipShapes&&!o)for(var e=0;e<this.__clipShapes.length;e++){var i=this.__clipShapes[e];if(i.needTransform){var n=i.transform;r.invert(u,n),t.transform(n[0],n[1],n[2],n[3],n[4],n[5])}if(t.beginPath(),i.buildPath(t,i.style),t.clip(),i.needTransform){var n=u;t.transform(n[0],n[1],n[2],n[3],n[4],n[5])}}},d.prototype.getHighlightStyle=function(e,i,o){var r={};for(var n in e)r[n]=e[n];var s=t("../tool/color"),a=s.getHighlightColor();"stroke"!=e.brushType?(r.strokeColor=a,r.lineWidth=(e.lineWidth||1)+this.getHighlightZoom(),r.brushType="both"):"stroke"!=o?(r.strokeColor=a,r.lineWidth=(e.lineWidth||1)+this.getHighlightZoom()):r.strokeColor=i.strokeColor||s.mix(e.strokeColor,s.toRGB(a));for(var n in i)"undefined"!=typeof i[n]&&(r[n]=i[n]);return r},d.prototype.getHighlightZoom=function(){return"text"!=this.type?6:2},d.prototype.drift=function(t,e){this.position[0]+=t,this.position[1]+=e},d.prototype.buildPath=function(){a("buildPath not implemented in "+this.type)},d.prototype.getRect=function(){a("getRect not implemented in "+this.type)},d.prototype.isCover=function(e,i){var o=this.transformCoordToLocal(e,i);return e=o[0],i=o[1],this.isCoverRect(e,i)?t("../tool/area").isInside(this,this.style,e,i):!1},d.prototype.isCoverRect=function(t,e){var i=this.style.__rect;return i||(i=this.style.__rect=this.getRect(this.style)),t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},d.prototype.drawText=function(t,i,o){if("undefined"!=typeof i.text&&i.text!==!1){var r=i.textColor||i.color||i.strokeColor;t.fillStyle=r;var n,s,a,h,l=10,d=i.textPosition||this.textPosition||"top";switch(d){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var c=(o||i).__rect||this.getRect(o||i);switch(d){case"inside":a=c.x+c.width/2,h=c.y+c.height/2,n="center",s="middle","stroke"!=i.brushType&&r==i.color&&(t.fillStyle="#fff");break;case"left":a=c.x-l,h=c.y+c.height/2,n="end",s="middle";break;case"right":a=c.x+c.width+l,h=c.y+c.height/2,n="start",s="middle";break;case"top":a=c.x+c.width/2,h=c.y-l,n="center",s="bottom";break;case"bottom":a=c.x+c.width/2,h=c.y+c.height+l,n="center",s="top"}}break;case"start":case"end":var u=i.pointList||[[i.xStart||0,i.yStart||0],[i.xEnd||0,i.yEnd||0]],p=u.length;if(2>p)return;var f,g,m,_;switch(d){case"start":f=u[1][0],g=u[0][0],m=u[1][1],_=u[0][1];break;case"end":f=u[p-2][0],g=u[p-1][0],m=u[p-2][1],_=u[p-1][1]}a=g,h=_;var y=Math.atan((m-_)/(g-f))/Math.PI*180;0>g-f?y+=180:0>m-_&&(y+=360),l=5,y>=30&&150>=y?(n="center",s="bottom",h-=l):y>150&&210>y?(n="right",s="middle",a-=l):y>=210&&330>=y?(n="center",s="top",h+=l):(n="left",s="middle",a+=l);break;case"specific":a=i.textX||0,h=i.textY||0,n="start",s="middle"}null!=a&&null!=h&&e(t,i.text,a,h,i.textFont,i.textAlign||n,i.textBaseline||s)}},d.prototype.modSelf=function(){this.__dirty=!0,this.style&&(this.style.__rect=null),this.highlightStyle&&(this.highlightStyle.__rect=null)},d.prototype.isSilent=function(){return!(this.hoverable||this.draggable||this.clickable||this.onmousemove||this.onmouseover||this.onmouseout||this.onmousedown||this.onmouseup||this.onclick||this.ondragenter||this.ondragover||this.ondragleave||this.ondrop)},s.merge(d.prototype,h.prototype,!0),s.merge(d.prototype,l.prototype,!0),d}),define("echarts/layout/EdgeBundling",["require","../data/KDTree","zrender/tool/vector"],function(t){function e(t,e){t=t.array,e=e.array;var i=e[0]-t[0],o=e[1]-t[1],r=e[2]-t[2],n=e[3]-t[3];return i*i+o*o+r*r+n*n}function i(t){this.points=[t.mp0,t.mp1],this.group=t}function o(t){var e=t.points;e[0][1]<e[1][1]||t instanceof i?(this.array=[e[0][0],e[0][1],e[1][0],e[1][1]],this._startPoint=e[0],this._endPoint=e[1]):(this.array=[e[1][0],e[1][1],e[0][0],e[0][1]],this._startPoint=e[1],this._endPoint=e[0]),this.ink=d(e[0],e[1]),this.edge=t,this.group=null}function r(){this.edgeList=[],this.mp0=h(),this.mp1=h(),this.ink=0}function n(){this.maxNearestEdge=6,this.maxTurningAngle=Math.PI/4,this.maxIteration=20}var s=t("../data/KDTree"),a=t("zrender/tool/vector"),h=a.create,l=a.distSquare,d=a.dist,c=a.copy,u=a.clone;return o.prototype.getStartPoint=function(){return this._startPoint},o.prototype.getEndPoint=function(){return this._endPoint},r.prototype.addEdge=function(t){t.group=this,this.edgeList.push(t)},r.prototype.removeEdge=function(t){t.group=null,this.edgeList.splice(this.edgeList.indexOf(t),1)},n.prototype={constructor:n,run:function(t){function e(t,e){return l(t,e)<1e-10}function o(t,i){for(var o=[],r=0,n=0;n<t.length;n++)r>0&&e(t[n],o[r-1])||(o[r++]=u(t[n]));return i[0]&&!e(o[0],i[0])&&(o=o.reverse()),o}for(var r=this._iterate(t),n=0;n++<this.maxIteration;){for(var s=[],a=0;a<r.groups.length;a++)s.push(new i(r.groups[a]));var h=this._iterate(s);if(h.savedInk<=0)break;r=h}var d=[],c=function(t,e){for(var r,n=0;n<t.length;n++){var s=t[n];if(s.edgeList[0]&&s.edgeList[0].edge instanceof i){for(var a=[],h=0;h<s.edgeList.length;h++)a.push(s.edgeList[h].edge.group);r=e?e.slice():[],r.unshift(s.mp0),r.push(s.mp1),c(a,r)}else for(var h=0;h<s.edgeList.length;h++){var l=s.edgeList[h];r=e?e.slice():[],r.unshift(s.mp0),r.push(s.mp1),r.unshift(l.getStartPoint()),r.push(l.getEndPoint()),d.push({points:o(r,l.edge.points),rawEdge:l.edge})}}};return c(r.groups),d},_iterate:function(t){for(var i=[],n=[],a=0,l=0;l<t.length;l++){var d=new o(t[l]);i.push(d)}for(var u=new s(i,4),p=[],f=h(),g=h(),m=0,_=h(),y=h(),v=0,l=0;l<i.length;l++){var d=i[l];if(!d.group){u.nearestN(d,this.maxNearestEdge,e,p);for(var x=0,b=null,T=null,S=0;S<p.length;S++){var C=p[S],z=0;C.group?C.group!==T&&(T=C.group,m=this._calculateGroupEdgeInk(C.group,d,f,g),z=C.group.ink+d.ink-m):(m=this._calculateEdgeEdgeInk(d,C,f,g),z=C.ink+d.ink-m),z>x&&(x=z,b=C,c(y,g),c(_,f),v=m)}if(b){a+=x;var E;b.group||(E=new r,n.push(E),E.addEdge(b)),E=b.group,c(E.mp0,_),c(E.mp1,y),E.ink=v,b.group.addEdge(d)}else{var E=new r;n.push(E),c(E.mp0,d.getStartPoint()),c(E.mp1,d.getEndPoint()),E.ink=d.ink,E.addEdge(d)}}}return{groups:n,edges:i,savedInk:a}},_calculateEdgeEdgeInk:function(){var t=[],e=[];return function(i,o,r,n){t[0]=i.getStartPoint(),t[1]=o.getStartPoint(),e[0]=i.getEndPoint(),e[1]=o.getEndPoint(),this._calculateMeetPoints(t,e,r,n);var s=d(t[0],r)+d(r,n)+d(n,e[0])+d(t[1],r)+d(n,e[1]);return s}}(),_calculateGroupEdgeInk:function(t,e,i,o){for(var r=[],n=[],s=0;s<t.edgeList.length;s++){var a=t.edgeList[s];r.push(a.getStartPoint()),n.push(a.getEndPoint())}r.push(e.getStartPoint()),n.push(e.getEndPoint()),this._calculateMeetPoints(r,n,i,o);for(var h=d(i,o),s=0;s<r.length;s++)h+=d(r[s],i)+d(n[s],o);return h},_calculateMeetPoints:function(){var t=h(),e=h();return function(i,o,r,n){a.set(t,0,0),a.set(e,0,0);for(var s=i.length,h=0;s>h;h++)a.add(t,t,i[h]);a.scale(t,t,1/s),s=o.length;for(var h=0;s>h;h++)a.add(e,e,o[h]);a.scale(e,e,1/s),this._limitTurningAngle(i,t,e,r),this._limitTurningAngle(o,e,t,n)}}(),_limitTurningAngle:function(){var t=h(),e=h(),i=h(),o=h();return function(r,n,s,h){var c=Math.cos(this.maxTurningAngle),u=Math.tan(this.maxTurningAngle);a.sub(t,n,s),a.normalize(t,t),a.copy(h,n);for(var p=0,f=0;f<r.length;f++){var g=r[f];a.sub(e,g,n);var m=a.len(e);a.scale(e,e,1/m);var _=a.dot(e,t);if(c>_){a.scaleAndAdd(i,n,t,m*_);var y=d(i,g),v=y/u;a.scaleAndAdd(o,i,t,-v);var x=l(o,n);x>p&&(p=x,a.copy(h,o))}}}}()},n}),define("zrender/zrender",["require","./dep/excanvas","./tool/util","./tool/log","./tool/guid","./Handler","./Painter","./Storage","./animation/Animation","./tool/env"],function(t){function e(t){return function(){t._needsRefreshNextFrame&&t.refresh()}}t("./dep/excanvas");var i=t("./tool/util"),o=t("./tool/log"),r=t("./tool/guid"),n=t("./Handler"),s=t("./Painter"),a=t("./Storage"),h=t("./animation/Animation"),l={},d={};d.version="2.1.1",d.init=function(t){var e=new c(r(),t);return l[e.id]=e,e},d.dispose=function(t){if(t)t.dispose();else{for(var e in l)l[e].dispose();l={}}return d},d.getInstance=function(t){return l[t]},d.delInstance=function(t){return delete l[t],d};var c=function(i,o){this.id=i,this.env=t("./tool/env"),this.storage=new a,this.painter=new s(o,this.storage),this.handler=new n(o,this.storage,this.painter),this.animation=new h({stage:{update:e(this)}}),this.animation.start();var r=this;this.painter.refreshNextFrame=function(){r.refreshNextFrame()},this._needsRefreshNextFrame=!1;var r=this,l=this.storage,d=l.delFromMap;l.delFromMap=function(t){var e=l.get(t);r.stopAnimation(e),d.call(l,t)}};return c.prototype.getId=function(){return this.id},c.prototype.addShape=function(t){return this.addElement(t),this},c.prototype.addGroup=function(t){return this.addElement(t),this},c.prototype.delShape=function(t){return this.delElement(t),this},c.prototype.delGroup=function(t){return this.delElement(t),this},c.prototype.modShape=function(t,e){return this.modElement(t,e),this},c.prototype.modGroup=function(t,e){return this.modElement(t,e),this},c.prototype.addElement=function(t){return this.storage.addRoot(t),this._needsRefreshNextFrame=!0,this},c.prototype.delElement=function(t){return this.storage.delRoot(t),this._needsRefreshNextFrame=!0,this},c.prototype.modElement=function(t,e){return this.storage.mod(t,e),this._needsRefreshNextFrame=!0,this},c.prototype.modLayer=function(t,e){return this.painter.modLayer(t,e),this._needsRefreshNextFrame=!0,this},c.prototype.addHoverShape=function(t){return this.storage.addHover(t),this},c.prototype.render=function(t){return this.painter.render(t),this._needsRefreshNextFrame=!1,this},c.prototype.refresh=function(t){return this.painter.refresh(t),this._needsRefreshNextFrame=!1,this},c.prototype.refreshNextFrame=function(){return this._needsRefreshNextFrame=!0,this},c.prototype.refreshHover=function(t){return this.painter.refreshHover(t),this},c.prototype.refreshShapes=function(t,e){return this.painter.refreshShapes(t,e),this},c.prototype.resize=function(){return this.painter.resize(),this},c.prototype.animate=function(t,e,r){var n=this;if("string"==typeof t&&(t=this.storage.get(t)),t){var s;if(e){for(var a=e.split("."),h=t,l=0,d=a.length;d>l;l++)h&&(h=h[a[l]]);h&&(s=h)}else s=t;if(!s)return void o('Property "'+e+'" is not existed in element '+t.id);null==t.__animators&&(t.__animators=[]);var c=t.__animators,u=this.animation.animate(s,{loop:r}).during(function(){n.modShape(t)}).done(function(){var e=i.indexOf(t.__animators,u);e>=0&&c.splice(e,1)});return c.push(u),u}o("Element not existed")},c.prototype.stopAnimation=function(t){if(t.__animators){for(var e=t.__animators,i=e.length,o=0;i>o;o++)e[o].stop();e.length=0}return this},c.prototype.clearAnimation=function(){return this.animation.clear(),this},c.prototype.showLoading=function(t){return this.painter.showLoading(t),this},c.prototype.hideLoading=function(){return this.painter.hideLoading(),this},c.prototype.getWidth=function(){return this.painter.getWidth()},c.prototype.getHeight=function(){return this.painter.getHeight()},c.prototype.toDataURL=function(t,e,i){return this.painter.toDataURL(t,e,i)},c.prototype.shapeToImage=function(t,e,i){var o=r();return this.painter.shapeToImage(o,t,e,i)},c.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},c.prototype.un=function(t,e){return this.handler.un(t,e),this},c.prototype.trigger=function(t,e){return this.handler.trigger(t,e),this},c.prototype.clear=function(){return this.storage.delRoot(),this.painter.clear(),this},c.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,d.delInstance(this.id)},d}),define("echarts/component/title",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","zrender/tool/color","../component"],function(t){function e(t,e,o,r,n){i.call(this,t,e,o,r,n),this.refresh(r)}var i=t("./base"),o=t("zrender/shape/Text"),r=t("zrender/shape/Rectangle"),n=t("../config");n.title={zlevel:0,z:6,show:!0,text:"",subtext:"",x:"left",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:5,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}};var s=t("zrender/tool/util"),a=t("zrender/tool/area"),h=t("zrender/tool/color");return e.prototype={type:n.COMPONENT_TYPE_TITLE,_buildShape:function(){if(this.titleOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var t=0,e=this.shapeList.length;e>t;t++)this.zr.addShape(this.shapeList[t])}},_buildItem:function(){var t=this.titleOption.text,e=this.titleOption.link,i=this.titleOption.target,r=this.titleOption.subtext,n=this.titleOption.sublink,s=this.titleOption.subtarget,a=this.getFont(this.titleOption.textStyle),l=this.getFont(this.titleOption.subtextStyle),d=this._itemGroupLocation.x,c=this._itemGroupLocation.y,u=this._itemGroupLocation.width,p=this._itemGroupLocation.height,f={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:c,color:this.titleOption.textStyle.color,text:t,textFont:a,textBaseline:"top"},highlightStyle:{color:h.lift(this.titleOption.textStyle.color,1),brushType:"fill"},hoverable:!1};e&&(f.hoverable=!0,f.clickable=!0,f.onclick=function(){i&&"self"==i?window.location=e:window.open(e)});var g={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:c+p,color:this.titleOption.subtextStyle.color,text:r,textFont:l,textBaseline:"bottom"},highlightStyle:{color:h.lift(this.titleOption.subtextStyle.color,1),brushType:"fill"},hoverable:!1};switch(n&&(g.hoverable=!0,g.clickable=!0,g.onclick=function(){s&&"self"==s?window.location=n:window.open(n)}),this.titleOption.x){case"center":f.style.x=g.style.x=d+u/2,f.style.textAlign=g.style.textAlign="center";break;case"left":f.style.x=g.style.x=d,f.style.textAlign=g.style.textAlign="left";break;case"right":f.style.x=g.style.x=d+u,f.style.textAlign=g.style.textAlign="right";break;default:d=this.titleOption.x-0,d=isNaN(d)?0:d,f.style.x=g.style.x=d}this.titleOption.textAlign&&(f.style.textAlign=g.style.textAlign=this.titleOption.textAlign),this.shapeList.push(new o(f)),""!==r&&this.shapeList.push(new o(g))},_buildBackground:function(){var t=this.reformCssArray(this.titleOption.padding);this.shapeList.push(new r({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-t[3],y:this._itemGroupLocation.y-t[0],width:this._itemGroupLocation.width+t[3]+t[1],height:this._itemGroupLocation.height+t[0]+t[2],brushType:0===this.titleOption.borderWidth?"fill":"both",color:this.titleOption.backgroundColor,strokeColor:this.titleOption.borderColor,lineWidth:this.titleOption.borderWidth}}))},_getItemGroupLocation:function(){var t,e=this.reformCssArray(this.titleOption.padding),i=this.titleOption.text,o=this.titleOption.subtext,r=this.getFont(this.titleOption.textStyle),n=this.getFont(this.titleOption.subtextStyle),s=Math.max(a.getTextWidth(i,r),a.getTextWidth(o,n)),h=a.getTextHeight(i,r)+(""===o?0:this.titleOption.itemGap+a.getTextHeight(o,n)),l=this.zr.getWidth();switch(this.titleOption.x){case"center":t=Math.floor((l-s)/2);break;case"left":t=e[3]+this.titleOption.borderWidth;break;case"right":t=l-s-e[1]-this.titleOption.borderWidth;break;default:t=this.titleOption.x-0,t=isNaN(t)?0:t}var d,c=this.zr.getHeight();switch(this.titleOption.y){case"top":d=e[0]+this.titleOption.borderWidth;break;case"bottom":d=c-h-e[2]-this.titleOption.borderWidth;break;case"center":d=Math.floor((c-h)/2);break;default:d=this.titleOption.y-0,d=isNaN(d)?0:d}return{x:t,y:d,width:s,height:h}},refresh:function(t){t&&(this.option=t,this.option.title=this.reformOption(this.option.title),this.titleOption=this.option.title,this.titleOption.textStyle=this.getTextStyle(this.titleOption.textStyle),this.titleOption.subtextStyle=this.getTextStyle(this.titleOption.subtextStyle)),this.clear(),this._buildShape()}},s.inherits(e,i),t("../component").define("title",e),e}),define("zrender/tool/area",["require","./util","./curve"],function(t){"use strict";function e(t){return t%=I,0>t&&(t+=I),t}function i(t,e,i,n){if(!e||!t)return!1;var s=t.type;C=C||z.getContext();var a=o(t,e,i,n);if("undefined"!=typeof a)return a;if(t.buildPath&&C.isPointInPath)return r(t,C,e,i,n);switch(s){case"ellipse":return!0;case"trochoid":var h="out"==e.location?e.r1+e.r2+e.d:e.r1-e.r2+e.d;return p(e,i,n,h);case"rose":return p(e,i,n,e.maxr);default:return!1}}function o(t,e,i,o){var r=t.type;switch(r){case"bezier-curve":return"undefined"==typeof e.cpX2?h(e.xStart,e.yStart,e.cpX1,e.cpY1,e.xEnd,e.yEnd,e.lineWidth,i,o):a(e.xStart,e.yStart,e.cpX1,e.cpY1,e.cpX2,e.cpY2,e.xEnd,e.yEnd,e.lineWidth,i,o);case"line":return s(e.xStart,e.yStart,e.xEnd,e.yEnd,e.lineWidth,i,o);case"polyline":return d(e.pointList,e.lineWidth,i,o);case"ring":return c(e.x,e.y,e.r0,e.r,i,o);case"circle":return p(e.x,e.y,e.r,i,o);case"sector":var n=e.startAngle*Math.PI/180,l=e.endAngle*Math.PI/180;return e.clockWise||(n=-n,l=-l),f(e.x,e.y,e.r0,e.r,n,l,!e.clockWise,i,o);case"path":return e.pathArray&&b(e.pathArray,Math.max(e.lineWidth,5),e.brushType,i,o);case"polygon":case"star":case"isogon":return g(e.pointList,i,o);case"text":var m=e.__rect||t.getRect(e);return u(m.x,m.y,m.width,m.height,i,o);case"rectangle":case"image":return u(e.x,e.y,e.width,e.height,i,o)}}function r(t,e,i,o,r){return e.beginPath(),t.buildPath(e,i),e.closePath(),e.isPointInPath(o,r)}function n(t,e,o,r){return!i(t,e,o,r)}function s(t,e,i,o,r,n,s){if(0===r)return!1;var a=Math.max(r,5),h=0,l=t;if(s>e+a&&s>o+a||e-a>s&&o-a>s||n>t+a&&n>i+a||t-a>n&&i-a>n)return!1;if(t===i)return Math.abs(n-t)<=a/2;h=(e-o)/(t-i),l=(t*o-i*e)/(t-i);var d=h*n-s+l,c=d*d/(h*h+1);return a/2*a/2>=c}function a(t,e,i,o,r,n,s,a,h,l,d){if(0===h)return!1;var c=Math.max(h,5);if(d>e+c&&d>o+c&&d>n+c&&d>a+c||e-c>d&&o-c>d&&n-c>d&&a-c>d||l>t+c&&l>i+c&&l>r+c&&l>s+c||t-c>l&&i-c>l&&r-c>l&&s-c>l)return!1;var u=E.cubicProjectPoint(t,e,i,o,r,n,s,a,l,d,null);return c/2>=u}function h(t,e,i,o,r,n,s,a,h){if(0===s)return!1;var l=Math.max(s,5);if(h>e+l&&h>o+l&&h>n+l||e-l>h&&o-l>h&&n-l>h||a>t+l&&a>i+l&&a>r+l||t-l>a&&i-l>a&&r-l>a)return!1;var d=E.quadraticProjectPoint(t,e,i,o,r,n,a,h,null);return l/2>=d}function l(t,i,o,r,n,s,a,h,l){if(0===a)return!1;var d=Math.max(a,5);h-=t,l-=i;var c=Math.sqrt(h*h+l*l);if(c-d>o||o>c+d)return!1;if(Math.abs(r-n)>=I)return!0;if(s){var u=r;r=e(n),n=e(u)}else r=e(r),n=e(n);r>n&&(n+=I);var p=Math.atan2(l,h);return 0>p&&(p+=I),p>=r&&n>=p||p+I>=r&&n>=p+I}function d(t,e,i,o){for(var e=Math.max(e,10),r=0,n=t.length-1;n>r;r++){var a=t[r][0],h=t[r][1],l=t[r+1][0],d=t[r+1][1];if(s(a,h,l,d,e,i,o))return!0}return!1}function c(t,e,i,o,r,n){var s=(r-t)*(r-t)+(n-e)*(n-e);return o*o>s&&s>i*i}function u(t,e,i,o,r,n){return r>=t&&t+i>=r&&n>=e&&e+o>=n}function p(t,e,i,o,r){return i*i>(o-t)*(o-t)+(r-e)*(r-e)}function f(t,e,i,o,r,n,s,a,h){return l(t,e,(i+o)/2,r,n,s,o-i,a,h)}function g(t,e,i){for(var o=t.length,r=0,n=0,s=o-1;o>n;n++){var a=t[s][0],h=t[s][1],l=t[n][0],d=t[n][1];r+=m(a,h,l,d,e,i),s=n}return 0!==r}function m(t,e,i,o,r,n){if(n>e&&n>o||e>n&&o>n)return 0;if(o==e)return 0;var s=e>o?1:-1,a=(n-e)/(o-e),h=a*(i-t)+t;return h>r?s:0}function _(){var t=O[0];O[0]=O[1],O[1]=t}function y(t,e,i,o,r,n,s,a,h,l){if(l>e&&l>o&&l>n&&l>a||e>l&&o>l&&n>l&&a>l)return 0;var d=E.cubicRootAt(e,o,n,a,l,P);if(0===d)return 0;for(var c,u,p=0,f=-1,g=0;d>g;g++){var m=P[g],y=E.cubicAt(t,i,r,s,m);h>y||(0>f&&(f=E.cubicExtrema(e,o,n,a,O),O[1]<O[0]&&f>1&&_(),c=E.cubicAt(e,o,n,a,O[0]),f>1&&(u=E.cubicAt(e,o,n,a,O[1]))),p+=2==f?m<O[0]?e>c?1:-1:m<O[1]?c>u?1:-1:u>a?1:-1:m<O[0]?e>c?1:-1:c>a?1:-1)}return p}function v(t,e,i,o,r,n,s,a){if(a>e&&a>o&&a>n||e>a&&o>a&&n>a)return 0;var h=E.quadraticRootAt(e,o,n,a,P);if(0===h)return 0;var l=E.quadraticExtremum(e,o,n);if(l>=0&&1>=l){for(var d=0,c=E.quadraticAt(e,o,n,l),u=0;h>u;u++){var p=E.quadraticAt(t,i,r,P[u]);s>p||(d+=P[u]<l?e>c?1:-1:c>n?1:-1)}return d}var p=E.quadraticAt(t,i,r,P[0]);return s>p?0:e>n?1:-1}function x(t,i,o,r,n,s,a,h){if(h-=i,h>o||-o>h)return 0;var l=Math.sqrt(o*o-h*h);if(P[0]=-l,P[1]=l,Math.abs(r-n)>=I){r=0,n=I;var d=s?1:-1;return a>=P[0]+t&&a<=P[1]+t?d:0}if(s){var l=r;r=e(n),n=e(l)}else r=e(r),n=e(n);r>n&&(n+=I);for(var c=0,u=0;2>u;u++){var p=P[u];if(p+t>a){var f=Math.atan2(h,p),d=s?1:-1;0>f&&(f=I+f),(f>=r&&n>=f||f+I>=r&&n>=f+I)&&(f>Math.PI/2&&f<1.5*Math.PI&&(d=-d),c+=d)}}return c}function b(t,e,i,o,r){var n=0,d=0,c=0,u=0,p=0,f=!0,g=!0;i=i||"fill";for(var _="stroke"===i||"both"===i,b="fill"===i||"both"===i,T=0;T<t.length;T++){var S=t[T],C=S.points;if(f||"M"===S.command){if(T>0&&(b&&(n+=m(d,c,u,p,o,r)),0!==n))return!0;u=C[C.length-2],p=C[C.length-1],f=!1,g&&"A"!==S.command&&(g=!1,d=u,c=p)}switch(S.command){case"M":d=C[0],c=C[1];break;case"L":if(_&&s(d,c,C[0],C[1],e,o,r))return!0;b&&(n+=m(d,c,C[0],C[1],o,r)),d=C[0],c=C[1];break;case"C":if(_&&a(d,c,C[0],C[1],C[2],C[3],C[4],C[5],e,o,r))return!0;b&&(n+=y(d,c,C[0],C[1],C[2],C[3],C[4],C[5],o,r)),d=C[4],c=C[5];break;case"Q":if(_&&h(d,c,C[0],C[1],C[2],C[3],e,o,r))return!0;b&&(n+=v(d,c,C[0],C[1],C[2],C[3],o,r)),d=C[2],c=C[3];break;case"A":var z=C[0],E=C[1],w=C[2],A=C[3],L=C[4],M=C[5],k=Math.cos(L)*w+z,I=Math.sin(L)*A+E;g?(g=!1,u=k,p=I):n+=m(d,c,k,I);var P=(o-z)*A/w+z;if(_&&l(z,E,A,L,L+M,1-C[7],e,P,r))return!0;b&&(n+=x(z,E,A,L,L+M,1-C[7],P,r)),d=Math.cos(L+M)*w+z,c=Math.sin(L+M)*A+E;break;case"z":if(_&&s(d,c,u,p,e,o,r))return!0;f=!0}}return b&&(n+=m(d,c,u,p,o,r)),0!==n}function T(t,e){var i=t+":"+e;if(w[i])return w[i];C=C||z.getContext(),C.save(),e&&(C.font=e),t=(t+"").split("\n");for(var o=0,r=0,n=t.length;n>r;r++)o=Math.max(C.measureText(t[r]).width,o);return C.restore(),w[i]=o,++L>k&&(L=0,w={}),o}function S(t,e){var i=t+":"+e;if(A[i])return A[i];C=C||z.getContext(),C.save(),e&&(C.font=e),t=(t+"").split("\n");var o=(C.measureText("国").width+2)*t.length;return C.restore(),A[i]=o,++M>k&&(M=0,A={}),o}var C,z=t("./util"),E=t("./curve"),w={},A={},L=0,M=0,k=5e3,I=2*Math.PI,P=[-1,-1,-1],O=[-1,-1];return{isInside:i,isOutside:n,getTextWidth:T,getTextHeight:S,isInsidePath:b,isInsidePolygon:g,isInsideSector:f,isInsideCircle:p,isInsideLine:s,isInsideRect:u,isInsidePolyline:d,isInsideCubicStroke:a,isInsideQuadraticStroke:h}}),define("echarts/component",[],function(){var t={},e={};return t.define=function(i,o){return e[i]=o,t},t.get=function(t){return e[t]},t}),define("echarts/chart/island",["require","./base","zrender/shape/Circle","../config","../util/ecData","zrender/tool/util","zrender/tool/event","zrender/tool/color","../util/accMath","../chart"],function(t){function e(t,e,o,r,s){i.call(this,t,e,o,r,s),this._nameConnector,this._valueConnector,this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth();var h=this;h.shapeHandler.onmousewheel=function(t){var e=t.target,i=t.event,o=a.getDelta(i);o=o>0?-1:1,e.style.r-=o,e.style.r=e.style.r<5?5:e.style.r;var r=n.get(e,"value"),s=r*h.option.island.calculateStep;r=s>1?Math.round(r-s*o):+(r-s*o).toFixed(2);var l=n.get(e,"name");e.style.text=l+":"+r,n.set(e,"value",r),n.set(e,"name",l),h.zr.modShape(e.id),h.zr.refreshNextFrame(),a.stop(i)}}var i=t("./base"),o=t("zrender/shape/Circle"),r=t("../config");r.island={zlevel:0,z:5,r:15,calculateStep:.1};var n=t("../util/ecData"),s=t("zrender/tool/util"),a=t("zrender/tool/event");return e.prototype={type:r.CHART_TYPE_ISLAND,_combine:function(e,i){var o=t("zrender/tool/color"),r=t("../util/accMath"),s=r.accAdd(n.get(e,"value"),n.get(i,"value")),a=n.get(e,"name")+this._nameConnector+n.get(i,"name");e.style.text=a+this._valueConnector+s,n.set(e,"value",s),n.set(e,"name",a),e.style.r=this.option.island.r,e.style.color=o.mix(e.style.color,i.style.color)},refresh:function(t){t&&(t.island=this.reformOption(t.island),this.option=t,this._nameConnector=this.option.nameConnector,this._valueConnector=this.option.valueConnector)},getOption:function(){return this.option},resize:function(){var t=this.zr.getWidth(),e=this.zr.getHeight(),i=t/(this._zrWidth||t),o=e/(this._zrHeight||e);if(1!==i||1!==o){this._zrWidth=t,this._zrHeight=e;for(var r=0,n=this.shapeList.length;n>r;r++)this.zr.modShape(this.shapeList[r].id,{style:{x:Math.round(this.shapeList[r].style.x*i),y:Math.round(this.shapeList[r].style.y*o)}})}},add:function(t){var e=n.get(t,"name"),i=n.get(t,"value"),r=null!=n.get(t,"series")?n.get(t,"series").name:"",s=this.getFont(this.option.island.textStyle),a=this.option.island,h={zlevel:a.zlevel,z:a.z,style:{x:t.style.x,y:t.style.y,r:this.option.island.r,color:t.style.color||t.style.strokeColor,text:e+this._valueConnector+i,textFont:s},draggable:!0,hoverable:!0,onmousewheel:this.shapeHandler.onmousewheel,_type:"island"};"#fff"===h.style.color&&(h.style.color=t.style.strokeColor),this.setCalculable(h),h.dragEnableTime=0,n.pack(h,{name:r},-1,i,-1,e),h=new o(h),this.shapeList.push(h),this.zr.addShape(h)},del:function(t){this.zr.delShape(t.id);for(var e=[],i=0,o=this.shapeList.length;o>i;i++)this.shapeList[i].id!=t.id&&e.push(this.shapeList[i]);this.shapeList=e},ondrop:function(t,e){if(this.isDrop&&t.target){var i=t.target,o=t.dragged;this._combine(i,o),this.zr.modShape(i.id),e.dragIn=!0,this.isDrop=!1}},ondragend:function(t,e){var i=t.target;this.isDragend?e.dragIn&&(this.del(i),e.needRefresh=!0):e.dragIn||(i.style.x=a.getX(t.event),i.style.y=a.getY(t.event),this.add(i),e.needRefresh=!0),this.isDragend=!1}},s.inherits(e,i),t("../chart").define("island",e),e}),define("echarts/component/toolbox",["require","./base","zrender/shape/Line","zrender/shape/Image","zrender/shape/Rectangle","../util/shape/Icon","../config","zrender/tool/util","zrender/config","zrender/tool/event","./dataView","../component"],function(t){function e(t,e,o,r,n){i.call(this,t,e,o,r,n),this.dom=n.dom,this._magicType={},this._magicMap={},this._isSilence=!1,this._iconList,this._iconShapeMap={},this._featureTitle={},this._featureIcon={},this._featureColor={},this._featureOption={},this._enableColor="red",this._disableColor="#ccc",this._markShapeList=[];var s=this;s._onMark=function(t){s.__onMark(t)},s._onMarkUndo=function(t){s.__onMarkUndo(t)},s._onMarkClear=function(t){s.__onMarkClear(t)},s._onDataZoom=function(t){s.__onDataZoom(t)},s._onDataZoomReset=function(t){s.__onDataZoomReset(t)},s._onDataView=function(t){s.__onDataView(t)},s._onRestore=function(t){s.__onRestore(t)},s._onSaveAsImage=function(t){s.__onSaveAsImage(t)},s._onMagicType=function(t){s.__onMagicType(t)},s._onCustomHandler=function(t){s.__onCustomHandler(t)},s._onmousemove=function(t){return s.__onmousemove(t)},s._onmousedown=function(t){return s.__onmousedown(t)},s._onmouseup=function(t){return s.__onmouseup(t)},s._onclick=function(t){return s.__onclick(t)}}var i=t("./base"),o=t("zrender/shape/Line"),r=t("zrender/shape/Image"),n=t("zrender/shape/Rectangle"),s=t("../util/shape/Icon"),a=t("../config");a.toolbox={zlevel:0,z:6,show:!1,orient:"horizontal",x:"right",y:"top",color:["#1e90ff","#22bb22","#4b0082","#d2691e"],disableColor:"#ddd",effectiveColor:"red",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemSize:16,showTitle:!0,feature:{mark:{show:!1,title:{mark:"辅助线开关",markUndo:"删除辅助线",markClear:"清空辅助线"},lineStyle:{width:1,color:"#1e90ff",type:"dashed"}},dataZoom:{show:!1,title:{dataZoom:"区域缩放",dataZoomReset:"区域缩放后退"}},dataView:{show:!1,title:"数据视图",readOnly:!1,lang:["数据视图","关闭","刷新"]},magicType:{show:!1,title:{line:"折线图切换",bar:"柱形图切换",stack:"堆积",tiled:"平铺",force:"力导向布局图切换",chord:"和弦图切换",pie:"饼图切换",funnel:"漏斗图切换"},type:[]},restore:{show:!1,title:"还原"},saveAsImage:{show:!1,title:"保存为图片",type:"png",lang:["点击保存"]}}};var h=t("zrender/tool/util"),l=t("zrender/config"),d=t("zrender/tool/event"),c="stack",u="tiled";return e.prototype={type:a.COMPONENT_TYPE_TOOLBOX,_buildShape:function(){this._iconList=[];var t=this.option.toolbox;this._enableColor=t.effectiveColor,this._disableColor=t.disableColor;var e=t.feature,i=[];for(var o in e)if(e[o].show)switch(o){case"mark":i.push({key:o,name:"mark"}),i.push({key:o,name:"markUndo"}),i.push({key:o,name:"markClear"});break;case"magicType":for(var r=0,n=e[o].type.length;n>r;r++)e[o].title[e[o].type[r]+"Chart"]=e[o].title[e[o].type[r]],e[o].option&&(e[o].option[e[o].type[r]+"Chart"]=e[o].option[e[o].type[r]]),i.push({key:o,name:e[o].type[r]+"Chart"});break;case"dataZoom":i.push({key:o,name:"dataZoom"}),i.push({key:o,name:"dataZoomReset"});break;case"saveAsImage":this.canvasSupported&&i.push({key:o,name:"saveAsImage"});break;default:i.push({key:o,name:o})}if(i.length>0){for(var s,o,r=0,n=i.length;n>r;r++)s=i[r].name,o=i[r].key,this._iconList.push(s),this._featureTitle[s]=e[o].title[s]||e[o].title,e[o].icon&&(this._featureIcon[s]=e[o].icon[s]||e[o].icon),e[o].color&&(this._featureColor[s]=e[o].color[s]||e[o].color),e[o].option&&(this._featureOption[s]=e[o].option[s]||e[o].option);this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var r=0,n=this.shapeList.length;n>r;r++)this.zr.addShape(this.shapeList[r]);this._iconShapeMap.mark&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear)),this._iconShapeMap.dataZoomReset&&0===this._zoomQueue.length&&this._iconDisable(this._iconShapeMap.dataZoomReset)}},_buildItem:function(){var e,i,o,n,a=this.option.toolbox,h=this._iconList.length,l=this._itemGroupLocation.x,d=this._itemGroupLocation.y,c=a.itemSize,u=a.itemGap,p=a.color instanceof Array?a.color:[a.color],f=this.getFont(a.textStyle);"horizontal"===a.orient?(i=this._itemGroupLocation.y/this.zr.getHeight()<.5?"bottom":"top",o=this._itemGroupLocation.x/this.zr.getWidth()<.5?"left":"right",n=this._itemGroupLocation.y/this.zr.getHeight()<.5?"top":"bottom"):i=this._itemGroupLocation.x/this.zr.getWidth()<.5?"right":"left",this._iconShapeMap={};for(var g=this,m=0;h>m;m++){switch(e={type:"icon",zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:l,y:d,width:c,height:c,iconType:this._iconList[m],lineWidth:1,strokeColor:this._featureColor[this._iconList[m]]||p[m%p.length],brushType:"stroke"},highlightStyle:{lineWidth:1,text:a.showTitle?this._featureTitle[this._iconList[m]]:void 0,textFont:f,textPosition:i,strokeColor:this._featureColor[this._iconList[m]]||p[m%p.length]},hoverable:!0,clickable:!0},this._featureIcon[this._iconList[m]]&&(e.style.image=this._featureIcon[this._iconList[m]].replace(new RegExp("^image:\\/\\/"),""),e.style.opacity=.8,e.highlightStyle.opacity=1,e.type="image"),"horizontal"===a.orient&&(0===m&&"left"===o&&(e.highlightStyle.textPosition="specific",e.highlightStyle.textAlign=o,e.highlightStyle.textBaseline=n,e.highlightStyle.textX=l,e.highlightStyle.textY="top"===n?d+c+10:d-10),m===h-1&&"right"===o&&(e.highlightStyle.textPosition="specific",e.highlightStyle.textAlign=o,e.highlightStyle.textBaseline=n,e.highlightStyle.textX=l+c,e.highlightStyle.textY="top"===n?d+c+10:d-10)),this._iconList[m]){case"mark":e.onclick=g._onMark;
break;case"markUndo":e.onclick=g._onMarkUndo;break;case"markClear":e.onclick=g._onMarkClear;break;case"dataZoom":e.onclick=g._onDataZoom;break;case"dataZoomReset":e.onclick=g._onDataZoomReset;break;case"dataView":if(!this._dataView){var _=t("./dataView");this._dataView=new _(this.ecTheme,this.messageCenter,this.zr,this.option,this.myChart)}e.onclick=g._onDataView;break;case"restore":e.onclick=g._onRestore;break;case"saveAsImage":e.onclick=g._onSaveAsImage;break;default:this._iconList[m].match("Chart")?(e._name=this._iconList[m].replace("Chart",""),e.onclick=g._onMagicType):e.onclick=g._onCustomHandler}"icon"===e.type?e=new s(e):"image"===e.type&&(e=new r(e)),this.shapeList.push(e),this._iconShapeMap[this._iconList[m]]=e,"horizontal"===a.orient?l+=c+u:d+=c+u}},_buildBackground:function(){var t=this.option.toolbox,e=this.reformCssArray(this.option.toolbox.padding);this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===t.borderWidth?"fill":"both",color:t.backgroundColor,strokeColor:t.borderColor,lineWidth:t.borderWidth}}))},_getItemGroupLocation:function(){var t=this.option.toolbox,e=this.reformCssArray(this.option.toolbox.padding),i=this._iconList.length,o=t.itemGap,r=t.itemSize,n=0,s=0;"horizontal"===t.orient?(n=(r+o)*i-o,s=r):(s=(r+o)*i-o,n=r);var a,h=this.zr.getWidth();switch(t.x){case"center":a=Math.floor((h-n)/2);break;case"left":a=e[3]+t.borderWidth;break;case"right":a=h-n-e[1]-t.borderWidth;break;default:a=t.x-0,a=isNaN(a)?0:a}var l,d=this.zr.getHeight();switch(t.y){case"top":l=e[0]+t.borderWidth;break;case"bottom":l=d-s-e[2]-t.borderWidth;break;case"center":l=Math.floor((d-s)/2);break;default:l=t.y-0,l=isNaN(l)?0:l}return{x:a,y:l,width:n,height:s}},__onmousemove:function(t){this._marking&&(this._markShape.style.xEnd=d.getX(t.event),this._markShape.style.yEnd=d.getY(t.event),this.zr.addHoverShape(this._markShape)),this._zooming&&(this._zoomShape.style.width=d.getX(t.event)-this._zoomShape.style.x,this._zoomShape.style.height=d.getY(t.event)-this._zoomShape.style.y,this.zr.addHoverShape(this._zoomShape),this.dom.style.cursor="crosshair",d.stop(t.event)),this._zoomStart&&"pointer"!=this.dom.style.cursor&&"move"!=this.dom.style.cursor&&(this.dom.style.cursor="crosshair")},__onmousedown:function(t){if(!t.target){this._zooming=!0;var e=d.getX(t.event),i=d.getY(t.event),o=this.option.dataZoom||{};return this._zoomShape=new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:e,y:i,width:1,height:1,brushType:"both"},highlightStyle:{lineWidth:2,color:o.fillerColor||a.dataZoom.fillerColor,strokeColor:o.handleColor||a.dataZoom.handleColor,brushType:"both"}}),this.zr.addHoverShape(this._zoomShape),!0}},__onmouseup:function(){if(!this._zoomShape||Math.abs(this._zoomShape.style.width)<10||Math.abs(this._zoomShape.style.height)<10)return this._zooming=!1,!0;if(this._zooming&&this.component.dataZoom){this._zooming=!1;var t=this.component.dataZoom.rectZoom(this._zoomShape.style);t&&(this._zoomQueue.push({start:t.start,end:t.end,start2:t.start2,end2:t.end2}),this._iconEnable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame())}return!0},__onclick:function(t){if(!t.target)if(this._marking)this._marking=!1,this._markShapeList.push(this._markShape),this._iconEnable(this._iconShapeMap.markUndo),this._iconEnable(this._iconShapeMap.markClear),this.zr.addShape(this._markShape),this.zr.refreshNextFrame();else if(this._markStart){this._marking=!0;var e=d.getX(t.event),i=d.getY(t.event);this._markShape=new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:e,yStart:i,xEnd:e,yEnd:i,lineWidth:this.query(this.option,"toolbox.feature.mark.lineStyle.width"),strokeColor:this.query(this.option,"toolbox.feature.mark.lineStyle.color"),lineType:this.query(this.option,"toolbox.feature.mark.lineStyle.type")}}),this.zr.addHoverShape(this._markShape)}},__onMark:function(t){var e=t.target;if(this._marking||this._markStart)this._resetMark(),this.zr.refreshNextFrame();else{this._resetZoom(),this.zr.modShape(e.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._markStart=!0;var i=this;setTimeout(function(){i.zr&&i.zr.on(l.EVENT.CLICK,i._onclick)&&i.zr.on(l.EVENT.MOUSEMOVE,i._onmousemove)},10)}return!0},__onMarkUndo:function(){if(this._marking)this._marking=!1;else{var t=this._markShapeList.length;if(t>=1){var e=this._markShapeList[t-1];this.zr.delShape(e.id),this.zr.refreshNextFrame(),this._markShapeList.pop(),1===t&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear))}}return!0},__onMarkClear:function(){this._marking&&(this._marking=!1);var t=this._markShapeList.length;if(t>0){for(;t--;)this.zr.delShape(this._markShapeList.pop().id);this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear),this.zr.refreshNextFrame()}return!0},__onDataZoom:function(t){var e=t.target;if(this._zooming||this._zoomStart)this._resetZoom(),this.zr.refreshNextFrame(),this.dom.style.cursor="default";else{this._resetMark(),this.zr.modShape(e.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._zoomStart=!0;var i=this;setTimeout(function(){i.zr&&i.zr.on(l.EVENT.MOUSEDOWN,i._onmousedown)&&i.zr.on(l.EVENT.MOUSEUP,i._onmouseup)&&i.zr.on(l.EVENT.MOUSEMOVE,i._onmousemove)},10),this.dom.style.cursor="crosshair"}return!0},__onDataZoomReset:function(){return this._zooming&&(this._zooming=!1),this._zoomQueue.pop(),this._zoomQueue.length>0?this.component.dataZoom.absoluteZoom(this._zoomQueue[this._zoomQueue.length-1]):(this.component.dataZoom.rectZoom(),this._iconDisable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame()),!0},_resetMark:function(){this._marking=!1,this._markStart&&(this._markStart=!1,this._iconShapeMap.mark&&this.zr.modShape(this._iconShapeMap.mark.id,{style:{strokeColor:this._iconShapeMap.mark.highlightStyle.strokeColor}}),this.zr.un(l.EVENT.CLICK,this._onclick),this.zr.un(l.EVENT.MOUSEMOVE,this._onmousemove))},_resetZoom:function(){this._zooming=!1,this._zoomStart&&(this._zoomStart=!1,this._iconShapeMap.dataZoom&&this.zr.modShape(this._iconShapeMap.dataZoom.id,{style:{strokeColor:this._iconShapeMap.dataZoom.highlightStyle.strokeColor}}),this.zr.un(l.EVENT.MOUSEDOWN,this._onmousedown),this.zr.un(l.EVENT.MOUSEUP,this._onmouseup),this.zr.un(l.EVENT.MOUSEMOVE,this._onmousemove))},_iconDisable:function(t){"image"!=t.type?this.zr.modShape(t.id,{hoverable:!1,clickable:!1,style:{strokeColor:this._disableColor}}):this.zr.modShape(t.id,{hoverable:!1,clickable:!1,style:{opacity:.3}})},_iconEnable:function(t){"image"!=t.type?this.zr.modShape(t.id,{hoverable:!0,clickable:!0,style:{strokeColor:t.highlightStyle.strokeColor}}):this.zr.modShape(t.id,{hoverable:!0,clickable:!0,style:{opacity:.8}})},__onDataView:function(){return this._dataView.show(this.option),!0},__onRestore:function(){return this._resetMark(),this._resetZoom(),this.messageCenter.dispatch(a.EVENT.RESTORE,null,null,this.myChart),!0},__onSaveAsImage:function(){var t=this.option.toolbox.feature.saveAsImage,e=t.type||"png";"png"!=e&&"jpeg"!=e&&(e="png");var i;i=this.myChart.isConnected()?this.myChart.getConnectedDataURL(e):this.zr.toDataURL("image/"+e,this.option.backgroundColor&&"rgba(0,0,0,0)"===this.option.backgroundColor.replace(" ","")?"#fff":this.option.backgroundColor);var o=document.createElement("div");o.id="__echarts_download_wrap__",o.style.cssText="position:fixed;z-index:99999;display:block;top:0;left:0;background-color:rgba(33,33,33,0.5);text-align:center;width:100%;height:100%;line-height:"+document.documentElement.clientHeight+"px;";var r=document.createElement("a");r.href=i,r.setAttribute("download",(t.name?t.name:this.option.title&&(this.option.title.text||this.option.title.subtext)?this.option.title.text||this.option.title.subtext:"ECharts")+"."+e),r.innerHTML='<img style="vertical-align:middle" src="'+i+'" title="'+(window.ActiveXObject||"ActiveXObject"in window?"右键->图片另存为":t.lang?t.lang[0]:"点击保存")+'"/>',o.appendChild(r),document.body.appendChild(o),r=null,o=null,setTimeout(function(){var t=document.getElementById("__echarts_download_wrap__");t&&(t.onclick=function(){var t=document.getElementById("__echarts_download_wrap__");t.onclick=null,t.innerHTML="",document.body.removeChild(t),t=null},t=null)},500)},__onMagicType:function(t){this._resetMark();var e=t.target._name;return this._magicType[e]||(this._magicType[e]=!0,e===a.CHART_TYPE_LINE?this._magicType[a.CHART_TYPE_BAR]=!1:e===a.CHART_TYPE_BAR&&(this._magicType[a.CHART_TYPE_LINE]=!1),e===a.CHART_TYPE_PIE?this._magicType[a.CHART_TYPE_FUNNEL]=!1:e===a.CHART_TYPE_FUNNEL&&(this._magicType[a.CHART_TYPE_PIE]=!1),e===a.CHART_TYPE_FORCE?this._magicType[a.CHART_TYPE_CHORD]=!1:e===a.CHART_TYPE_CHORD&&(this._magicType[a.CHART_TYPE_FORCE]=!1),e===c?this._magicType[u]=!1:e===u&&(this._magicType[c]=!1),this.messageCenter.dispatch(a.EVENT.MAGIC_TYPE_CHANGED,t.event,{magicType:this._magicType},this.myChart)),!0},setMagicType:function(t){this._resetMark(),this._magicType=t,!this._isSilence&&this.messageCenter.dispatch(a.EVENT.MAGIC_TYPE_CHANGED,null,{magicType:this._magicType},this.myChart)},__onCustomHandler:function(t){var e=t.target.style.iconType,i=this.option.toolbox.feature[e].onclick;"function"==typeof i&&i.call(this,this.option)},reset:function(t,e){if(e&&this.clear(),this.query(t,"toolbox.show")&&this.query(t,"toolbox.feature.magicType.show")){var i=t.toolbox.feature.magicType.type,o=i.length;for(this._magicMap={};o--;)this._magicMap[i[o]]=!0;o=t.series.length;for(var r,n;o--;)r=t.series[o].type,this._magicMap[r]&&(n=t.xAxis instanceof Array?t.xAxis[t.series[o].xAxisIndex||0]:t.xAxis,n&&"category"===(n.type||"category")&&(n.__boundaryGap=null!=n.boundaryGap?n.boundaryGap:!0),n=t.yAxis instanceof Array?t.yAxis[t.series[o].yAxisIndex||0]:t.yAxis,n&&"category"===n.type&&(n.__boundaryGap=null!=n.boundaryGap?n.boundaryGap:!0),t.series[o].__type=r,t.series[o].__itemStyle=h.clone(t.series[o].itemStyle||{})),(this._magicMap[c]||this._magicMap[u])&&(t.series[o].__stack=t.series[o].stack)}this._magicType=e?{}:this._magicType||{};for(var s in this._magicType)if(this._magicType[s]){this.option=t,this.getMagicOption();break}var a=t.dataZoom;if(a&&a.show){var l=null!=a.start&&a.start>=0&&a.start<=100?a.start:0,d=null!=a.end&&a.end>=0&&a.end<=100?a.end:100;l>d&&(l+=d,d=l-d,l-=d),this._zoomQueue=[{start:l,end:d,start2:0,end2:100}]}else this._zoomQueue=[]},getMagicOption:function(){var t,e;if(this._magicType[a.CHART_TYPE_LINE]||this._magicType[a.CHART_TYPE_BAR]){for(var i=this._magicType[a.CHART_TYPE_LINE]?!1:!0,o=0,r=this.option.series.length;r>o;o++)e=this.option.series[o].type,(e==a.CHART_TYPE_LINE||e==a.CHART_TYPE_BAR)&&(t=this.option.xAxis instanceof Array?this.option.xAxis[this.option.series[o].xAxisIndex||0]:this.option.xAxis,t&&"category"===(t.type||"category")&&(t.boundaryGap=i?!0:t.__boundaryGap),t=this.option.yAxis instanceof Array?this.option.yAxis[this.option.series[o].yAxisIndex||0]:this.option.yAxis,t&&"category"===t.type&&(t.boundaryGap=i?!0:t.__boundaryGap));this._defaultMagic(a.CHART_TYPE_LINE,a.CHART_TYPE_BAR)}if(this._defaultMagic(a.CHART_TYPE_CHORD,a.CHART_TYPE_FORCE),this._defaultMagic(a.CHART_TYPE_PIE,a.CHART_TYPE_FUNNEL),this._magicType[c]||this._magicType[u])for(var o=0,r=this.option.series.length;r>o;o++)this._magicType[c]?(this.option.series[o].stack="_ECHARTS_STACK_KENER_2014_",e=c):this._magicType[u]&&(this.option.series[o].stack=null,e=u),this._featureOption[e+"Chart"]&&h.merge(this.option.series[o],this._featureOption[e+"Chart"]||{},!0);return this.option},_defaultMagic:function(t,e){if(this._magicType[t]||this._magicType[e])for(var i=0,o=this.option.series.length;o>i;i++){var r=this.option.series[i].type;(r==t||r==e)&&(this.option.series[i].type=this._magicType[t]?t:e,this.option.series[i].itemStyle=h.clone(this.option.series[i].__itemStyle),r=this.option.series[i].type,this._featureOption[r+"Chart"]&&h.merge(this.option.series[i],this._featureOption[r+"Chart"]||{},!0))}},silence:function(t){this._isSilence=t},resize:function(){this._resetMark(),this.clear(),this.option&&this.option.toolbox&&this.option.toolbox.show&&this._buildShape(),this._dataView&&this._dataView.resize()},hideDataView:function(){this._dataView&&this._dataView.hide()},clear:function(t){this.zr&&(this.zr.delShape(this.shapeList),this.shapeList=[],t||(this.zr.delShape(this._markShapeList),this._markShapeList=[]))},onbeforDispose:function(){this._dataView&&(this._dataView.dispose(),this._dataView=null),this._markShapeList=null},refresh:function(t){t&&(this._resetMark(),this._resetZoom(),t.toolbox=this.reformOption(t.toolbox),this.option=t,this.clear(!0),t.toolbox.show&&this._buildShape(),this.hideDataView())}},h.inherits(e,i),t("../component").define("toolbox",e),e}),define("echarts/component/legend",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","zrender/shape/Sector","../util/shape/Icon","../util/shape/Candle","../config","zrender/tool/util","zrender/tool/area","../component"],function(t){function e(t,e,o,r,n){if(!this.query(r,"legend.data"))return void console.error("option.legend.data has not been defined.");i.call(this,t,e,o,r,n);var s=this;s._legendSelected=function(t){s.__legendSelected(t)},s._dispatchHoverLink=function(t){return s.__dispatchHoverLink(t)},this._colorIndex=0,this._colorMap={},this._selectedMap={},this._hasDataMap={},this.refresh(r)}var i=t("./base"),o=t("zrender/shape/Text"),r=t("zrender/shape/Rectangle"),n=t("zrender/shape/Sector"),s=t("../util/shape/Icon"),a=t("../util/shape/Candle"),h=t("../config");h.legend={zlevel:0,z:4,show:!0,orient:"horizontal",x:"center",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0};var l=t("zrender/tool/util"),d=t("zrender/tool/area");e.prototype={type:h.COMPONENT_TYPE_LEGEND,_buildShape:function(){if(this.legendOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var t=0,e=this.shapeList.length;e>t;t++)this.zr.addShape(this.shapeList[t])}},_buildItem:function(){var t,e,i,r,n,a,h,c,u=this.legendOption.data,p=u.length,f=this.legendOption.textStyle,g=this.zr.getWidth(),m=this.zr.getHeight(),_=this._itemGroupLocation.x,y=this._itemGroupLocation.y,v=this.legendOption.itemWidth,x=this.legendOption.itemHeight,b=this.legendOption.itemGap;"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(_=this._itemGroupLocation.x+this._itemGroupLocation.width-v);for(var T=0;p>T;T++)n=l.merge(u[T].textStyle||{},f),a=this.getFont(n),t=this._getName(u[T]),h=this._getFormatterName(t),""!==t?(e=u[T].icon||this._getSomethingByName(t).type,c=this.getColor(t),"horizontal"===this.legendOption.orient?200>g-_&&v+5+d.getTextWidth(h,a)+(T===p-1||""===u[T+1]?0:b)>=g-_&&(_=this._itemGroupLocation.x,y+=x+b):200>m-y&&x+(T===p-1||""===u[T+1]?0:b)>=m-y&&("right"===this.legendOption.x?_-=this._itemGroupLocation.maxWidth+b:_+=this._itemGroupLocation.maxWidth+b,y=this._itemGroupLocation.y),i=this._getItemShapeByType(_,y,v,x,this._selectedMap[t]&&this._hasDataMap[t]?c:"#ccc",e,c),i._name=t,i=new s(i),r={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:_+v+5,y:y+x/2,color:this._selectedMap[t]?"auto"===n.color?c:n.color:"#ccc",text:h,textFont:a,textBaseline:"middle"},highlightStyle:{color:c,brushType:"fill"},hoverable:!!this.legendOption.selectedMode,clickable:!!this.legendOption.selectedMode},"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(r.style.x-=v+10,r.style.textAlign="right"),r._name=t,r=new o(r),this.legendOption.selectedMode&&(i.onclick=r.onclick=this._legendSelected,i.onmouseover=r.onmouseover=this._dispatchHoverLink,i.hoverConnect=r.id,r.hoverConnect=i.id),this.shapeList.push(i),this.shapeList.push(r),"horizontal"===this.legendOption.orient?_+=v+5+d.getTextWidth(h,a)+b:y+=x+b):"horizontal"===this.legendOption.orient?(_=this._itemGroupLocation.x,y+=x+b):("right"===this.legendOption.x?_-=this._itemGroupLocation.maxWidth+b:_+=this._itemGroupLocation.maxWidth+b,y=this._itemGroupLocation.y);"horizontal"===this.legendOption.orient&&"center"===this.legendOption.x&&y!=this._itemGroupLocation.y&&this._mLineOptimize()},_getName:function(t){return"undefined"!=typeof t.name?t.name:t},_getFormatterName:function(t){var e,i=this.legendOption.formatter;return e="function"==typeof i?i.call(this.myChart,t):"string"==typeof i?i.replace("{name}",t):t},_getFormatterNameFromData:function(t){var e=this._getName(t);return this._getFormatterName(e)},_mLineOptimize:function(){for(var t=[],e=this._itemGroupLocation.x,i=2,o=this.shapeList.length;o>i;i++)this.shapeList[i].style.x===e?t.push((this._itemGroupLocation.width-(this.shapeList[i-1].style.x+d.getTextWidth(this.shapeList[i-1].style.text,this.shapeList[i-1].style.textFont)-e))/2):i===o-1&&t.push((this._itemGroupLocation.width-(this.shapeList[i].style.x+d.getTextWidth(this.shapeList[i].style.text,this.shapeList[i].style.textFont)-e))/2);for(var r=-1,i=1,o=this.shapeList.length;o>i;i++)this.shapeList[i].style.x===e&&r++,0!==t[r]&&(this.shapeList[i].style.x+=t[r])},_buildBackground:function(){var t=this.reformCssArray(this.legendOption.padding);this.shapeList.push(new r({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-t[3],y:this._itemGroupLocation.y-t[0],width:this._itemGroupLocation.width+t[3]+t[1],height:this._itemGroupLocation.height+t[0]+t[2],brushType:0===this.legendOption.borderWidth?"fill":"both",color:this.legendOption.backgroundColor,strokeColor:this.legendOption.borderColor,lineWidth:this.legendOption.borderWidth}}))},_getItemGroupLocation:function(){var t=this.legendOption.data,e=t.length,i=this.legendOption.itemGap,o=this.legendOption.itemWidth+5,r=this.legendOption.itemHeight,n=this.legendOption.textStyle,s=this.getFont(n),a=0,h=0,c=this.reformCssArray(this.legendOption.padding),u=this.zr.getWidth()-c[1]-c[3],p=this.zr.getHeight()-c[0]-c[2],f=0,g=0;if("horizontal"===this.legendOption.orient){h=r;for(var m=0;e>m;m++)if(""!==this._getName(t[m])){var _=d.getTextWidth(this._getFormatterNameFromData(t[m]),t[m].textStyle?this.getFont(l.merge(t[m].textStyle||{},n)):s);f+o+_+i>u?(f-=i,a=Math.max(a,f),h+=r+i,f=0):(f+=o+_+i,a=Math.max(a,f-i))}else f-=i,a=Math.max(a,f),h+=r+i,f=0}else{for(var m=0;e>m;m++)g=Math.max(g,d.getTextWidth(this._getFormatterNameFromData(t[m]),t[m].textStyle?this.getFont(l.merge(t[m].textStyle||{},n)):s));g+=o,a=g;for(var m=0;e>m;m++)""!==this._getName(t[m])?f+r+i>p?(a+=g+i,f-=i,h=Math.max(h,f),f=0):(f+=r+i,h=Math.max(h,f-i)):(a+=g+i,f-=i,h=Math.max(h,f),f=0)}u=this.zr.getWidth(),p=this.zr.getHeight();var y;switch(this.legendOption.x){case"center":y=Math.floor((u-a)/2);break;case"left":y=c[3]+this.legendOption.borderWidth;break;case"right":y=u-a-c[1]-c[3]-2*this.legendOption.borderWidth;break;default:y=this.parsePercent(this.legendOption.x,u)}var v;switch(this.legendOption.y){case"top":v=c[0]+this.legendOption.borderWidth;break;case"bottom":v=p-h-c[0]-c[2]-2*this.legendOption.borderWidth;break;case"center":v=Math.floor((p-h)/2);break;default:v=this.parsePercent(this.legendOption.y,p)}return{x:y,y:v,width:a,height:h,maxWidth:g}},_getSomethingByName:function(t){for(var e,i=this.option.series,o=0,r=i.length;r>o;o++){if(i[o].name===t)return{type:i[o].type,series:i[o],seriesIndex:o,data:null,dataIndex:-1};if(i[o].type===h.CHART_TYPE_PIE||i[o].type===h.CHART_TYPE_RADAR||i[o].type===h.CHART_TYPE_CHORD||i[o].type===h.CHART_TYPE_FORCE||i[o].type===h.CHART_TYPE_FUNNEL||i[o].type===h.CHART_TYPE_TREEMAP){e=i[o].categories||i[o].data||i[o].nodes;for(var n=0,s=e.length;s>n;n++)if(e[n].name===t)return{type:i[o].type,series:i[o],seriesIndex:o,data:e[n],dataIndex:n}}}return{type:"bar",series:null,seriesIndex:-1,data:null,dataIndex:-1}},_getItemShapeByType:function(t,e,i,o,r,n,s){var a,l="#ccc"===r?s:r,d={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{iconType:"legendicon"+n,x:t,y:e,width:i,height:o,color:r,strokeColor:r,lineWidth:2},highlightStyle:{color:l,strokeColor:l,lineWidth:1},hoverable:this.legendOption.selectedMode,clickable:this.legendOption.selectedMode};if(n.match("image")){var a=n.replace(new RegExp("^image:\\/\\/"),"");n="image"}switch(n){case"line":d.style.brushType="stroke",d.highlightStyle.lineWidth=3;break;case"radar":case"venn":case"tree":case"treemap":case"scatter":d.highlightStyle.lineWidth=3;break;case"k":d.style.brushType="both",d.highlightStyle.lineWidth=3,d.highlightStyle.color=d.style.color=this.deepQuery([this.ecTheme,h],"k.itemStyle.normal.color")||"#fff",d.style.strokeColor="#ccc"!=r?this.deepQuery([this.ecTheme,h],"k.itemStyle.normal.lineStyle.color")||"#ff3200":r;break;case"image":d.style.iconType="image",d.style.image=a,"#ccc"===r&&(d.style.opacity=.5)}return d},__legendSelected:function(t){var e=t.target._name;if("single"===this.legendOption.selectedMode)for(var i in this._selectedMap)this._selectedMap[i]=!1;this._selectedMap[e]=!this._selectedMap[e],this.messageCenter.dispatch(h.EVENT.LEGEND_SELECTED,t.event,{selected:this._selectedMap,target:e},this.myChart)},__dispatchHoverLink:function(t){this.messageCenter.dispatch(h.EVENT.LEGEND_HOVERLINK,t.event,{target:t.target._name},this.myChart)},refresh:function(t){if(t){this.option=t||this.option,this.option.legend=this.reformOption(this.option.legend),this.legendOption=this.option.legend;var e,i,o,r,n=this.legendOption.data||[];if(this.legendOption.selected)for(var s in this.legendOption.selected)this._selectedMap[s]="undefined"!=typeof this._selectedMap[s]?this._selectedMap[s]:this.legendOption.selected[s];for(var a=0,l=n.length;l>a;a++)e=this._getName(n[a]),""!==e&&(i=this._getSomethingByName(e),i.series?(this._hasDataMap[e]=!0,r=!i.data||i.type!==h.CHART_TYPE_PIE&&i.type!==h.CHART_TYPE_FORCE&&i.type!==h.CHART_TYPE_FUNNEL?[i.series]:[i.data,i.series],o=this.getItemStyleColor(this.deepQuery(r,"itemStyle.normal.color"),i.seriesIndex,i.dataIndex,i.data),o&&i.type!=h.CHART_TYPE_K&&this.setColor(e,o),this._selectedMap[e]=null!=this._selectedMap[e]?this._selectedMap[e]:!0):this._hasDataMap[e]=!1)}this.clear(),this._buildShape()},getRelatedAmount:function(t){for(var e,i=0,o=this.option.series,r=0,n=o.length;n>r;r++)if(o[r].name===t&&i++,o[r].type===h.CHART_TYPE_PIE||o[r].type===h.CHART_TYPE_RADAR||o[r].type===h.CHART_TYPE_CHORD||o[r].type===h.CHART_TYPE_FORCE||o[r].type===h.CHART_TYPE_FUNNEL){e=o[r].type!=h.CHART_TYPE_FORCE?o[r].data:o[r].categories;for(var s=0,a=e.length;a>s;s++)e[s].name===t&&"-"!=e[s].value&&i++}return i},setColor:function(t,e){this._colorMap[t]=e},getColor:function(t){return this._colorMap[t]||(this._colorMap[t]=this.zr.getColor(this._colorIndex++)),this._colorMap[t]},hasColor:function(t){return this._colorMap[t]?this._colorMap[t]:!1},add:function(t,e){for(var i=this.legendOption.data,o=0,r=i.length;r>o;o++)if(this._getName(i[o])===t)return;this.legendOption.data.push(t),this.setColor(t,e),this._selectedMap[t]=!0,this._hasDataMap[t]=!0},del:function(t){for(var e=this.legendOption.data,i=0,o=e.length;o>i;i++)if(this._getName(e[i])===t)return this.legendOption.data.splice(i,1)},getItemShape:function(t){if(null!=t)for(var e,i=0,o=this.shapeList.length;o>i;i++)if(e=this.shapeList[i],e._name===t&&"text"!=e.type)return e},setItemShape:function(t,e){for(var i,o=0,r=this.shapeList.length;r>o;o++)i=this.shapeList[o],i._name===t&&"text"!=i.type&&(this._selectedMap[t]||(e.style.color="#ccc",e.style.strokeColor="#ccc"),this.zr.modShape(i.id,e))},isSelected:function(t){return"undefined"!=typeof this._selectedMap[t]?this._selectedMap[t]:!0},getSelectedMap:function(){return this._selectedMap},setSelected:function(t,e){if("single"===this.legendOption.selectedMode)for(var i in this._selectedMap)this._selectedMap[i]=!1;this._selectedMap[t]=e,this.messageCenter.dispatch(h.EVENT.LEGEND_SELECTED,null,{selected:this._selectedMap,target:t},this.myChart)},onlegendSelected:function(t,e){var i=t.selected;for(var o in i)this._selectedMap[o]!=i[o]&&(e.needRefresh=!0),this._selectedMap[o]=i[o]}};var c={line:function(t,e){var i=e.height/2;t.moveTo(e.x,e.y+i),t.lineTo(e.x+e.width,e.y+i)},pie:function(t,e){var i=e.x,o=e.y,r=e.width,s=e.height;n.prototype.buildPath(t,{x:i+r/2,y:o+s+2,r:s,r0:6,startAngle:45,endAngle:135})},eventRiver:function(t,e){var i=e.x,o=e.y,r=e.width,n=e.height;t.moveTo(i,o+n),t.bezierCurveTo(i+r,o+n,i,o+4,i+r,o+4),t.lineTo(i+r,o),t.bezierCurveTo(i,o,i+r,o+n-4,i,o+n-4),t.lineTo(i,o+n)},k:function(t,e){var i=e.x,o=e.y,r=e.width,n=e.height;a.prototype.buildPath(t,{x:i+r/2,y:[o+1,o+1,o+n-6,o+n],width:r-6})},bar:function(t,e){var i=e.x,o=e.y+1,r=e.width,n=e.height-2,s=3;t.moveTo(i+s,o),t.lineTo(i+r-s,o),t.quadraticCurveTo(i+r,o,i+r,o+s),t.lineTo(i+r,o+n-s),t.quadraticCurveTo(i+r,o+n,i+r-s,o+n),t.lineTo(i+s,o+n),t.quadraticCurveTo(i,o+n,i,o+n-s),t.lineTo(i,o+s),t.quadraticCurveTo(i,o,i+s,o)},force:function(t,e){s.prototype.iconLibrary.circle(t,e)},radar:function(t,e){var i=6,o=e.x+e.width/2,r=e.y+e.height/2,n=e.height/2,s=2*Math.PI/i,a=-Math.PI/2,h=o+n*Math.cos(a),l=r+n*Math.sin(a);t.moveTo(h,l),a+=s;for(var d=0,c=i-1;c>d;d++)t.lineTo(o+n*Math.cos(a),r+n*Math.sin(a)),a+=s;t.lineTo(h,l)}};c.chord=c.pie,c.map=c.bar;for(var u in c)s.prototype.iconLibrary["legendicon"+u]=c[u];return l.inherits(e,i),t("../component").define("legend",e),e}),define("zrender/loadingEffect/Bubble",["require","./Base","../tool/util","../tool/color","../shape/Circle"],function(t){function e(t){i.call(this,t)}var i=t("./Base"),o=t("../tool/util"),r=t("../tool/color"),n=t("../shape/Circle");return o.inherits(e,i),e.prototype._start=function(t,e){for(var i=o.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{n:50,lineWidth:2,brushType:"stroke",color:"random",timeInterval:100}}),s=this.createTextShape(i.textStyle),a=this.createBackgroundShape(i.backgroundColor),h=i.effect,l=h.n,d=h.brushType,c=h.lineWidth,u=[],p=this.canvasWidth,f=this.canvasHeight,g=0;l>g;g++){var m="random"==h.color?r.alpha(r.random(),.3):h.color;u[g]=new n({highlightStyle:{x:Math.ceil(Math.random()*p),y:Math.ceil(Math.random()*f),r:Math.ceil(40*Math.random()),brushType:d,color:m,strokeColor:m,lineWidth:c},animationY:Math.ceil(20*Math.random())})}return setInterval(function(){t(a);for(var i=0;l>i;i++){var o=u[i].highlightStyle;o.y-u[i].animationY+o.r<=0&&(u[i].highlightStyle.y=f+o.r,u[i].highlightStyle.x=Math.ceil(Math.random()*p)),u[i].highlightStyle.y-=u[i].animationY,t(u[i])}t(s),e()},h.timeInterval)},e}),define("echarts/component/timeline",["require","./base","zrender/shape/Rectangle","../util/shape/Icon","../util/shape/Chain","../config","zrender/tool/util","zrender/tool/area","zrender/tool/event","../component"],function(t){function e(t,e,i,r,n){o.call(this,t,e,i,r,n);var s=this;if(s._onclick=function(t){return s.__onclick(t)},s._ondrift=function(t,e){return s.__ondrift(this,t,e)},s._ondragend=function(){return s.__ondragend()},s._setCurrentOption=function(){var t=s.timelineOption;s.currentIndex%=t.data.length;var e=s.options[s.currentIndex]||{};s.myChart._setOption(e,t.notMerge,!0),s.messageCenter.dispatch(a.EVENT.TIMELINE_CHANGED,null,{currentIndex:s.currentIndex,data:null!=t.data[s.currentIndex].name?t.data[s.currentIndex].name:t.data[s.currentIndex]},s.myChart)},s._onFrame=function(){s._setCurrentOption(),s._syncHandleShape(),s.timelineOption.autoPlay&&(s.playTicket=setTimeout(function(){return s.currentIndex+=1,!s.timelineOption.loop&&s.currentIndex>=s.timelineOption.data.length?(s.currentIndex=s.timelineOption.data.length-1,void s.stop()):void s._onFrame()},s.timelineOption.playInterval))},this.setTheme(!1),this.options=this.option.options,this.currentIndex=this.timelineOption.currentIndex%this.timelineOption.data.length,this.timelineOption.notMerge||0===this.currentIndex||(this.options[this.currentIndex]=h.merge(this.options[this.currentIndex],this.options[0])),this.timelineOption.show&&(this._buildShape(),this._syncHandleShape()),this._setCurrentOption(),this.timelineOption.autoPlay){var s=this;this.playTicket=setTimeout(function(){s.play()},null!=this.ecTheme.animationDuration?this.ecTheme.animationDuration:a.animationDuration)}}function i(t,e){var i=2,o=e.x+i,r=e.y+i+2,s=e.width-i,a=e.height-i,h=e.symbol;if("last"===h)t.moveTo(o+s-2,r+a/3),t.lineTo(o+s-2,r),t.lineTo(o+2,r+a/2),t.lineTo(o+s-2,r+a),t.lineTo(o+s-2,r+a/3*2),t.moveTo(o,r),t.lineTo(o,r);else if("next"===h)t.moveTo(o+2,r+a/3),t.lineTo(o+2,r),t.lineTo(o+s-2,r+a/2),t.lineTo(o+2,r+a),t.lineTo(o+2,r+a/3*2),t.moveTo(o,r),t.lineTo(o,r);else if("play"===h)if("stop"===e.status)t.moveTo(o+2,r),t.lineTo(o+s-2,r+a/2),t.lineTo(o+2,r+a),t.lineTo(o+2,r);else{var l="both"===e.brushType?2:3;t.rect(o+2,r,l,a),t.rect(o+s-l-2,r,l,a)}else if(h.match("image")){var d="";d=h.replace(new RegExp("^image:\\/\\/"),""),h=n.prototype.iconLibrary.image,h(t,{x:o,y:r,width:s,height:a,image:d})}}var o=t("./base"),r=t("zrender/shape/Rectangle"),n=t("../util/shape/Icon"),s=t("../util/shape/Chain"),a=t("../config");a.timeline={zlevel:0,z:4,show:!0,type:"time",notMerge:!1,realtime:!0,x:80,x2:80,y2:0,height:50,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,controlPosition:"left",autoPlay:!1,loop:!0,playInterval:2e3,lineStyle:{width:1,color:"#666",type:"dashed"},label:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#333"}},checkpointStyle:{symbol:"auto",symbolSize:"auto",color:"auto",borderColor:"auto",borderWidth:"auto",label:{show:!1,textStyle:{color:"auto"}}},controlStyle:{itemSize:15,itemGap:5,normal:{color:"#333"},emphasis:{color:"#1e90ff"}},symbol:"emptyDiamond",symbolSize:4,currentIndex:0};var h=t("zrender/tool/util"),l=t("zrender/tool/area"),d=t("zrender/tool/event");return e.prototype={type:a.COMPONENT_TYPE_TIMELINE,_buildShape:function(){if(this._location=this._getLocation(),this._buildBackground(),this._buildControl(),this._chainPoint=this._getChainPoint(),this.timelineOption.label.show)for(var t=this._getInterval(),e=0,i=this._chainPoint.length;i>e;e+=t)this._chainPoint[e].showLabel=!0;this._buildChain(),this._buildHandle();for(var e=0,o=this.shapeList.length;o>e;e++)this.zr.addShape(this.shapeList[e])},_getLocation:function(){var t,e=this.timelineOption,i=this.reformCssArray(this.timelineOption.padding),o=this.zr.getWidth(),r=this.parsePercent(e.x,o),n=this.parsePercent(e.x2,o);null==e.width?(t=o-r-n,n=o-n):(t=this.parsePercent(e.width,o),n=r+t);var s,a,h=this.zr.getHeight(),l=this.parsePercent(e.height,h);return null!=e.y?(s=this.parsePercent(e.y,h),a=s+l):(a=h-this.parsePercent(e.y2,h),s=a-l),{x:r+i[3],y:s+i[0],x2:n-i[1],y2:a-i[2],width:t-i[1]-i[3],height:l-i[0]-i[2]}},_getReformedLabel:function(t){var e=this.timelineOption,i=null!=e.data[t].name?e.data[t].name:e.data[t],o=e.data[t].formatter||e.label.formatter;return o&&("function"==typeof o?i=o.call(this.myChart,i):"string"==typeof o&&(i=o.replace("{value}",i))),i},_getInterval:function(){var t=this._chainPoint,e=this.timelineOption,i=e.label.interval;if("auto"===i){var o=e.label.textStyle.fontSize,r=e.data,n=e.data.length;if(n>3){var s,a,h=!1;for(i=0;!h&&n>i;){i++,h=!0;for(var d=i;n>d;d+=i){if(s=t[d].x-t[d-i].x,0!==e.label.rotate)a=o;else if(r[d].textStyle)a=l.getTextWidth(t[d].name,t[d].textFont);else{var c=t[d].name+"",u=(c.match(/\w/g)||"").length,p=c.length-u;a=u*o*2/3+p*o}if(a>s){h=!1;break}}}}else i=1}else i=i-0+1;return i},_getChainPoint:function(){function t(t){return null!=l[t].name?l[t].name:l[t]+""}var e,i=this.timelineOption,o=i.symbol.toLowerCase(),r=i.symbolSize,n=i.label.rotate,s=i.label.textStyle,a=this.getFont(s),l=i.data,d=this._location.x,c=this._location.y+this._location.height/4*3,u=this._location.x2-this._location.x,p=l.length,f=[];if(p>1){var g=u/p;if(g=g>50?50:20>g?5:g,u-=2*g,"number"===i.type)for(var m=0;p>m;m++)f.push(d+g+u/(p-1)*m);else{f[0]=new Date(t(0).replace(/-/g,"/")),f[p-1]=new Date(t(p-1).replace(/-/g,"/"))-f[0];
for(var m=1;p>m;m++)f[m]=d+g+u*(new Date(t(m).replace(/-/g,"/"))-f[0])/f[p-1];f[0]=d+g}}else f.push(d+u/2);for(var _,y,v,x,b,T=[],m=0;p>m;m++)d=f[m],_=l[m].symbol&&l[m].symbol.toLowerCase()||o,_.match("empty")?(_=_.replace("empty",""),v=!0):v=!1,_.match("star")&&(y=_.replace("star","")-0||5,_="star"),e=l[m].textStyle?h.merge(l[m].textStyle||{},s):s,x=e.align||"center",n?(x=n>0?"right":"left",b=[n*Math.PI/180,d,c-5]):b=!1,T.push({x:d,n:y,isEmpty:v,symbol:_,symbolSize:l[m].symbolSize||r,color:l[m].color,borderColor:l[m].borderColor,borderWidth:l[m].borderWidth,name:this._getReformedLabel(m),textColor:e.color,textAlign:x,textBaseline:e.baseline||"middle",textX:d,textY:c-(n?5:0),textFont:l[m].textStyle?this.getFont(e):a,rotation:b,showLabel:!1});return T},_buildBackground:function(){var t=this.timelineOption,e=this.reformCssArray(this.timelineOption.padding),i=this._location.width,o=this._location.height;(0!==t.borderWidth||"rgba(0,0,0,0)"!=t.backgroundColor.replace(/\s/g,""))&&this.shapeList.push(new r({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x-e[3],y:this._location.y-e[0],width:i+e[1]+e[3],height:o+e[0]+e[2],brushType:0===t.borderWidth?"fill":"both",color:t.backgroundColor,strokeColor:t.borderColor,lineWidth:t.borderWidth}}))},_buildControl:function(){var t=this,e=this.timelineOption,i=e.lineStyle,o=e.controlStyle;if("none"!==e.controlPosition){var r,s=o.itemSize,a=o.itemGap;"left"===e.controlPosition?(r=this._location.x,this._location.x+=3*(s+a)):(r=this._location.x2-(3*(s+a)-a),this._location.x2-=3*(s+a));var l=this._location.y,d={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{iconType:"timelineControl",symbol:"last",x:r,y:l,width:s,height:s,brushType:"stroke",color:o.normal.color,strokeColor:o.normal.color,lineWidth:i.width},highlightStyle:{color:o.emphasis.color,strokeColor:o.emphasis.color,lineWidth:i.width+1},clickable:!0};this._ctrLastShape=new n(d),this._ctrLastShape.onclick=function(){t.last()},this.shapeList.push(this._ctrLastShape),r+=s+a,this._ctrPlayShape=new n(h.clone(d)),this._ctrPlayShape.style.brushType="fill",this._ctrPlayShape.style.symbol="play",this._ctrPlayShape.style.status=this.timelineOption.autoPlay?"playing":"stop",this._ctrPlayShape.style.x=r,this._ctrPlayShape.onclick=function(){"stop"===t._ctrPlayShape.style.status?t.play():t.stop()},this.shapeList.push(this._ctrPlayShape),r+=s+a,this._ctrNextShape=new n(h.clone(d)),this._ctrNextShape.style.symbol="next",this._ctrNextShape.style.x=r,this._ctrNextShape.onclick=function(){t.next()},this.shapeList.push(this._ctrNextShape)}},_buildChain:function(){var t=this.timelineOption,e=t.lineStyle;this._timelineShae={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:this._location.x,y:this.subPixelOptimize(this._location.y,e.width),width:this._location.x2-this._location.x,height:this._location.height,chainPoint:this._chainPoint,brushType:"both",strokeColor:e.color,lineWidth:e.width,lineType:e.type},hoverable:!1,clickable:!0,onclick:this._onclick},this._timelineShae=new s(this._timelineShae),this.shapeList.push(this._timelineShae)},_buildHandle:function(){var t=this._chainPoint[this.currentIndex],e=t.symbolSize+1;e=5>e?5:e,this._handleShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,hoverable:!1,draggable:!0,style:{iconType:"diamond",n:t.n,x:t.x-e,y:this._location.y+this._location.height/4-e,width:2*e,height:2*e,brushType:"both",textPosition:"specific",textX:t.x,textY:this._location.y-this._location.height/4,textAlign:"center",textBaseline:"middle"},highlightStyle:{},ondrift:this._ondrift,ondragend:this._ondragend},this._handleShape=new n(this._handleShape),this.shapeList.push(this._handleShape)},_syncHandleShape:function(){if(this.timelineOption.show){var t=this.timelineOption,e=t.checkpointStyle,i=this._chainPoint[this.currentIndex];this._handleShape.style.text=e.label.show?i.name:"",this._handleShape.style.textFont=i.textFont,this._handleShape.style.n=i.n,"auto"===e.symbol?this._handleShape.style.iconType="none"!=i.symbol?i.symbol:"diamond":(this._handleShape.style.iconType=e.symbol,e.symbol.match("star")&&(this._handleShape.style.n=e.symbol.replace("star","")-0||5,this._handleShape.style.iconType="star"));var o;"auto"===e.symbolSize?(o=i.symbolSize+2,o=5>o?5:o):o=e.symbolSize-0,this._handleShape.style.color="auto"===e.color?i.color?i.color:t.controlStyle.emphasis.color:e.color,this._handleShape.style.textColor="auto"===e.label.textStyle.color?this._handleShape.style.color:e.label.textStyle.color,this._handleShape.highlightStyle.strokeColor=this._handleShape.style.strokeColor="auto"===e.borderColor?i.borderColor?i.borderColor:"#fff":e.borderColor,this._handleShape.style.lineWidth="auto"===e.borderWidth?i.borderWidth?i.borderWidth:0:e.borderWidth-0,this._handleShape.highlightStyle.lineWidth=this._handleShape.style.lineWidth+1,this.zr.animate(this._handleShape.id,"style").when(500,{x:i.x-o,textX:i.x,y:this._location.y+this._location.height/4-o,width:2*o,height:2*o}).start("ExponentialOut")}},_findChainIndex:function(t){var e=this._chainPoint,i=e.length;if(t<=e[0].x)return 0;if(t>=e[i-1].x)return i-1;for(var o=0;i-1>o;o++)if(t>=e[o].x&&t<=e[o+1].x)return Math.abs(t-e[o].x)<Math.abs(t-e[o+1].x)?o:o+1},__onclick:function(t){var e=d.getX(t.event),i=this._findChainIndex(e);return i===this.currentIndex?!0:(this.currentIndex=i,this.timelineOption.autoPlay&&this.stop(),clearTimeout(this.playTicket),void this._onFrame())},__ondrift:function(t,e){this.timelineOption.autoPlay&&this.stop();var i,o=this._chainPoint,r=o.length;t.style.x+e<=o[0].x-o[0].symbolSize?(t.style.x=o[0].x-o[0].symbolSize,i=0):t.style.x+e>=o[r-1].x-o[r-1].symbolSize?(t.style.x=o[r-1].x-o[r-1].symbolSize,i=r-1):(t.style.x+=e,i=this._findChainIndex(t.style.x));var n=o[i],s=n.symbolSize+2;if(t.style.iconType=n.symbol,t.style.n=n.n,t.style.textX=t.style.x+s/2,t.style.y=this._location.y+this._location.height/4-s,t.style.width=2*s,t.style.height=2*s,t.style.text=n.name,i===this.currentIndex)return!0;if(this.currentIndex=i,this.timelineOption.realtime){clearTimeout(this.playTicket);var a=this;this.playTicket=setTimeout(function(){a._setCurrentOption()},200)}return!0},__ondragend:function(){this.isDragend=!0},ondragend:function(t,e){this.isDragend&&t.target&&(!this.timelineOption.realtime&&this._setCurrentOption(),e.dragOut=!0,e.dragIn=!0,e.needRefresh=!1,this.isDragend=!1,this._syncHandleShape())},last:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex-=1,this.currentIndex<0&&(this.currentIndex=this.timelineOption.data.length-1),this._onFrame(),this.currentIndex},next:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex+=1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},play:function(t,e){return this._ctrPlayShape&&"playing"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="playing",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=null!=e?e:!0,this.timelineOption.autoPlay||clearTimeout(this.playTicket),this.currentIndex=null!=t?t:this.currentIndex+1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},stop:function(){return this._ctrPlayShape&&"stop"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="stop",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=!1,clearTimeout(this.playTicket),this.currentIndex},resize:function(){this.timelineOption.show&&(this.clear(),this._buildShape(),this._syncHandleShape())},setTheme:function(t){this.timelineOption=this.reformOption(h.clone(this.option.timeline)),this.timelineOption.label.textStyle=this.getTextStyle(this.timelineOption.label.textStyle),this.timelineOption.checkpointStyle.label.textStyle=this.getTextStyle(this.timelineOption.checkpointStyle.label.textStyle),this.myChart.canvasSupported||(this.timelineOption.realtime=!1),this.timelineOption.show&&t&&(this.clear(),this._buildShape(),this._syncHandleShape())},onbeforDispose:function(){clearTimeout(this.playTicket)}},n.prototype.iconLibrary.timelineControl=i,h.inherits(e,o),t("../component").define("timeline",e),e}),define("zrender/loadingEffect/DynamicLine",["require","./Base","../tool/util","../tool/color","../shape/Line"],function(t){function e(t){i.call(this,t)}var i=t("./Base"),o=t("../tool/util"),r=t("../tool/color"),n=t("../shape/Line");return o.inherits(e,i),e.prototype._start=function(t,e){for(var i=o.merge(this.options,{textStyle:{color:"#fff"},backgroundColor:"rgba(0, 0, 0, 0.8)",effectOption:{n:30,lineWidth:1,color:"random",timeInterval:100}}),s=this.createTextShape(i.textStyle),a=this.createBackgroundShape(i.backgroundColor),h=i.effectOption,l=h.n,d=h.lineWidth,c=[],u=this.canvasWidth,p=this.canvasHeight,f=0;l>f;f++){var g=-Math.ceil(1e3*Math.random()),m=Math.ceil(400*Math.random()),_=Math.ceil(Math.random()*p),y="random"==h.color?r.random():h.color;c[f]=new n({highlightStyle:{xStart:g,yStart:_,xEnd:g+m,yEnd:_,strokeColor:y,lineWidth:d},animationX:Math.ceil(100*Math.random()),len:m})}return setInterval(function(){t(a);for(var i=0;l>i;i++){var o=c[i].highlightStyle;o.xStart>=u&&(c[i].len=Math.ceil(400*Math.random()),o.xStart=-400,o.xEnd=-400+c[i].len,o.yStart=Math.ceil(Math.random()*p),o.yEnd=o.yStart),o.xStart+=c[i].animationX,o.xEnd+=c[i].animationX,t(c[i])}t(s),e()},h.timeInterval)},e}),define("zrender/loadingEffect/Ring",["require","./Base","../tool/util","../tool/color","../shape/Ring","../shape/Sector"],function(t){function e(t){i.call(this,t)}var i=t("./Base"),o=t("../tool/util"),r=t("../tool/color"),n=t("../shape/Ring"),s=t("../shape/Sector");return o.inherits(e,i),e.prototype._start=function(t,e){var i=o.merge(this.options,{textStyle:{color:"#07a"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{x:this.canvasWidth/2,y:this.canvasHeight/2,r0:60,r:100,color:"#bbdcff",brushType:"fill",textPosition:"inside",textFont:"normal 30px verdana",textColor:"rgba(30, 144, 255, 0.6)",timeInterval:100}}),a=i.effect,h=i.textStyle;null==h.x&&(h.x=a.x),null==h.y&&(h.y=a.y+(a.r0+a.r)/2-5);for(var l=this.createTextShape(i.textStyle),d=this.createBackgroundShape(i.backgroundColor),c=a.x,u=a.y,p=a.r0+6,f=a.r-6,g=a.color,m=r.lift(g,.1),_=new n({highlightStyle:o.clone(a)}),y=[],v=r.getGradientColors(["#ff6400","#ffe100","#97ff00"],25),x=15,b=240,T=0;16>T;T++)y.push(new s({highlightStyle:{x:c,y:u,r0:p,r:f,startAngle:b-x,endAngle:b,brushType:"fill",color:m},_color:r.getLinearGradient(c+p*Math.cos(b,!0),u-p*Math.sin(b,!0),c+p*Math.cos(b-x,!0),u-p*Math.sin(b-x,!0),[[0,v[2*T]],[1,v[2*T+1]]])})),b-=x;b=360;for(var T=0;4>T;T++)y.push(new s({highlightStyle:{x:c,y:u,r0:p,r:f,startAngle:b-x,endAngle:b,brushType:"fill",color:m},_color:r.getLinearGradient(c+p*Math.cos(b,!0),u-p*Math.sin(b,!0),c+p*Math.cos(b-x,!0),u-p*Math.sin(b-x,!0),[[0,v[2*T+32]],[1,v[2*T+33]]])})),b-=x;var S=0;if(null!=i.progress){t(d),S=100*this.adjust(i.progress,[0,1]).toFixed(2)/5,_.highlightStyle.text=5*S+"%",t(_);for(var T=0;20>T;T++)y[T].highlightStyle.color=S>T?y[T]._color:m,t(y[T]);return t(l),void e()}return setInterval(function(){t(d),S+=S>=20?-20:1,t(_);for(var i=0;20>i;i++)y[i].highlightStyle.color=S>i?y[i]._color:m,t(y[i]);t(l),e()},a.timeInterval)},e}),define("echarts/component/tooltip",["require","./base","../util/shape/Cross","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/area","zrender/tool/color","zrender/tool/util","zrender/shape/Base","../component"],function(t){function e(t,e,n,s,a){i.call(this,t,e,n,s,a),this.dom=a.dom;var h=this;h._onmousemove=function(t){return h.__onmousemove(t)},h._onglobalout=function(t){return h.__onglobalout(t)},this.zr.on(l.EVENT.MOUSEMOVE,h._onmousemove),this.zr.on(l.EVENT.GLOBALOUT,h._onglobalout),h._hide=function(t){return h.__hide(t)},h._tryShow=function(t){return h.__tryShow(t)},h._refixed=function(t){return h.__refixed(t)},h._setContent=function(t,e){return h.__setContent(t,e)},this._tDom=this._tDom||document.createElement("div"),this._tDom.onselectstart=function(){return!1},this._tDom.onmouseover=function(){h._mousein=!0},this._tDom.onmouseout=function(){h._mousein=!1},this._tDom.className="echarts-tooltip",this._tDom.style.position="absolute",this.hasAppend=!1,this._axisLineShape&&this.zr.delShape(this._axisLineShape.id),this._axisLineShape=new r({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisLineShape),this.zr.addShape(this._axisLineShape),this._axisShadowShape&&this.zr.delShape(this._axisShadowShape.id),this._axisShadowShape=new r({zlevel:this.getZlevelBase(),z:1,invisible:!0,hoverable:!1}),this.shapeList.push(this._axisShadowShape),this.zr.addShape(this._axisShadowShape),this._axisCrossShape&&this.zr.delShape(this._axisCrossShape.id),this._axisCrossShape=new o({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisCrossShape),this.zr.addShape(this._axisCrossShape),this.showing=!1,this.refresh(s)}var i=t("./base"),o=t("../util/shape/Cross"),r=t("zrender/shape/Line"),n=t("zrender/shape/Rectangle"),s=new n({}),a=t("../config");a.tooltip={zlevel:1,z:8,show:!0,showContent:!0,trigger:"item",islandFormatter:"{a} <br/>{b} : {c}",showDelay:20,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(0,0,0,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",lineStyle:{color:"#48b",width:2,type:"solid"},crossStyle:{color:"#1e90ff",width:1,type:"dashed"},shadowStyle:{color:"rgba(150,150,150,0.3)",width:"auto",type:"default"}},textStyle:{color:"#fff"}};var h=t("../util/ecData"),l=t("zrender/config"),d=t("zrender/tool/event"),c=t("zrender/tool/area"),u=t("zrender/tool/color"),p=t("zrender/tool/util"),f=t("zrender/shape/Base");return e.prototype={type:a.COMPONENT_TYPE_TOOLTIP,_gCssText:"position:absolute;display:block;border-style:solid;white-space:nowrap;",_style:function(t){if(!t)return"";var e=[];if(t.transitionDuration){var i="left "+t.transitionDuration+"s,top "+t.transitionDuration+"s";e.push("transition:"+i),e.push("-moz-transition:"+i),e.push("-webkit-transition:"+i),e.push("-o-transition:"+i)}t.backgroundColor&&(e.push("background-Color:"+u.toHex(t.backgroundColor)),e.push("filter:alpha(opacity=70)"),e.push("background-Color:"+t.backgroundColor)),null!=t.borderWidth&&e.push("border-width:"+t.borderWidth+"px"),null!=t.borderColor&&e.push("border-color:"+t.borderColor),null!=t.borderRadius&&(e.push("border-radius:"+t.borderRadius+"px"),e.push("-moz-border-radius:"+t.borderRadius+"px"),e.push("-webkit-border-radius:"+t.borderRadius+"px"),e.push("-o-border-radius:"+t.borderRadius+"px"));var o=t.textStyle;o&&(o.color&&e.push("color:"+o.color),o.decoration&&e.push("text-decoration:"+o.decoration),o.align&&e.push("text-align:"+o.align),o.fontFamily&&e.push("font-family:"+o.fontFamily),o.fontSize&&e.push("font-size:"+o.fontSize+"px"),o.fontSize&&e.push("line-height:"+Math.round(3*o.fontSize/2)+"px"),o.fontStyle&&e.push("font-style:"+o.fontStyle),o.fontWeight&&e.push("font-weight:"+o.fontWeight));var r=t.padding;return null!=r&&(r=this.reformCssArray(r),e.push("padding:"+r[0]+"px "+r[1]+"px "+r[2]+"px "+r[3]+"px")),e=e.join(";")+";"},__hide:function(){this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,this._tDom&&(this._tDom.style.display="none");var t=!1;this._axisLineShape.invisible||(this._axisLineShape.invisible=!0,this.zr.modShape(this._axisLineShape.id),t=!0),this._axisShadowShape.invisible||(this._axisShadowShape.invisible=!0,this.zr.modShape(this._axisShadowShape.id),t=!0),this._axisCrossShape.invisible||(this._axisCrossShape.invisible=!0,this.zr.modShape(this._axisCrossShape.id),t=!0),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2),t&&this.zr.refreshNextFrame(),this.showing=!1},_show:function(t,e,i,o){var r=this._tDom.offsetHeight,n=this._tDom.offsetWidth;t&&("function"==typeof t&&(t=t([e,i])),t instanceof Array&&(e=t[0],i=t[1])),e+n>this._zrWidth&&(e-=n+40),i+r>this._zrHeight&&(i-=r-20),20>i&&(i=0),this._tDom.style.cssText=this._gCssText+this._defaultCssText+(o?o:"")+"left:"+e+"px;top:"+i+"px;",(10>r||10>n)&&setTimeout(this._refixed,20),this.showing=!0},__refixed:function(){if(this._tDom){var t="",e=this._tDom.offsetHeight,i=this._tDom.offsetWidth;this._tDom.offsetLeft+i>this._zrWidth&&(t+="left:"+(this._zrWidth-i-20)+"px;"),this._tDom.offsetTop+e>this._zrHeight&&(t+="top:"+(this._zrHeight-e-10)+"px;"),""!==t&&(this._tDom.style.cssText+=t)}},__tryShow:function(){var t,e;if(this._curTarget){if("island"===this._curTarget._type&&this.option.tooltip.show)return void this._showItemTrigger();var i=h.get(this._curTarget,"series"),o=h.get(this._curTarget,"data");t=this.deepQuery([o,i,this.option],"tooltip.show"),null!=i&&null!=o&&t?(e=this.deepQuery([o,i,this.option],"tooltip.trigger"),"axis"===e?this._showAxisTrigger(i.xAxisIndex,i.yAxisIndex,h.get(this._curTarget,"dataIndex")):this._showItemTrigger()):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}else this._findPolarTrigger()||this._findAxisTrigger()},_findAxisTrigger:function(){if(!this.component.xAxis||!this.component.yAxis)return void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));for(var t,e,i=this.option.series,o=0,r=i.length;r>o;o++)if("axis"===this.deepQuery([i[o],this.option],"tooltip.trigger"))return t=i[o].xAxisIndex||0,e=i[o].yAxisIndex||0,this.component.xAxis.getAxis(t)&&this.component.xAxis.getAxis(t).type===a.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(t,e,this._getNearestDataIndex("x",this.component.xAxis.getAxis(t))):this.component.yAxis.getAxis(e)&&this.component.yAxis.getAxis(e).type===a.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(t,e,this._getNearestDataIndex("y",this.component.yAxis.getAxis(e))):void this._showAxisTrigger(t,e,-1);"cross"===this.option.tooltip.axisPointer.type&&this._showAxisTrigger(-1,-1,-1)},_findPolarTrigger:function(){if(!this.component.polar)return!1;var t,e=d.getX(this._event),i=d.getY(this._event),o=this.component.polar.getNearestIndex([e,i]);return o?(t=o.valueIndex,o=o.polarIndex):o=-1,-1!=o?this._showPolarTrigger(o,t):!1},_getNearestDataIndex:function(t,e){var i=-1,o=d.getX(this._event),r=d.getY(this._event);if("x"===t){for(var n,s,a=this.component.grid.getXend(),h=e.getCoordByIndex(i);a>h&&(s=h,o>=h);)n=h,h=e.getCoordByIndex(++i);return 0>=i?i=0:s-o>=o-n?i-=1:null==e.getNameByIndex(i)&&(i-=1),i}for(var l,c,u=this.component.grid.getY(),h=e.getCoordByIndex(i);h>u&&(l=h,h>=r);)c=h,h=e.getCoordByIndex(++i);return 0>=i?i=0:r-l>=c-r?i-=1:null==e.getNameByIndex(i)&&(i-=1),i},_showAxisTrigger:function(t,e,i){if(!this._event.connectTrigger&&this.messageCenter.dispatch(a.EVENT.TOOLTIP_IN_GRID,this._event,null,this.myChart),null==this.component.xAxis||null==this.component.yAxis||null==t||null==e)return clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));var o,r,n,s,h=this.option.series,l=[],c=[],u="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return;r=this.option.tooltip.formatter,n=this.option.tooltip.position}var p,f,g=-1!=t&&this.component.xAxis.getAxis(t).type===a.COMPONENT_TYPE_AXIS_CATEGORY?"xAxis":-1!=e&&this.component.yAxis.getAxis(e).type===a.COMPONENT_TYPE_AXIS_CATEGORY?"yAxis":!1;if(g){var m="xAxis"==g?t:e;o=this.component[g].getAxis(m);for(var _=0,y=h.length;y>_;_++)this._isSelected(h[_].name)&&h[_][g+"Index"]===m&&"axis"===this.deepQuery([h[_],this.option],"tooltip.trigger")&&(s=this.query(h[_],"tooltip.showContent")||s,r=this.query(h[_],"tooltip.formatter")||r,n=this.query(h[_],"tooltip.position")||n,u+=this._style(this.query(h[_],"tooltip")),null!=h[_].stack&&"xAxis"==g?(l.unshift(h[_]),c.unshift(_)):(l.push(h[_]),c.push(_)));this.messageCenter.dispatch(a.EVENT.TOOLTIP_HOVER,this._event,{seriesIndex:c,dataIndex:i},this.myChart);var v;"xAxis"==g?(p=this.subPixelOptimize(o.getCoordByIndex(i),this._axisLineWidth),f=d.getY(this._event),v=[p,this.component.grid.getY(),p,this.component.grid.getYend()]):(p=d.getX(this._event),f=this.subPixelOptimize(o.getCoordByIndex(i),this._axisLineWidth),v=[this.component.grid.getX(),f,this.component.grid.getXend(),f]),this._styleAxisPointer(l,v[0],v[1],v[2],v[3],o.getGap(),p,f)}else p=d.getX(this._event),f=d.getY(this._event),this._styleAxisPointer(h,this.component.grid.getX(),f,this.component.grid.getXend(),f,0,p,f),i>=0?this._showItemTrigger(!0):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._tDom.style.display="none");if(l.length>0){if(this._lastItemTriggerId=-1,this._lastDataIndex!=i||this._lastSeriesIndex!=c[0]){this._lastDataIndex=i,this._lastSeriesIndex=c[0];var x,b;if("function"==typeof r){for(var T=[],_=0,y=l.length;y>_;_++)x=l[_].data[i],b=this.getDataFromOption(x,"-"),T.push({seriesIndex:c[_],seriesName:l[_].name||"",series:l[_],dataIndex:i,data:x,name:o.getNameByIndex(i),value:b,0:l[_].name||"",1:o.getNameByIndex(i),2:b,3:x});this._curTicket="axis:"+i,this._tDom.innerHTML=r.call(this.myChart,T,this._curTicket,this._setContent)}else if("string"==typeof r){this._curTicket=0/0,r=r.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}");for(var _=0,y=l.length;y>_;_++)r=r.replace("{a"+_+"}",this._encodeHTML(l[_].name||"")),r=r.replace("{b"+_+"}",this._encodeHTML(o.getNameByIndex(i))),x=l[_].data[i],x=this.getDataFromOption(x,"-"),r=r.replace("{c"+_+"}",x instanceof Array?x:this.numAddCommas(x));this._tDom.innerHTML=r}else{this._curTicket=0/0,r=this._encodeHTML(o.getNameByIndex(i));for(var _=0,y=l.length;y>_;_++)r+="<br/>"+this._encodeHTML(l[_].name||"")+" : ",x=l[_].data[i],x=this.getDataFromOption(x,"-"),r+=x instanceof Array?x:this.numAddCommas(x);this._tDom.innerHTML=r}}if(s===!1||!this.option.tooltip.showContent)return;this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(n,p+10,f+10,u)}},_showPolarTrigger:function(t,e){if(null==this.component.polar||null==t||null==e||0>e)return!1;var i,o,r,n=this.option.series,s=[],a=[],h="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return!1;i=this.option.tooltip.formatter,o=this.option.tooltip.position}for(var l=this.option.polar[t].indicator[e].text,c=0,u=n.length;u>c;c++)this._isSelected(n[c].name)&&n[c].polarIndex===t&&"axis"===this.deepQuery([n[c],this.option],"tooltip.trigger")&&(r=this.query(n[c],"tooltip.showContent")||r,i=this.query(n[c],"tooltip.formatter")||i,o=this.query(n[c],"tooltip.position")||o,h+=this._style(this.query(n[c],"tooltip")),s.push(n[c]),a.push(c));if(s.length>0){for(var p,f,g,m=[],c=0,u=s.length;u>c;c++){p=s[c].data;for(var _=0,y=p.length;y>_;_++)f=p[_],this._isSelected(f.name)&&(f=null!=f?f:{name:"",value:{dataIndex:"-"}},g=this.getDataFromOption(f.value[e]),m.push({seriesIndex:a[c],seriesName:s[c].name||"",series:s[c],dataIndex:e,data:f,name:f.name,indicator:l,value:g,0:s[c].name||"",1:f.name,2:g,3:l}))}if(m.length<=0)return;if(this._lastItemTriggerId=-1,this._lastDataIndex!=e||this._lastSeriesIndex!=a[0])if(this._lastDataIndex=e,this._lastSeriesIndex=a[0],"function"==typeof i)this._curTicket="axis:"+e,this._tDom.innerHTML=i.call(this.myChart,m,this._curTicket,this._setContent);else if("string"==typeof i){i=i.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}");for(var c=0,u=m.length;u>c;c++)i=i.replace("{a"+c+"}",this._encodeHTML(m[c].seriesName)),i=i.replace("{b"+c+"}",this._encodeHTML(m[c].name)),i=i.replace("{c"+c+"}",this.numAddCommas(m[c].value)),i=i.replace("{d"+c+"}",this._encodeHTML(m[c].indicator));this._tDom.innerHTML=i}else{i=this._encodeHTML(m[0].name)+"<br/>"+this._encodeHTML(m[0].indicator)+" : "+this.numAddCommas(m[0].value);for(var c=1,u=m.length;u>c;c++)i+="<br/>"+this._encodeHTML(m[c].name)+"<br/>",i+=this._encodeHTML(m[c].indicator)+" : "+this.numAddCommas(m[c].value);this._tDom.innerHTML=i}if(r===!1||!this.option.tooltip.showContent)return;return this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(o,d.getX(this._event),d.getY(this._event),h),!0}},_showItemTrigger:function(t){if(this._curTarget){var e,i,o,r=h.get(this._curTarget,"series"),n=h.get(this._curTarget,"seriesIndex"),s=h.get(this._curTarget,"data"),l=h.get(this._curTarget,"dataIndex"),c=h.get(this._curTarget,"name"),u=h.get(this._curTarget,"value"),p=h.get(this._curTarget,"special"),f=h.get(this._curTarget,"special2"),g=[s,r,this.option],m="";if("island"!=this._curTarget._type){var _=t?"axis":"item";this.option.tooltip.trigger===_&&(e=this.option.tooltip.formatter,i=this.option.tooltip.position),this.query(r,"tooltip.trigger")===_&&(o=this.query(r,"tooltip.showContent")||o,e=this.query(r,"tooltip.formatter")||e,i=this.query(r,"tooltip.position")||i,m+=this._style(this.query(r,"tooltip"))),o=this.query(s,"tooltip.showContent")||o,e=this.query(s,"tooltip.formatter")||e,i=this.query(s,"tooltip.position")||i,m+=this._style(this.query(s,"tooltip"))}else this._lastItemTriggerId=0/0,o=this.deepQuery(g,"tooltip.showContent"),e=this.deepQuery(g,"tooltip.islandFormatter"),i=this.deepQuery(g,"tooltip.islandPosition");this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId!==this._curTarget.id&&(this._lastItemTriggerId=this._curTarget.id,"function"==typeof e?(this._curTicket=(r.name||"")+":"+l,this._tDom.innerHTML=e.call(this.myChart,{seriesIndex:n,seriesName:r.name||"",series:r,dataIndex:l,data:s,name:c,value:u,percent:p,indicator:p,value2:f,indicator2:f,0:r.name||"",1:c,2:u,3:p,4:f,5:s,6:n,7:l},this._curTicket,this._setContent)):"string"==typeof e?(this._curTicket=0/0,e=e.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),e=e.replace("{a0}",this._encodeHTML(r.name||"")).replace("{b0}",this._encodeHTML(c)).replace("{c0}",u instanceof Array?u:this.numAddCommas(u)),e=e.replace("{d}","{d0}").replace("{d0}",p||""),e=e.replace("{e}","{e0}").replace("{e0}",h.get(this._curTarget,"special2")||""),this._tDom.innerHTML=e):(this._curTicket=0/0,this._tDom.innerHTML=r.type===a.CHART_TYPE_RADAR&&p?this._itemFormatter.radar.call(this,r,c,u,p):r.type===a.CHART_TYPE_EVENTRIVER?this._itemFormatter.eventRiver.call(this,r,c,u,s):""+(null!=r.name?this._encodeHTML(r.name)+"<br/>":"")+(""===c?"":this._encodeHTML(c)+" : ")+(u instanceof Array?u:this.numAddCommas(u))));var y=d.getX(this._event),v=d.getY(this._event);this.deepQuery(g,"tooltip.axisPointer.show")&&this.component.grid?this._styleAxisPointer([r],this.component.grid.getX(),v,this.component.grid.getXend(),v,0,y,v):this._hide(),o!==!1&&this.option.tooltip.showContent&&(this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(i,y+20,v-20,m))}},_itemFormatter:{radar:function(t,e,i,o){var r="";r+=this._encodeHTML(""===e?t.name||"":e),r+=""===r?"":"<br />";for(var n=0;n<o.length;n++)r+=this._encodeHTML(o[n].text)+" : "+this.numAddCommas(i[n])+"<br />";return r},chord:function(t,e,i,o,r){if(null==r)return this._encodeHTML(e)+" ("+this.numAddCommas(i)+")";var n=this._encodeHTML(e),s=this._encodeHTML(o);return""+(null!=t.name?this._encodeHTML(t.name)+"<br/>":"")+n+" -> "+s+" ("+this.numAddCommas(i)+")<br />"+s+" -> "+n+" ("+this.numAddCommas(r)+")"},eventRiver:function(t,e,i,o){var r="";r+=this._encodeHTML(""===t.name?"":t.name+" : "),r+=this._encodeHTML(e),r+=""===r?"":"<br />",o=o.evolution;for(var n=0,s=o.length;s>n;n++)r+='<div style="padding-top:5px;">',o[n].detail&&(o[n].detail.img&&(r+='<img src="'+o[n].detail.img+'" style="float:left;width:40px;height:40px;">'),r+='<div style="margin-left:45px;">'+o[n].time+"<br/>",r+='<a href="'+o[n].detail.link+'" target="_blank">',r+=o[n].detail.text+"</a></div>",r+="</div>");return r}},_styleAxisPointer:function(t,e,i,o,r,n,s,a){if(t.length>0){var h,l,d=this.option.tooltip.axisPointer,c=d.type,u={line:{},cross:{},shadow:{}};for(var p in u)u[p].color=d[p+"Style"].color,u[p].width=d[p+"Style"].width,u[p].type=d[p+"Style"].type;for(var f=0,g=t.length;g>f;f++)h=t[f],l=this.query(h,"tooltip.axisPointer.type"),c=l||c,l&&(u[l].color=this.query(h,"tooltip.axisPointer."+l+"Style.color")||u[l].color,u[l].width=this.query(h,"tooltip.axisPointer."+l+"Style.width")||u[l].width,u[l].type=this.query(h,"tooltip.axisPointer."+l+"Style.type")||u[l].type);if("line"===c){var m=u.line.width,_=e==o;this._axisLineShape.style={xStart:_?this.subPixelOptimize(e,m):e,yStart:_?i:this.subPixelOptimize(i,m),xEnd:_?this.subPixelOptimize(o,m):o,yEnd:_?r:this.subPixelOptimize(r,m),strokeColor:u.line.color,lineWidth:m,lineType:u.line.type},this._axisLineShape.invisible=!1,this.zr.modShape(this._axisLineShape.id)}else if("cross"===c){var y=u.cross.width;this._axisCrossShape.style={brushType:"stroke",rect:this.component.grid.getArea(),x:this.subPixelOptimize(s,y),y:this.subPixelOptimize(a,y),text:("( "+this.component.xAxis.getAxis(0).getValueFromCoord(s)+" , "+this.component.yAxis.getAxis(0).getValueFromCoord(a)+" )").replace(" , "," ").replace(" , "," "),textPosition:"specific",strokeColor:u.cross.color,lineWidth:y,lineType:u.cross.type},this.component.grid.getXend()-s>100?(this._axisCrossShape.style.textAlign="left",this._axisCrossShape.style.textX=s+10):(this._axisCrossShape.style.textAlign="right",this._axisCrossShape.style.textX=s-10),a-this.component.grid.getY()>50?(this._axisCrossShape.style.textBaseline="bottom",this._axisCrossShape.style.textY=a-10):(this._axisCrossShape.style.textBaseline="top",this._axisCrossShape.style.textY=a+10),this._axisCrossShape.invisible=!1,this.zr.modShape(this._axisCrossShape.id)}else"shadow"===c&&((null==u.shadow.width||"auto"===u.shadow.width||isNaN(u.shadow.width))&&(u.shadow.width=n),e===o?Math.abs(this.component.grid.getX()-e)<2?(u.shadow.width/=2,e=o+=u.shadow.width/2):Math.abs(this.component.grid.getXend()-e)<2&&(u.shadow.width/=2,e=o-=u.shadow.width/2):i===r&&(Math.abs(this.component.grid.getY()-i)<2?(u.shadow.width/=2,i=r+=u.shadow.width/2):Math.abs(this.component.grid.getYend()-i)<2&&(u.shadow.width/=2,i=r-=u.shadow.width/2)),this._axisShadowShape.style={xStart:e,yStart:i,xEnd:o,yEnd:r,strokeColor:u.shadow.color,lineWidth:u.shadow.width},this._axisShadowShape.invisible=!1,this.zr.modShape(this._axisShadowShape.id));this.zr.refreshNextFrame()}},__onmousemove:function(t){if(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),!this._mousein||!this._enterable){var e=t.target,i=d.getX(t.event),o=d.getY(t.event);if(e){this._curTarget=e,this._event=t.event,this._event.zrenderX=i,this._event.zrenderY=o;var r;if(this._needAxisTrigger&&this.component.polar&&-1!=(r=this.component.polar.isInside([i,o])))for(var n=this.option.series,h=0,l=n.length;l>h;h++)if(n[h].polarIndex===r&&"axis"===this.deepQuery([n[h],this.option],"tooltip.trigger")){this._curTarget=null;break}this._showingTicket=setTimeout(this._tryShow,this._showDelay)}else this._curTarget=!1,this._event=t.event,this._event.zrenderX=i,this._event.zrenderY=o,this._needAxisTrigger&&this.component.grid&&c.isInside(s,this.component.grid.getArea(),i,o)?this._showingTicket=setTimeout(this._tryShow,this._showDelay):this._needAxisTrigger&&this.component.polar&&-1!=this.component.polar.isInside([i,o])?this._showingTicket=setTimeout(this._tryShow,this._showDelay):(!this._event.connectTrigger&&this.messageCenter.dispatch(a.EVENT.TOOLTIP_OUT_GRID,this._event,null,this.myChart),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}},__onglobalout:function(){clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay)
},__setContent:function(t,e){this._tDom&&(t===this._curTicket&&(this._tDom.innerHTML=e),setTimeout(this._refixed,20))},ontooltipHover:function(t,e){if(!this._lastTipShape||this._lastTipShape&&this._lastTipShape.dataIndex!=t.dataIndex){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this.shapeList.length=2);for(var i=0,o=e.length;o>i;i++)e[i].zlevel=this.getZlevelBase(),e[i].z=this.getZBase(),e[i].style=f.prototype.getHighlightStyle(e[i].style,e[i].highlightStyle),e[i].draggable=!1,e[i].hoverable=!1,e[i].clickable=!1,e[i].ondragend=null,e[i].ondragover=null,e[i].ondrop=null,this.shapeList.push(e[i]),this.zr.addShape(e[i]);this._lastTipShape={dataIndex:t.dataIndex,tipShape:e}}},ondragend:function(){this._hide()},onlegendSelected:function(t){this._selectedMap=t.selected},_setSelectedMap:function(){this._selectedMap=this.component.legend?p.clone(this.component.legend.getSelectedMap()):{}},_isSelected:function(t){return null!=this._selectedMap[t]?this._selectedMap[t]:!0},showTip:function(t){if(t){var e,i=this.option.series;if(null!=t.seriesIndex)e=t.seriesIndex;else for(var o=t.seriesName,r=0,n=i.length;n>r;r++)if(i[r].name===o){e=r;break}var s=i[e];if(null!=s){var d=this.myChart.chart[s.type],c="axis"===this.deepQuery([s,this.option],"tooltip.trigger");if(d)if(c){var u=t.dataIndex;switch(d.type){case a.CHART_TYPE_LINE:case a.CHART_TYPE_BAR:case a.CHART_TYPE_K:case a.CHART_TYPE_RADAR:if(null==this.component.polar||s.data[0].value.length<=u)return;var p=s.polarIndex||0,f=this.component.polar.getVector(p,u,"max");this._event={zrenderX:f[0],zrenderY:f[1]},this._showPolarTrigger(p,u)}}else{var g,m,_=d.shapeList;switch(d.type){case a.CHART_TYPE_LINE:case a.CHART_TYPE_BAR:case a.CHART_TYPE_K:case a.CHART_TYPE_TREEMAP:case a.CHART_TYPE_SCATTER:for(var u=t.dataIndex,r=0,n=_.length;n>r;r++)if(null==_[r]._mark&&h.get(_[r],"seriesIndex")==e&&h.get(_[r],"dataIndex")==u){this._curTarget=_[r],g=_[r].style.x,m=d.type!=a.CHART_TYPE_K?_[r].style.y:_[r].style.y[0];break}break;case a.CHART_TYPE_RADAR:for(var u=t.dataIndex,r=0,n=_.length;n>r;r++)if("polygon"===_[r].type&&h.get(_[r],"seriesIndex")==e&&h.get(_[r],"dataIndex")==u){this._curTarget=_[r];var f=this.component.polar.getCenter(s.polarIndex||0);g=f[0],m=f[1];break}break;case a.CHART_TYPE_PIE:for(var y=t.name,r=0,n=_.length;n>r;r++)if("sector"===_[r].type&&h.get(_[r],"seriesIndex")==e&&h.get(_[r],"name")==y){this._curTarget=_[r];var v=this._curTarget.style,x=(v.startAngle+v.endAngle)/2*Math.PI/180;g=this._curTarget.style.x+Math.cos(x)*v.r/1.5,m=this._curTarget.style.y-Math.sin(x)*v.r/1.5;break}break;case a.CHART_TYPE_MAP:for(var y=t.name,b=s.mapType,r=0,n=_.length;n>r;r++)if("text"===_[r].type&&_[r]._mapType===b&&_[r].style._name===y){this._curTarget=_[r],g=this._curTarget.style.x+this._curTarget.position[0],m=this._curTarget.style.y+this._curTarget.position[1];break}break;case a.CHART_TYPE_CHORD:for(var y=t.name,r=0,n=_.length;n>r;r++)if("sector"===_[r].type&&h.get(_[r],"name")==y){this._curTarget=_[r];var v=this._curTarget.style,x=(v.startAngle+v.endAngle)/2*Math.PI/180;return g=this._curTarget.style.x+Math.cos(x)*(v.r-2),m=this._curTarget.style.y-Math.sin(x)*(v.r-2),void this.zr.trigger(l.EVENT.MOUSEMOVE,{zrenderX:g,zrenderY:m})}break;case a.CHART_TYPE_FORCE:for(var y=t.name,r=0,n=_.length;n>r;r++)if("circle"===_[r].type&&h.get(_[r],"name")==y){this._curTarget=_[r],g=this._curTarget.position[0],m=this._curTarget.position[1];break}}null!=g&&null!=m&&(this._event={zrenderX:g,zrenderY:m},this.zr.addHoverShape(this._curTarget),this.zr.refreshHover(),this._showItemTrigger())}}}},hideTip:function(){this._hide()},refresh:function(t){if(this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2,this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,t){this.option=t,this.option.tooltip=this.reformOption(this.option.tooltip),this.option.tooltip.textStyle=p.merge(this.option.tooltip.textStyle,this.ecTheme.textStyle),this._needAxisTrigger=!1,"axis"===this.option.tooltip.trigger&&(this._needAxisTrigger=!0);for(var e=this.option.series,i=0,o=e.length;o>i;i++)if("axis"===this.query(e[i],"tooltip.trigger")){this._needAxisTrigger=!0;break}this._showDelay=this.option.tooltip.showDelay,this._hideDelay=this.option.tooltip.hideDelay,this._defaultCssText=this._style(this.option.tooltip),this._setSelectedMap(),this._axisLineWidth=this.option.tooltip.axisPointer.lineStyle.width,this._enterable=this.option.tooltip.enterable,!this._enterable&&this._tDom.className.indexOf(l.elementClassName)<0&&(this._tDom.className+=" "+l.elementClassName)}if(this.showing){var r=this;setTimeout(function(){r.zr.trigger(l.EVENT.MOUSEMOVE,r.zr.handler._event)},50)}},onbeforDispose:function(){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this.zr.un(l.EVENT.MOUSEMOVE,this._onmousemove),this.zr.un(l.EVENT.GLOBALOUT,this._onglobalout),this.hasAppend&&this.dom.firstChild&&this.dom.firstChild.removeChild(this._tDom),this._tDom=null},_encodeHTML:function(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}},p.inherits(e,i),t("../component").define("tooltip",e),e}),define("zrender/loadingEffect/Whirling",["require","./Base","../tool/util","../tool/area","../shape/Ring","../shape/Droplet","../shape/Circle"],function(t){function e(t){i.call(this,t)}var i=t("./Base"),o=t("../tool/util"),r=t("../tool/area"),n=t("../shape/Ring"),s=t("../shape/Droplet"),a=t("../shape/Circle");return o.inherits(e,i),e.prototype._start=function(t,e){var i=o.merge(this.options,{textStyle:{color:"#888",textAlign:"start"},backgroundColor:"rgba(250, 250, 250, 0.8)"}),h=this.createTextShape(i.textStyle),l=10,d=r.getTextWidth(h.highlightStyle.text,h.highlightStyle.textFont),c=r.getTextHeight(h.highlightStyle.text,h.highlightStyle.textFont),u=o.merge(this.options.effect||{},{r:18,colorIn:"#fff",colorOut:"#555",colorWhirl:"#6cf",timeInterval:50}),p=this.getLocation(this.options.textStyle,d+l+2*u.r,Math.max(2*u.r,c));u.x=p.x+u.r,u.y=h.highlightStyle.y=p.y+p.height/2,h.highlightStyle.x=u.x+u.r+l;var f=this.createBackgroundShape(i.backgroundColor),g=new s({highlightStyle:{a:Math.round(u.r/2),b:Math.round(u.r-u.r/6),brushType:"fill",color:u.colorWhirl}}),m=new a({highlightStyle:{r:Math.round(u.r/6),brushType:"fill",color:u.colorIn}}),_=new n({highlightStyle:{r0:Math.round(u.r-u.r/3),r:u.r,brushType:"fill",color:u.colorOut}}),y=[0,u.x,u.y];return g.highlightStyle.x=m.highlightStyle.x=_.highlightStyle.x=y[1],g.highlightStyle.y=m.highlightStyle.y=_.highlightStyle.y=y[2],setInterval(function(){t(f),t(_),y[0]-=.3,g.rotation=y,t(g),t(m),t(h),e()},u.timeInterval)},e}),define("echarts/theme/infographic",[],function(){var t={color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],title:{textStyle:{fontWeight:"normal",color:"#27727B"}},dataRange:{x:"right",y:"center",itemWidth:5,itemHeight:25,color:["#C1232B","#FCCE10"]},toolbox:{color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#27727B"},controlStyle:{normal:{color:"#27727B"},emphasis:{color:"#27727B"}},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{normal:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3}},emphasis:{borderWidth:0}},symbol:"circle",symbolSize:3.5},k:{itemStyle:{normal:{color:"#C1232B",color0:"#B5C334",lineStyle:{width:1,color:"#C1232B",color0:"#B5C334"}}}},scatter:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(200,200,200,0.5)"},emphasis:{borderWidth:0}},symbol:"star4",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#C1232B"}}},emphasis:{areaStyle:{color:"#fe994e"},label:{textStyle:{color:"rgb(100,0,0)"}}}}},force:{itemStyle:{normal:{linkStyle:{color:"#27727B"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{center:["50%","80%"],radius:"100%",startAngle:180,endAngle:0,axisLine:{show:!0,lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]],width:"40%"}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{textStyle:{color:"#fff",fontWeight:"bolder"}},splitLine:{length:"5%",lineStyle:{color:"#fff"}},pointer:{width:"40%",length:"80%",color:"#fff"},title:{offsetCenter:[0,-20],textStyle:{color:"auto",fontSize:20}},detail:{offsetCenter:[0,0],textStyle:{color:"auto",fontSize:40}}},textStyle:{fontFamily:"微软雅黑, Arial, Verdana, sans-serif"}};return t}),define("zrender/loadingEffect/Spin",["require","./Base","../tool/util","../tool/color","../tool/area","../shape/Sector"],function(t){function e(t){i.call(this,t)}var i=t("./Base"),o=t("../tool/util"),r=t("../tool/color"),n=t("../tool/area"),s=t("../shape/Sector");return o.inherits(e,i),e.prototype._start=function(t,e){var i=o.merge(this.options,{textStyle:{color:"#fff",textAlign:"start"},backgroundColor:"rgba(0, 0, 0, 0.8)"}),a=this.createTextShape(i.textStyle),h=10,l=n.getTextWidth(a.highlightStyle.text,a.highlightStyle.textFont),d=n.getTextHeight(a.highlightStyle.text,a.highlightStyle.textFont),c=o.merge(this.options.effect||{},{r0:9,r:15,n:18,color:"#fff",timeInterval:100}),u=this.getLocation(this.options.textStyle,l+h+2*c.r,Math.max(2*c.r,d));c.x=u.x+c.r,c.y=a.highlightStyle.y=u.y+u.height/2,a.highlightStyle.x=c.x+c.r+h;for(var p=this.createBackgroundShape(i.backgroundColor),f=c.n,g=c.x,m=c.y,_=c.r0,y=c.r,v=c.color,x=[],b=Math.round(180/f),T=0;f>T;T++)x[T]=new s({highlightStyle:{x:g,y:m,r0:_,r:y,startAngle:b*T*2,endAngle:b*T*2+b,color:r.alpha(v,(T+1)/f),brushType:"fill"}});var S=[0,g,m];return setInterval(function(){t(p),S[0]-=.3;for(var i=0;f>i;i++)x[i].rotation=S,t(x[i]);t(a),e()},c.timeInterval)},e}),define("zrender/tool/guid",[],function(){var t=2311;return function(){return"zrender__"+t++}}),define("zrender/tool/log",["require","../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),define("zrender/tool/matrix",[],function(){var t="undefined"==typeof Float32Array?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){return t[0]=e[0]*i[0]+e[2]*i[1],t[1]=e[1]*i[0]+e[3]*i[1],t[2]=e[0]*i[2]+e[2]*i[3],t[3]=e[1]*i[2]+e[3]*i[3],t[4]=e[0]*i[4]+e[2]*i[5]+e[4],t[5]=e[1]*i[4]+e[3]*i[5]+e[5],t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var o=e[0],r=e[2],n=e[4],s=e[1],a=e[3],h=e[5],l=Math.sin(i),d=Math.cos(i);return t[0]=o*d+s*l,t[1]=-o*l+s*d,t[2]=r*d+a*l,t[3]=-r*l+d*a,t[4]=d*n+l*h,t[5]=d*h-l*n,t},scale:function(t,e,i){var o=i[0],r=i[1];return t[0]=e[0]*o,t[1]=e[1]*r,t[2]=e[2]*o,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],o=e[2],r=e[4],n=e[1],s=e[3],a=e[5],h=i*s-n*o;return h?(h=1/h,t[0]=s*h,t[1]=-n*h,t[2]=-o*h,t[3]=i*h,t[4]=(o*a-s*r)*h,t[5]=(n*r-i*a)*h,t):null}};return e}),define("echarts/theme/macarons",[],function(){var t={color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],title:{textStyle:{fontWeight:"normal",color:"#008acd"}},dataRange:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{color:["#1e90ff","#1e90ff","#1e90ff","#1e90ff"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{normal:{color:"#008acd"},emphasis:{color:"#008acd"}},symbol:"emptyCircle",symbolSize:3},bar:{itemStyle:{normal:{barBorderRadius:5},emphasis:{barBorderRadius:5}}},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},k:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",lineStyle:{color:"#d87a80",color0:"#2ec7c9"}}}},scatter:{symbol:"circle",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#d87a80"}}},emphasis:{areaStyle:{color:"#fe994e"}}}},force:{itemStyle:{normal:{linkStyle:{color:"#1e90ff"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}},textStyle:{fontFamily:"微软雅黑, Arial, Verdana, sans-serif"}};return t}),define("zrender/dep/excanvas",["require"],function(){return document.createElement("canvas").getContext?G_vmlCanvasManager=!1:!function(){function t(){return this.context_||(this.context_=new x(this))}function e(t,e){var i=N.call(arguments,2);return function(){return t.apply(e,i.concat(N.call(arguments)))}}function i(t){return String(t).replace(/&/g,"&").replace(/"/g,""")}function o(t,e,i){t.namespaces[e]||t.namespaces.add(e,i,"#default#VML")}function r(t){if(o(t,"g_vml_","urn:schemas-microsoft-com:vml"),o(t,"g_o_","urn:schemas-microsoft-com:office:office"),!t.styleSheets.ex_canvas_){var e=t.createStyleSheet();e.owningElement.id="ex_canvas_",e.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function n(t){var e=t.srcElement;switch(t.propertyName){case"width":e.getContext().clearRect(),e.style.width=e.attributes.width.nodeValue+"px",e.firstChild.style.width=e.clientWidth+"px";break;case"height":e.getContext().clearRect(),e.style.height=e.attributes.height.nodeValue+"px",e.firstChild.style.height=e.clientHeight+"px"}}function s(t){var e=t.srcElement;e.firstChild&&(e.firstChild.style.width=e.clientWidth+"px",e.firstChild.style.height=e.clientHeight+"px")}function a(){return[[1,0,0],[0,1,0],[0,0,1]]}function h(t,e){for(var i=a(),o=0;3>o;o++)for(var r=0;3>r;r++){for(var n=0,s=0;3>s;s++)n+=t[o][s]*e[s][r];i[o][r]=n}return i}function l(t,e){e.fillStyle=t.fillStyle,e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.shadowBlur=t.shadowBlur,e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY,e.strokeStyle=t.strokeStyle,e.globalAlpha=t.globalAlpha,e.font=t.font,e.textAlign=t.textAlign,e.textBaseline=t.textBaseline,e.scaleX_=t.scaleX_,e.scaleY_=t.scaleY_,e.lineScale_=t.lineScale_}function d(t){var e=t.indexOf("(",3),i=t.indexOf(")",e+1),o=t.substring(e+1,i).split(",");return(4!=o.length||"a"!=t.charAt(3))&&(o[3]=1),o}function c(t){return parseFloat(t)/100}function u(t,e,i){return Math.min(i,Math.max(e,t))}function p(t){var e,i,o,r,n,s;if(r=parseFloat(t[0])/360%360,0>r&&r++,n=u(c(t[1]),0,1),s=u(c(t[2]),0,1),0==n)e=i=o=s;else{var a=.5>s?s*(1+n):s+n-s*n,h=2*s-a;e=f(h,a,r+1/3),i=f(h,a,r),o=f(h,a,r-1/3)}return"#"+W[Math.floor(255*e)]+W[Math.floor(255*i)]+W[Math.floor(255*o)]}function f(t,e,i){return 0>i&&i++,i>1&&i--,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function g(t){if(t in V)return V[t];var e,i=1;if(t=String(t),"#"==t.charAt(0))e=t;else if(/^rgb/.test(t)){for(var o,r=d(t),e="#",n=0;3>n;n++)o=-1!=r[n].indexOf("%")?Math.floor(255*c(r[n])):+r[n],e+=W[u(o,0,255)];i=+r[3]}else if(/^hsl/.test(t)){var r=d(t);e=p(r),i=r[3]}else e=X[t]||t;return V[t]={color:e,alpha:i}}function m(t){if(U[t])return U[t];var e,i=document.createElement("div"),o=i.style;try{o.font=t,e=o.fontFamily.split(",")[0]}catch(r){}return U[t]={style:o.fontStyle||Z.style,variant:o.fontVariant||Z.variant,weight:o.fontWeight||Z.weight,size:o.fontSize||Z.size,family:e||Z.family}}function _(t,e){var i={};for(var o in t)i[o]=t[o];var r=parseFloat(e.currentStyle.fontSize),n=parseFloat(t.size);return i.size="number"==typeof t.size?t.size:-1!=t.size.indexOf("px")?n:-1!=t.size.indexOf("em")?r*n:-1!=t.size.indexOf("%")?r/100*n:-1!=t.size.indexOf("pt")?n/.75:r,i}function y(t){return t.style+" "+t.variant+" "+t.weight+" "+t.size+"px '"+t.family+"'"}function v(t){return Q[t]||"square"}function x(t){this.m_=a(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*B,this.globalAlpha=1,this.font="12px 微软雅黑",this.textAlign="left",this.textBaseline="alphabetic",this.canvas=t;var e="width:"+t.clientWidth+"px;height:"+t.clientHeight+"px;overflow:hidden;position:absolute",i=t.ownerDocument.createElement("div");i.style.cssText=e,t.appendChild(i);var o=i.cloneNode(!1);o.style.backgroundColor="#fff",o.style.filter="alpha(opacity=0)",t.appendChild(o),this.element_=i,this.scaleX_=1,this.scaleY_=1,this.lineScale_=1}function b(t,e,i,o){t.currentPath_.push({type:"bezierCurveTo",cp1x:e.x,cp1y:e.y,cp2x:i.x,cp2y:i.y,x:o.x,y:o.y}),t.currentX_=o.x,t.currentY_=o.y}function T(t,e){var i=g(t.strokeStyle),o=i.color,r=i.alpha*t.globalAlpha,n=t.lineScale_*t.lineWidth;1>n&&(r*=n),e.push("<g_vml_:stroke",' opacity="',r,'"',' joinstyle="',t.lineJoin,'"',' miterlimit="',t.miterLimit,'"',' endcap="',v(t.lineCap),'"',' weight="',n,'px"',' color="',o,'" />')}function S(t,e,i,o){var r=t.fillStyle,n=t.scaleX_,s=t.scaleY_,a=o.x-i.x,h=o.y-i.y;if(r instanceof w){var l=0,d={x:0,y:0},c=0,u=1;if("gradient"==r.type_){var p=r.x0_/n,f=r.y0_/s,m=r.x1_/n,_=r.y1_/s,y=C(t,p,f),v=C(t,m,_),x=v.x-y.x,b=v.y-y.y;l=180*Math.atan2(x,b)/Math.PI,0>l&&(l+=360),1e-6>l&&(l=0)}else{var y=C(t,r.x0_,r.y0_);d={x:(y.x-i.x)/a,y:(y.y-i.y)/h},a/=n*B,h/=s*B;var T=I.max(a,h);c=2*r.r0_/T,u=2*r.r1_/T-c}var S=r.colors_;S.sort(function(t,e){return t.offset-e.offset});for(var z=S.length,E=S[0].color,L=S[z-1].color,M=S[0].alpha*t.globalAlpha,k=S[z-1].alpha*t.globalAlpha,P=[],O=0;z>O;O++){var D=S[O];P.push(D.offset*u+c+" "+D.color)}e.push('<g_vml_:fill type="',r.type_,'"',' method="none" focus="100%"',' color="',E,'"',' color2="',L,'"',' colors="',P.join(","),'"',' opacity="',k,'"',' g_o_:opacity2="',M,'"',' angle="',l,'"',' focusposition="',d.x,",",d.y,'" />')}else if(r instanceof A){if(a&&h){var R=-i.x,H=-i.y;e.push("<g_vml_:fill",' position="',R/a*n*n,",",H/h*s*s,'"',' type="tile"',' src="',r.src_,'" />')}}else{var F=g(t.fillStyle),N=F.color,Y=F.alpha*t.globalAlpha;e.push('<g_vml_:fill color="',N,'" opacity="',Y,'" />')}}function C(t,e,i){var o=t.m_;return{x:B*(e*o[0][0]+i*o[1][0]+o[2][0])-F,y:B*(e*o[0][1]+i*o[1][1]+o[2][1])-F}}function z(t){return isFinite(t[0][0])&&isFinite(t[0][1])&&isFinite(t[1][0])&&isFinite(t[1][1])&&isFinite(t[2][0])&&isFinite(t[2][1])}function E(t,e,i){if(z(e)&&(t.m_=e,t.scaleX_=Math.sqrt(e[0][0]*e[0][0]+e[0][1]*e[0][1]),t.scaleY_=Math.sqrt(e[1][0]*e[1][0]+e[1][1]*e[1][1]),i)){var o=e[0][0]*e[1][1]-e[0][1]*e[1][0];t.lineScale_=H(R(o))}}function w(t){this.type_=t,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function A(t,e){switch(M(t),e){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=e;break;default:L("SYNTAX_ERR")}this.src_=t.src,this.width_=t.width,this.height_=t.height}function L(t){throw new k(t)}function M(t){t&&1==t.nodeType&&"IMG"==t.tagName||L("TYPE_MISMATCH_ERR"),"complete"!=t.readyState&&L("INVALID_STATE_ERR")}function k(t){this.code=this[t],this.message=t+": DOM Exception "+this.code}var I=Math,P=I.round,O=I.sin,D=I.cos,R=I.abs,H=I.sqrt,B=10,F=B/2,N=(+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1],Array.prototype.slice);r(document);var Y={init:function(t){var i=t||document;i.createElement("canvas"),i.attachEvent("onreadystatechange",e(this.init_,this,i))},init_:function(t){for(var e=t.getElementsByTagName("canvas"),i=0;i<e.length;i++)this.initElement(e[i])},initElement:function(e){if(!e.getContext){e.getContext=t,r(e.ownerDocument),e.innerHTML="",e.attachEvent("onpropertychange",n),e.attachEvent("onresize",s);var i=e.attributes;i.width&&i.width.specified?e.style.width=i.width.nodeValue+"px":e.width=e.clientWidth,i.height&&i.height.specified?e.style.height=i.height.nodeValue+"px":e.height=e.clientHeight}return e}};Y.init();for(var W=[],G=0;16>G;G++)for(var q=0;16>q;q++)W[16*G+q]=G.toString(16)+q.toString(16);var X={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},V={},Z={style:"normal",variant:"normal",weight:"normal",size:12,family:"微软雅黑"},U={},Q={butt:"flat",round:"round"},j=x.prototype;j.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null),this.element_.innerHTML=""},j.beginPath=function(){this.currentPath_=[]},j.moveTo=function(t,e){var i=C(this,t,e);this.currentPath_.push({type:"moveTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},j.lineTo=function(t,e){var i=C(this,t,e);this.currentPath_.push({type:"lineTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},j.bezierCurveTo=function(t,e,i,o,r,n){var s=C(this,r,n),a=C(this,t,e),h=C(this,i,o);b(this,a,h,s)},j.quadraticCurveTo=function(t,e,i,o){var r=C(this,t,e),n=C(this,i,o),s={x:this.currentX_+2/3*(r.x-this.currentX_),y:this.currentY_+2/3*(r.y-this.currentY_)},a={x:s.x+(n.x-this.currentX_)/3,y:s.y+(n.y-this.currentY_)/3};b(this,s,a,n)},j.arc=function(t,e,i,o,r,n){i*=B;var s=n?"at":"wa",a=t+D(o)*i-F,h=e+O(o)*i-F,l=t+D(r)*i-F,d=e+O(r)*i-F;a!=l||n||(a+=.125);var c=C(this,t,e),u=C(this,a,h),p=C(this,l,d);this.currentPath_.push({type:s,x:c.x,y:c.y,radius:i,xStart:u.x,yStart:u.y,xEnd:p.x,yEnd:p.y})},j.rect=function(t,e,i,o){this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+o),this.lineTo(t,e+o),this.closePath()},j.strokeRect=function(t,e,i,o){var r=this.currentPath_;this.beginPath(),this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+o),this.lineTo(t,e+o),this.closePath(),this.stroke(),this.currentPath_=r},j.fillRect=function(t,e,i,o){var r=this.currentPath_;this.beginPath(),this.moveTo(t,e),this.lineTo(t+i,e),this.lineTo(t+i,e+o),this.lineTo(t,e+o),this.closePath(),this.fill(),this.currentPath_=r},j.createLinearGradient=function(t,e,i,o){var r=new w("gradient");return r.x0_=t,r.y0_=e,r.x1_=i,r.y1_=o,r},j.createRadialGradient=function(t,e,i,o,r,n){var s=new w("gradientradial");return s.x0_=t,s.y0_=e,s.r0_=i,s.x1_=o,s.y1_=r,s.r1_=n,s},j.drawImage=function(t){var e,i,o,r,n,s,a,h,l=t.runtimeStyle.width,d=t.runtimeStyle.height;t.runtimeStyle.width="auto",t.runtimeStyle.height="auto";var c=t.width,u=t.height;if(t.runtimeStyle.width=l,t.runtimeStyle.height=d,3==arguments.length)e=arguments[1],i=arguments[2],n=s=0,a=o=c,h=r=u;else if(5==arguments.length)e=arguments[1],i=arguments[2],o=arguments[3],r=arguments[4],n=s=0,a=c,h=u;else{if(9!=arguments.length)throw Error("Invalid number of arguments");n=arguments[1],s=arguments[2],a=arguments[3],h=arguments[4],e=arguments[5],i=arguments[6],o=arguments[7],r=arguments[8]}var p=C(this,e,i),f=[],g=10,m=10,_=v=1;if(f.push(" <g_vml_:group",' coordsize="',B*g,",",B*m,'"',' coordorigin="0,0"',' style="width:',g,"px;height:",m,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var y=[],_=this.scaleX_,v=this.scaleY_;y.push("M11=",this.m_[0][0]/_,",","M12=",this.m_[1][0]/v,",","M21=",this.m_[0][1]/_,",","M22=",this.m_[1][1]/v,",","Dx=",P(p.x/B),",","Dy=",P(p.y/B),"");var x=p,b=C(this,e+o,i),T=C(this,e,i+r),S=C(this,e+o,i+r);x.x=I.max(x.x,b.x,T.x,S.x),x.y=I.max(x.y,b.y,T.y,S.y),f.push("padding:0 ",P(x.x/B),"px ",P(x.y/B),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",y.join(""),", SizingMethod='clip');")}else f.push("top:",P(p.y/B),"px;left:",P(p.x/B),"px;");f.push(' ">'),(n||s)&&f.push('<div style="overflow: hidden; width:',Math.ceil((o+n*o/a)*_),"px;"," height:",Math.ceil((r+s*r/h)*v),"px;"," filter:progid:DxImageTransform.Microsoft.Matrix(Dx=",-n*o/a*_,",Dy=",-s*r/h*v,');">'),f.push('<div style="width:',Math.round(_*c*o/a),"px;"," height:",Math.round(v*u*r/h),"px;"," filter:"),this.globalAlpha<1&&f.push(" progid:DXImageTransform.Microsoft.Alpha(opacity="+100*this.globalAlpha+")"),f.push(" progid:DXImageTransform.Microsoft.AlphaImageLoader(src=",t.src,',sizingMethod=scale)">'),(n||s)&&f.push("</div>"),f.push("</div></div>"),this.element_.insertAdjacentHTML("BeforeEnd",f.join(""))},j.stroke=function(t){var e=[],i=10,o=10;e.push("<g_vml_:shape",' filled="',!!t,'"',' style="position:absolute;width:',i,"px;height:",o,'px;"',' coordorigin="0,0"',' coordsize="',B*i,",",B*o,'"',' stroked="',!t,'"',' path="');for(var r={x:null,y:null},n={x:null,y:null},s=0;s<this.currentPath_.length;s++){var a,h=this.currentPath_[s];switch(h.type){case"moveTo":a=h,e.push(" m ",P(h.x),",",P(h.y));break;case"lineTo":e.push(" l ",P(h.x),",",P(h.y));break;case"close":e.push(" x "),h=null;break;case"bezierCurveTo":e.push(" c ",P(h.cp1x),",",P(h.cp1y),",",P(h.cp2x),",",P(h.cp2y),",",P(h.x),",",P(h.y));break;case"at":case"wa":e.push(" ",h.type," ",P(h.x-this.scaleX_*h.radius),",",P(h.y-this.scaleY_*h.radius)," ",P(h.x+this.scaleX_*h.radius),",",P(h.y+this.scaleY_*h.radius)," ",P(h.xStart),",",P(h.yStart)," ",P(h.xEnd),",",P(h.yEnd))}h&&((null==r.x||h.x<r.x)&&(r.x=h.x),(null==n.x||h.x>n.x)&&(n.x=h.x),(null==r.y||h.y<r.y)&&(r.y=h.y),(null==n.y||h.y>n.y)&&(n.y=h.y))}e.push(' ">'),t?S(this,e,r,n):T(this,e),e.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",e.join(""))},j.fill=function(){this.stroke(!0)},j.closePath=function(){this.currentPath_.push({type:"close"})},j.save=function(){var t={};l(this,t),this.aStack_.push(t),this.mStack_.push(this.m_),this.m_=h(a(),this.m_)},j.restore=function(){this.aStack_.length&&(l(this.aStack_.pop(),this),this.m_=this.mStack_.pop())},j.translate=function(t,e){var i=[[1,0,0],[0,1,0],[t,e,1]];E(this,h(i,this.m_),!1)},j.rotate=function(t){var e=D(t),i=O(t),o=[[e,i,0],[-i,e,0],[0,0,1]];E(this,h(o,this.m_),!1)},j.scale=function(t,e){var i=[[t,0,0],[0,e,0],[0,0,1]];E(this,h(i,this.m_),!0)},j.transform=function(t,e,i,o,r,n){var s=[[t,e,0],[i,o,0],[r,n,1]];E(this,h(s,this.m_),!0)},j.setTransform=function(t,e,i,o,r,n){var s=[[t,e,0],[i,o,0],[r,n,1]];E(this,s,!0)},j.drawText_=function(t,e,o,r,n){var s=this.m_,a=1e3,h=0,l=a,d={x:0,y:0},c=[],u=_(m(this.font),this.element_),p=y(u),f=this.element_.currentStyle,g=this.textAlign.toLowerCase();switch(g){case"left":case"center":case"right":break;case"end":g="ltr"==f.direction?"right":"left";break;case"start":g="rtl"==f.direction?"right":"left";break;default:g="left"}switch(this.textBaseline){case"hanging":case"top":d.y=u.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":d.y=-u.size/2.25}switch(g){case"right":h=a,l=.05;break;case"center":h=l=a/2}var v=C(this,e+d.x,o+d.y);c.push('<g_vml_:line from="',-h,' 0" to="',l,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!n,'" stroked="',!!n,'" style="position:absolute;width:1px;height:1px;">'),n?T(this,c):S(this,c,{x:-h,y:0},{x:l,y:u.size});var x=s[0][0].toFixed(3)+","+s[1][0].toFixed(3)+","+s[0][1].toFixed(3)+","+s[1][1].toFixed(3)+",0,0",b=P(v.x/B)+","+P(v.y/B);c.push('<g_vml_:skew on="t" matrix="',x,'" ',' offset="',b,'" origin="',h,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',i(t),'" style="v-text-align:',g,";font:",i(p),'" /></g_vml_:line>'),this.element_.insertAdjacentHTML("beforeEnd",c.join(""))
},j.fillText=function(t,e,i,o){this.drawText_(t,e,i,o,!1)},j.strokeText=function(t,e,i,o){this.drawText_(t,e,i,o,!0)},j.measureText=function(t){if(!this.textMeasureEl_){var e='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",e),this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";try{this.textMeasureEl_.style.font=this.font}catch(o){}return this.textMeasureEl_.appendChild(i.createTextNode(t)),{width:this.textMeasureEl_.offsetWidth}},j.clip=function(){},j.arcTo=function(){},j.createPattern=function(t,e){return new A(t,e)},w.prototype.addColorStop=function(t,e){e=g(e),this.colors_.push({offset:t,color:e.color,alpha:e.alpha})};var K=k.prototype=new Error;K.INDEX_SIZE_ERR=1,K.DOMSTRING_SIZE_ERR=2,K.HIERARCHY_REQUEST_ERR=3,K.WRONG_DOCUMENT_ERR=4,K.INVALID_CHARACTER_ERR=5,K.NO_DATA_ALLOWED_ERR=6,K.NO_MODIFICATION_ALLOWED_ERR=7,K.NOT_FOUND_ERR=8,K.NOT_SUPPORTED_ERR=9,K.INUSE_ATTRIBUTE_ERR=10,K.INVALID_STATE_ERR=11,K.SYNTAX_ERR=12,K.INVALID_MODIFICATION_ERR=13,K.NAMESPACE_ERR=14,K.INVALID_ACCESS_ERR=15,K.VALIDATION_ERR=16,K.TYPE_MISMATCH_ERR=17,G_vmlCanvasManager=Y,CanvasRenderingContext2D=x,CanvasGradient=w,CanvasPattern=A,DOMException=k}(),G_vmlCanvasManager}),define("zrender/mixin/Transformable",["require","../tool/matrix","../tool/vector"],function(t){"use strict";function e(t){return t>-a&&a>t}function i(t){return t>a||-a>t}var o=t("../tool/matrix"),r=t("../tool/vector"),n=[0,0],s=o.translate,a=5e-5,h=function(){this.position||(this.position=[0,0]),"undefined"==typeof this.rotation&&(this.rotation=[0,0,0]),this.scale||(this.scale=[1,1,0,0]),this.needLocalTransform=!1,this.needTransform=!1};return h.prototype={constructor:h,updateNeedTransform:function(){this.needLocalTransform=i(this.rotation[0])||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},updateTransform:function(){this.updateNeedTransform();var t=this.parent&&this.parent.needTransform;if(this.needTransform=this.needLocalTransform||t,this.needTransform){var e=this.transform||o.create();if(o.identity(e),this.needLocalTransform){var r=this.scale;if(i(r[0])||i(r[1])){n[0]=-r[2]||0,n[1]=-r[3]||0;var a=i(n[0])||i(n[1]);a&&s(e,e,n),o.scale(e,e,r),a&&(n[0]=-n[0],n[1]=-n[1],s(e,e,n))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){n[0]=-this.rotation[1]||0,n[1]=-this.rotation[2]||0;var a=i(n[0])||i(n[1]);a&&s(e,e,n),o.rotate(e,e,this.rotation[0]),a&&(n[0]=-n[0],n[1]=-n[1],s(e,e,n))}}else 0!==this.rotation&&o.rotate(e,e,this.rotation);(i(this.position[0])||i(this.position[1]))&&s(e,e,this.position)}t&&(this.needLocalTransform?o.mul(e,this.parent.transform,e):o.copy(e,this.parent.transform)),this.transform=e,this.invTransform=this.invTransform||o.create(),o.invert(this.invTransform,e)}},setTransform:function(t){if(this.needTransform){var e=this.transform;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},lookAt:function(){var t=r.create();return function(i){this.transform||(this.transform=o.create());var n=this.transform;if(r.sub(t,i,this.position),!e(t[0])||!e(t[1])){r.normalize(t,t);var s=this.scale;n[2]=t[0]*s[1],n[3]=t[1]*s[1],n[0]=t[1]*s[0],n[1]=-t[0]*s[0],n[4]=this.position[0],n[5]=this.position[1],this.decomposeTransform()}}}(),decomposeTransform:function(){if(this.transform){var t=this.transform,e=t[0]*t[0]+t[1]*t[1],o=this.position,r=this.scale,n=this.rotation;i(e-1)&&(e=Math.sqrt(e));var s=t[2]*t[2]+t[3]*t[3];i(s-1)&&(s=Math.sqrt(s)),o[0]=t[4],o[1]=t[5],r[0]=e,r[1]=s,r[2]=r[3]=0,n[0]=Math.atan2(-t[1]/s,t[0]/e),n[1]=n[2]=0}},transformCoordToLocal:function(t,e){var i=[t,e];return this.needTransform&&this.invTransform&&r.applyTransform(i,i,this.invTransform),i}},h}),define("zrender/loadingEffect/Bar",["require","./Base","../tool/util","../tool/color","../shape/Rectangle"],function(t){function e(t){i.call(this,t)}var i=t("./Base"),o=t("../tool/util"),r=t("../tool/color"),n=t("../shape/Rectangle");return o.inherits(e,i),e.prototype._start=function(t,e){var i=o.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effectOption:{x:0,y:this.canvasHeight/2-30,width:this.canvasWidth,height:5,brushType:"fill",timeInterval:100}}),s=this.createTextShape(i.textStyle),a=this.createBackgroundShape(i.backgroundColor),h=i.effectOption,l=new n({highlightStyle:o.clone(h)});return l.highlightStyle.color=h.color||r.getLinearGradient(h.x,h.y,h.x+h.width,h.y+h.height,[[0,"#ff6400"],[.5,"#ffe100"],[1,"#b1ff00"]]),null!=i.progress?(t(a),l.highlightStyle.width=this.adjust(i.progress,[0,1])*i.effectOption.width,t(l),t(s),void e()):(l.highlightStyle.width=0,setInterval(function(){t(a),l.highlightStyle.width<h.width?l.highlightStyle.width+=8:l.highlightStyle.width=0,t(l),t(s),e()},h.timeInterval))},e}),define("zrender/tool/vector",[],function(){var t="undefined"==typeof Float32Array?Array:Float32Array,e={create:function(e,i){var o=new t(2);return o[0]=e||0,o[1]=i||0,o},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,o){return t[0]=e[0]+i[0]*o,t[1]=e[1]+i[1]*o,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var o=e.len(i);return 0===o?(t[0]=0,t[1]=0):(t[0]=i[0]/o,t[1]=i[1]/o),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,o){return t[0]=e[0]+o*(i[0]-e[0]),t[1]=e[1]+o*(i[1]-e[1]),t},applyTransform:function(t,e,i){var o=e[0],r=e[1];return t[0]=i[0]*o+i[2]*r+i[4],t[1]=i[1]*o+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e.length=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),define("zrender/mixin/Eventful",["require"],function(){var t=function(){this._handlers={}};return t.prototype.one=function(t,e,i){var o=this._handlers;return e&&t?(o[t]||(o[t]=[]),o[t].push({h:e,one:!0,ctx:i||this}),this):this},t.prototype.bind=function(t,e,i){var o=this._handlers;return e&&t?(o[t]||(o[t]=[]),o[t].push({h:e,one:!1,ctx:i||this}),this):this},t.prototype.unbind=function(t,e){var i=this._handlers;if(!t)return this._handlers={},this;if(e){if(i[t]){for(var o=[],r=0,n=i[t].length;n>r;r++)i[t][r].h!=e&&o.push(i[t][r]);i[t]=o}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.dispatch=function(t){if(this._handlers[t]){var e=arguments,i=e.length;i>3&&(e=Array.prototype.slice.call(e,1));for(var o=this._handlers[t],r=o.length,n=0;r>n;){switch(i){case 1:o[n].h.call(o[n].ctx);break;case 2:o[n].h.call(o[n].ctx,e[1]);break;case 3:o[n].h.call(o[n].ctx,e[1],e[2]);break;default:o[n].h.apply(o[n].ctx,e)}o[n].one?(o.splice(n,1),r--):n++}}return this},t.prototype.dispatchWithContext=function(t){if(this._handlers[t]){var e=arguments,i=e.length;i>4&&(e=Array.prototype.slice.call(e,1,e.length-1));for(var o=e[e.length-1],r=this._handlers[t],n=r.length,s=0;n>s;){switch(i){case 1:r[s].h.call(o);break;case 2:r[s].h.call(o,e[1]);break;case 3:r[s].h.call(o,e[1],e[2]);break;default:r[s].h.apply(o,e)}r[s].one?(r.splice(s,1),n--):s++}}return this},t}),define("zrender/Painter",["require","./config","./tool/util","./tool/log","./loadingEffect/Base","./Layer","./shape/Image"],function(t){"use strict";function e(){return!1}function i(){}function o(t){return t?t.isBuildin?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}var r=t("./config"),n=t("./tool/util"),s=t("./tool/log"),a=t("./loadingEffect/Base"),h=t("./Layer"),l=function(t,i){this.root=t,t.style["-webkit-tap-highlight-color"]="transparent",t.style["-webkit-user-select"]="none",t.style["user-select"]="none",t.style["-webkit-touch-callout"]="none",this.storage=i,t.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var o=document.createElement("div");this._domRoot=o,o.style.position="relative",o.style.overflow="hidden",o.style.width=this._width+"px",o.style.height=this._height+"px",t.appendChild(o),this._layers={},this._zlevelList=[],this._layerConfig={},this._loadingEffect=new a({}),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=document.createElement("div"),this._bgDom.style.cssText=["position:absolute;left:0px;top:0px;width:",this._width,"px;height:",this._height+"px;","-webkit-user-select:none;user-select;none;","-webkit-touch-callout:none;"].join(""),this._bgDom.setAttribute("data-zr-dom-id","bg"),this._bgDom.className=r.elementClassName,o.appendChild(this._bgDom),this._bgDom.onselectstart=e;var n=new h("_zrender_hover_",this);this._layers.hover=n,o.appendChild(n.dom),n.initContext(),n.dom.onselectstart=e,n.dom.style["-webkit-user-select"]="none",n.dom.style["user-select"]="none",n.dom.style["-webkit-touch-callout"]="none",this.refreshNextFrame=null};return l.prototype.render=function(t){return this.isLoading()&&this.hideLoading(),this.refresh(t,!0),this},l.prototype.refresh=function(t,e){var i=this.storage.getShapeList(!0);this._paintList(i,e);for(var o=0;o<this._zlevelList.length;o++){var r=this._zlevelList[o],n=this._layers[r];!n.isBuildin&&n.refresh&&n.refresh()}return"function"==typeof t&&t(),this},l.prototype._preProcessLayer=function(t){t.unusedCount++,t.updateTransform()},l.prototype._postProcessLayer=function(t){t.dirty=!1,1==t.unusedCount&&t.clear()},l.prototype._paintList=function(t,e){"undefined"==typeof e&&(e=!1),this._updateLayerStatus(t);var i,o,n;this.eachBuildinLayer(this._preProcessLayer);for(var a=0,h=t.length;h>a;a++){var l=t[a];if(o!==l.zlevel&&(i&&(i.needTransform&&n.restore(),n.flush&&n.flush()),o=l.zlevel,i=this.getLayer(o),i.isBuildin||s("ZLevel "+o+" has been used by unkown layer "+i.id),n=i.ctx,i.unusedCount=0,(i.dirty||e)&&i.clear(),i.needTransform&&(n.save(),i.setTransform(n))),(i.dirty||e)&&!l.invisible&&(!l.onbrush||l.onbrush&&!l.onbrush(n,!1)))if(r.catchBrushException)try{l.brush(n,!1,this.refreshNextFrame)}catch(d){s(d,"brush error of "+l.type,l)}else l.brush(n,!1,this.refreshNextFrame);l.__dirty=!1}i&&(i.needTransform&&n.restore(),n.flush&&n.flush()),this.eachBuildinLayer(this._postProcessLayer)},l.prototype.getLayer=function(t){var e=this._layers[t];return e||(e=new h(t,this),e.isBuildin=!0,this._layerConfig[t]&&n.merge(e,this._layerConfig[t],!0),e.updateTransform(),this.insertLayer(t,e),e.initContext()),e},l.prototype.insertLayer=function(t,e){if(this._layers[t])return void s("ZLevel "+t+" has been used already");if(!o(e))return void s("Layer of zlevel "+t+" is not valid");var i=this._zlevelList.length,r=null,n=-1;if(i>0&&t>this._zlevelList[0]){for(n=0;i-1>n&&!(this._zlevelList[n]<t&&this._zlevelList[n+1]>t);n++);r=this._layers[this._zlevelList[n]]}this._zlevelList.splice(n+1,0,t);var a=r?r.dom:this._bgDom;a.nextSibling?a.parentNode.insertBefore(e.dom,a.nextSibling):a.parentNode.appendChild(e.dom),this._layers[t]=e},l.prototype.eachLayer=function(t,e){for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];t.call(e,this._layers[o],o)}},l.prototype.eachBuildinLayer=function(t,e){for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i],r=this._layers[o];r.isBuildin&&t.call(e,r,o)}},l.prototype.eachOtherLayer=function(t,e){for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i],r=this._layers[o];r.isBuildin||t.call(e,r,o)}},l.prototype.getLayers=function(){return this._layers},l.prototype._updateLayerStatus=function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var o=0,r=t.length;r>o;o++){var n=t[o],s=n.zlevel,a=e[s];if(a){if(a.elCount++,a.dirty)continue;a.dirty=n.__dirty}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t.dirty=!0)})},l.prototype.refreshShapes=function(t,e){for(var i=0,o=t.length;o>i;i++){var r=t[i];r.modSelf()}return this.refresh(e),this},l.prototype.setLoadingEffect=function(t){return this._loadingEffect=t,this},l.prototype.clear=function(){return this.eachBuildinLayer(this._clearLayer),this},l.prototype._clearLayer=function(t){t.clear()},l.prototype.modLayer=function(t,e){if(e){this._layerConfig[t]?n.merge(this._layerConfig[t],e,!0):this._layerConfig[t]=e;var i=this._layers[t];i&&n.merge(i,this._layerConfig[t],!0)}},l.prototype.delLayer=function(t){var e=this._layers[t];e&&(this.modLayer(t,{position:e.position,rotation:e.rotation,scale:e.scale}),e.dom.parentNode.removeChild(e.dom),delete this._layers[t],this._zlevelList.splice(n.indexOf(this._zlevelList,t),1))},l.prototype.refreshHover=function(){this.clearHover();for(var t=this.storage.getHoverShapes(!0),e=0,i=t.length;i>e;e++)this._brushHover(t[e]);var o=this._layers.hover.ctx;return o.flush&&o.flush(),this.storage.delHover(),this},l.prototype.clearHover=function(){var t=this._layers.hover;return t&&t.clear(),this},l.prototype.showLoading=function(t){return this._loadingEffect&&this._loadingEffect.stop(),t&&this.setLoadingEffect(t),this._loadingEffect.start(this),this.loading=!0,this},l.prototype.hideLoading=function(){return this._loadingEffect.stop(),this.clearHover(),this.loading=!1,this},l.prototype.isLoading=function(){return this.loading},l.prototype.resize=function(){var t=this._domRoot;t.style.display="none";var e=this._getWidth(),i=this._getHeight();if(t.style.display="",this._width!=e||i!=this._height){this._width=e,this._height=i,t.style.width=e+"px",t.style.height=i+"px";for(var o in this._layers)this._layers[o].resize(e,i);this.refresh(null,!0)}return this},l.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},l.prototype.dispose=function(){this.isLoading()&&this.hideLoading(),this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},l.prototype.getDomHover=function(){return this._layers.hover.dom},l.prototype.toDataURL=function(t,e,i){if(window.G_vmlCanvasManager)return null;var o=new h("image",this);this._bgDom.appendChild(o.dom),o.initContext();var n=o.ctx;o.clearColor=e||"#fff",o.clear();var a=this;this.storage.iterShape(function(t){if(!t.invisible&&(!t.onbrush||t.onbrush&&!t.onbrush(n,!1)))if(r.catchBrushException)try{t.brush(n,!1,a.refreshNextFrame)}catch(e){s(e,"brush error of "+t.type,t)}else t.brush(n,!1,a.refreshNextFrame)},{normal:"up",update:!0});var l=o.dom.toDataURL(t,i);return n=null,this._bgDom.removeChild(o.dom),l},l.prototype.getWidth=function(){return this._width},l.prototype.getHeight=function(){return this._height},l.prototype._getWidth=function(){var t=this.root,e=t.currentStyle||document.defaultView.getComputedStyle(t);return((t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)).toFixed(0)-0},l.prototype._getHeight=function(){var t=this.root,e=t.currentStyle||document.defaultView.getComputedStyle(t);return((t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)).toFixed(0)-0},l.prototype._brushHover=function(t){var e=this._layers.hover.ctx;if(!t.onbrush||t.onbrush&&!t.onbrush(e,!0)){var i=this.getLayer(t.zlevel);if(i.needTransform&&(e.save(),i.setTransform(e)),r.catchBrushException)try{t.brush(e,!0,this.refreshNextFrame)}catch(o){s(o,"hoverBrush error of "+t.type,t)}else t.brush(e,!0,this.refreshNextFrame);i.needTransform&&e.restore()}},l.prototype._shapeToImage=function(e,i,o,r,n){var s=document.createElement("canvas"),a=s.getContext("2d");s.style.width=o+"px",s.style.height=r+"px",s.setAttribute("width",o*n),s.setAttribute("height",r*n),a.clearRect(0,0,o*n,r*n);var h={position:i.position,rotation:i.rotation,scale:i.scale};i.position=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(a,!1);var l=t("./shape/Image"),d=new l({id:e,style:{x:0,y:0,image:s}});return null!=h.position&&(d.position=i.position=h.position),null!=h.rotation&&(d.rotation=i.rotation=h.rotation),null!=h.scale&&(d.scale=i.scale=h.scale),d},l.prototype._createShapeToImageProcessor=function(){if(window.G_vmlCanvasManager)return i;var t=this;return function(e,i,o,n){return t._shapeToImage(e,i,o,n,r.devicePixelRatio)}},l}),define("zrender/animation/Animation",["require","./Clip","../tool/color","../tool/util","../tool/event"],function(t){"use strict";function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function o(t,e,i){return(e-t)*i+t}function r(t,e,i,r,n){var s=t.length;if(1==n)for(var a=0;s>a;a++)r[a]=o(t[a],e[a],i);else for(var h=t[0].length,a=0;s>a;a++)for(var l=0;h>l;l++)r[a][l]=o(t[a][l],e[a][l],i)}function n(t){switch(typeof t){case"undefined":case"string":return!1}return"undefined"!=typeof t.length}function s(t,e,i,o,r,n,s,h,l){var d=t.length;if(1==l)for(var c=0;d>c;c++)h[c]=a(t[c],e[c],i[c],o[c],r,n,s);else for(var u=t[0].length,c=0;d>c;c++)for(var p=0;u>p;p++)h[c][p]=a(t[c][p],e[c][p],i[c][p],o[c][p],r,n,s)}function a(t,e,i,o,r,n,s){var a=.5*(i-t),h=.5*(o-e);return(2*(e-i)+a+h)*s+(-3*(e-i)-2*a-h)*n+a*r+e}function h(t){if(n(t)){var e=t.length;if(n(t[0])){for(var i=[],o=0;e>o;o++)i.push(g.call(t[o]));return i}return g.call(t)}return t}function l(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}var d=t("./Clip"),c=t("../tool/color"),u=t("../tool/util"),p=t("../tool/event").Dispatcher,f=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){setTimeout(t,16)},g=Array.prototype.slice,m=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,p.call(this)};m.prototype={add:function(t){this._clips.push(t)},remove:function(t){if(t.__inStep)t.__needsRemove=!0;else{var e=u.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)}},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,o=i.length,r=[],n=[],s=0;o>s;s++){var a=i[s];a.__inStep=!0;var h=a.step(t);a.__inStep=!1,h&&(r.push(h),n.push(a))}for(var s=0;o>s;)i[s].__needsRemove?(i[s]=i[o-1],i.pop(),o--):s++;o=r.length;for(var s=0;o>s;s++)n[s].fire(r[s]);this._time=t,this.onframe(e),this.dispatch("frame",e),this.stage.update&&this.stage.update()},start:function(){function t(){e._running&&(f(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),f(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new _(t,e.loop,e.getter,e.setter);return i.animation=this,i},constructor:m},u.merge(m.prototype,p.prototype,!0);var _=function(t,o,r,n){this._tracks={},this._target=t,this._loop=o||!1,this._getter=r||e,this._setter=n||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _.prototype={when:function(t,e){for(var i in e)this._tracks[i]||(this._tracks[i]=[],0!==t&&this._tracks[i].push({time:0,value:h(this._getter(this._target,i))})),this._tracks[i].push({time:parseInt(t,10),value:e[i]});return this},during:function(t){return this._onframeList.push(t),this},start:function(t){var e=this,i=this._setter,h=this._getter,u="spline"===t,p=function(){if(e._clipCount--,0===e._clipCount){e._tracks={};for(var t=e._doneList.length,i=0;t>i;i++)e._doneList[i].call(e)}},f=function(f,g){var m=f.length;if(m){var _=f[0].value,y=n(_),v=!1,x=y&&n(_[0])?2:1;f.sort(function(t,e){return t.time-e.time});var b;if(m){b=f[m-1].time;for(var T=[],S=[],C=0;m>C;C++){T.push(f[C].time/b);var z=f[C].value;"string"==typeof z&&(z=c.toArray(z),0===z.length&&(z[0]=z[1]=z[2]=0,z[3]=1),v=!0),S.push(z)}var E,C,w,A,L,M,k,I=0,P=0;if(v)var O=[0,0,0,0];var D=function(t,n){if(P>n){for(E=Math.min(I+1,m-1),C=E;C>=0&&!(T[C]<=n);C--);C=Math.min(C,m-2)}else{for(C=I;m>C&&!(T[C]>n);C++);C=Math.min(C-1,m-2)}I=C,P=n;var d=T[C+1]-T[C];if(0!==d){if(w=(n-T[C])/d,u)if(L=S[C],A=S[0===C?C:C-1],M=S[C>m-2?m-1:C+1],k=S[C>m-3?m-1:C+2],y)s(A,L,M,k,w,w*w,w*w*w,h(t,g),x);else{var c;v?(c=s(A,L,M,k,w,w*w,w*w*w,O,1),c=l(O)):c=a(A,L,M,k,w,w*w,w*w*w),i(t,g,c)}else if(y)r(S[C],S[C+1],w,h(t,g),x);else{var c;v?(r(S[C],S[C+1],w,O,1),c=l(O)):c=o(S[C],S[C+1],w),i(t,g,c)}for(C=0;C<e._onframeList.length;C++)e._onframeList[C](t,n)}},R=new d({target:e._target,life:b,loop:e._loop,delay:e._delay,onframe:D,ondestroy:p});t&&"spline"!==t&&(R.easing=t),e._clipList.push(R),e._clipCount++,e.animation.add(R)}}};for(var g in this._tracks)f(this._tracks[g],g);return this},stop:function(){for(var t=0;t<this._clipList.length;t++){var e=this._clipList[t];this.animation.remove(e)}this._clipList=[]},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this}},m}),define("zrender/tool/curve",["require","./vector"],function(t){function e(t){return t>-m&&m>t}function i(t){return t>m||-m>t}function o(t,e,i,o,r){var n=1-r;return n*n*(n*t+3*r*e)+r*r*(r*o+3*n*i)}function r(t,e,i,o,r){var n=1-r;return 3*(((e-t)*n+2*(i-e)*r)*n+(o-i)*r*r)}function n(t,i,o,r,n,s){var a=r+3*(i-o)-t,h=3*(o-2*i+t),l=3*(i-t),d=t-n,c=h*h-3*a*l,u=h*l-9*a*d,p=l*l-3*h*d,f=0;if(e(c)&&e(u))if(e(h))s[0]=0;else{var g=-l/h;g>=0&&1>=g&&(s[f++]=g)}else{var m=u*u-4*c*p;if(e(m)){var v=u/c,g=-h/a+v,x=-v/2;g>=0&&1>=g&&(s[f++]=g),x>=0&&1>=x&&(s[f++]=x)}else if(m>0){var b=Math.sqrt(m),T=c*h+1.5*a*(-u+b),S=c*h+1.5*a*(-u-b);T=0>T?-Math.pow(-T,y):Math.pow(T,y),S=0>S?-Math.pow(-S,y):Math.pow(S,y);var g=(-h-(T+S))/(3*a);g>=0&&1>=g&&(s[f++]=g)}else{var C=(2*c*h-3*a*u)/(2*Math.sqrt(c*c*c)),z=Math.acos(C)/3,E=Math.sqrt(c),w=Math.cos(z),g=(-h-2*E*w)/(3*a),x=(-h+E*(w+_*Math.sin(z)))/(3*a),A=(-h+E*(w-_*Math.sin(z)))/(3*a);g>=0&&1>=g&&(s[f++]=g),x>=0&&1>=x&&(s[f++]=x),A>=0&&1>=A&&(s[f++]=A)}}return f}function s(t,o,r,n,s){var a=6*r-12*o+6*t,h=9*o+3*n-3*t-9*r,l=3*o-3*t,d=0;if(e(h)){if(i(a)){var c=-l/a;c>=0&&1>=c&&(s[d++]=c)}}else{var u=a*a-4*h*l;if(e(u))s[0]=-a/(2*h);else if(u>0){var p=Math.sqrt(u),c=(-a+p)/(2*h),f=(-a-p)/(2*h);c>=0&&1>=c&&(s[d++]=c),f>=0&&1>=f&&(s[d++]=f)}}return d}function a(t,e,i,o,r,n){var s=(e-t)*r+t,a=(i-e)*r+e,h=(o-i)*r+i,l=(a-s)*r+s,d=(h-a)*r+a,c=(d-l)*r+l;n[0]=t,n[1]=s,n[2]=l,n[3]=c,n[4]=c,n[5]=d,n[6]=h,n[7]=o}function h(t,e,i,r,n,s,a,h,l,d,c){var u,p=.005,f=1/0;v[0]=l,v[1]=d;for(var _=0;1>_;_+=.05){x[0]=o(t,i,n,a,_),x[1]=o(e,r,s,h,_);var y=g.distSquare(v,x);f>y&&(u=_,f=y)}f=1/0;for(var T=0;32>T&&!(m>p);T++){var S=u-p,C=u+p;x[0]=o(t,i,n,a,S),x[1]=o(e,r,s,h,S);var y=g.distSquare(x,v);if(S>=0&&f>y)u=S,f=y;else{b[0]=o(t,i,n,a,C),b[1]=o(e,r,s,h,C);var z=g.distSquare(b,v);1>=C&&f>z?(u=C,f=z):p*=.5}}return c&&(c[0]=o(t,i,n,a,u),c[1]=o(e,r,s,h,u)),Math.sqrt(f)}function l(t,e,i,o){var r=1-o;return r*(r*t+2*o*e)+o*o*i}function d(t,e,i,o){return 2*((1-o)*(e-t)+o*(i-e))}function c(t,o,r,n,s){var a=t-2*o+r,h=2*(o-t),l=t-n,d=0;if(e(a)){if(i(h)){var c=-l/h;c>=0&&1>=c&&(s[d++]=c)}}else{var u=h*h-4*a*l;if(e(u)){var c=-h/(2*a);c>=0&&1>=c&&(s[d++]=c)}else if(u>0){var p=Math.sqrt(u),c=(-h+p)/(2*a),f=(-h-p)/(2*a);c>=0&&1>=c&&(s[d++]=c),f>=0&&1>=f&&(s[d++]=f)}}return d}function u(t,e,i){var o=t+i-2*e;return 0===o?.5:(t-e)/o}function p(t,e,i,o,r){var n=(e-t)*o+t,s=(i-e)*o+e,a=(s-n)*o+n;r[0]=t,r[1]=n,r[2]=a,r[3]=a,r[4]=s,r[5]=i}function f(t,e,i,o,r,n,s,a,h){var d,c=.005,u=1/0;v[0]=s,v[1]=a;for(var p=0;1>p;p+=.05){x[0]=l(t,i,r,p),x[1]=l(e,o,n,p);var f=g.distSquare(v,x);u>f&&(d=p,u=f)}u=1/0;for(var _=0;32>_&&!(m>c);_++){var y=d-c,T=d+c;x[0]=l(t,i,r,y),x[1]=l(e,o,n,y);var f=g.distSquare(x,v);if(y>=0&&u>f)d=y,u=f;else{b[0]=l(t,i,r,T),b[1]=l(e,o,n,T);var S=g.distSquare(b,v);1>=T&&u>S?(d=T,u=S):c*=.5}}return h&&(h[0]=l(t,i,r,d),h[1]=l(e,o,n,d)),Math.sqrt(u)}var g=t("./vector"),m=1e-4,_=Math.sqrt(3),y=1/3,v=g.create(),x=g.create(),b=g.create();return{cubicAt:o,cubicDerivativeAt:r,cubicRootAt:n,cubicExtrema:s,cubicSubdivide:a,cubicProjectPoint:h,quadraticAt:l,quadraticDerivativeAt:d,quadraticRootAt:c,quadraticExtremum:u,quadraticSubdivide:p,quadraticProjectPoint:f}}),define("zrender/Storage",["require","./tool/util","./Group"],function(t){"use strict";function e(t,e){return t.zlevel==e.zlevel?t.z==e.z?t.__renderidx-e.__renderidx:t.z-e.z:t.zlevel-e.zlevel}var i=t("./tool/util"),o=t("./Group"),r={hover:!1,normal:"down",update:!1},n=function(){this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],this._shapeListOffset=0};return n.prototype.iterShape=function(t,e){if(e||(e=r),e.hover)for(var i=0,o=this._hoverElements.length;o>i;i++){var n=this._hoverElements[i];if(n.updateTransform(),t(n))return this}switch(e.update&&this.updateShapeList(),e.normal){case"down":for(var o=this._shapeList.length;o--;)if(t(this._shapeList[o]))return this;break;default:for(var i=0,o=this._shapeList.length;o>i;i++)if(t(this._shapeList[i]))return this}return this},n.prototype.getHoverShapes=function(t){for(var i=[],o=0,r=this._hoverElements.length;r>o;o++){i.push(this._hoverElements[o]);var n=this._hoverElements[o].hoverConnect;if(n){var s;n=n instanceof Array?n:[n];for(var a=0,h=n.length;h>a;a++)s=n[a].id?n[a]:this.get(n[a]),s&&i.push(s)}}if(i.sort(e),t)for(var o=0,r=i.length;r>o;o++)i[o].updateTransform();return i},n.prototype.getShapeList=function(t){return t&&this.updateShapeList(),this._shapeList},n.prototype.updateShapeList=function(){this._shapeListOffset=0;for(var t=0,i=this._roots.length;i>t;t++){var o=this._roots[t];this._updateAndAddShape(o)}this._shapeList.length=this._shapeListOffset;for(var t=0,i=this._shapeList.length;i>t;t++)this._shapeList[t].__renderidx=t;this._shapeList.sort(e)},n.prototype._updateAndAddShape=function(t,e){if(!t.ignore)if(t.updateTransform(),t.clipShape&&(t.clipShape.parent=t,t.clipShape.updateTransform(),e?(e=e.slice(),e.push(t.clipShape)):e=[t.clipShape]),"group"==t.type){for(var i=0;i<t._children.length;i++){var o=t._children[i];o.__dirty=t.__dirty||o.__dirty,this._updateAndAddShape(o,e)}t.__dirty=!1}else t.__clipShapes=e,this._shapeList[this._shapeListOffset++]=t},n.prototype.mod=function(t,e){if("string"==typeof t&&(t=this._elements[t]),t&&(t.modSelf(),e))if(e.parent||e._storage||e.__clipShapes){var o={};for(var r in e)"parent"!==r&&"_storage"!==r&&"__clipShapes"!==r&&e.hasOwnProperty(r)&&(o[r]=e[r]);i.merge(t,o,!0)}else i.merge(t,e,!0);return this},n.prototype.drift=function(t,e,i){var o=this._elements[t];return o&&(o.needTransform=!0,"horizontal"===o.draggable?i=0:"vertical"===o.draggable&&(e=0),(!o.ondrift||o.ondrift&&!o.ondrift(e,i))&&o.drift(e,i)),this},n.prototype.addHover=function(t){return t.updateNeedTransform(),this._hoverElements.push(t),this},n.prototype.delHover=function(){return this._hoverElements=[],this},n.prototype.hasHoverShape=function(){return this._hoverElements.length>0},n.prototype.addRoot=function(t){this._elements[t.id]||(t instanceof o&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},n.prototype.delRoot=function(t){if("undefined"==typeof t){for(var e=0;e<this._roots.length;e++){var r=this._roots[e];r instanceof o&&r.delChildrenFromStorage(this)}return this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],void(this._shapeListOffset=0)}if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var s;s="string"==typeof t?this._elements[t]:t;var a=i.indexOf(this._roots,s);a>=0&&(this.delFromMap(s.id),this._roots.splice(a,1),s instanceof o&&s.delChildrenFromStorage(this))}},n.prototype.addToMap=function(t){return t instanceof o&&(t._storage=this),t.modSelf(),this._elements[t.id]=t,this},n.prototype.get=function(t){return this._elements[t]},n.prototype.delFromMap=function(t){var e=this._elements[t];return e&&(delete this._elements[t],e instanceof o&&(e._storage=null)),this},n.prototype.dispose=function(){this._elements=this._renderList=this._roots=this._hoverElements=null},n}),define("zrender/shape/Droplet",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(t){"use strict";var e=t("./Base"),i=t("./util/PathProxy"),o=t("../tool/area"),r=function(t){e.call(this,t),this._pathProxy=new i};return r.prototype={type:"droplet",buildPath:function(t,e){var o=this._pathProxy||new i;o.begin(t),o.moveTo(e.x,e.y+e.a),o.bezierCurveTo(e.x+e.a,e.y+e.a,e.x+3*e.a/2,e.y-e.a/3,e.x,e.y-e.b),o.bezierCurveTo(e.x-3*e.a/2,e.y-e.a/3,e.x-e.a,e.y+e.a,e.x,e.y+e.a),o.closePath()},getRect:function(t){return t.__rect?t.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,t),this._pathProxy.fastBoundingRect())},isCover:function(t,e){var i=this.transformCoordToLocal(t,e);return t=i[0],e=i[1],this.isCoverRect(t,e)?o.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,t,e):void 0}},t("../tool/util").inherits(r,e),r}),define("zrender/shape/Heart",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(t){"use strict";var e=t("./Base"),i=t("./util/PathProxy"),o=t("../tool/area"),r=function(t){e.call(this,t),this._pathProxy=new i};return r.prototype={type:"heart",buildPath:function(t,e){var o=this._pathProxy||new i;o.begin(t),o.moveTo(e.x,e.y),o.bezierCurveTo(e.x+e.a/2,e.y-2*e.b/3,e.x+2*e.a,e.y+e.b/3,e.x,e.y+e.b),o.bezierCurveTo(e.x-2*e.a,e.y+e.b/3,e.x-e.a/2,e.y-2*e.b/3,e.x,e.y),o.closePath()},getRect:function(t){return t.__rect?t.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,t),this._pathProxy.fastBoundingRect())},isCover:function(t,e){var i=this.transformCoordToLocal(t,e);return t=i[0],e=i[1],this.isCoverRect(t,e)?o.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,t,e):void 0}},t("../tool/util").inherits(r,e),r}),define("zrender/Handler",["require","./config","./tool/env","./tool/event","./tool/util","./tool/vector","./tool/matrix","./mixin/Eventful"],function(t){"use strict";function e(t,e){return function(i,o){return t.call(e,i,o)}}function i(t,e){return function(i,o,r){return t.call(e,i,o,r)}}function o(t){for(var i=p.length;i--;){var o=p[i];t["_"+o+"Handler"]=e(g[o],t)}}function r(t,e,i){if(this._draggingTarget&&this._draggingTarget.id==t.id||t.isSilent())return!1;var o=this._event;if(t.isCover(e,i)){t.hoverable&&this.storage.addHover(t);for(var r=t.parent;r;){if(r.clipShape&&!r.clipShape.isCover(this._mouseX,this._mouseY))return!1;r=r.parent}return this._lastHover!=t&&(this._processOutShape(o),this._processDragLeave(o),this._lastHover=t,this._processDragEnter(o)),this._processOverShape(o),this._processDragOver(o),this._hasfound=1,!0}return!1}var n=t("./config"),s=t("./tool/env"),a=t("./tool/event"),h=t("./tool/util"),l=t("./tool/vector"),d=t("./tool/matrix"),c=n.EVENT,u=t("./mixin/Eventful"),p=["resize","click","dblclick","mousewheel","mousemove","mouseout","mouseup","mousedown","touchstart","touchend","touchmove"],f=function(t){if(window.G_vmlCanvasManager)return!0;t=t||window.event;var e=t.toElement||t.relatedTarget||t.srcElement||t.target;return e&&e.className.match(n.elementClassName)},g={resize:function(t){t=t||window.event,this._lastHover=null,this._isMouseDown=0,this.dispatch(c.RESIZE,t)},click:function(t,e){if(f(t)||e){t=this._zrenderEventFixed(t);var i=this._lastHover;(i&&i.clickable||!i)&&this._clickThreshold<5&&this._dispatchAgency(i,c.CLICK,t),this._mousemoveHandler(t)}},dblclick:function(t,e){if(f(t)||e){t=t||window.event,t=this._zrenderEventFixed(t);var i=this._lastHover;(i&&i.clickable||!i)&&this._clickThreshold<5&&this._dispatchAgency(i,c.DBLCLICK,t),this._mousemoveHandler(t)}},mousewheel:function(t,e){if(f(t)||e){t=this._zrenderEventFixed(t);var i=t.wheelDelta||-t.detail,o=i>0?1.1:1/1.1,r=!1,n=this._mouseX,s=this._mouseY;this.painter.eachBuildinLayer(function(e){var i=e.position;if(e.zoomable){e.__zoom=e.__zoom||1;var h=e.__zoom;h*=o,h=Math.max(Math.min(e.maxZoom,h),e.minZoom),o=h/e.__zoom,e.__zoom=h,i[0]-=(n-i[0])*(o-1),i[1]-=(s-i[1])*(o-1),e.scale[0]*=o,e.scale[1]*=o,e.dirty=!0,r=!0,a.stop(t)
}}),r&&this.painter.refresh(),this._dispatchAgency(this._lastHover,c.MOUSEWHEEL,t),this._mousemoveHandler(t)}},mousemove:function(t,e){if((f(t)||e)&&!this.painter.isLoading()){t=this._zrenderEventFixed(t),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=a.getX(t),this._mouseY=a.getY(t);var i=this._mouseX-this._lastX,o=this._mouseY-this._lastY;this._processDragStart(t),this._hasfound=0,this._event=t,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(t),this._processDragLeave(t)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var r="default";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,i,o),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget),this._clickThreshold++;else if(this._isMouseDown){var n=!1;this.painter.eachBuildinLayer(function(t){t.panable&&(r="move",t.position[0]+=i,t.position[1]+=o,n=!0,t.dirty=!0)}),n&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?r="move":this._hasfound&&this._lastHover.clickable&&(r="pointer"),this.root.style.cursor=r,this._dispatchAgency(this._lastHover,c.MOUSEMOVE,t),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()}},mouseout:function(t,e){if(f(t)||e){t=this._zrenderEventFixed(t);var i=t.toElement||t.relatedTarget;if(i!=this.root)for(;i&&9!=i.nodeType;){if(i==this.root)return void this._mousemoveHandler(t);i=i.parentNode}t.zrenderX=this._lastX,t.zrenderY=this._lastY,this.root.style.cursor="default",this._isMouseDown=0,this._processOutShape(t),this._processDrop(t),this._processDragEnd(t),this.painter.isLoading()||this.painter.refreshHover(),this.dispatch(c.GLOBALOUT,t)}},mousedown:function(t,e){if(f(t)||e){if(this._clickThreshold=0,2==this._lastDownButton)return this._lastDownButton=t.button,void(this._mouseDownTarget=null);this._lastMouseDownMoment=new Date,t=this._zrenderEventFixed(t),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,c.MOUSEDOWN,t),this._lastDownButton=t.button}},mouseup:function(t,e){(f(t)||e)&&(t=this._zrenderEventFixed(t),this.root.style.cursor="default",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,c.MOUSEUP,t),this._processDrop(t),this._processDragEnd(t))},touchstart:function(t,e){(f(t)||e)&&(t=this._zrenderEventFixed(t,!0),this._lastTouchMoment=new Date,this._mobileFindFixed(t),this._mousedownHandler(t))},touchmove:function(t,e){(f(t)||e)&&(t=this._zrenderEventFixed(t,!0),this._mousemoveHandler(t),this._isDragging&&a.stop(t))},touchend:function(t,e){if(f(t)||e){t=this._zrenderEventFixed(t,!0),this._mouseupHandler(t);var i=new Date;i-this._lastTouchMoment<c.touchClickDelay&&(this._mobileFindFixed(t),this._clickHandler(t),i-this._lastClickMoment<c.touchClickDelay/2&&(this._dblclickHandler(t),this._lastHover&&this._lastHover.clickable&&a.stop(t)),this._lastClickMoment=i),this.painter.clearHover()}}},m=function(t,e,n){u.call(this),this.root=t,this.storage=e,this.painter=n,this._lastX=this._lastY=this._mouseX=this._mouseY=0,this._findHover=i(r,this),this._domHover=n.getDomHover(),o(this),window.addEventListener?(window.addEventListener("resize",this._resizeHandler),s.os.tablet||s.os.phone?(t.addEventListener("touchstart",this._touchstartHandler),t.addEventListener("touchmove",this._touchmoveHandler),t.addEventListener("touchend",this._touchendHandler)):(t.addEventListener("click",this._clickHandler),t.addEventListener("dblclick",this._dblclickHandler),t.addEventListener("mousewheel",this._mousewheelHandler),t.addEventListener("mousemove",this._mousemoveHandler),t.addEventListener("mousedown",this._mousedownHandler),t.addEventListener("mouseup",this._mouseupHandler)),t.addEventListener("DOMMouseScroll",this._mousewheelHandler),t.addEventListener("mouseout",this._mouseoutHandler)):(window.attachEvent("onresize",this._resizeHandler),t.attachEvent("onclick",this._clickHandler),t.ondblclick=this._dblclickHandler,t.attachEvent("onmousewheel",this._mousewheelHandler),t.attachEvent("onmousemove",this._mousemoveHandler),t.attachEvent("onmouseout",this._mouseoutHandler),t.attachEvent("onmousedown",this._mousedownHandler),t.attachEvent("onmouseup",this._mouseupHandler))};m.prototype.on=function(t,e,i){return this.bind(t,e,i),this},m.prototype.un=function(t,e){return this.unbind(t,e),this},m.prototype.trigger=function(t,e){switch(t){case c.RESIZE:case c.CLICK:case c.DBLCLICK:case c.MOUSEWHEEL:case c.MOUSEMOVE:case c.MOUSEDOWN:case c.MOUSEUP:case c.MOUSEOUT:this["_"+t+"Handler"](e,!0)}},m.prototype.dispose=function(){var t=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),s.os.tablet||s.os.phone?(t.removeEventListener("touchstart",this._touchstartHandler),t.removeEventListener("touchmove",this._touchmoveHandler),t.removeEventListener("touchend",this._touchendHandler)):(t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblclickHandler),t.removeEventListener("mousewheel",this._mousewheelHandler),t.removeEventListener("mousemove",this._mousemoveHandler),t.removeEventListener("mousedown",this._mousedownHandler),t.removeEventListener("mouseup",this._mouseupHandler)),t.removeEventListener("DOMMouseScroll",this._mousewheelHandler),t.removeEventListener("mouseout",this._mouseoutHandler)):(window.detachEvent("onresize",this._resizeHandler),t.detachEvent("onclick",this._clickHandler),t.detachEvent("dblclick",this._dblclickHandler),t.detachEvent("onmousewheel",this._mousewheelHandler),t.detachEvent("onmousemove",this._mousemoveHandler),t.detachEvent("onmouseout",this._mouseoutHandler),t.detachEvent("onmousedown",this._mousedownHandler),t.detachEvent("onmouseup",this._mouseupHandler)),this.root=this._domHover=this.storage=this.painter=null,this.un()},m.prototype._processDragStart=function(t){var e=this._lastHover;if(this._isMouseDown&&e&&e.draggable&&!this._draggingTarget&&this._mouseDownTarget==e){if(e.dragEnableTime&&new Date-this._lastMouseDownMoment<e.dragEnableTime)return;var i=e;this._draggingTarget=i,this._isDragging=1,i.invisible=!0,this.storage.mod(i.id),this._dispatchAgency(i,c.DRAGSTART,t),this.painter.refresh()}},m.prototype._processDragEnter=function(t){this._draggingTarget&&this._dispatchAgency(this._lastHover,c.DRAGENTER,t,this._draggingTarget)},m.prototype._processDragOver=function(t){this._draggingTarget&&this._dispatchAgency(this._lastHover,c.DRAGOVER,t,this._draggingTarget)},m.prototype._processDragLeave=function(t){this._draggingTarget&&this._dispatchAgency(this._lastHover,c.DRAGLEAVE,t,this._draggingTarget)},m.prototype._processDrop=function(t){this._draggingTarget&&(this._draggingTarget.invisible=!1,this.storage.mod(this._draggingTarget.id),this.painter.refresh(),this._dispatchAgency(this._lastHover,c.DROP,t,this._draggingTarget))},m.prototype._processDragEnd=function(t){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,c.DRAGEND,t),this._lastHover=null),this._isDragging=0,this._draggingTarget=null},m.prototype._processOverShape=function(t){this._dispatchAgency(this._lastHover,c.MOUSEOVER,t)},m.prototype._processOutShape=function(t){this._dispatchAgency(this._lastHover,c.MOUSEOUT,t)},m.prototype._dispatchAgency=function(t,e,i,o){var r="on"+e,n={type:e,event:i,target:t,cancelBubble:!1},s=t;for(o&&(n.dragged=o);s&&(s[r]&&(n.cancelBubble=s[r](n)),s.dispatch(e,n),s=s.parent,!n.cancelBubble););if(t)n.cancelBubble||this.dispatch(e,n);else if(!o){var a={type:e,event:i};this.dispatch(e,a),this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r](a),t.dispatch&&t.dispatch(e,a)})}},m.prototype._iterateAndFindHover=function(){var t=d.create();return function(){for(var e,i,o=this.storage.getShapeList(),r=[0,0],n=o.length-1;n>=0;n--){var s=o[n];if(e!==s.zlevel&&(i=this.painter.getLayer(s.zlevel,i),r[0]=this._mouseX,r[1]=this._mouseY,i.needTransform&&(d.invert(t,i.transform),l.applyTransform(r,r,t))),this._findHover(s,r[0],r[1]))break}}}();var _=[{x:10},{x:-20},{x:10,y:10},{y:-20}];return m.prototype._mobileFindFixed=function(t){this._lastHover=null,this._mouseX=t.zrenderX,this._mouseY=t.zrenderY,this._event=t,this._iterateAndFindHover();for(var e=0;!this._lastHover&&e<_.length;e++){var i=_[e];i.x&&(this._mouseX+=i.x),i.y&&(this._mouseY+=i.y),this._iterateAndFindHover()}this._lastHover&&(t.zrenderX=this._mouseX,t.zrenderY=this._mouseY)},m.prototype._zrenderEventFixed=function(t,e){if(t.zrenderFixed)return t;if(e){var i="touchend"!=t.type?t.targetTouches[0]:t.changedTouches[0];if(i){var o=this.painter._domRoot.getBoundingClientRect();t.zrenderX=i.clientX-o.left,t.zrenderY=i.clientY-o.top}}else{t=t||window.event;var r=t.toElement||t.relatedTarget||t.srcElement||t.target;r&&r!=this._domHover&&(t.zrenderX=("undefined"!=typeof t.offsetX?t.offsetX:t.layerX)+r.offsetLeft,t.zrenderY=("undefined"!=typeof t.offsetY?t.offsetY:t.layerY)+r.offsetTop)}return t.zrenderFixed=1,t},h.merge(m.prototype,u.prototype,!0),m}),define("zrender/Layer",["require","./mixin/Transformable","./tool/util","./config"],function(t){function e(){return!1}function i(t,e,i){var o=document.createElement(e),r=i.getWidth(),n=i.getHeight();return o.style.position="absolute",o.style.left=0,o.style.top=0,o.style.width=r+"px",o.style.height=n+"px",o.width=r*s.devicePixelRatio,o.height=n*s.devicePixelRatio,o.setAttribute("data-zr-dom-id",t),o}var o=t("./mixin/Transformable"),r=t("./tool/util"),n=window.G_vmlCanvasManager,s=t("./config"),a=function(t,r){this.id=t,this.dom=i(t,"canvas",r),this.dom.onselectstart=e,this.dom.style["-webkit-user-select"]="none",this.dom.style["user-select"]="none",this.dom.style["-webkit-touch-callout"]="none",this.dom.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",this.dom.className=s.elementClassName,n&&n.initElement(this.dom),this.domBack=null,this.ctxBack=null,this.painter=r,this.unusedCount=0,this.config=null,this.dirty=!0,this.elCount=0,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.zoomable=!1,this.panable=!1,this.maxZoom=1/0,this.minZoom=0,o.call(this)};return a.prototype.initContext=function(){this.ctx=this.dom.getContext("2d");var t=s.devicePixelRatio;1!=t&&this.ctx.scale(t,t)},a.prototype.createBackBuffer=function(){if(!n){this.domBack=i("back-"+this.id,"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d");var t=s.devicePixelRatio;1!=t&&this.ctxBack.scale(t,t)}},a.prototype.resize=function(t,e){var i=s.devicePixelRatio;this.dom.style.width=t+"px",this.dom.style.height=e+"px",this.dom.setAttribute("width",t*i),this.dom.setAttribute("height",e*i),1!=i&&this.ctx.scale(i,i),this.domBack&&(this.domBack.setAttribute("width",t*i),this.domBack.setAttribute("height",e*i),1!=i&&this.ctxBack.scale(i,i))},a.prototype.clear=function(){var t=this.dom,e=this.ctx,i=t.width,o=t.height,r=this.clearColor&&!n,a=this.motionBlur&&!n,h=this.lastFrameAlpha,l=s.devicePixelRatio;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(t,0,0,i/l,o/l)),e.clearRect(0,0,i/l,o/l),r&&(e.save(),e.fillStyle=this.clearColor,e.fillRect(0,0,i/l,o/l),e.restore()),a){var d=this.domBack;e.save(),e.globalAlpha=h,e.drawImage(d,0,0,i/l,o/l),e.restore()}},r.merge(a.prototype,o.prototype),a}),define("zrender/loadingEffect/Base",["require","../tool/util","../shape/Text","../shape/Rectangle"],function(t){function e(t){this.setOptions(t)}var i=t("../tool/util"),o=t("../shape/Text"),r=t("../shape/Rectangle"),n="Loading...",s="normal 16px Arial";return e.prototype.createTextShape=function(t){return new o({highlightStyle:i.merge({x:this.canvasWidth/2,y:this.canvasHeight/2,text:n,textAlign:"center",textBaseline:"middle",textFont:s,color:"#333",brushType:"fill"},t,!0)})},e.prototype.createBackgroundShape=function(t){return new r({highlightStyle:{x:0,y:0,width:this.canvasWidth,height:this.canvasHeight,brushType:"fill",color:t}})},e.prototype.start=function(t){function e(e){t.storage.addHover(e)}function i(){t.refreshHover()}this.canvasWidth=t._width,this.canvasHeight=t._height,this.loadingTimer=this._start(e,i)},e.prototype._start=function(){return setInterval(function(){},1e4)},e.prototype.stop=function(){clearInterval(this.loadingTimer)},e.prototype.setOptions=function(t){this.options=t||{}},e.prototype.adjust=function(t,e){return t<=e[0]?t=e[0]:t>=e[1]&&(t=e[1]),t},e.prototype.getLocation=function(t,e,i){var o=null!=t.x?t.x:"center";switch(o){case"center":o=Math.floor((this.canvasWidth-e)/2);break;case"left":o=0;break;case"right":o=this.canvasWidth-e}var r=null!=t.y?t.y:"center";switch(r){case"center":r=Math.floor((this.canvasHeight-i)/2);break;case"top":r=0;break;case"bottom":r=this.canvasHeight-i}return{x:o,y:r,width:e,height:i}},e}),define("zrender/shape/Star",["require","../tool/math","./Base","../tool/util"],function(t){var e=t("../tool/math"),i=e.sin,o=e.cos,r=Math.PI,n=t("./Base"),s=function(t){n.call(this,t)};return s.prototype={type:"star",buildPath:function(t,e){var n=e.n;if(n&&!(2>n)){var s=e.x,a=e.y,h=e.r,l=e.r0;null==l&&(l=n>4?h*o(2*r/n)/o(r/n):h/3);var d=r/n,c=-r/2,u=s+h*o(c),p=a+h*i(c);c+=d;var f=e.pointList=[];f.push([u,p]);for(var g,m=0,_=2*n-1;_>m;m++)g=m%2===0?l:h,f.push([s+g*o(c),a+g*i(c)]),c+=d;f.push([u,p]),t.moveTo(f[0][0],f[0][1]);for(var m=0;m<f.length;m++)t.lineTo(f[m][0],f[m][1]);t.closePath()}},getRect:function(t){if(t.__rect)return t.__rect;var e;return e="stroke"==t.brushType||"fill"==t.brushType?t.lineWidth||1:0,t.__rect={x:Math.round(t.x-t.r-e/2),y:Math.round(t.y-t.r-e/2),width:2*t.r+e,height:2*t.r+e},t.__rect}},t("../tool/util").inherits(s,n),s}),define("zrender/shape/Text",["require","../tool/area","./Base","../tool/util"],function(t){var e=t("../tool/area"),i=t("./Base"),o=function(t){i.call(this,t)};return o.prototype={type:"text",brush:function(t,i){var o=this.style;if(i&&(o=this.getHighlightStyle(o,this.highlightStyle||{})),"undefined"!=typeof o.text&&o.text!==!1){t.save(),this.doClip(t),this.setContext(t,o),this.setTransform(t),o.textFont&&(t.font=o.textFont),t.textAlign=o.textAlign||"start",t.textBaseline=o.textBaseline||"middle";var r,n=(o.text+"").split("\n"),s=e.getTextHeight("国",o.textFont),a=this.getRect(o),h=o.x;r="top"==o.textBaseline?a.y:"bottom"==o.textBaseline?a.y+s:a.y+s/2;for(var l=0,d=n.length;d>l;l++){if(o.maxWidth)switch(o.brushType){case"fill":t.fillText(n[l],h,r,o.maxWidth);break;case"stroke":t.strokeText(n[l],h,r,o.maxWidth);break;case"both":t.fillText(n[l],h,r,o.maxWidth),t.strokeText(n[l],h,r,o.maxWidth);break;default:t.fillText(n[l],h,r,o.maxWidth)}else switch(o.brushType){case"fill":t.fillText(n[l],h,r);break;case"stroke":t.strokeText(n[l],h,r);break;case"both":t.fillText(n[l],h,r),t.strokeText(n[l],h,r);break;default:t.fillText(n[l],h,r)}r+=s}t.restore()}},getRect:function(t){if(t.__rect)return t.__rect;var i=e.getTextWidth(t.text,t.textFont),o=e.getTextHeight(t.text,t.textFont),r=t.x;"end"==t.textAlign||"right"==t.textAlign?r-=i:"center"==t.textAlign&&(r-=i/2);var n;return n="top"==t.textBaseline?t.y:"bottom"==t.textBaseline?t.y-o:t.y-o/2,t.__rect={x:r,y:n,width:i,height:o},t.__rect}},t("../tool/util").inherits(o,i),o}),define("zrender/tool/math",[],function(){function t(t,e){return Math.sin(e?t*r:t)}function e(t,e){return Math.cos(e?t*r:t)}function i(t){return t*r}function o(t){return t/r}var r=Math.PI/180;return{sin:t,cos:e,degreeToRadian:i,radianToDegree:o}}),define("zrender/Group",["require","./tool/guid","./tool/util","./mixin/Transformable","./mixin/Eventful"],function(t){var e=t("./tool/guid"),i=t("./tool/util"),o=t("./mixin/Transformable"),r=t("./mixin/Eventful"),n=function(t){t=t||{},this.id=t.id||e();for(var i in t)this[i]=t[i];this.type="group",this.clipShape=null,this._children=[],this._storage=null,this.__dirty=!0,o.call(this),r.call(this)};return n.prototype.ignore=!1,n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.addChild=function(t){t!=this&&t.parent!=this&&(t.parent&&t.parent.removeChild(t),this._children.push(t),t.parent=this,this._storage&&this._storage!==t._storage&&(this._storage.addToMap(t),t instanceof n&&t.addChildrenToStorage(this._storage)))},n.prototype.removeChild=function(t){var e=i.indexOf(this._children,t);e>=0&&this._children.splice(e,1),t.parent=null,this._storage&&(this._storage.delFromMap(t.id),t instanceof n&&t.delChildrenFromStorage(this._storage))},n.prototype.clearChildren=function(){for(var t=0;t<this._children.length;t++){var e=this._children[t];this._storage&&(this._storage.delFromMap(e.id),e instanceof n&&e.delChildrenFromStorage(this._storage))}this._children.length=0},n.prototype.eachChild=function(t,e){for(var i=!!e,o=0;o<this._children.length;o++){var r=this._children[o];i?t.call(e,r):t(r)}},n.prototype.traverse=function(t,e){for(var i=!!e,o=0;o<this._children.length;o++){var r=this._children[o];i?t.call(e,r):t(r),"group"===r.type&&r.traverse(t,e)}},n.prototype.addChildrenToStorage=function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToMap(i),i instanceof n&&i.addChildrenToStorage(t)}},n.prototype.delChildrenFromStorage=function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromMap(i.id),i instanceof n&&i.delChildrenFromStorage(t)}},n.prototype.modSelf=function(){this.__dirty=!0},i.merge(n.prototype,o.prototype,!0),i.merge(n.prototype,r.prototype,!0),n}),define("zrender/shape/util/PathProxy",["require","../../tool/vector"],function(t){var e=t("../../tool/vector"),i=function(t,e){this.command=t,this.points=e||null},o=function(){this.pathCommands=[],this._ctx=null,this._min=[],this._max=[]};return o.prototype.fastBoundingRect=function(){var t=this._min,i=this._max;t[0]=t[1]=1/0,i[0]=i[1]=-1/0;for(var o=0;o<this.pathCommands.length;o++){var r=this.pathCommands[o],n=r.points;switch(r.command){case"M":e.min(t,t,n),e.max(i,i,n);break;case"L":e.min(t,t,n),e.max(i,i,n);break;case"C":for(var s=0;6>s;s+=2)t[0]=Math.min(t[0],t[0],n[s]),t[1]=Math.min(t[1],t[1],n[s+1]),i[0]=Math.max(i[0],i[0],n[s]),i[1]=Math.max(i[1],i[1],n[s+1]);break;case"Q":for(var s=0;4>s;s+=2)t[0]=Math.min(t[0],t[0],n[s]),t[1]=Math.min(t[1],t[1],n[s+1]),i[0]=Math.max(i[0],i[0],n[s]),i[1]=Math.max(i[1],i[1],n[s+1]);break;case"A":var a=n[0],h=n[1],l=n[2],d=n[3];t[0]=Math.min(t[0],t[0],a-l),t[1]=Math.min(t[1],t[1],h-d),i[0]=Math.max(i[0],i[0],a+l),i[1]=Math.max(i[1],i[1],h+d)}}return{x:t[0],y:t[1],width:i[0]-t[0],height:i[1]-t[1]}},o.prototype.begin=function(t){return this._ctx=t||null,this.pathCommands.length=0,this},o.prototype.moveTo=function(t,e){return this.pathCommands.push(new i("M",[t,e])),this._ctx&&this._ctx.moveTo(t,e),this},o.prototype.lineTo=function(t,e){return this.pathCommands.push(new i("L",[t,e])),this._ctx&&this._ctx.lineTo(t,e),this},o.prototype.bezierCurveTo=function(t,e,o,r,n,s){return this.pathCommands.push(new i("C",[t,e,o,r,n,s])),this._ctx&&this._ctx.bezierCurveTo(t,e,o,r,n,s),this},o.prototype.quadraticCurveTo=function(t,e,o,r){return this.pathCommands.push(new i("Q",[t,e,o,r])),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,r),this},o.prototype.arc=function(t,e,o,r,n,s){return this.pathCommands.push(new i("A",[t,e,o,o,r,n-r,0,s?0:1])),this._ctx&&this._ctx.arc(t,e,o,r,n,s),this},o.prototype.arcTo=function(t,e,i,o,r){return this._ctx&&this._ctx.arcTo(t,e,i,o,r),this},o.prototype.rect=function(t,e,i,o){return this._ctx&&this._ctx.rect(t,e,i,o),this},o.prototype.closePath=function(){return this.pathCommands.push(new i("z")),this._ctx&&this._ctx.closePath(),this},o.prototype.isEmpty=function(){return 0===this.pathCommands.length},o.PathSegment=i,o}),define("zrender/shape/Line",["require","./Base","./util/dashedLineTo","../tool/util"],function(t){var e=t("./Base"),i=t("./util/dashedLineTo"),o=function(t){this.brushTypeOnly="stroke",this.textPosition="end",e.call(this,t)};return o.prototype={type:"line",buildPath:function(t,e){if(e.lineType&&"solid"!=e.lineType){if("dashed"==e.lineType||"dotted"==e.lineType){var o=(e.lineWidth||1)*("dashed"==e.lineType?5:1);i(t,e.xStart,e.yStart,e.xEnd,e.yEnd,o)}}else t.moveTo(e.xStart,e.yStart),t.lineTo(e.xEnd,e.yEnd)},getRect:function(t){if(t.__rect)return t.__rect;var e=t.lineWidth||1;return t.__rect={x:Math.min(t.xStart,t.xEnd)-e,y:Math.min(t.yStart,t.yEnd)-e,width:Math.abs(t.xStart-t.xEnd)+e,height:Math.abs(t.yStart-t.yEnd)+e},t.__rect}},t("../tool/util").inherits(o,e),o}),define("zrender/shape/util/dashedLineTo",[],function(){var t=[5,5];return function(e,i,o,r,n,s){if(e.setLineDash)return t[0]=t[1]=s,e.setLineDash(t),e.moveTo(i,o),void e.lineTo(r,n);s="number"!=typeof s?5:s;var a=r-i,h=n-o,l=Math.floor(Math.sqrt(a*a+h*h)/s);a/=l,h/=l;for(var d=!0,c=0;l>c;++c)d?e.moveTo(i,o):e.lineTo(i,o),d=!d,i+=a,o+=h;e.lineTo(r,n)}}),define("zrender/shape/BezierCurve",["require","./Base","../tool/util"],function(t){"use strict";var e=t("./Base"),i=function(t){this.brushTypeOnly="stroke",this.textPosition="end",e.call(this,t)};return i.prototype={type:"bezier-curve",buildPath:function(t,e){t.moveTo(e.xStart,e.yStart),"undefined"!=typeof e.cpX2&&"undefined"!=typeof e.cpY2?t.bezierCurveTo(e.cpX1,e.cpY1,e.cpX2,e.cpY2,e.xEnd,e.yEnd):t.quadraticCurveTo(e.cpX1,e.cpY1,e.xEnd,e.yEnd)},getRect:function(t){if(t.__rect)return t.__rect;var e=Math.min(t.xStart,t.xEnd,t.cpX1),i=Math.min(t.yStart,t.yEnd,t.cpY1),o=Math.max(t.xStart,t.xEnd,t.cpX1),r=Math.max(t.yStart,t.yEnd,t.cpY1),n=t.cpX2,s=t.cpY2;"undefined"!=typeof n&&"undefined"!=typeof s&&(e=Math.min(e,n),i=Math.min(i,s),o=Math.max(o,n),r=Math.max(r,s));var a=t.lineWidth||1;return t.__rect={x:e-a,y:i-a,width:o-e+a,height:r-i+a},t.__rect}},t("../tool/util").inherits(i,e),i}),define("echarts/util/shape/normalIsCover",[],function(){return function(t,e){var i=this.transformCoordToLocal(t,e);return t=i[0],e=i[1],this.isCoverRect(t,e)}}),define("zrender/shape/Polygon",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","../tool/util"],function(t){var e=t("./Base"),i=t("./util/smoothSpline"),o=t("./util/smoothBezier"),r=t("./util/dashedLineTo"),n=function(t){e.call(this,t)};return n.prototype={type:"polygon",buildPath:function(t,e){var n=e.pointList;if(!(n.length<2)){if(e.smooth&&"spline"!==e.smooth){var s=o(n,e.smooth,!0,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var a,h,l,d=n.length,c=0;d>c;c++)a=s[2*c],h=s[2*c+1],l=n[(c+1)%d],t.bezierCurveTo(a[0],a[1],h[0],h[1],l[0],l[1])}else if("spline"===e.smooth&&(n=i(n,!0)),e.lineType&&"solid"!=e.lineType){if("dashed"==e.lineType||"dotted"==e.lineType){var u=e._dashLength||(e.lineWidth||1)*("dashed"==e.lineType?5:1);e._dashLength=u,t.moveTo(n[0][0],n[0][1]);for(var c=1,p=n.length;p>c;c++)r(t,n[c-1][0],n[c-1][1],n[c][0],n[c][1],u);r(t,n[n.length-1][0],n[n.length-1][1],n[0][0],n[0][1],u)}}else{t.moveTo(n[0][0],n[0][1]);for(var c=1,p=n.length;p>c;c++)t.lineTo(n[c][0],n[c][1]);t.lineTo(n[0][0],n[0][1])}t.closePath()}},getRect:function(t){if(t.__rect)return t.__rect;for(var e=Number.MAX_VALUE,i=Number.MIN_VALUE,o=Number.MAX_VALUE,r=Number.MIN_VALUE,n=t.pointList,s=0,a=n.length;a>s;s++)n[s][0]<e&&(e=n[s][0]),n[s][0]>i&&(i=n[s][0]),n[s][1]<o&&(o=n[s][1]),n[s][1]>r&&(r=n[s][1]);var h;return h="stroke"==t.brushType||"fill"==t.brushType?t.lineWidth||1:0,t.__rect={x:Math.round(e-h/2),y:Math.round(o-h/2),width:i-e+h,height:r-o+h},t.__rect}},t("../tool/util").inherits(n,e),n}),define("zrender/shape/util/smoothBezier",["require","../../tool/vector"],function(t){var e=t("../../tool/vector");return function(t,i,o,r){var n,s,a,h,l=[],d=[],c=[],u=[],p=!!r;if(p){a=[1/0,1/0],h=[-1/0,-1/0];for(var f=0,g=t.length;g>f;f++)e.min(a,a,t[f]),e.max(h,h,t[f]);e.min(a,a,r[0]),e.max(h,h,r[1])}for(var f=0,g=t.length;g>f;f++){var n,s,m=t[f];if(o)n=t[f?f-1:g-1],s=t[(f+1)%g];else{if(0===f||f===g-1){l.push(e.clone(t[f]));continue}n=t[f-1],s=t[f+1]}e.sub(d,s,n),e.scale(d,d,i);var _=e.distance(m,n),y=e.distance(m,s),v=_+y;0!==v&&(_/=v,y/=v),e.scale(c,d,-_),e.scale(u,d,y);var x=e.add([],m,c),b=e.add([],m,u);p&&(e.max(x,x,a),e.min(x,x,h),e.max(b,b,a),e.min(b,b,h)),l.push(x),l.push(b)}return o&&l.push(e.clone(l.shift())),l}}),define("zrender/animation/Clip",["require","./easing"],function(t){function e(t){this._targetPool=t.target||{},this._targetPool instanceof Array||(this._targetPool=[this._targetPool]),this._life=t.life||1e3,this._delay=t.delay||0,this._startTime=(new Date).getTime()+this._delay,this._endTime=this._startTime+1e3*this._life,this.loop="undefined"==typeof t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e.prototype={step:function(t){var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var o="string"==typeof this.easing?i[this.easing]:this.easing,r="function"==typeof o?o(e):e;return this.fire("frame",r),1==e?this.loop?(this.restart(),"restart"):(this.__needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this.__needsRemove=!1},fire:function(t,e){for(var i=0,o=this._targetPool.length;o>i;i++)this["on"+t]&&this["on"+t](this._targetPool[i],e)},constructor:e},e}),define("zrender/shape/util/smoothSpline",["require","../../tool/vector"],function(t){function e(t,e,i,o,r,n,s){var a=.5*(i-t),h=.5*(o-e);return(2*(e-i)+a+h)*s+(-3*(e-i)-2*a-h)*n+a*r+e}var i=t("../../tool/vector");return function(t,o){for(var r=t.length,n=[],s=0,a=1;r>a;a++)s+=i.distance(t[a-1],t[a]);var h=s/5;h=r>h?r:h;for(var a=0;h>a;a++){var l,d,c,u=a/(h-1)*(o?r:r-1),p=Math.floor(u),f=u-p,g=t[p%r];o?(l=t[(p-1+r)%r],d=t[(p+1)%r],c=t[(p+2)%r]):(l=t[0===p?p:p-1],d=t[p>r-2?r-1:p+1],c=t[p>r-3?r-1:p+2]);var m=f*f,_=f*m;n.push([e(l[0],g[0],d[0],c[0],f,m,_),e(l[1],g[1],d[1],c[1],f,m,_)])}return n}}),define("zrender/animation/easing",[],function(){var t={Linear:function(t){return t},QuadraticIn:function(t){return t*t},QuadraticOut:function(t){return t*(2-t)},QuadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},CubicIn:function(t){return t*t*t},CubicOut:function(t){return--t*t*t+1},CubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},QuarticIn:function(t){return t*t*t*t},QuarticOut:function(t){return 1- --t*t*t*t},QuarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},QuinticIn:function(t){return t*t*t*t*t},QuinticOut:function(t){return--t*t*t*t*t+1},QuinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},SinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},SinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},SinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},ExponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},ExponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},ExponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},CircularIn:function(t){return 1-Math.sqrt(1-t*t)},CircularOut:function(t){return Math.sqrt(1- --t*t)},CircularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},ElasticIn:function(t){var e,i=.1,o=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=o/4):e=o*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/o)))},ElasticOut:function(t){var e,i=.1,o=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=o/4):e=o*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/o)+1)},ElasticInOut:function(t){var e,i=.1,o=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=o/4):e=o*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/o):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/o)*.5+1)},BackIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},BackOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},BackInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},BounceIn:function(e){return 1-t.BounceOut(1-e)},BounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},BounceInOut:function(e){return.5>e?.5*t.BounceIn(2*e):.5*t.BounceOut(2*e-1)+.5}};return t}),define("zrender/shape/Circle",["require","./Base","../tool/util"],function(t){"use strict";var e=t("./Base"),i=function(t){e.call(this,t)};return i.prototype={type:"circle",buildPath:function(t,e){t.moveTo(e.x+e.r,e.y),t.arc(e.x,e.y,e.r,0,2*Math.PI,!0)},getRect:function(t){if(t.__rect)return t.__rect;var e;return e="stroke"==t.brushType||"fill"==t.brushType?t.lineWidth||1:0,t.__rect={x:Math.round(t.x-t.r-e/2),y:Math.round(t.y-t.r-e/2),width:2*t.r+e,height:2*t.r+e},t.__rect}},t("../tool/util").inherits(i,e),i}),define("echarts/util/number",[],function(){function t(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function e(e,i){return"string"==typeof e?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):e}function i(t,i){return[e(i[0],t.getWidth()),e(i[1],t.getHeight())]}function o(t,i){i instanceof Array||(i=[0,i]);var o=Math.min(t.getWidth(),t.getHeight())/2;return[e(i[0],o),e(i[1],o)]}function r(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function n(t){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}return{parsePercent:e,parseCenter:i,parseRadius:o,addCommas:r,getPrecision:n}}),define("echarts/util/ecQuery",["require","zrender/tool/util"],function(t){function e(t,e){if("undefined"!=typeof t){if(!e)return t;e=e.split(".");for(var i=e.length,o=0;i>o;){if(t=t[e[o]],"undefined"==typeof t)return;o++}return t}}function i(t,i){for(var o,r=0,n=t.length;n>r;r++)if(o=e(t[r],i),"undefined"!=typeof o)return o}function o(t,i){for(var o,n=t.length;n--;){var s=e(t[n],i);"undefined"!=typeof s&&("undefined"==typeof o?o=r.clone(s):r.merge(o,s,!0))}return o}var r=t("zrender/tool/util");return{query:e,deepQuery:i,deepMerge:o}}),define("echarts/data/KDTree",["require","./quickSelect"],function(t){function e(t,e){this.left=null,this.right=null,this.axis=t,this.data=e}var i=t("./quickSelect"),o=function(t,e){t.length&&(e||(e=t[0].array.length),this.dimension=e,this.root=this._buildTree(t,0,t.length-1,0),this._stack=[],this._nearstNList=[])};return o.prototype._buildTree=function(t,o,r,n){if(o>r)return null;var s=Math.floor((o+r)/2);s=i(t,o,r,s,function(t,e){return t.array[n]-e.array[n]});var a=t[s],h=new e(n,a);return n=(n+1)%this.dimension,r>o&&(h.left=this._buildTree(t,o,s-1,n),h.right=this._buildTree(t,s+1,r,n)),h},o.prototype.nearest=function(t,e){var i=this.root,o=this._stack,r=0,n=1/0,s=null;for(i.data!==t&&(n=e(i.data,t),s=i),t.array[i.axis]<i.data.array[i.axis]?(i.right&&(o[r++]=i.right),i.left&&(o[r++]=i.left)):(i.left&&(o[r++]=i.left),i.right&&(o[r++]=i.right));r--;){i=o[r];var a=t.array[i.axis]-i.data.array[i.axis],h=0>a,l=!1;a*=a,n>a&&(a=e(i.data,t),n>a&&i.data!==t&&(n=a,s=i),l=!0),h?(l&&i.right&&(o[r++]=i.right),i.left&&(o[r++]=i.left)):(l&&i.left&&(o[r++]=i.left),i.right&&(o[r++]=i.right))}return s.data},o.prototype._addNearest=function(t,e,i){for(var o=this._nearstNList,r=t-1;r>0&&!(e>=o[r-1].dist);r--)o[r].dist=o[r-1].dist,o[r].node=o[r-1].node;o[r].dist=e,o[r].node=i},o.prototype.nearestN=function(t,e,i,o){if(0>=e)return o.length=0,o;for(var r=this.root,n=this._stack,s=0,a=this._nearstNList,h=0;e>h;h++)a[h]||(a[h]={}),a[h].dist=0,a[h].node=null;var l=i(r.data,t),d=0;for(r.data!==t&&(d++,this._addNearest(d,l,r)),t.array[r.axis]<r.data.array[r.axis]?(r.right&&(n[s++]=r.right),r.left&&(n[s++]=r.left)):(r.left&&(n[s++]=r.left),r.right&&(n[s++]=r.right));s--;){r=n[s];var l=t.array[r.axis]-r.data.array[r.axis],c=0>l,u=!1;l*=l,(e>d||l<a[d-1].dist)&&(l=i(r.data,t),(e>d||l<a[d-1].dist)&&r.data!==t&&(e>d&&d++,this._addNearest(d,l,r)),u=!0),c?(u&&r.right&&(n[s++]=r.right),r.left&&(n[s++]=r.left)):(u&&r.left&&(n[s++]=r.left),r.right&&(n[s++]=r.right))}for(var h=0;d>h;h++)o[h]=a[h].node.data;return o.length=d,o},o}),define("echarts/data/quickSelect",["require"],function(){function t(t,e){return t-e
}function e(t,e,i){var o=t[e];t[e]=t[i],t[i]=o}function i(t,i,o,r,n){for(var s=i;o>i;){var s=Math.round((o+i)/2),a=t[s];e(t,s,o),s=i;for(var h=i;o-1>=h;h++)n(a,t[h])>=0&&(e(t,h,s),s++);if(e(t,o,s),s===r)return s;r>s?i=s+1:o=s-1}return i}function o(e,o,r,n,s){return arguments.length<=3&&(n=o,s=2==arguments.length?t:r,o=0,r=e.length-1),i(e,o,r,n,s)}return o}),define("echarts/component/categoryAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","../component"],function(t){function e(t,e,o,r,n,s){if(r.data.length<1)return void console.error("option.data.length < 1.");i.call(this,t,e,o,r,n),this.grid=this.component.grid;for(var a in s)this[a]=s[a];this.refresh(r)}var i=t("./base"),o=t("zrender/shape/Text"),r=t("zrender/shape/Line"),n=t("zrender/shape/Rectangle"),s=t("../config");s.categoryAxis={zlevel:0,z:0,show:!0,position:"bottom",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:!0,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!0,interval:"auto",inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,interval:"auto",rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var a=t("zrender/tool/util"),h=t("zrender/tool/area");return e.prototype={type:s.COMPONENT_TYPE_AXIS_CATEGORY,_getReformedLabel:function(t){var e=this.getDataFromOption(this.option.data[t]),i=this.option.data[t].formatter||this.option.axisLabel.formatter;return i&&("function"==typeof i?e=i.call(this.myChart,e):"string"==typeof i&&(e=i.replace("{value}",e))),e},_getInterval:function(){var t=this.option.axisLabel.interval;if("auto"==t){var e=this.option.axisLabel.textStyle.fontSize,i=this.option.data,o=this.option.data.length;if(this.isHorizontal())if(o>3){var r,n,s=this.getGap(),l=!1,d=Math.floor(.5/s);for(d=1>d?1:d,t=Math.floor(15/s);!l&&o>t;){t+=d,l=!0,r=Math.floor(s*t);for(var c=Math.floor((o-1)/t)*t;c>=0;c-=t){if(0!==this.option.axisLabel.rotate)n=e;else if(i[c].textStyle)n=h.getTextWidth(this._getReformedLabel(c),this.getFont(a.merge(i[c].textStyle,this.option.axisLabel.textStyle)));else{var u=this._getReformedLabel(c)+"",p=(u.match(/\w/g)||"").length,f=u.length-p;n=p*e*2/3+f*e}if(n>r){l=!1;break}}}}else t=1;else if(o>3){var s=this.getGap();for(t=Math.floor(11/s);e>s*t-6&&o>t;)t++}else t=1}else t="function"==typeof t?1:t-0+1;return t},_buildShape:function(){if(this._interval=this._getInterval(),this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var t=0,e=this.shapeList.length;e>t;t++)this.zr.addShape(this.shapeList[t])}},_buildAxisTick:function(){var t,e=this.option.data,i=this.option.data.length,o=this.option.axisTick,n=o.length,s=o.lineStyle.color,a=o.lineStyle.width,h="function"==typeof o.interval?o.interval:"auto"==o.interval&&"function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,l=h?1:"auto"==o.interval?this._interval:o.interval-0+1,d=o.onGap,c=d?this.getGap()/2:"undefined"==typeof d&&this.option.boundaryGap?this.getGap()/2:0,u=c>0?-l:0;if(this.isHorizontal())for(var p,f="bottom"==this.option.position?o.inside?this.grid.getYend()-n-1:this.grid.getYend()+1:o.inside?this.grid.getY()+1:this.grid.getY()-n-1,g=u;i>g;g+=l)(!h||h(g,e[g]))&&(p=this.subPixelOptimize(this.getCoordByIndex(g)+(g>=0?c:0),a),t={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:p,yStart:f,xEnd:p,yEnd:f+n,strokeColor:s,lineWidth:a}},this.shapeList.push(new r(t)));else for(var m,_="left"==this.option.position?o.inside?this.grid.getX()+1:this.grid.getX()-n-1:o.inside?this.grid.getXend()-n-1:this.grid.getXend()+1,g=u;i>g;g+=l)(!h||h(g,e[g]))&&(m=this.subPixelOptimize(this.getCoordByIndex(g)-(g>=0?c:0),a),t={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:_,yStart:m,xEnd:_+n,yEnd:m,strokeColor:s,lineWidth:a}},this.shapeList.push(new r(t)))},_buildAxisLabel:function(){var t,e,i=this.option.data,r=this.option.data.length,n=this.option.axisLabel,s=n.rotate,h=n.margin,l=n.clickable,d=n.textStyle,c="function"==typeof n.interval?n.interval:!1;if(this.isHorizontal()){var u,p;"bottom"==this.option.position?(u=this.grid.getYend()+h,p="top"):(u=this.grid.getY()-h,p="bottom");for(var f=0;r>f;f+=this._interval)c&&!c(f,i[f])||""===this._getReformedLabel(f)||(e=a.merge(i[f].textStyle||{},d),t={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoordByIndex(f),y:u,color:e.color,text:this._getReformedLabel(f),textFont:this.getFont(e),textAlign:e.align||"center",textBaseline:e.baseline||p}},s&&(t.style.textAlign=s>0?"bottom"==this.option.position?"right":"left":"bottom"==this.option.position?"left":"right",t.rotation=[s*Math.PI/180,t.style.x,t.style.y]),this.shapeList.push(new o(this._axisLabelClickable(l,t))))}else{var g,m;"left"==this.option.position?(g=this.grid.getX()-h,m="right"):(g=this.grid.getXend()+h,m="left");for(var f=0;r>f;f+=this._interval)c&&!c(f,i[f])||""===this._getReformedLabel(f)||(e=a.merge(i[f].textStyle||{},d),t={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:g,y:this.getCoordByIndex(f),color:e.color,text:this._getReformedLabel(f),textFont:this.getFont(e),textAlign:e.align||m,textBaseline:e.baseline||0===f&&""!==this.option.name?"bottom":f==r-1&&""!==this.option.name?"top":"middle"}},s&&(t.rotation=[s*Math.PI/180,t.style.x,t.style.y]),this.shapeList.push(new o(this._axisLabelClickable(l,t))))}},_buildSplitLine:function(){var t,e=this.option.data,i=this.option.data.length,o=this.option.splitLine,n=o.lineStyle.type,s=o.lineStyle.width,a=o.lineStyle.color;a=a instanceof Array?a:[a];var h=a.length,l="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,d=o.onGap,c=d?this.getGap()/2:"undefined"==typeof d&&this.option.boundaryGap?this.getGap()/2:0;if(i-=d||"undefined"==typeof d&&this.option.boundaryGap?1:0,this.isHorizontal())for(var u,p=this.grid.getY(),f=this.grid.getYend(),g=0;i>g;g+=this._interval)(!l||l(g,e[g]))&&(u=this.subPixelOptimize(this.getCoordByIndex(g)+c,s),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:u,yStart:p,xEnd:u,yEnd:f,strokeColor:a[g/this._interval%h],lineType:n,lineWidth:s}},this.shapeList.push(new r(t)));else for(var m,_=this.grid.getX(),y=this.grid.getXend(),g=0;i>g;g+=this._interval)(!l||l(g,e[g]))&&(m=this.subPixelOptimize(this.getCoordByIndex(g)-c,s),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:_,yStart:m,xEnd:y,yEnd:m,strokeColor:a[g/this._interval%h],lineType:n,lineWidth:s}},this.shapeList.push(new r(t)))},_buildSplitArea:function(){var t,e=this.option.data,i=this.option.splitArea,o=i.areaStyle.color;if(o instanceof Array){var r=o.length,s=this.option.data.length,a="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,h=i.onGap,l=h?this.getGap()/2:"undefined"==typeof h&&this.option.boundaryGap?this.getGap()/2:0;if(this.isHorizontal())for(var d,c=this.grid.getY(),u=this.grid.getHeight(),p=this.grid.getX(),f=0;s>=f;f+=this._interval)a&&!a(f,e[f])&&s>f||(d=s>f?this.getCoordByIndex(f)+l:this.grid.getXend(),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:p,y:c,width:d-p,height:u,color:o[f/this._interval%r]}},this.shapeList.push(new n(t)),p=d);else for(var g,m=this.grid.getX(),_=this.grid.getWidth(),y=this.grid.getYend(),f=0;s>=f;f+=this._interval)a&&!a(f,e[f])&&s>f||(g=s>f?this.getCoordByIndex(f)-l:this.grid.getY(),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:m,y:g,width:_,height:y-g,color:o[f/this._interval%r]}},this.shapeList.push(new n(t)),y=g)}else t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:o}},this.shapeList.push(new n(t))},refresh:function(t){t&&(this.option=this.reformOption(t),this.option.axisLabel.textStyle=this.getTextStyle(this.option.axisLabel.textStyle)),this.clear(),this._buildShape()},getGap:function(){var t=this.option.data.length,e=this.isHorizontal()?this.grid.getWidth():this.grid.getHeight();return this.option.boundaryGap?e/t:e/(t>1?t-1:1)},getCoord:function(t){for(var e=this.option.data,i=e.length,o=this.getGap(),r=this.option.boundaryGap?o/2:0,n=0;i>n;n++){if(this.getDataFromOption(e[n])==t)return r=this.isHorizontal()?this.grid.getX()+r:this.grid.getYend()-r;r+=o}},getCoordByIndex:function(t){if(0>t)return this.isHorizontal()?this.grid.getX():this.grid.getYend();if(t>this.option.data.length-1)return this.isHorizontal()?this.grid.getXend():this.grid.getY();var e=this.getGap(),i=this.option.boundaryGap?e/2:0;return i+=t*e,i=this.isHorizontal()?this.grid.getX()+i:this.grid.getYend()-i},getNameByIndex:function(t){return this.getDataFromOption(this.option.data[t])},getIndexByName:function(t){for(var e=this.option.data,i=e.length,o=0;i>o;o++)if(this.getDataFromOption(e[o])==t)return o;return-1},getValueFromCoord:function(){return""},isMainAxis:function(t){return t%this._interval===0}},a.inherits(e,i),t("../component").define("categoryAxis",e),e}),define("echarts/component/dataView",["require","./base","../config","zrender/tool/util","../component"],function(t){function e(t,e,o,r,n){i.call(this,t,e,o,r,n),this.dom=n.dom,this._tDom=document.createElement("div"),this._textArea=document.createElement("textArea"),this._buttonRefresh=document.createElement("button"),this._buttonRefresh.setAttribute("type","button"),this._buttonClose=document.createElement("button"),this._buttonClose.setAttribute("type","button"),this._hasShow=!1,this._zrHeight=o.getHeight(),this._zrWidth=o.getWidth(),this._tDom.className="echarts-dataview",this.hide(),this.dom.firstChild.appendChild(this._tDom),window.addEventListener?(this._tDom.addEventListener("click",this._stop),this._tDom.addEventListener("mousewheel",this._stop),this._tDom.addEventListener("mousemove",this._stop),this._tDom.addEventListener("mousedown",this._stop),this._tDom.addEventListener("mouseup",this._stop),this._tDom.addEventListener("touchstart",this._stop),this._tDom.addEventListener("touchmove",this._stop),this._tDom.addEventListener("touchend",this._stop)):(this._tDom.attachEvent("onclick",this._stop),this._tDom.attachEvent("onmousewheel",this._stop),this._tDom.attachEvent("onmousemove",this._stop),this._tDom.attachEvent("onmousedown",this._stop),this._tDom.attachEvent("onmouseup",this._stop))}var i=t("./base"),o=t("../config"),r=t("zrender/tool/util");return e.prototype={type:o.COMPONENT_TYPE_DATAVIEW,_lang:["Data View","close","refresh"],_gCssText:"position:absolute;display:block;overflow:hidden;transition:height 0.8s,background-color 1s;-moz-transition:height 0.8s,background-color 1s;-webkit-transition:height 0.8s,background-color 1s;-o-transition:height 0.8s,background-color 1s;z-index:1;left:0;top:0;",hide:function(){this._sizeCssText="width:"+this._zrWidth+"px;height:0px;background-color:#f0ffff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},show:function(t){this._hasShow=!0;var e=this.query(this.option,"toolbox.feature.dataView.lang")||this._lang;this.option=t,this._tDom.innerHTML='<p style="padding:8px 0;margin:0 0 10px 0;border-bottom:1px solid #eee">'+(e[0]||this._lang[0])+"</p>";var i=this.query(this.option,"toolbox.feature.dataView.optionToContent");"function"!=typeof i?this._textArea.value=this._optionToContent():(this._textArea=document.createElement("div"),this._textArea.innerHTML=i(this.option)),this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;",this._tDom.appendChild(this._textArea),this._buttonClose.style.cssText="float:right;padding:1px 6px;",this._buttonClose.innerHTML=e[1]||this._lang[1];var o=this;this._buttonClose.onclick=function(){o.hide()},this._tDom.appendChild(this._buttonClose),this.query(this.option,"toolbox.feature.dataView.readOnly")===!1?(this._buttonRefresh.style.cssText="float:right;margin-right:10px;padding:1px 6px;",this._buttonRefresh.innerHTML=e[2]||this._lang[2],this._buttonRefresh.onclick=function(){o._save()},this._textArea.readOnly=!1,this._textArea.style.cursor="default"):(this._buttonRefresh.style.cssText="display:none",this._textArea.readOnly=!0,this._textArea.style.cursor="text"),this._tDom.appendChild(this._buttonRefresh),this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},_optionToContent:function(){var t,e,i,r,n,s,a=[],h="";if(this.option.xAxis)for(a=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],t=0,r=a.length;r>t;t++)if("category"==(a[t].type||"category")){for(s=[],e=0,i=a[t].data.length;i>e;e++)s.push(this.getDataFromOption(a[t].data[e]));h+=s.join(", ")+"\n\n"}if(this.option.yAxis)for(a=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],t=0,r=a.length;r>t;t++)if("category"==a[t].type){for(s=[],e=0,i=a[t].data.length;i>e;e++)s.push(this.getDataFromOption(a[t].data[e]));h+=s.join(", ")+"\n\n"}var l,d=this.option.series;for(t=0,r=d.length;r>t;t++){for(s=[],e=0,i=d[t].data.length;i>e;e++)n=d[t].data[e],l=d[t].type==o.CHART_TYPE_PIE||d[t].type==o.CHART_TYPE_MAP?(n.name||"-")+":":"",d[t].type==o.CHART_TYPE_SCATTER&&(n=this.getDataFromOption(n).join(", ")),s.push(l+this.getDataFromOption(n));h+=(d[t].name||"-")+" : \n",h+=s.join(d[t].type==o.CHART_TYPE_SCATTER?"\n":", "),h+="\n\n"}return h},_save:function(){var t=this.query(this.option,"toolbox.feature.dataView.contentToOption");if("function"!=typeof t){for(var e=this._textArea.value.split("\n"),i=[],r=0,n=e.length;n>r;r++)e[r]=this._trim(e[r]),""!==e[r]&&i.push(e[r]);this._contentToOption(i)}else t(this._textArea,this.option);this.hide();var s=this;setTimeout(function(){s.messageCenter&&s.messageCenter.dispatch(o.EVENT.DATA_VIEW_CHANGED,null,{option:s.option},s.myChart)},s.canvasSupported?800:100)},_contentToOption:function(t){var e,i,r,n,s,a,h,l=[],d=0;if(this.option.xAxis)for(l=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],e=0,n=l.length;n>e;e++)if("category"==(l[e].type||"category")){for(a=t[d].split(","),i=0,r=l[e].data.length;r>i;i++)h=this._trim(a[i]||""),s=l[e].data[i],"undefined"!=typeof l[e].data[i].value?l[e].data[i].value=h:l[e].data[i]=h;d++}if(this.option.yAxis)for(l=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],e=0,n=l.length;n>e;e++)if("category"==l[e].type){for(a=t[d].split(","),i=0,r=l[e].data.length;r>i;i++)h=this._trim(a[i]||""),s=l[e].data[i],"undefined"!=typeof l[e].data[i].value?l[e].data[i].value=h:l[e].data[i]=h;d++}var c=this.option.series;for(e=0,n=c.length;n>e;e++)if(d++,c[e].type==o.CHART_TYPE_SCATTER)for(var i=0,r=c[e].data.length;r>i;i++)a=t[d],h=a.replace(" ","").split(","),"undefined"!=typeof c[e].data[i].value?c[e].data[i].value=h:c[e].data[i]=h,d++;else{a=t[d].split(",");for(var i=0,r=c[e].data.length;r>i;i++)h=(a[i]||"").replace(/.*:/,""),h=this._trim(h),h="-"!=h&&""!==h?h-0:"-","undefined"!=typeof c[e].data[i].value?c[e].data[i].value=h:c[e].data[i]=h;d++}},_trim:function(t){var e=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");return t.replace(e,"")},_stop:function(t){t=t||window.event,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},resize:function(){this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._tDom.offsetHeight>10&&(this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText,this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;")},dispose:function(){window.removeEventListener?(this._tDom.removeEventListener("click",this._stop),this._tDom.removeEventListener("mousewheel",this._stop),this._tDom.removeEventListener("mousemove",this._stop),this._tDom.removeEventListener("mousedown",this._stop),this._tDom.removeEventListener("mouseup",this._stop),this._tDom.removeEventListener("touchstart",this._stop),this._tDom.removeEventListener("touchmove",this._stop),this._tDom.removeEventListener("touchend",this._stop)):(this._tDom.detachEvent("onclick",this._stop),this._tDom.detachEvent("onmousewheel",this._stop),this._tDom.detachEvent("onmousemove",this._stop),this._tDom.detachEvent("onmousedown",this._stop),this._tDom.detachEvent("onmouseup",this._stop)),this._buttonRefresh.onclick=null,this._buttonClose.onclick=null,this._hasShow&&(this._tDom.removeChild(this._textArea),this._tDom.removeChild(this._buttonRefresh),this._tDom.removeChild(this._buttonClose)),this._textArea=null,this._buttonRefresh=null,this._buttonClose=null,this.dom.firstChild.removeChild(this._tDom),this._tDom=null}},r.inherits(e,i),t("../component").define("dataView",e),e}),define("echarts/component/valueAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/date","zrender/tool/util","../util/smartSteps","../util/accMath","../util/smartLogSteps","../component"],function(t){function e(t,e,o,r,n,s,a){if(!a||0===a.length)return void console.err("option.series.length == 0.");i.call(this,t,e,o,r,n),this.series=a,this.grid=this.component.grid;for(var h in s)this[h]=s[h];this.refresh(r,a)}var i=t("./base"),o=t("zrender/shape/Text"),r=t("zrender/shape/Line"),n=t("zrender/shape/Rectangle"),s=t("../config");s.valueAxis={zlevel:0,z:0,show:!0,position:"left",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:[0,0],axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!1,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var a=t("../util/date"),h=t("zrender/tool/util");return e.prototype={type:s.COMPONENT_TYPE_AXIS_VALUE,_buildShape:function(){if(this._hasData=!1,this._calculateValue(),this._hasData&&this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var t=0,e=this.shapeList.length;e>t;t++)this.zr.addShape(this.shapeList[t])}},_buildAxisTick:function(){var t,e=this._valueList,i=this._valueList.length,o=this.option.axisTick,n=o.length,s=o.lineStyle.color,a=o.lineStyle.width;if(this.isHorizontal())for(var h,l="bottom"===this.option.position?o.inside?this.grid.getYend()-n-1:this.grid.getYend()+1:o.inside?this.grid.getY()+1:this.grid.getY()-n-1,d=0;i>d;d++)h=this.subPixelOptimize(this.getCoord(e[d]),a),t={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:h,yStart:l,xEnd:h,yEnd:l+n,strokeColor:s,lineWidth:a}},this.shapeList.push(new r(t));else for(var c,u="left"===this.option.position?o.inside?this.grid.getX()+1:this.grid.getX()-n-1:o.inside?this.grid.getXend()-n-1:this.grid.getXend()+1,d=0;i>d;d++)c=this.subPixelOptimize(this.getCoord(e[d]),a),t={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:u,yStart:c,xEnd:u+n,yEnd:c,strokeColor:s,lineWidth:a}},this.shapeList.push(new r(t))},_buildAxisLabel:function(){var t,e=this._valueList,i=this._valueList.length,r=this.option.axisLabel.rotate,n=this.option.axisLabel.margin,s=this.option.axisLabel.clickable,a=this.option.axisLabel.textStyle;if(this.isHorizontal()){var h,l;"bottom"===this.option.position?(h=this.grid.getYend()+n,l="top"):(h=this.grid.getY()-n,l="bottom");for(var d=0;i>d;d++)t={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoord(e[d]),y:h,color:"function"==typeof a.color?a.color(e[d]):a.color,text:this._valueLabel[d],textFont:this.getFont(a),textAlign:a.align||"center",textBaseline:a.baseline||l}},r&&(t.style.textAlign=r>0?"bottom"===this.option.position?"right":"left":"bottom"===this.option.position?"left":"right",t.rotation=[r*Math.PI/180,t.style.x,t.style.y]),this.shapeList.push(new o(this._axisLabelClickable(s,t)))}else{var c,u;"left"===this.option.position?(c=this.grid.getX()-n,u="right"):(c=this.grid.getXend()+n,u="left");for(var d=0;i>d;d++)t={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:c,y:this.getCoord(e[d]),color:"function"==typeof a.color?a.color(e[d]):a.color,text:this._valueLabel[d],textFont:this.getFont(a),textAlign:a.align||u,textBaseline:a.baseline||(0===d&&""!==this.option.name?"bottom":d===i-1&&""!==this.option.name?"top":"middle")}},r&&(t.rotation=[r*Math.PI/180,t.style.x,t.style.y]),this.shapeList.push(new o(this._axisLabelClickable(s,t)))}},_buildSplitLine:function(){var t,e=this._valueList,i=this._valueList.length,o=this.option.splitLine,n=o.lineStyle.type,s=o.lineStyle.width,a=o.lineStyle.color;a=a instanceof Array?a:[a];var h=a.length;if(this.isHorizontal())for(var l,d=this.grid.getY(),c=this.grid.getYend(),u=0;i>u;u++)l=this.subPixelOptimize(this.getCoord(e[u]),s),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:l,yStart:d,xEnd:l,yEnd:c,strokeColor:a[u%h],lineType:n,lineWidth:s}},this.shapeList.push(new r(t));else for(var p,f=this.grid.getX(),g=this.grid.getXend(),u=0;i>u;u++)p=this.subPixelOptimize(this.getCoord(e[u]),s),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:f,yStart:p,xEnd:g,yEnd:p,strokeColor:a[u%h],lineType:n,lineWidth:s}},this.shapeList.push(new r(t))},_buildSplitArea:function(){var t,e=this.option.splitArea.areaStyle.color;if(e instanceof Array){var i=e.length,o=this._valueList,r=this._valueList.length;if(this.isHorizontal())for(var s,a=this.grid.getY(),h=this.grid.getHeight(),l=this.grid.getX(),d=0;r>=d;d++)s=r>d?this.getCoord(o[d]):this.grid.getXend(),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:l,y:a,width:s-l,height:h,color:e[d%i]}},this.shapeList.push(new n(t)),l=s;else for(var c,u=this.grid.getX(),p=this.grid.getWidth(),f=this.grid.getYend(),d=0;r>=d;d++)c=r>d?this.getCoord(o[d]):this.grid.getY(),t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:u,y:c,width:p,height:f-c,color:e[d%i]}},this.shapeList.push(new n(t)),f=c}else t={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:e}},this.shapeList.push(new n(t))},_calculateValue:function(){if(isNaN(this.option.min-0)||isNaN(this.option.max-0)){for(var t,e,i={},o=this.component.legend,r=0,n=this.series.length;n>r;r++)!(this.series[r].type!=s.CHART_TYPE_LINE&&this.series[r].type!=s.CHART_TYPE_BAR&&this.series[r].type!=s.CHART_TYPE_SCATTER&&this.series[r].type!=s.CHART_TYPE_K&&this.series[r].type!=s.CHART_TYPE_EVENTRIVER||o&&!o.isSelected(this.series[r].name)||(t=this.series[r].xAxisIndex||0,e=this.series[r].yAxisIndex||0,this.option.xAxisIndex!=t&&this.option.yAxisIndex!=e||!this._calculSum(i,r)));var a;for(var r in i){a=i[r];for(var h=0,l=a.length;l>h;h++)if(!isNaN(a[h])){this._hasData=!0,this._min=a[h],this._max=a[h];break}if(this._hasData)break}for(var r in i){a=i[r];for(var h=0,l=a.length;l>h;h++)isNaN(a[h])||(this._min=Math.min(this._min,a[h]),this._max=Math.max(this._max,a[h]))}var d="log"!==this.option.type?this.option.boundaryGap:[0,0],c=Math.abs(this._max-this._min);this._min=isNaN(this.option.min-0)?this._min-Math.abs(c*d[0]):this.option.min-0,this._max=isNaN(this.option.max-0)?this._max+Math.abs(c*d[1]):this.option.max-0,this._min===this._max&&(0===this._max?this._max=1:this._max>0?this._min=this._max/this.option.splitNumber!=null?this.option.splitNumber:5:this._max=this._max/this.option.splitNumber!=null?this.option.splitNumber:5),"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._reformValue(this.option.scale)}else this._hasData=!0,this._min=this.option.min-0,this._max=this.option.max-0,"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._customerValue()},_calculSum:function(t,e){var i,o,r=this.series[e].name||"kener";if(this.series[e].stack){var n="__Magic_Key_Positive__"+this.series[e].stack,h="__Magic_Key_Negative__"+this.series[e].stack;t[n]=t[n]||[],t[h]=t[h]||[],t[r]=t[r]||[],o=this.series[e].data;for(var l=0,d=o.length;d>l;l++)i=this.getDataFromOption(o[l]),"-"!==i&&(i-=0,i>=0?null!=t[n][l]?t[n][l]+=i:t[n][l]=i:null!=t[h][l]?t[h][l]+=i:t[h][l]=i,this.option.scale&&t[r].push(i))}else if(t[r]=t[r]||[],this.series[e].type!=s.CHART_TYPE_EVENTRIVER){o=this.series[e].data;for(var l=0,d=o.length;d>l;l++)i=this.getDataFromOption(o[l]),this.series[e].type===s.CHART_TYPE_K?(t[r].push(i[0]),t[r].push(i[1]),t[r].push(i[2]),t[r].push(i[3])):i instanceof Array?(-1!=this.option.xAxisIndex&&t[r].push("time"!=this.option.type?i[0]:a.getNewDate(i[0])),-1!=this.option.yAxisIndex&&t[r].push("time"!=this.option.type?i[1]:a.getNewDate(i[1]))):t[r].push(i)}else{o=this.series[e].data;for(var l=0,d=o.length;d>l;l++)for(var c=o[l].evolution,u=0,p=c.length;p>u;u++)t[r].push(a.getNewDate(c[u].time))}},_reformValue:function(e){var i=t("../util/smartSteps"),o=this.option.splitNumber;!e&&this._min>=0&&this._max>=0&&(this._min=0),!e&&this._min<=0&&this._max<=0&&(this._max=0);var r=i(this._min,this._max,o);o=null!=o?o:r.secs,this._min=r.min,this._max=r.max,this._valueList=r.pnts,this._reformLabelData()},_reformTimeValue:function(){var t=null!=this.option.splitNumber?this.option.splitNumber:5,e=a.getAutoFormatter(this._min,this._max,t),i=e.formatter,o=e.gapValue;this._valueList=[a.getNewDate(this._min)];var r;switch(i){case"week":r=a.nextMonday(this._min);break;case"month":r=a.nextNthOnMonth(this._min,1);break;case"quarter":r=a.nextNthOnQuarterYear(this._min,1);break;case"half-year":r=a.nextNthOnHalfYear(this._min,1);break;case"year":r=a.nextNthOnYear(this._min,1);break;default:72e5>=o?r=(Math.floor(this._min/o)+1)*o:(r=a.getNewDate(this._min- -o),r.setHours(6*Math.round(r.getHours()/6)),r.setMinutes(0),r.setSeconds(0))}for(r-this._min<o/2&&(r-=-o),e=a.getNewDate(r),t*=1.5;t-->=0&&(("month"==i||"quarter"==i||"half-year"==i||"year"==i)&&e.setDate(1),!(this._max-e<o/2));)this._valueList.push(e),e=a.getNewDate(e- -o);this._valueList.push(a.getNewDate(this._max)),this._reformLabelData(function(t){return function(e){return a.format(t,e)}}(i))},_customerValue:function(){var e=t("../util/accMath"),i=null!=this.option.splitNumber?this.option.splitNumber:5,o=(this._max-this._min)/i;this._valueList=[];for(var r=0;i>=r;r++)this._valueList.push(e.accAdd(this._min,e.accMul(o,r)));this._reformLabelData()},_reformLogValue:function(){var e=this.option,i=t("../util/smartLogSteps")({dataMin:this._min,dataMax:this._max,logPositive:e.logPositive,logLabelBase:e.logLabelBase,splitNumber:e.splitNumber});this._min=i.dataMin,this._max=i.dataMax,this._valueList=i.tickList,this._dataMappingMethods=i.dataMappingMethods,this._reformLabelData(i.labelFormatter)},_reformLabelData:function(t){this._valueLabel=[];var e=this.option.axisLabel.formatter;if(e)for(var i=0,o=this._valueList.length;o>i;i++)"function"==typeof e?this._valueLabel.push(t?e.call(this.myChart,this._valueList[i],t):e.call(this.myChart,this._valueList[i])):"string"==typeof e&&this._valueLabel.push(t?a.format(e,this._valueList[i]):e.replace("{value}",this._valueList[i]));else for(var i=0,o=this._valueList.length;o>i;i++)this._valueLabel.push(t?t(this._valueList[i]):this.numAddCommas(this._valueList[i]))},getExtremum:function(){this._calculateValue();var t=this._dataMappingMethods;return{min:this._min,max:this._max,dataMappingMethods:t?h.merge({},t):null}},refresh:function(t,e){t&&(this.option=this.reformOption(t),this.option.axisLabel.textStyle=h.merge(this.option.axisLabel.textStyle||{},this.ecTheme.textStyle),this.series=e),this.zr&&(this.clear(),this._buildShape())},getCoord:function(t){this._dataMappingMethods&&(t=this._dataMappingMethods.value2Coord(t)),t=t<this._min?this._min:t,t=t>this._max?this._max:t;var e;return e=this.isHorizontal()?this.grid.getX()+(t-this._min)/(this._max-this._min)*this.grid.getWidth():this.grid.getYend()-(t-this._min)/(this._max-this._min)*this.grid.getHeight()},getCoordSize:function(t){return Math.abs(this.isHorizontal()?t/(this._max-this._min)*this.grid.getWidth():t/(this._max-this._min)*this.grid.getHeight())},getValueFromCoord:function(t){var e;return this.isHorizontal()?(t=t<this.grid.getX()?this.grid.getX():t,t=t>this.grid.getXend()?this.grid.getXend():t,e=this._min+(t-this.grid.getX())/this.grid.getWidth()*(this._max-this._min)):(t=t<this.grid.getY()?this.grid.getY():t,t=t>this.grid.getYend()?this.grid.getYend():t,e=this._max-(t-this.grid.getY())/this.grid.getHeight()*(this._max-this._min)),this._dataMappingMethods&&(e=this._dataMappingMethods.coord2Value(e)),e.toFixed(2)-0},isMaindAxis:function(t){for(var e=0,i=this._valueList.length;i>e;e++)if(this._valueList[e]===t)return!0;return!1}},h.inherits(e,i),t("../component").define("valueAxis",e),e}),define("echarts/util/shape/Cross",["require","zrender/shape/Base","zrender/shape/Line","zrender/tool/util","./normalIsCover"],function(t){function e(t){i.call(this,t)}var i=t("zrender/shape/Base"),o=t("zrender/shape/Line"),r=t("zrender/tool/util");return e.prototype={type:"cross",buildPath:function(t,e){var i=e.rect;e.xStart=i.x,e.xEnd=i.x+i.width,e.yStart=e.yEnd=e.y,o.prototype.buildPath(t,e),e.xStart=e.xEnd=e.x,e.yStart=i.y,e.yEnd=i.y+i.height,o.prototype.buildPath(t,e)},getRect:function(t){return t.rect},isCover:t("./normalIsCover")},r.inherits(e,i),e}),define("echarts/util/date",[],function(){function t(t,e,i){i=i>1?i:2;for(var o,r,n,s,a=0,h=d.length;h>a;a++)if(o=d[a].value,r=Math.ceil(e/o)*o-Math.floor(t/o)*o,Math.round(r/o)<=1.2*i){n=d[a].formatter,s=d[a].value;break}return null==n&&(n="year",o=317088e5,r=Math.ceil(e/o)*o-Math.floor(t/o)*o,s=Math.round(r/(i-1)/o)*o),{formatter:n,gapValue:s}}function e(t){return 10>t?"0"+t:t}function i(t,i){("week"==t||"month"==t||"quarter"==t||"half-year"==t||"year"==t)&&(t="MM - dd\nyyyy");var o=l(i),r=o.getFullYear(),n=o.getMonth()+1,s=o.getDate(),a=o.getHours(),h=o.getMinutes(),d=o.getSeconds();return t=t.replace("MM",e(n)),t=t.toLowerCase(),t=t.replace("yyyy",r),t=t.replace("yy",r%100),t=t.replace("dd",e(s)),t=t.replace("d",s),t=t.replace("hh",e(a)),t=t.replace("h",a),t=t.replace("mm",e(h)),t=t.replace("m",h),t=t.replace("ss",e(d)),t=t.replace("s",d)}function o(t){return t=l(t),t.setDate(t.getDate()+8-t.getDay()),t}function r(t,e,i){return t=l(t),t.setMonth(Math.ceil((t.getMonth()+1)/i)*i),t.setDate(e),t}function n(t,e){return r(t,e,1)}function s(t,e){return r(t,e,3)}function a(t,e){return r(t,e,6)}function h(t,e){return r(t,e,12)}function l(t){return t instanceof Date?t:new Date("string"==typeof t?t.replace(/-/g,"/"):t)}var d=[{formatter:"hh : mm : ss",value:1e3},{formatter:"hh : mm : ss",value:5e3},{formatter:"hh : mm : ss",value:1e4},{formatter:"hh : mm : ss",value:15e3},{formatter:"hh : mm : ss",value:3e4},{formatter:"hh : mm\nMM - dd",value:6e4},{formatter:"hh : mm\nMM - dd",value:3e5},{formatter:"hh : mm\nMM - dd",value:6e5},{formatter:"hh : mm\nMM - dd",value:9e5},{formatter:"hh : mm\nMM - dd",value:18e5},{formatter:"hh : mm\nMM - dd",value:36e5},{formatter:"hh : mm\nMM - dd",value:72e5},{formatter:"hh : mm\nMM - dd",value:216e5},{formatter:"hh : mm\nMM - dd",value:432e5},{formatter:"MM - dd\nyyyy",value:864e5},{formatter:"week",value:6048e5},{formatter:"month",value:26784e5},{formatter:"quarter",value:8208e6},{formatter:"half-year",value:16416e6},{formatter:"year",value:32832e6}];
return{getAutoFormatter:t,getNewDate:l,format:i,nextMonday:o,nextNthPerNmonth:r,nextNthOnMonth:n,nextNthOnQuarterYear:s,nextNthOnHalfYear:a,nextNthOnYear:h}}),define("echarts/util/smartLogSteps",["require","./number"],function(t){function e(t){return i(),m=t||{},o(),r(),[n(),i()][0]}function i(){u=m=y=g=v=x=_=b=p=f=null}function o(){p=m.logLabelBase,null==p?(f="plain",p=10,g=M):(p=+p,1>p&&(p=10),f="exponent",g=C(p)),_=m.splitNumber,null==_&&(_=O);var t=parseFloat(m.dataMin),e=parseFloat(m.dataMax);isFinite(t)||isFinite(e)?isFinite(t)?isFinite(e)?t>e&&(e=[t,t=e][0]):e=t:t=e:t=e=1,u=m.logPositive,null==u&&(u=e>0||0===t),v=u?t:-e,x=u?e:-t,P>v&&(v=P),P>x&&(x=P)}function r(){function t(){_>d&&(_=d);var t=A(h(d/_)),e=w(h(d/t)),i=t*e,o=(i-u)/2,r=A(h(s-o));c(r-s)&&(r-=1),y=-r*g;for(var a=r;n>=a-t;a+=t)b.push(z(p,a))}function e(){for(var t=i(l,0),e=t+2;e>t&&r(t+1)+o(t+1)*I<s;)t++;for(var h=i(a,0),e=h-2;h>e&&r(h-1)+o(h-1)*I>n;)h--;y=-(r(t)*M+o(t)*k);for(var d=t;h>=d;d++){var c=r(d),u=o(d);b.push(z(10,c)*z(2,u))}}function i(t,e){return 3*t+e}function o(t){return t-3*r(t)}function r(t){return A(h(t/3))}b=[];var n=h(C(x)/g),s=h(C(v)/g),a=w(n),l=A(s),d=a-l,u=n-s;"exponent"===f?t():D>=d&&_>D?e():t()}function n(){for(var t=[],e=0,i=b.length;i>e;e++)t[e]=(u?1:-1)*b[e];!u&&t.reverse();var o=a(),r=o.value2Coord,n=r(t[0]),h=r(t[t.length-1]);return n===h&&(n-=1,h+=1),{dataMin:n,dataMax:h,tickList:t,logPositive:u,labelFormatter:s(),dataMappingMethods:o}}function s(){if("exponent"===f){var t=p,e=g;return function(i){if(!isFinite(parseFloat(i)))return"";var o="";return 0>i&&(i=-i,o="-"),o+t+d(C(i)/e)}}return function(t){return isFinite(parseFloat(t))?T.addCommas(l(t)):""}}function a(){var t=u,e=y;return{value2Coord:function(i){return null==i||isNaN(i)||!isFinite(i)?i:(i=parseFloat(i),isFinite(i)?t&&P>i?i=P:!t&&i>-P&&(i=-P):i=P,i=E(i),(t?1:-1)*(C(i)+e))},coord2Value:function(i){return null==i||isNaN(i)||!isFinite(i)?i:(i=parseFloat(i),isFinite(i)||(i=P),t?z(L,i-e):-z(L,-i+e))}}}function h(t){return+Number(+t).toFixed(14)}function l(t){return Number(t).toFixed(15).replace(/\.?0*$/,"")}function d(t){t=l(Math.round(t));for(var e=[],i=0,o=t.length;o>i;i++){var r=t.charAt(i);e.push(R[r]||"")}return e.join("")}function c(t){return t>-P&&P>t}var u,p,f,g,m,_,y,v,x,b,T=t("./number"),S=Math,C=S.log,z=S.pow,E=S.abs,w=S.ceil,A=S.floor,L=S.E,M=S.LN10,k=S.LN2,I=k/M,P=1e-9,O=5,D=2,R={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹","-":"⁻"};return e}),define("echarts/util/shape/Candle",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(t){function e(t){i.call(this,t)}var i=t("zrender/shape/Base"),o=t("zrender/tool/util");return e.prototype={type:"candle",_numberOrder:function(t,e){return e-t},buildPath:function(t,e){var i=o.clone(e.y).sort(this._numberOrder);t.moveTo(e.x,i[3]),t.lineTo(e.x,i[2]),t.moveTo(e.x-e.width/2,i[2]),t.rect(e.x-e.width/2,i[2],e.width,i[1]-i[2]),t.moveTo(e.x,i[1]),t.lineTo(e.x,i[0])},getRect:function(t){if(!t.__rect){var e=0;("stroke"==t.brushType||"fill"==t.brushType)&&(e=t.lineWidth||1);var i=o.clone(t.y).sort(this._numberOrder);t.__rect={x:Math.round(t.x-t.width/2-e/2),y:Math.round(i[3]-e/2),width:t.width+e,height:i[0]-i[3]+e}}return t.__rect},isCover:t("./normalIsCover")},o.inherits(e,i),e}),define("echarts/util/smartSteps",[],function(){function t(t){return E.log(M(t))/E.LN10}function e(t){return E.pow(10,t)}function i(t){return t===A(t)}function o(t,e,o,r){v=r||{},x=v.steps||C,b=v.secs||z,o=w(+o||0)%99,t=+t||0,e=+e||0,T=S=0,"min"in v&&(t=+v.min||0,T=1),"max"in v&&(e=+v.max||0,S=1),t>e&&(e=[t,t=e][0]);var n=e-t;if(T&&S)return y(t,e,o);if((o||5)>n){if(i(t)&&i(e))return p(t,e,o);if(0===n)return f(t,e,o)}return l(t,e,o)}function r(t,i,o,r){r=r||0;var a=n((i-t)/o,-1),h=n(t,-1,1),l=n(i,-1),d=E.min(a.e,h.e,l.e);0===h.c?d=E.min(a.e,l.e):0===l.c&&(d=E.min(a.e,h.e)),s(a,{c:0,e:d}),s(h,a,1),s(l,a),r+=d,t=h.c,i=l.c;for(var c=(i-t)/o,u=e(r),p=0,f=[],g=o+1;g--;)f[g]=(t+c*g)*u;if(0>r){p=m(u),c=+(c*u).toFixed(p),t=+(t*u).toFixed(p),i=+(i*u).toFixed(p);for(var g=f.length;g--;)f[g]=f[g].toFixed(p),0===+f[g]&&(f[g]="0")}else t*=u,i*=u,c*=u;return b=0,x=0,v=0,{min:t,max:i,secs:o,step:c,fix:p,exp:r,pnts:f}}function n(o,r,n){r=w(r%10)||2,0>r&&(i(o)?r=(""+M(o)).replace(/0+$/,"").length||1:(o=o.toFixed(15).replace(/0+$/,""),r=o.replace(".","").replace(/^[-0]+/,"").length,o=+o));var s=A(t(o))-r+1,a=+(o*e(-s)).toFixed(15)||0;return a=n?A(a):L(a),!a&&(s=0),(""+M(a)).length>r&&(s+=1,a/=10),{c:a,e:s}}function s(t,i,o){var r=i.e-t.e;r&&(t.e+=r,t.c*=e(-r),t.c=o?A(t.c):L(t.c))}function a(t,e,i){t.e<e.e?s(e,t,i):s(t,e,i)}function h(t,e){e=e||C,t=n(t);for(var i=t.c,o=0;i>e[o];)o++;if(!e[o])for(i/=10,t.e+=1,o=0;i>e[o];)o++;return t.c=e[o],t}function l(t,e,o){var a,l=o||+b.slice(-1),f=h((e-t)/l,x),m=n(e-t),y=n(t,-1,1),v=n(e,-1);if(s(m,f),s(y,f,1),s(v,f),o?a=c(y,v,l):l=d(y,v),i(t)&&i(e)&&t*e>=0){if(l>e-t)return p(t,e,l);l=u(t,e,o,y,v,l)}var C=g(t,e,y.c,v.c);return y.c=C[0],v.c=C[1],(T||S)&&_(t,e,y,v),r(y.c,v.c,l,v.e)}function d(t,i){for(var o,r,n,s,a=[],l=b.length;l--;)o=b[l],r=h((i.c-t.c)/o,x),r=r.c*e(r.e),n=A(t.c/r)*r,s=L(i.c/r)*r,a[l]={min:n,max:s,step:r,span:s-n};return a.sort(function(t,e){var i=t.span-e.span;return 0===i&&(i=t.step-e.step),i}),a=a[0],o=a.span/a.step,t.c=a.min,i.c=a.max,3>o?2*o:o}function c(t,i,o){for(var r,n,s=i.c,a=(i.c-t.c)/o-1;s>t.c;)a=h(a+1,x),a=a.c*e(a.e),r=a*o,n=L(i.c/a)*a,s=n-r;var l=t.c-s,d=n-i.c,c=l-d;return c>1.1*a&&(c=w(c/a/2)*a,s+=c,n+=c),t.c=s,i.c=n,a}function u(t,o,r,n,s,a){var h=s.c-n.c,l=h/a*e(s.e);if(!i(l)&&(l=A(l),h=l*a,o-t>h&&(l+=1,h=l*a,!r&&l*(a-1)>=o-t&&(a-=1,h=l*a)),h>=o-t)){var d=h-(o-t);n.c=w(t-d/2),s.c=w(o+d/2),n.e=0,s.e=0}return a}function p(t,e,i){if(i=i||5,T)e=t+i;else if(S)t=e-i;else{var o=i-(e-t),n=w(t-o/2),s=w(e+o/2),a=g(t,e,n,s);t=a[0],e=a[1]}return r(t,e,i)}function f(t,e,i){i=i||5;var o=E.min(M(e/i),i)/2.1;return T?e=t+o:S?t=e-o:(t-=o,e+=o),l(t,e,i)}function g(t,e,i,o){return t>=0&&0>i?(o-=i,i=0):0>=e&&o>0&&(i-=o,o=0),[i,o]}function m(t){return t=(+t).toFixed(15).split("."),t.pop().replace(/0+$/,"").length}function _(t,e,i,o){if(T){var r=n(t,4,1);i.e-r.e>6&&(r={c:0,e:i.e}),a(i,r),a(o,r),o.c+=r.c-i.c,i.c=r.c}else if(S){var s=n(e,4);o.e-s.e>6&&(s={c:0,e:o.e}),a(i,s),a(o,s),i.c+=s.c-o.c,o.c=s.c}}function y(t,e,i){var o=i?[i]:b,a=e-t;if(0===a)return e=n(e,3),i=o[0],e.c=w(e.c+i/2),r(e.c-i,e.c,i,e.e);M(e/a)<1e-6&&(e=0),M(t/a)<1e-6&&(t=0);var h,l,d,c=[[5,10],[10,2],[50,10],[100,2]],u=[],p=[],f=n(e-t,3),g=n(t,-1,1),m=n(e,-1);s(g,f,1),s(m,f),a=m.c-g.c,f.c=a;for(var _=o.length;_--;){i=o[_],h=L(a/i),l=h*i-a,d=3*(l+3),d+=2*(i-o[0]+2),i%5===0&&(d-=10);for(var y=c.length;y--;)h%c[y][0]===0&&(d/=c[y][1]);p[_]=[i,h,l,d].join(),u[_]={secs:i,step:h,delta:l,score:d}}return u.sort(function(t,e){return t.score-e.score}),u=u[0],g.c=w(g.c-u.delta/2),m.c=w(m.c+u.delta/2),r(g.c,m.c,u.secs,f.e)}var v,x,b,T,S,C=[10,20,25,50],z=[4,5,6],E=Math,w=E.round,A=E.floor,L=E.ceil,M=E.abs;return o}),define("zrender/shape/Sector",["require","../tool/math","../tool/computeBoundingBox","../tool/vector","./Base","../tool/util"],function(t){var e=t("../tool/math"),i=t("../tool/computeBoundingBox"),o=t("../tool/vector"),r=t("./Base"),n=o.create(),s=o.create(),a=o.create(),h=o.create(),l=function(t){r.call(this,t)};return l.prototype={type:"sector",buildPath:function(t,i){var o=i.x,r=i.y,n=i.r0||0,s=i.r,a=i.startAngle,h=i.endAngle,l=i.clockWise||!1;a=e.degreeToRadian(a),h=e.degreeToRadian(h),l||(a=-a,h=-h);var d=e.cos(a),c=e.sin(a);t.moveTo(d*n+o,c*n+r),t.lineTo(d*s+o,c*s+r),t.arc(o,r,s,a,h,!l),t.lineTo(e.cos(h)*n+o,e.sin(h)*n+r),0!==n&&t.arc(o,r,n,h,a,l),t.closePath()},getRect:function(t){if(t.__rect)return t.__rect;var r=t.x,l=t.y,d=t.r0||0,c=t.r,u=e.degreeToRadian(t.startAngle),p=e.degreeToRadian(t.endAngle),f=t.clockWise;return f||(u=-u,p=-p),d>1?i.arc(r,l,d,u,p,!f,n,a):(n[0]=a[0]=r,n[1]=a[1]=l),i.arc(r,l,c,u,p,!f,s,h),o.min(n,n,s),o.max(a,a,h),t.__rect={x:n[0],y:n[1],width:a[0]-n[0],height:a[1]-n[1]},t.__rect}},t("../tool/util").inherits(l,r),l}),define("zrender/tool/computeBoundingBox",["require","./vector","./curve"],function(t){function e(t,e,i){if(0!==t.length){for(var o=t[0][0],r=t[0][0],n=t[0][1],s=t[0][1],a=1;a<t.length;a++){var h=t[a];h[0]<o&&(o=h[0]),h[0]>r&&(r=h[0]),h[1]<n&&(n=h[1]),h[1]>s&&(s=h[1])}e[0]=o,e[1]=n,i[0]=r,i[1]=s}}function i(t,e,i,o,r,s){var a=[];n.cubicExtrema(t[0],e[0],i[0],o[0],a);for(var h=0;h<a.length;h++)a[h]=n.cubicAt(t[0],e[0],i[0],o[0],a[h]);var l=[];n.cubicExtrema(t[1],e[1],i[1],o[1],l);for(var h=0;h<l.length;h++)l[h]=n.cubicAt(t[1],e[1],i[1],o[1],l[h]);a.push(t[0],o[0]),l.push(t[1],o[1]);var d=Math.min.apply(null,a),c=Math.max.apply(null,a),u=Math.min.apply(null,l),p=Math.max.apply(null,l);r[0]=d,r[1]=u,s[0]=c,s[1]=p}function o(t,e,i,o,r){var s=n.quadraticExtremum(t[0],e[0],i[0]),a=n.quadraticExtremum(t[1],e[1],i[1]);s=Math.max(Math.min(s,1),0),a=Math.max(Math.min(a,1),0);var h=1-s,l=1-a,d=h*h*t[0]+2*h*s*e[0]+s*s*i[0],c=h*h*t[1]+2*h*s*e[1]+s*s*i[1],u=l*l*t[0]+2*l*a*e[0]+a*a*i[0],p=l*l*t[1]+2*l*a*e[1]+a*a*i[1];o[0]=Math.min(t[0],i[0],d,u),o[1]=Math.min(t[1],i[1],c,p),r[0]=Math.max(t[0],i[0],d,u),r[1]=Math.max(t[1],i[1],c,p)}var r=t("./vector"),n=t("./curve"),s=r.create(),a=r.create(),h=r.create(),l=function(t,e,i,o,n,l,d,c){if(Math.abs(o-n)>=2*Math.PI)return d[0]=t-i,d[1]=e-i,c[0]=t+i,void(c[1]=e+i);if(s[0]=Math.cos(o)*i+t,s[1]=Math.sin(o)*i+e,a[0]=Math.cos(n)*i+t,a[1]=Math.sin(n)*i+e,r.min(d,s,a),r.max(c,s,a),o%=2*Math.PI,0>o&&(o+=2*Math.PI),n%=2*Math.PI,0>n&&(n+=2*Math.PI),o>n&&!l?n+=2*Math.PI:n>o&&l&&(o+=2*Math.PI),l){var u=n;n=o,o=u}for(var p=0;n>p;p+=Math.PI/2)p>o&&(h[0]=Math.cos(p)*i+t,h[1]=Math.sin(p)*i+e,r.min(d,h,d),r.max(c,h,c))};return e.cubeBezier=i,e.quadraticBezier=o,e.arc=l,e}),define("echarts/util/shape/Chain",["require","zrender/shape/Base","./Icon","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/matrix"],function(t){function e(t){i.call(this,t)}var i=t("zrender/shape/Base"),o=t("./Icon"),r=t("zrender/shape/util/dashedLineTo"),n=t("zrender/tool/util"),s=t("zrender/tool/matrix");return e.prototype={type:"chain",brush:function(t,e){var i=this.style;e&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),t.save(),this.setContext(t,i),this.setTransform(t),t.save(),t.beginPath(),this.buildLinePath(t,i),t.stroke(),t.restore(),this.brushSymbol(t,i),t.restore()},buildLinePath:function(t,e){var i=e.x,o=e.y+5,n=e.width,s=e.height/2-10;if(t.moveTo(i,o),t.lineTo(i,o+s),t.moveTo(i+n,o),t.lineTo(i+n,o+s),t.moveTo(i,o+s/2),e.lineType&&"solid"!=e.lineType){if("dashed"==e.lineType||"dotted"==e.lineType){var a=(e.lineWidth||1)*("dashed"==e.lineType?5:1);r(t,i,o+s/2,i+n,o+s/2,a)}}else t.lineTo(i+n,o+s/2)},brushSymbol:function(t,e){var i=e.y+e.height/4;t.save();for(var r,n=e.chainPoint,s=0,a=n.length;a>s;s++){if(r=n[s],"none"!=r.symbol){t.beginPath();var h=r.symbolSize;o.prototype.buildPath(t,{iconType:r.symbol,x:r.x-h,y:i-h,width:2*h,height:2*h,n:r.n}),t.fillStyle=r.isEmpty?"#fff":e.strokeColor,t.closePath(),t.fill(),t.stroke()}r.showLabel&&(t.font=r.textFont,t.fillStyle=r.textColor,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline,r.rotation?(t.save(),this._updateTextTransform(t,r.rotation),t.fillText(r.name,r.textX,r.textY),t.restore()):t.fillText(r.name,r.textX,r.textY))}t.restore()},_updateTextTransform:function(t,e){var i=s.create();if(s.identity(i),0!==e[0]){var o=e[1]||0,r=e[2]||0;(o||r)&&s.translate(i,i,[-o,-r]),s.rotate(i,i,e[0]),(o||r)&&s.translate(i,i,[o,r])}t.transform.apply(t,i)},isCover:function(t,e){var i=this.style;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height?!0:!1}},n.inherits(e,i),e}),define("zrender/shape/Ring",["require","./Base","../tool/util"],function(t){var e=t("./Base"),i=function(t){e.call(this,t)};return i.prototype={type:"ring",buildPath:function(t,e){t.arc(e.x,e.y,e.r,0,2*Math.PI,!1),t.moveTo(e.x+e.r0,e.y),t.arc(e.x,e.y,e.r0,0,2*Math.PI,!0)},getRect:function(t){if(t.__rect)return t.__rect;var e;return e="stroke"==t.brushType||"fill"==t.brushType?t.lineWidth||1:0,t.__rect={x:Math.round(t.x-t.r-e/2),y:Math.round(t.y-t.r-e/2),width:2*t.r+e,height:2*t.r+e},t.__rect}},t("../tool/util").inherits(i,e),i}),define("zrender",["zrender/zrender"],function(t){return t}),define("echarts",["echarts/echarts"],function(t){return t});