!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function n(t,e){if(!e)return t;if(0===t.indexOf(".")){var n=e.split("/"),i=t.split("/"),r=n.length-1,a=i.length,o=0,s=0;t:for(var c=0;a>c;c++)switch(i[c]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return n.length=r-o,i=i.slice(s),n.concat(i).join("/")}return t}function i(t){function e(e,o){if("string"==typeof e){var s=i[e];return s||(s=a(n(e,t)),i[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var i={};return e}function r(e,i,r){for(var s=[],c=o[r],u=0,l=Math.min(e.length,i.length);l>u;u++){var h,f=n(e[u],r);switch(f){case"require":h=c&&c.require||t;break;case"exports":h=c.exports;break;case"module":h=c;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var n=e.factory,i=n.apply(this,r(e.deps||[],n,t));"undefined"!=typeof i&&(e.exports=i),e.defined=1}return e.exports}var o={};e=function(t,e,n){o[t]={id:t,deps:e,factory:n,defined:0,exports:{},require:i(t)}},t=i("")}();var n="getContext",i="ordinal",r="applyTransform",a="normal",o="undefined",s="option",c="inherits",u="function",l="indexOf",h="isArray",f="replace",d="getData",p="splice",m="isObject",v="bottom",g="resize",y="string",_="toLowerCase",x="filter",b="create",w="contain",M="length",C="extend",S="prototype",T="zrender/core/util",z="position",L="center",k="middle",A="getHeight",P="getWidth",D="target",I="height",R="getBoundingRect",O="getFont",E="textStyle",B="getModel",F="require";e("echarts/chart/map",[F,"../echarts","./map/MapSeries","./map/MapView","../action/geoRoam","../coord/geo/geoCreator","./map/mapSymbolLayout","./map/mapVisual","./map/mapDataStatistic","./map/backwardCompat","../action/createDataSelectAction"],function(t){var e=t("../echarts");t("./map/MapSeries"),t("./map/MapView"),t("../action/geoRoam"),t("../coord/geo/geoCreator"),e.registerLayout(t("./map/mapSymbolLayout")),e.registerVisualCoding("chart",t("./map/mapVisual")),e.registerProcessor("statistic",t("./map/mapDataStatistic")),e.registerPreprocessor(t("./map/backwardCompat")),t("../action/createDataSelectAction")("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])}),e("echarts/component/title",[F,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),n=t("../util/graphic"),i=t("../util/layout");e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(t,e,r){if(this.group.removeAll(),t.get("show")){var a=this.group,o=t[B](E),s=t[B]("subtextStyle"),c=t.get("textAlign"),u=new n.Text({style:{text:t.get("text"),textFont:o[O](),fill:o.getTextColor(),textBaseline:"top"},z2:10}),l=u[R](),h=t.get("subtext"),f=new n.Text({style:{text:h,textFont:s[O](),fill:s.getTextColor(),y:l[I]+t.get("itemGap"),textBaseline:"top"},z2:10}),d=t.get("link"),p=t.get("sublink");u.silent=!d,f.silent=!p,d&&u.on("click",function(){window.open(d,t.get(D))}),p&&f.on("click",function(){window.open(p,t.get("subtarget"))}),a.add(u),h&&a.add(f);var m=a[R](),v=t.getBoxLayoutParams();v.width=m.width,v[I]=m[I];var g=i.getLayoutRect(v,{width:r[P](),height:r[A]()},t.get("padding"));c||(c=t.get("left")||t.get("right"),c===k&&(c=L),"right"===c?g.x+=g.width:c===L&&(g.x+=g.width/2)),a[z]=[g.x,g.y],u.setStyle("textAlign",c),f.setStyle("textAlign",c),m=a[R]();var y=g.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new n.Rect({shape:{x:m.x-y[3],y:m.y-y[0],width:m.width+y[1]+y[3],height:m[I]+y[0]+y[2]},style:_,silent:!0});n.subPixelOptimizeRect(x),a.add(x)}}})}),e("echarts/component/grid",[F,"../util/graphic",T,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),n=t(T);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new e.Rect({shape:t.coordinateSystem.getRect(),style:n.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/scale/Time",[F,T,"../util/number","../util/format","./Interval"],function(t){var e=t(T),n=t("../util/number"),i=t("../util/format"),r=t("./Interval"),a=r[S],o=Math.ceil,s=Math.floor,c=864e5,u=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][2]=n)){var r=u(10,s(h(n/t)/Math.LN10)),a=t/n*r;.5>=a&&(r*=10);var o=[i.round(c(e[0]/r)*r),i.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([w,"normalize"],function(t){f[S][t]=function(e){return e=h(e)/h(l),a[t].call(this,e)}}),f[b]=function(){return new f},f}),e("echarts/echarts",[F,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",T,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","./util/number","./util/format","zrender/core/matrix","zrender/core/vector"],function(t){function e(t){return function(e,n,i){e=e&&e[_](),Q[S][t].call(this,e,n,i)}}function n(){Q.call(this)}function i(t,e,i){i=i||{},typeof e===y&&(e=le[e]),e&&J(ce,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=U.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio}),this._theme=X.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new F(this),this._coordSysMgr=new N,Q.call(this),this._messageCenter=new n,this._initEvents(),this[g]=X.bind(this[g],this)}function r(t,e){var n=this._model;n&&n.eachComponent({mainType:"series",query:e},function(i){var r=this._chartsMap[i.__viewId];r&&r.__alive&&r[t](i,n,this._api,e)},this)}function a(t,e,n){var i=this._api;J(this._componentsViews,function(r){var a=r.__model;r[t](a,e,i,n),R(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,i,n),R(r,a)},this)}function o(t,e){for(var n="component"===t,i=n?this._componentsViews:this._chartsViews,r=n?this._componentsMap:this._chartsMap,a=this._zr,o=0;o"+i+" : "+n},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"china",left:"center",top:"center",showLegendSymbol:!0,dataRangeHoverLink:!0,roamDetail:{x:0,y:0,zoom:1},label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!1,textStyle:{color:"#000"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215, 0, 0.8)"}}}});return a.mixin(f,h),f}),e("echarts/coord/geo/geoCreator",[F,"./GeoModel","./Geo","../../util/layout",T,"../../echarts"],function(t){function e(t,e){var n=this[R](),i=t.getBoxLayoutParams();i.aspect=n.width/n[I]*.75;var r=a.getLayoutRect(i,{width:e[P](),height:e[A]()});this.setViewRect(r.x,r.y,r.width,r[I]);var o=t[B]("roamDetail"),s=o.get("x")||0,c=o.get("y")||0,u=o.get("zoom")||1;this.setPan(s,c),this.setZoom(u)}function n(t,e){s.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}function i(t){console.error("Map "+t+" not exists")}t("./GeoModel");var r=t("./Geo"),a=t("../../util/layout"),s=t(T),c={},u={dimensions:r[S].dimensions,create:function(t,a){var o=[];t.eachComponent("geo",function(t,s){var u=t.get("map"),l=c[u];l||i(u);var h=new r(u+s,u,l&&l.geoJson,l&&l.specialAreas,t.get("nameMap"));o.push(h),n(h,t),t.coordinateSystem=h,h.model=t,h[g]=e,h[g](t,a)}),t.eachSeries(function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=o[n]}});var u={};return t.eachSeriesByType("map",function(t){var e=t.get("map");u[e]=u[e]||[],u[e].push(t)}),s.each(u,function(t,u){var l=c[u];l||i(name);var h=s.map(t,function(t){return t.get("nameMap")}),f=new r(u,u,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));o.push(f),f[g]=e,f[g](t[0],a),s.each(t,function(t){t.coordinateSystem=f,n(f,t)})}),o},registerMap:function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),typeof e===y&&(e=typeof JSON!==o&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),c[t]={geoJson:e,specialAreas:n}},getMap:function(t){return c[t]}},l=t("../../echarts");l.registerMap=u.registerMap,l.getMap=u.getMap,l.loadMap=function(){},l.registerCoordinateSystem("geo",u)}),e("echarts/action/geoRoam",[F,T,"./roamHelper","../echarts"],function(t){var e=t(T),n=t("./roamHelper"),i=t("../echarts"),r={type:"geoRoam",event:"geoRoam",update:"updateLayout"};i.registerAction(r,function(t,i){var r=t.component||"series";i.eachComponent(r,function(i){if(i.name===t.name){var a=i.coordinateSystem;if("geo"!==a.type)return;var o=i[B]("roamDetail"),s=n.calcPanAndZoom(o,t);i.setRoamPan&&i.setRoamPan(s.x,s.y),i.setRoamZoom&&i.setRoamZoom(s.zoom),a&&a.setPan(s.x,s.y),a&&a.setZoom(s.zoom),"series"===r&&e.each(i.seriesGroup,function(t){t.setRoamPan(s.x,s.y),t.setRoamZoom(s.zoom)})}})})}),e("echarts/chart/map/mapVisual",[F],function(){return function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),n=t[B]("itemStyle.normal"),i=n.get("areaColor"),r=n.get("color")||e[t.seriesIndex%e[M]];t[d]().setVisual({areaColor:i,color:r})})}}),e("echarts/chart/map/mapSymbolLayout",[F,T],function(t){var e=t(T);return function(t){var n={};t.eachSeriesByType("map",function(i){var r=i.get("mapType");if(!n[r]){var a={};e.each(i.seriesGroup,function(e){var n=e.coordinateSystem,i=e[d]();e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each("value",function(t,e){var r=i.getName(e),o=n.getRegion(r);if(o&&!isNaN(t)){var s=a[r]||0,c=n.dataToPoint(o[L]);a[r]=s+1,i.setItemLayout(e,{point:c,offset:s})}})});var o=i[d]();o.each(function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!a[e],o.setItemLayout(t,n)}),n[r]=!0}})}}),e("echarts/chart/map/mapDataStatistic",[F,T],function(t){function e(t,e){for(var n={},i=["value"],r=0;rl;l++)s=Math.min(s,n[a][l]),c=Math.max(c,n[a][l]),o+=n[a][l];var h;return h="min"===e?s:"max"===e?c:"average"===e?o/u:o,0===u?0/0:h})}var n=t(T);return function(t){var i={};t.eachSeriesByType("map",function(t){var e=t.get("map");i[e]=i[e]||[],i[e].push(t)}),n.each(i,function(t){var i=e(n.map(t,function(t){return t[d]()}),t[0].get("mapValueCalculation"));t[0].seriesGroup=[],t[0].setData(i);for(var r=0;r=0?"white":n,a=e[B](E);p[C](t,{textDistance:e.getShallow("distance")||5,textFont:a[O](),textPosition:i,textFill:a.getTextColor()||r})},M.updateProps=p.curry(d,!0),M.initProps=p.curry(d,!1),M.getTransform=function(t,e){for(var n=x.identity([]);t&&t!==e;)x.mul(n,t.getLocalTransform(),n),t=t.parent;return n},M[r]=function(t,e,n){return n&&(e=x.invert([],e)),b[r]([],t,e)},M.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-a:t===v?a:0];return o=M[r](o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?v:"top"},M}),e("echarts/chart/map/backwardCompat",[F,T],function(t){function e(t){var e={};return n.each(i,function(n){null!=t[n]&&(e[n]=t[n])}),e}var n=t(T),i=["x","y","x2","y2","width",I,"map","roam","roamDetail","label","itemStyle"],r={};return function(t){var i=[];n.each(t.series,function(t){"map"===t.type&&i.push(t),n[C](r,t.geoCoord)});var a={};n.each(i,function(i){if(i.map=i.map||i.mapType,n.defaults(i,i.mapLocation),i.markPoint){var o=i.markPoint;if(o.data=n.map(o.data,function(t){if(!n[h](t.value)){var e;t.geoCoord?e=t.geoCoord:t.name&&(e=r[t.name]);var i=e?[e[0],e[1]]:[0/0,0/0];null!=t.value&&i.push(t.value),t.value=i}return t}),!i.data||!i.data[M]){t.geo||(t.geo=[]);var s=a[i.map];s||(s=a[i.map]=e(i),t.geo.push(s));var c=i.markPoint;c.type=t.effect&&t.effect.show?"effectScatter":"scatter",c.coordinateSystem="geo",c.geoIndex=n[l](t.geo,s),c.name=i.name,t.series[p](n[l](t.series,i),1,c)}}})}}),e("echarts/action/createDataSelectAction",[F,"../echarts",T],function(t){var e=t("../echarts"),n=t(T);return function(t,i){n.each(i,function(n){n.update="updateView",e.registerAction(n,function(e,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:e},function(t){t[n.method]&&t[n.method](e.name);var i=t[d]();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/util/layout",[F,T,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(c,u){var l,h,f=c[z],d=c[R](),p=e.childAt(u+1),m=p&&p[R]();if("horizontal"===t){var v=d.width+(m?-m.x+d.x:0);l=a+v,l>i||c.newline?(a=0,l=v,o+=s+n,s=d[I]):s=Math.max(s,d[I])}else{var g=d[I]+(m?-m.y+d.y:0);h=o+g,h>r||c.newline?(a+=s+n,o=0,h=g,s=d.width):s=Math.max(s,d.width)}c.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=l+n:o=h+n)})}var n=t(T),i=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=n.each,c={},u=["left","right","top",v,"width",I];return c.box=e,c.vbox=n.curry(e,"vertical"),c.hbox=n.curry(e,"horizontal"),c.getAvailableSize=function(t,e,n){var i=e.width,r=e[I],s=o(t.x,i),c=o(t.y,r),u=o(t.x2,i),l=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(c)||isNaN(parseFloat(t.y)))&&(c=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),n=a.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(l-c-n[0]-n[2],0)} },c.getLayoutRect=function(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e[I],c=o(t.left,r),u=o(t.top,s),l=o(t.right,r),h=o(t[v],s),f=o(t.width,r),d=o(t[I],s),p=n[2]+n[0],m=n[1]+n[3],g=t.aspect;switch(isNaN(f)&&(f=r-l-m-c),isNaN(d)&&(d=s-h-p-u),isNaN(f)&&isNaN(d)&&(g>r/s?f=.8*r:d=.8*s),null!=g&&(isNaN(f)&&(f=g*d),isNaN(d)&&(d=f/g)),isNaN(c)&&(c=r-l-f-m),isNaN(u)&&(u=s-h-d-p),t.left||t.right){case L:c=r/2-f/2-n[3];break;case"right":c=r-f-m}switch(t.top||t[v]){case k:case L:u=s/2-d/2-n[0];break;case v:u=s-d-p}c=c||0,u=u||0,isNaN(f)&&(f=r-c-(l||0)),isNaN(d)&&(d=s-u-(h||0));var y=new i(c+n[3],u+n[0],f,d);return y.margin=n,y},c.positionGroup=function(t,e,i,r){var a=t[R]();e=n[C](n.clone(e),{width:a.width,height:a[I]}),e=c.getLayoutRect(e,i,r),t[z]=[e.x-a.x,e.y-a.y]},c.mergeLayoutParam=function(t,e,i){function r(n){var r={},c=0,u={},l=0,h=i.ignoreSize?1:2;if(s(n,function(e){u[e]=t[e]}),s(n,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&c++,o(u,t)&&l++}),l!==h&&c){if(c>=h)return r;for(var f=0;f40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=n.getTextRect(i[o]);e?e.union(s):e=s}return e}function r(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this._model=t}function a(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var o=t("../../util/layout"),s=t("../../coord/axisHelper"),c=t(T),u=t("./Cartesian2D"),l=t("./Axis2D"),h=c.each,f=s.ifAxisCrossZero,p=s.niceScaleExtent;t("./GridModel");var m=r[S];return m.type="grid",m.getRect=function(){return this._rect},m.update=function(t,e){function n(t){var e=i[t];for(var n in e){var r=e[n];if(r&&("category"===r.type||!f(r)))return!0}return!1}var i=this._axesMap;this._updateScale(t,this._model),h(i.x,function(t){p(t,t.model)}),h(i.y,function(t){p(t,t.model)}),h(i.x,function(t){n("y")&&(t.onZero=!1)}),h(i.y,function(t){n("x")&&(t.onZero=!1)}),this[g](this._model,e)},m[g]=function(t,e){function i(){h(s,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r[I]],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),a(t,e?r.x:r.y)})}var r=o.getLayoutRect(t.getBoxLayoutParams(),{width:e[P](),height:e[A]()});this._rect=r;var s=this._axesList;i(),t.get("containLabel")&&(h(s,function(t){if(!t.model.get("axisLabel.inside")){var e=n(t);if(e){var i=t.isHorizontal()?I:"width",a=t.model.get("axisLabel.margin");r[i]-=e[i]+a,"top"===t[z]?r.y+=e[I]+a:"left"===t[z]&&(r.x+=e.width+a)}}}),i())},m.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)return n[i];return n[e]}},m.getCartesian=function(t,e){var n="x"+t+"y"+e;return this._coordsMap[n]},m._initCartesian=function(t,n){function i(i){return function(c,u){if(e(c,t,n)){var h=c.get(z);"x"===i?("top"!==h&&h!==v&&(h=v),r[h]&&(h="top"===h?v:"top")):("left"!==h&&"right"!==h&&(h="left"),r[h]&&(h="left"===h?"right":"left")),r[h]=!0;var f=new l(i,s.createScaleByModel(c),[0,0],c.get("type"),h),d="category"===f.type;f.onBand=d&&c.get("boundaryGap"),f.inverse=c.get("inverse"),f.onZero=c.get("axisLine.onZero"),c.axis=f,f.model=c,f.index=u,this._axesList.push(f),a[i][u]=f,o[i]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},o={x:0,y:0};return n.eachComponent("xAxis",i("x"),this),n.eachComponent("yAxis",i("y"),this),o.x&&o.y?(this._axesMap=a,void h(a.x,function(t,e){h(a.y,function(n,i){var r="x"+e+"y"+i,a=new u(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(n)},this)},this)):(this._axesMap={},void(this._axesList=[]))},m._updateScale=function(t,n){function r(t,e,n){h(n.coordDimToDataDim(e.dim),function(n){e.scale.unionExtent(t.getDataExtent(n,e.scale.type!==i))})}c.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(i){if("cartesian2d"===i.get("coordinateSystem")){var a=i.get("xAxisIndex"),o=i.get("yAxisIndex"),s=t.getComponent("xAxis",a),c=t.getComponent("yAxis",o);if(!e(s,n,t)||!e(c,n,t))return;var u=this.getCartesian(a,o),l=i[d](),h=u.getAxis("x"),f=u.getAxis("y");"list"===l.type&&(r(l,h,i),r(l,f,i))}},this)},r[b]=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o[g](i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get("coordinateSystem")){var i=e.get("xAxisIndex"),r=t.getComponent("xAxis",i),a=n[r.get("gridIndex")];e.coordinateSystem=a.getCartesian(i,e.get("yAxisIndex"))}}),n},r.dimensions=u[S].dimensions,t("../../CoordinateSystem").register("cartesian2d",r),r}),e(T,[F,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var n=t;if(t instanceof Array){n=[];for(var i=0,r=t[M];r>i;i++)n[i]=e(t[i])}else if(!A(t)&&!P(t)){n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=e(t[a]))}return n}return t}function i(t,n,r){if(!k(n)||!k(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!k(s)||!k(o)||T(s)||T(o)||P(s)||P(o)||A(s)||A(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function r(t,e){for(var n=t[0],r=1,a=t[M];a>r;r++)n=i(n,t[r],e);return n}function a(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function o(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function s(){return document.createElement("canvas")}function c(){return O||(O=W.createCanvas()[n]("2d")),O}function h(t,e){if(t){if(t[l])return t[l](e);for(var n=0,i=t[M];i>n;n++)if(t[n]===e)return n}return-1}function f(t,e){function n(){}var i=t[S];n[S]=e[S],t[S]=new n;for(var r in i)t[S][r]=i[r];t[S].constructor=t,t.superClass=e}function d(t,e,n){t=S in t?t[S]:t,e=S in e?e[S]:e,o(t,e,n)}function p(t){return t?typeof t==y?!1:"number"==typeof t[M]:void 0}function m(t,e,n){if(t&&e)if(t.forEach&&t.forEach===G)t.forEach(e,n);else if(t[M]===+t[M])for(var i=0,r=t[M];r>i;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function v(t,e,n){if(t&&e){if(t.map&&t.map===H)return t.map(e,n);for(var i=[],r=0,a=t[M];a>r;r++)i.push(e.call(n,t[r],r,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===Z)return t.reduce(e,n,i);for(var r=0,a=t[M];a>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(t&&e){if(t[x]&&t[x]===V)return t[x](e,n);for(var i=[],r=0,a=t[M];a>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function b(t,e,n){if(t&&e)for(var i=0,r=t[M];r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function w(t,e){var n=q.call(arguments,2);return function(){return t.apply(e,n.concat(q.call(arguments)))}}function C(t){var e=q.call(arguments,1);return function(){return t.apply(this,e.concat(q.call(arguments)))}}function T(t){return"[object Array]"===F.call(t)}function z(t){return typeof t===u}function L(t){return"[object String]"===F.call(t)}function k(t){var e=typeof t;return e===u||!!t&&"object"==e}function A(t){return!!B[F.call(t)]||t instanceof E}function P(t){return t&&1===t.nodeType&&typeof t.nodeName==y}function D(){for(var t=0,e=arguments[M];e>t;t++)if(null!=arguments[t])return arguments[t]}function I(){return Function.call.apply(q,arguments)}function R(t,e){if(!t)throw new Error(e)}var O,E=t("../graphic/Gradient"),B={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},F=Object[S].toString,N=Array[S],G=N.forEach,V=N[x],q=N.slice,H=N.map,Z=N.reduce,W={inherits:f,mixin:d,clone:e,merge:i,mergeAll:r,extend:a,defaults:o,getContext:c,createCanvas:s,indexOf:h,slice:I,find:b,isArrayLike:p,each:m,map:v,reduce:g,filter:_,bind:w,curry:C,isArray:T,isString:L,isObject:k,isFunction:z,isBuildInObject:A,isDom:P,retrieve:D,assert:R,noop:function(){}};return W}),e("echarts/component/axis",[F,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/util/format",[F,T,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][f](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[M]>1?"."+t[1]:""))}function n(t){return t[_]()[f](/-(.)/g,function(t,e){return e.toUpperCase()})}function i(t){var e=t[M];return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[f](/&/g,"&")[f](//g,">")[f](/"/g,""")[f](/'/g,"'")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){u[h](e)||(e=[e]);var n=e[M];if(!n)return"";for(var i=e[0].$vars,r=0;rs;s++)for(var c=0;ct?"0"+t:t}var u=t(T),l=t("./number"),d=["a","b","c","d","e","f","g"];return{normalizeCssArray:i,addCommas:e,toCamelCase:n,encodeHTML:r,formatTpl:o,formatTime:s}}),e("echarts/util/number",[F],function(){function t(t){return t[f](/^\s+/,"")[f](/\s+$/,"")}var e={},n=1e-4;return e.linearMap=function(t,e,n,i){var r=e[1]-e[0];if(0===r)return(n[0]+n[1])/2;var a=(t-e[0])/r;return i&&(a=Math.min(Math.max(a,0),1)),a*(n[1]-n[0])+n[0]},e.parsePercent=function(e,n){switch(e){case L:case k:e="50%";break;case"left":case"top":e="0%";break;case"right":case v:e="100%"}return typeof e===y?t(e).match(/%$/)?parseFloat(e)/100*n:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(12)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-n&&n>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===y?t[f](/-/g,"/"):Math.round(t))},e.nice=function(t,e){var n,i=Math.floor(Math.log(t)/Math.LN10),r=Math.pow(10,i),a=t/r;return n=e?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,n*r},e}),e("echarts/scale/Scale",[F,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var n=t("../util/clazz"),i=e[S];return i.parse=function(t){return t},i[w]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},i.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},i.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},i.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},i.getExtent=function(){return this._extent.slice()},i.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},i.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;ne[1]&&(e[1]=t[1]),o[S].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,n=this._extent,i=[],r=1e4;if(t){var a=this._niceExtent;n[0]r)return[];n[1]>a[1]&&i.push(n[1])}return i},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;ni&&(i=-i,n.reverse());var o=e.nice(i/t,!0),s=[e.round(a(n[0]/o)*o),e.round(r(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,n,i){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;var c=o[1]-o[0];isFinite(c)||(o[0]=0,o[1]=1),this.niceTicks(t);var u=this._interval;n||(o[0]=e.round(r(o[0]/u)*u)),i||(o[1]=e.round(a(o[1]/u)*u))}});return o[b]=function(){return new o},o}),e("echarts/model/Global",[F,T,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var n in e)L.hasClass(n)||("object"==typeof e[n]?t[n]=t[n]?d.merge(t[n],e[n],!1):d.clone(e[n]):null==t[n]&&(t[n]=e[n]))}function n(t){t=t,this[s]={},this[s][A]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[s]),d.merge(t,k,!1),this.mergeOption(t)}function i(t,e){d[h](e)||(e=e?[e]:[]);var n={};return y(e,function(e){n[e]=(t[e]||[]).slice()}),n}function r(t,e){var n={};y(e,function(t){var e=t.exist;e&&(n[e.id]=t)}),y(e,function(e){var i=e[s];if(d.assert(!i||null==i.id||!n[i.id]||n[i.id]===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(n[i.id]=e),z(i)){var r=a(t,i,e.exist);e.keyInfo={mainType:t,subType:r}}}),y(e,function(t){var e=t.exist,i=t[s],r=t.keyInfo;if(z(i)){if(r.name=null!=i.name?i.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=i.id)r.id=i.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(n[r.id])}n[r.id]=t}})}function a(t,e,n){var i=e.type?e.type:n?n.subType:L.determineSubType(t,e);return i}function o(t){return b(t,function(t){return t.componentIndex})||[]}function c(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t.subType===e.subType}):t}function f(t){if(!t._seriesIndices)throw new Error("Series has not been initialized yet.")}var d=t(T),v=t("../util/model"),g=t("./Model"),y=d.each,_=d[x],b=d.map,w=d[h],S=d[l],z=d[m],L=t("./Component"),k=t("./globalDefault"),A="\x00_ec_inner",P=g[C]({constructor:P,init:function(t,e,n,i){n=n||{},this[s]=null,this._theme=new g(n),this._optionManager=i},setOption:function(t,e){d.assert(!(A in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this[s]&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):n.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o[M]&&y(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,c){var u=v.normalizeToArray(t[e]),l=v.mappingToExists(a[e],u);r(e,l);var h=i(a,c);n[e]=[],a[e]=[],y(l,function(t,i){var r=t.exist,o=t[s];if(d.assert(z(o)||r,"Empty component definition"),o){var c=L.getClass(e,t.keyInfo.subType,!0);r&&r instanceof c?(r.mergeOption(o,this),r.optionUpdated(this)):(r=new c(o,this,this,d[C]({dependentModels:h,componentIndex:i},t.keyInfo)),r.optionUpdated(this))}else r.mergeOption({},this),r.optionUpdated(this);a[e][i]=r,n[e][i]=r[s]},this),"series"===e&&(this._seriesIndices=o(a.series))}var n=this[s],a=this._componentsMap,c=[];y(t,function(t,e){null!=t&&(L.hasClass(e)?c.push(e):n[e]=null==n[e]?d.clone(t):d.merge(n[e],t,!0))}),L.topologicalTravel(c,L.getAllClassMainTypes(),e,this)},getOption:function(){var t=d.clone(this[s]);return y(t,function(e,n){if(L.hasClass(n)){for(var e=v.normalizeToArray(e),i=e[M]-1;i>=0;i--)v.isIdInner(e[i])&&e[p](i,1);t[n]=e}}),delete t[A],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap[t];return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[M])return[];var o;if(null!=n)w(n)||(n=[n]),o=_(b(n,function(t){return a[t]}),function(t){return!!t});else if(null!=i){var s=w(i);o=_(a,function(t){return s&&S(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var u=w(r);o=_(a,function(t){return u&&S(r,t.name)>=0||!u&&t.name===r})}return c(o,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(n)||t.hasOwnProperty(i))?{mainType:r,index:t[e],id:t[n],name:t[i]}:null}function n(e){return t[x]?_(e,t[x]):e}var i=t.query,r=t.mainType,a=e(i),o=a?this.queryComponents(a):this._componentsMap[r];return n(c(o,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if(typeof t===u)n=e,e=t,y(i,function(t,i){y(t,function(t,r){e.call(n,i,t,r)})});else if(d.isString(t))y(i[t],e,n);else if(z(t)){var r=this.findComponents(t);y(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.series;return _(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return _(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){f(this),y(this._seriesIndices,function(n){var i=this._componentsMap.series[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){y(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,n){f(this),y(this._seriesIndices,function(i){var r=this._componentsMap.series[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return y(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return f(this),d[l](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){f(this);var n=_(this._componentsMap.series,t,e);this._seriesIndices=o(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];y(t,function(t,n){e.push(n)}),L.topologicalTravel(e,L.getAllClassMainTypes(),function(e){y(t[e],function(t){t.restoreData()})})}});return P}),e("echarts/CoordinateSystem",[F],function(){function t(){this._coordinateSystems=[]}var e={};return t[S]={constructor:t,create:function(t,n){var i=[];for(var r in e){var a=e[r][b](t,n);a&&(i=i.concat(a))}this._coordinateSystems=i},update:function(t,e){for(var n=this._coordinateSystems,i=0;i=0;a--)r=i.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(u,function(t,e,n,r){i[C](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),i.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/view/Component",[F,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),n=t("../util/component"),i=t("../util/clazz"),r=function(){this.group=new e,this.uid=n.getUID("viewComponent")};r[S]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[S];return a.updateView=a.updateLayout=a.updateVisual=function(){},i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/model/OptionManager",[F,T,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newOptionBackup}function n(t,e){var n,i,r=[],a=[],o=t.timeline;if(t.baseOption&&(i=t.baseOption),(o||t.options)&&(i=i||{},r=(t.options||[]).slice()),t.media){i=i||{};var u=t.media;h(u,function(t){t&&t[s]&&(t.query?a.push(t):n||(n=t))})}return i||(i=t),i.timeline||(i.timeline=o),h([i].concat(r).concat(c.map(a,function(t){return t[s]})),function(t){h(e,function(e){e(t)})}),{baseOption:i,timelineOptions:r,mediaDefault:n,mediaList:a}}function i(t,e,n){var i={width:e,height:n,aspectratio:e/n},a=!0;return c.each(t,function(t,e){var n=e.match(m);if(n&&n[1]&&n[2]){var o=n[1],s=n[2][_]();r(i[s],t,o)||(a=!1)}}),a}function r(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},h(e,function(e,n){if(null!=e){var i=t[n];if(l.hasClass(n)){e=u.normalizeToArray(e),i=u.normalizeToArray(i);var r=u.mappingToExists(i,e);t[n]=d(r,function(t){return t[s]&&t.exist?p(t.exist,t[s],!0):t.exist||t[s]})}else t[n]=p(i,e,!0)}})}var c=t(T),u=t("../util/model"),l=t("./Component"),h=c.each,f=c.clone,d=c.map,p=c.merge,m=/^(min|max)?(.+)$/;return e[S]={constructor:e,setOption:function(t,e){t=f(t,!0);var i=this._optionBackup,r=this._newOptionBackup=n.call(this,t,e);i?(o(i.baseOption,r.baseOption),r.timelineOptions[M]&&(i.timelineOptions=r.timelineOptions),r.mediaList[M]&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=t?this._optionBackup:this._newOptionBackup;return this._timelineOptions=d(e.timelineOptions,f),this._mediaList=d(e.mediaList,f),this._mediaDefault=f(e.mediaDefault),this._currentMediaIndices=[],f(e.baseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n[M]){var i=t.getComponent("timeline");i&&(e=f(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[P](),e=this._api[A](),n=this._mediaList,r=this._mediaDefault,o=[],c=[];if(!n[M]&&!r)return c;for(var u=0,l=n[M];l>u;u++)i(n[u].query,t,e)&&o.push(u);return!o[M]&&r&&(o=[-1]),o[M]&&!a(o,this._currentMediaIndices)&&(c=d(o,function(t){return f(-1===t?r[s]:n[t][s])})),this._currentMediaIndices=o,c}},e}),e("echarts/model/Series",[F,T,"../util/format","../util/model","./Component"],function(t){var e=t(T),n=t("../util/format"),i=t("../util/model"),r=t("./Component"),a=n.encodeHTML,o=n.addCommas,c=r[C]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,n){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,n),this._dataBeforeProcessed=this.getInitialData(t,n),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,n){e.merge(t,n.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),i.defaultEmphasis(t.label,[z,"show",E,"distance","formatter"]);for(var r=t.data||[],a=0;a';return n?l+a(this.name)+" : "+s:a(this.name)+"
"+l+(c?a(c)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(c,i.dataFormatMixin),c}),e("zrender/zrender",[F,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete u[t]}var n=t("./core/guid"),i=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!i.canvasSupported,c={canvas:t("./Painter")},u={},l={};l.version="3.0.5",l.init=function(t,e){var i=new h(n(),t,e);return u[i.id]=i,i},l.dispose=function(t){if(t)t.dispose();else{for(var e in u)u[e].dispose();u={}}return l},l.getInstance=function(t){return u[t]},l.registerPainter=function(t,e){c[t]=e};var h=function(t,e,n){n=n||{},this.dom=e,this.id=t;var u=this,l=new a,h=n.renderer;if(s){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&c[h]||(h="canvas");var f=new c[h](e,l,n);this.storage=l,this.painter=f,i.node||(this.handler=new r(f.getViewportRoot(),l,f)),this.animation=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately()}}}),this.animation.start(),this._needsRefresh;var d=l.delFromMap,p=l.addToMap;l.delFromMap=function(t){var e=l.get(t);d.call(l,t),e&&e.removeSelfFromZr(u)},l.addToMap=function(t){p.call(l,t),t.addSelfToZr(u)}};return h[S]={constructor:h,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[g](),this.handler&&this.handler[g]()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter[P]()},getHeight:function(){return this.painter[A]()},toDataURL:function(t,e,n){return this.painter.toDataURL(t,e,n)},pathToImage:function(t,e,i){var r=n();return this.painter.pathToImage(r,t,e,i)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,n){this.handler&&this.handler.on(t,e,n)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e(this.id)}},l}),e("echarts/view/Chart",[F,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=o.getUID("viewChart")}function n(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i=10)}}var e={};return e=typeof navigator===o?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/tool/color",[F],function(){function t(t){return t=Math.round(t),0>t?0:t>255?255:t}function e(t){return t=Math.round(t),0>t?0:t>360?360:t}function n(t){return 0>t?0:t>1?1:t}function i(e){return t(e[M]&&"%"===e.charAt(e[M]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return n(t[M]&&"%"===t.charAt(t[M]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function o(t,e,n){return t+(e-t)*n}function s(t){if(t){t+="";var e=t[f](/ /g,"")[_]();if(e in b)return b[e].slice();if("#"!==e.charAt(0)){var n=e[l]("("),a=e[l](")");if(-1!==n&&a+1===e[M]){var o=e.substr(0,n),s=e.substr(n+1,a-(n+1)).split(","),u=1; switch(o){case"rgba":if(4!==s[M])return;u=r(s.pop());case"rgb":if(3!==s[M])return;return[i(s[0]),i(s[1]),i(s[2]),u];case"hsla":if(4!==s[M])return;return s[3]=r(s[3]),c(s);case"hsl":if(3!==s[M])return;return c(s);default:return}}}else{if(4===e[M]){var h=parseInt(e.substr(1),16);if(!(h>=0&&4095>=h))return;return[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]}if(7===e[M]){var h=parseInt(e.substr(1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,1]}}}}function c(e){var n=(parseFloat(e[0])%360+360)%360/360,i=r(e[1]),o=r(e[2]),s=.5>=o?o*(i+1):o+i-o*i,c=2*o-s,u=[t(255*a(c,s,n+1/3)),t(255*a(c,s,n)),t(255*a(c,s,n-1/3))];return 4===e[M]&&(u[3]=e[3]),u}function u(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),c=s-o,u=(s+o)/2;if(0===c)e=0,n=0;else{n=.5>u?c/(s+o):c/(2-s-o);var l=((s-i)/6+c/2)/c,h=((s-r)/6+c/2)/c,f=((s-a)/6+c/2)/c;i===s?e=f-h:r===s?e=1/3+l-f:a===s&&(e=2/3+h-l),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function h(t,e){var n=s(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return x(n,4===n[M]?"rgba":"rgb")}}function d(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function p(e,n,i){if(n&&n[M]&&e>=0&&1>=e){i=i||[0,0,0,0];var r=e*(n[M]-1),a=Math.floor(r),s=Math.ceil(r),c=n[a],u=n[s],l=r-a;return i[0]=t(o(c[0],u[0],l)),i[1]=t(o(c[1],u[1],l)),i[2]=t(o(c[2],u[2],l)),i[3]=t(o(c[3],u[3],l)),i}}function m(e,i,r){if(i&&i[M]&&e>=0&&1>=e){var a=e*(i[M]-1),c=Math.floor(a),u=Math.ceil(a),l=s(i[c]),h=s(i[u]),f=a-c,d=x([t(o(l[0],h[0],f)),t(o(l[1],h[1],f)),t(o(l[2],h[2],f)),n(o(l[3],h[3],f))],"rgba");return r?{color:d,leftIndex:c,rightIndex:u,value:a}:d}}function v(t,e){if(!(2!==t[M]||t[1]0&&s>=c;c++)r.push({color:e[c],offset:(c-n.value)/a});return r.push({color:i.color,offset:1}),r}}function g(t,n,i,a){return t=s(t),t?(t=u(t),null!=n&&(t[0]=e(n)),null!=i&&(t[1]=r(i)),null!=a&&(t[2]=r(a)),x(c(t),"rgba")):void 0}function y(t,e){return t=s(t),t&&null!=e?(t[3]=n(e),x(t,"rgba")):void 0}function x(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var b={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:h,toHex:d,fastMapToColor:p,mapToColor:m,mapIntervalToColor:v,modifyHSL:g,modifyAlpha:y,stringify:x}}),e("zrender/mixin/Eventful",[F,"../core/util"],function(t){var e=Array[S].slice,n=t("../core/util"),i=n[l],r=function(){this._$handlers={}};return r[S]={constructor:r,one:function(t,e,n){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),i(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:n||this}),this)):this},on:function(t,e,n){var i=this._$handlers;return e&&t?(i[t]||(i[t]=[]),i[t].push({h:e,one:!1,ctx:n||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][M]},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t][M];a>r;r++)n[t][r].h!=e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t][M]&&delete n[t]}else delete n[t];return this},trigger:function(t){if(this._$handlers[t]){var n=arguments,i=n[M];i>3&&(n=e.call(n,1));for(var r=this._$handlers[t],a=r[M],o=0;a>o;){switch(i){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,n[1]);break;case 3:r[o].h.call(r[o].ctx,n[1],n[2]);break;default:r[o].h.apply(r[o].ctx,n)}r[o].one?(r[p](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var n=arguments,i=n[M];i>4&&(n=e.call(n,1,n[M]-1));for(var r=n[n[M]-1],a=this._$handlers[t],o=a[M],s=0;o>s;){switch(i){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,n[1]);break;case 3:a[s].h.call(r,n[1],n[2]);break;default:a[s].h.apply(r,n)}a[s].one?(a[p](s,1),o--):s++}}return this}},r}),e("echarts/loading/default",[F,"../util/graphic",T],function(t){var e=t("../util/graphic"),n=t(T),i=Math.PI;return function(t,r){r=r||{},n.defaults(r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4}),o=new e.Arc({shape:{startAngle:-i/2,endAngle:-i/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r.zlevel,z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*i/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*i/2}).delay(300).start("circularInOut");var c=new e.Group;return c.add(o),c.add(s),c.add(a),c[g]=function(){var e=t[P]()/2,n=t[A]()/2;o.setShape({cx:e,cy:n});var i=o.shape.r;s.setShape({x:e-i,y:n-i,width:2*i,height:2*i}),a.setShape({x:0,y:0,width:t[P](),height:t[A]()})},c[g](),c}}),e("echarts/preprocessor/backwardCompat",[F,T,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var n=t,i=0;i0}function i(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t("../core/util"),o=t("../core/PathProxy"),s=t("../contain/path"),u=t("./Gradient"),l=Math.abs;return i[S]={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var i=this.style,r=this.path,a=n(i),o=e(i);this.__dirtyPath&&(o&&i.fill instanceof u&&i.fill.updateCanvasGradient(this,t),a&&i.stroke instanceof u&&i.stroke.updateCanvasGradient(this,t)),i.bind(t,this),this.setTransform(t);var s=i.lineDash,c=i.lineDashOffset,l=!!t.setLineDash;this.__dirtyPath||s&&!l&&a?(r=this.path.beginPath(t),s&&!l&&(r.setLineDash(s),r.setLineDashOffset(c)),this.buildPath(r,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&r.fill(t),s&&l&&(t.setLineDash(s),t.lineDashOffset=c),a&&r.stroke(t),null!=i.text&&this.drawRectText(t,this[R]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,i=this.style;if(!t){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape)),t=r[R]()}if(n(i)&&(this.__dirty||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;return e(i)||(o=Math.max(o,this.strokeContainThreshold)),s>1e-10&&(a.width+=o/s,a[I]+=o/s,a.x-=o/s/2,a.y-=o/s/2),a}return this._rect=t,t},contain:function(t,i){var r=this.transformCoordToLocal(t,i),a=this[R](),o=this.style;if(t=r[0],i=r[1],a[w](t,i)){var c=this.path.data;if(n(o)){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(e(o)||(u=Math.max(u,this.strokeContainThreshold)),s.containStroke(c,u/l,t,i)))return!0}if(e(o))return s[w](c,t,i)}return!1},dirty:function(t){0===arguments[M]&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?this.setShape(e):r[S].attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(a[m](t))for(var i in t)n[i]=t[i];else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},i[C]=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,e)};a[c](e,i);for(var n in t)"style"!==n&&"shape"!==n&&(e[S][n]=t[n]);return e},a[c](i,r),i}),e("zrender/tool/path",[F,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,n,i,r,a,o,s,c,u,l){var f=c*(m/180),v=p(f)*(t-n)/2+d(f)*(e-i)/2,_=-1*d(f)*(t-n)/2+p(f)*(e-i)/2,x=v*v/(o*o)+_*_/(s*s);x>1&&(o*=h(x),s*=h(x));var b=(r===a?-1:1)*h((o*o*s*s-o*o*_*_-s*s*v*v)/(o*o*_*_+s*s*v*v))||0,w=b*o*_/s,M=b*-s*v/o,C=(t+n)/2+p(f)*w-d(f)*M,S=(e+i)/2+d(f)*w+p(f)*M,T=y([1,0],[(v-w)/o,(_-M)/s]),z=[(v-w)/o,(_-M)/s],L=[(-1*v-w)/o,(-1*_-M)/s],k=y(z,L);g(z,L)<=-1&&(k=m),g(z,L)>=1&&(k=0),0===a&&k>0&&(k-=2*m),1===a&&0>k&&(k+=2*m),l.addData(u,C,S,o,s,T,k,f,a)}function i(t){if(!t)return[];var n,i=t[f](/-/g," -")[f](/ /g," ")[f](/ /g,",")[f](/,,/g,",");for(n=0;n0&&""===g[0]&&g.shift();for(var y=0;yr;r++)i=t[r],i.__dirty&&i.buildPath(i.path,i.shape),a.push(i.path);var c=new o(e);return c.buildPath=function(t){t.appendPath(a);var e=t[n]();e&&t.rebuildPath(e)},c}}}),e("zrender/container/Group",[F,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),n=t("../Element"),i=t("../core/BoundingRect"),a=function(t){t=t||{},n.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return a[S]={constructor:a,type:"group",children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n=0&&(n[p](i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var n=this.__zr,i=this.__storage,r=this._children,o=e[l](r,t);return 0>o?this:(r[p](o,1),t.parent=null,i&&(i.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(i)),n&&n.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;ed&&(n(r,u,s,d,o),u=o[1],s=o[2],n(a,l,c,d,o),l=o[1],c=o[2]),t.quadraticCurveTo(u,l,s,c)):(1>d&&(i(r,u,h,s,d,o),u=o[1],h=o[2],s=o[3],i(a,l,f,c,d,o),l=o[1],f=o[2],c=o[3]),t.bezierCurveTo(u,l,h,f,s,c)))},pointAt:function(t){var e=this.shape,n=e.cpx2,i=e.cpy2;return null===n||null===i?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[a(e.x1,e.cpx1,e.cpx1,e.x2,t),a(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})}),e("zrender/graphic/RadialGradient",[F,"../core/util","./Gradient"],function(t){var e=t("../core/util"),n=t("./Gradient"),i=function(t,e,i,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,n.call(this,r)};return i[S]={constructor:i,type:"radial",updateCanvasGradient:function(t,e){for(var n=t[R](),i=n.width,r=n[I],a=Math.min(i,r),o=this.x*i+n.x,s=this.y*r+n.y,c=this.r*a,u=e.createRadialGradient(o,s,0,o,s,c),l=this.colorStops,h=0;ho&&(r=n*(1-o)+r*o,a=i*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/core/BoundingRect",[F,"./vector","./matrix"],function(t){function e(t,e,n,i){this.x=t,this.y=e,this.width=n,this[I]=i}var n=t("./vector"),i=t("./matrix"),a=n[r],o=Math.min,s=Math.abs,c=Math.max;return e[S]={constructor:e,union:function(t){var e=o(t.x,this.x),n=o(t.y,this.y);this.width=c(t.x+t.width,this.x+this.width)-e,this[I]=c(t.y+t[I],this.y+this[I])-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[];return function(n){n&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[I],a(t,t,n),a(e,e,n),this.x=o(t[0],e[0]),this.y=o(t[1],e[1]),this.width=s(e[0]-t[0]),this[I]=s(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,r=t[I]/e[I],a=i[b]();return i.translate(a,a,[-e.x,-e.y]),i.scale(a,a,[n,r]),i.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e[I],o=t.x,s=t.x+t.width,c=t.y,u=t.y+t[I];return!(o>i||n>s||c>a||r>u)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n[I]},clone:function(){return new e(this.x,this.y,this.width,this[I])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[I]=t[I]}},e}),e("echarts/util/model",[F,"./format","./number",T,"../model/Model"],function(t){var e=t("./format"),n=t("./number"),r=t(T),o=t("../model/Model"),c=["x","y","z","radius","angle"],f={};return f.createNameEach=function(t,e){t=t.slice();var n=r.map(t,f.capitalFirst);e=(e||[]).slice();var i=r.map(e,f.capitalFirst);return function(a,o){r.each(t,function(t,r){for(var s={name:t,capital:n[r]},c=0;c=0}function a(t,i){var a=!1;return e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]&&(a=!0)})}),a}function o(t,i){i.nodes.push(t),e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function r(t){!i(t,s)&&a(t,s)&&(o(t,s),c=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;o(n,s);var c;do c=!1,t(r);while(c);return s}},f.defaultEmphasis=function(t,e){if(t){var n=t.emphasis=t.emphasis||{},i=t[a]=t[a]||{};r.each(e,function(t){var e=r.retrieve(n[t],i[t]);null!=e&&(n[t]=e)})}},f.createDataFormatModel=function(t,e,n){var i=new o;return r.mixin(i,f.dataFormatMixin),i.seriesIndex=t.seriesIndex,i.name=t.name||"",i[d]=function(){return e},i.getRawDataArray=function(){return n},i},f.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},f.converDataValue=function(t,e){var r=e&&e.type;return r===i?t:("time"!==r||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?0/0:+t)},f.dataFormatMixin={getDataParams:function(t){var e=this[d](),n=this.seriesIndex,i=this.name,r=this.getRawValue(t),a=e.getRawIndex(t),o=e.getName(t,!0),s=this.getRawDataArray(),c=s&&s[a];return{seriesIndex:n,seriesName:i,name:o,dataIndex:a,data:c,value:r,color:e.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,n,i){n=n||a;var r=this[d](),o=r.getItemModel(t),s=this.getDataParams(t);return null==i&&(i=o.get(["label",n,"formatter"])),typeof i===u?(s.status=n,i(s)):typeof i===y?e.formatTpl(i,s):void 0 },getRawValue:function(t){var e=this[d]().getItemModel(t);if(e&&null!=e[s]){var n=e[s];return r[m](n)&&!r[h](n)?n.value:n}}},f.mappingToExists=function(t,e){e=(e||[]).slice();var n=r.map(t||[],function(t){return{exist:t}});return r.each(e,function(t,i){if(r[m](t))for(var a=0;a=n[M]&&n.push({option:t})}}),n},f.isIdInner=function(t){return r[m](t)&&t.id&&0===(t.id+"")[l]("\x00_ec_\x00")},f}),e("echarts/model/Model",[F,T,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,n,i){this.parentModel=e,this.ecModel=n,this[s]=t,this.init&&(arguments[M]<=4?this.init(t,e,n,i):this.init.apply(this,arguments))}var n=t(T),i=t("../util/clazz");e[S]={constructor:e,init:null,mergeOption:function(t){n.merge(this[s],t,!0)},get:function(t,e){if(!t)return this[s];typeof t===y&&(t=t.split("."));for(var n=this[s],i=this.parentModel,r=0;rh;h++){var f=o[h];f[0]=d[u++],f[1]=d[u++],a(f,f,e),d[l++]=f[0],d[l++]=f[1]}}}var n=t("../core/PathProxy").CMD,i=t("../core/vector"),a=i[r],o=[[],[],[]],s=Math.sqrt,c=Math.atan2;return e}),e("zrender/core/PathProxy",[F,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),n=t("./vector"),i=t("./bbox"),r=t("./BoundingRect"),a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},s=[],c=[],u=[],l=[],h=Math.min,f=Math.max,d=Math.cos,p=Math.sin,m=Math.sqrt,v=typeof Float32Array!=o,g=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return g[S]={constructor:g,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(a.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(a.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(a.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(a.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(a.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=d(r)*n+t,this._xi=p(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(a.R,t,e,n,i),this},closePath:function(){this.addData(a.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;nn;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[M],n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();v&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;oe[M]&&(this._expandData(),e=this.data);for(var n=0;na&&(a=r+a),a%=r,v-=a*l,g-=a*d;l>=0&&t>=v||0>l&&v>t;)i=this._dashIdx,n=o[i],v+=l*n,g+=d*n,this._dashIdx=(i+1)%y,l>0&&c>v||0>l&&v>c||s[i%2?"moveTo":"lineTo"](l>=0?h(v,t):f(v,t),d>=0?h(g,e):f(g,e));l=v-t,d=g-e,this._dashOffset=-m(l*l+d*d)},_dashedBezierTo:function(t,n,i,r,a,o){var s,c,u,l,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,v=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[M],C=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)c=_(g,t,i,a,s+.1)-_(g,t,i,a,s),u=_(y,n,r,o,s+.1)-_(y,n,r,o,s),x+=m(c*c+u*u);for(;w>b&&(C+=p[b],!(C>d));b++);for(s=(C-d)/x;1>=s;)l=_(g,t,i,a,s),h=_(y,n,r,o,s),b%2?v.moveTo(l,h):v.lineTo(l,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&v.lineTo(a,o),c=a-l,u=o-h,this._dashOffset=-m(c*c+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[M]=this._len,v&&(this.data=new Float32Array(t)))},getBoundingRect:function(){s[0]=s[1]=u[0]=u[1]=Number.MAX_VALUE,c[0]=c[1]=l[0]=l[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,o=0,h=0,f=0,m=0;mc?s:c,p=s>c?1:s/c,m=s>c?c/s:1,v=Math.abs(s-c)>.001;v?(t.translate(r,o),t.rotate(h),t.scale(p,m),t.arc(0,0,d,u,u+l,1-f),t.scale(1/p,1/m),t.rotate(-h),t.translate(-r,-o)):t.arc(r,o,d,u,u+l,1-f);break;case a.R:t.rect(e[n++],e[n++],e[n++],e[n++]);break;case a.Z:t.closePath()}}}},g.CMD=a,g}),e("zrender/graphic/Displayable",[F,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new i(t.style),this._rect=null,this.__clipPaths=[]}var n=t("../core/util"),i=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[S]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this[R]();return i[w](n[0],n[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?r[S].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},n[c](e,r),n.mixin(e,a),e}),e("zrender/contain/path",[F,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)e&&l>r&&l>o&&l>c||e>l&&r>l&&o>l&&c>l)return 0;var h=d.cubicRootAt(e,r,o,c,l,y);if(0===h)return 0;for(var f,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=d.cubicAt(t,i,a,s,x);u>b||(0>v&&(v=d.cubicExtrema(e,r,o,c,_),_[1]<_[0]&&v>1&&n(),f=d.cubicAt(e,r,o,c,_[0]),v>1&&(p=d.cubicAt(e,r,o,c,_[1]))),m+=2==v?x<_[0]?e>f?1:-1:x<_[1]?f>p?1:-1:p>c?1:-1:x<_[0]?e>f?1:-1:f>c?1:-1)}return m}function r(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||e>s&&i>s&&a>s)return 0;var c=d.quadraticRootAt(e,i,a,s,y);if(0===c)return 0;var u=d.quadraticExtremum(e,i,a);if(u>=0&&1>=u){for(var l=0,h=d.quadraticAt(e,i,a,u),f=0;c>f;f++){var p=d.quadraticAt(t,n,r,y[f]);o>p||(l+=y[f]h?1:-1:h>a?1:-1)}return l}var p=d.quadraticAt(t,n,r,y[0]);return o>p?0:e>a?1:-1}function a(t,e,n,i,r,a,o,s){if(s-=e,s>n||-n>s)return 0;var c=Math.sqrt(n*n-s*s);y[0]=-c,y[1]=c;var u=Math.abs(i-r);if(1e-4>u)return 0;if(1e-4>u%v){i=0,r=v;var l=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?l:0}if(a){var c=i;i=f(r),r=f(c)}else i=f(i),r=f(r);i>r&&(r+=v);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var m=Math.atan2(s,p),l=a?1:-1;0>m&&(m=v+m),(m>=i&&r>=m||m+v>=i&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(l=-l),h+=l)}}return h}function o(t,n,o,c,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x1&&(o||(d+=p(v,g,y,_,c,f)),0!==d))return!0;switch(1==x&&(v=t[x],g=t[x+1],y=v,_=g),b){case s.M:y=t[x++],_=t[x++],v=y,g=_;break;case s.L:if(o){if(m(v,g,t[x],t[x+1],n,c,f))return!0}else d+=p(v,g,t[x],t[x+1],c,f)||0;v=t[x++],g=t[x++];break;case s.C:if(o){if(u.containStroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],n,c,f))return!0}else d+=i(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],c,f)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(l.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],n,c,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],c,f)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],C=t[x++],S=t[x++],T=t[x++],z=t[x++],L=t[x++],k=(t[x++],1-t[x++]),A=Math.cos(z)*S+w,P=Math.sin(z)*T+C;x>1?d+=p(v,g,A,P,c,f):(y=A,_=P);var D=(c-w)*T/S+w;if(o){if(h.containStroke(w,C,T,z,z+L,k,n,D,f))return!0}else d+=a(w,C,T,z,z+L,k,D,f);v=Math.cos(z+L)*S+w,g=Math.sin(z+L)*T+C;break;case s.R:y=v=t[x++],_=g=t[x++];var I=t[x++],R=t[x++],A=y+I,P=_+R;if(o){if(m(y,_,A,_,n,c,f)||m(A,_,A,P,n,c,f)||m(A,P,y,P,n,c,f)||m(y,P,A,P,n,c,f))return!0}else d+=p(A,_,A,P,c,f),d+=p(y,P,y,_,c,f);break;case s.Z:if(o){if(m(v,g,y,_,n,c,f))return!0}else if(d+=p(v,g,y,_,c,f),0!==d)return!0;v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,c,f)||0),0!==d}var s=t("../core/PathProxy").CMD,c=t("./line"),u=t("./cubic"),l=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),m=c.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,n){return o(t,0,!1,e,n)},containStroke:function(t,e,n,i){return o(t,e,!0,n,i)}}}),e("echarts/util/clazz",[F,T],function(t){function e(t,e){var n=i.slice(arguments,2);return this.superClass[S][e].apply(t,n)}function n(t,e,n){return this.superClass[S][e].apply(t,n)}var i=t(T),r={},a=".",o="___EC__COMPONENT__CONTAINER___",s=r.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return r.enableClassExtend=function(t,r){t[C]=function(a){var o=function(){r&&r.apply(this,arguments),t.apply(this,arguments)};return i[C](o[S],a),o[C]=this[C],o.superCall=e,o.superApply=n,i[c](o,this),o.superClass=this,o}},r.enableClassManagement=function(t,e){function n(t){var e=r[t.main];return e&&e[o]||(e=r[t.main]={},e[o]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var i=n(e);i[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists.");r[e.main]=t}return t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[o]&&(i=e?i[e]:null),n&&!i)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return i},t.getClassesByMainType=function(t){t=s(t);var e=[],n=r[t.main];return n&&n[o]?i.each(n,function(t,n){n!==o&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(r,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[C];a&&(t[C]=function(e){var n=a.call(this,e);return t.registerClass(n,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/lineStyle",[F,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var n=e.call(this,t),i=this.getLineDash();return i&&(n.lineDash=i),n},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/textStyle",[F,"zrender/contain/text"],function(t){function e(t,e){return t&&t.getShallow(e)}var n=t("zrender/contain/text");return{getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,n=t&&t[B](E);return[this.getShallow("fontStyle")||e(n,"fontStyle"),this.getShallow("fontWeight")||e(n,"fontWeight"),(this.getShallow("fontSize")||e(n,"fontSize")||12)+"px",this.getShallow("fontFamily")||e(n,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(E)||{};return n[R](t,this[O](),e.align,e.baseline)},ellipsis:function(t,e,i){return n.ellipsis(t,this[O](),e,i)}}}),e("echarts/model/mixin/areaStyle",[F,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("zrender/graphic/Style",[F],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[S]={constructor:e,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(e,n){for(var i=this.fill,r=this.stroke,a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function n(t,e){t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}var i=t("../../contain/text"),a=t("../../core/BoundingRect"),o=new a,s=function(){};return s[S]={constructor:s,drawRectText:function(t,a,s){var c=this.style,u=c.text;if(null!=u&&(u+=""),u){var l,h,f=c.textPosition,d=c.textDistance,p=c.textAlign,m=c.textFont||c.font,g=c.textBaseline,y=c.textVerticalAlign;s=s||i[R](u,m,p,g);var _=this.transform,x=this.invTransform;if(_&&(o.copy(a),o[r](_),a=o,n(t,x)),f instanceof Array)l=a.x+e(f[0],a.width),h=a.y+e(f[1],a[I]),p=p||"left",g=g||"top";else{var b=i.adjustTextPositionOnRect(f,a,s,d);l=b.x,h=b.y,p=p||b.textAlign,g=g||b.textBaseline}if(t.textAlign=p,y){switch(y){case k:h-=s[I]/2;break;case v:h-=s[I]}t.textBaseline="top"}else t.textBaseline=g;var w=c.textFill,C=c.textStroke;w&&(t.fillStyle=w),C&&(t.strokeStyle=C),t.font=m,t.shadowColor=c.textShadowColor,t.shadowBlur=c.textShadowBlur,t.shadowOffsetX=c.textShadowOffsetX,t.shadowOffsetY=c.textShadowOffsetY;for(var S=u.split("\n"),T=0;T=0)){var o=this.getShallow(a);null!=o&&(i[t[r][0]]=o)}}return i}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Transformable",[F,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var n=t("../core/matrix"),i=t("../core/vector"),a=n.identity,o=5e-5,s=function(t){t=t||{},t[z]||(this[z]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=s[S];c.transform=null,c.needLocalTransform=function(){return e(this.rotation)||e(this[z][0])||e(this[z][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},c.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),r=this.transform;return i||e?(r=r||n[b](),i?this.getLocalTransform(r):a(r),e&&(i?n.mul(r,t.transform,r):n.copy(r,t.transform)),this.transform=r,this.invTransform=this.invTransform||n[b](),void n.invert(this.invTransform,r)):void(r&&a(r))},c.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,i=this.scale,r=this.rotation,o=this[z];return e&&(t[4]-=e[0],t[5]-=e[1]),n.scale(t,t,i),r&&n.rotate(t,t,r),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},c.setTransform=function(t){var e=this.transform;e&&t.transform(e[0],e[1],e[2],e[3],e[4],e[5])};var u=[];return c.decomposeTransform=function(){if(this.transform){var t=this.parent,i=this.transform;t&&t.transform&&(n.mul(u,t.invTransform,i),i=u);var r=i[0]*i[0]+i[1]*i[1],a=i[2]*i[2]+i[3]*i[3],o=this[z],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),i[0]<0&&(r=-r),i[3]<0&&(a=-a),o[0]=i[4],o[1]=i[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-i[1]/a,i[0]/r)}},c.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&i[r](n,n,a),n},c.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&i[r](n,n,a),n},s}),e("zrender/mixin/Animatable",[F,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),n=t("../core/util"),i=n.isString,r=n.isFunction,a=n[m],o=t("../core/log"),s=function(){this.animators=[]};return s[S]={constructor:s,animate:function(t,i){var r,a=!1,s=this,c=this.__zr;if(t){var u=t.split("."),h=s;a="shape"===u[0];for(var f=0,d=u[M];d>f;f++)h&&(h=h[u[f]]);h&&(r=h)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var m=s.animators,v=new e(r,i);return v.during(function(){s.dirty(a)}).done(function(){m[p](n[l](m,v),1)}),m.push(v),c&&c.animation.addAnimator(v),v},stopAnimation:function(t){for(var e=this.animators,n=e[M],i=0;n>i;i++)e[i].stop(t);return e[M]=0,this},animateTo:function(t,e,n,a,o){function s(){u--,u||o&&o()}i(n)?(o=a,a=n,n=0):r(a)?(o=a,a="linear",n=0):r(n)?(o=n,n=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,n,a,o);var c=this.animators.slice(),u=c[M];u||o&&o();for(var l=0;l0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("zrender/contain/text",[F,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var n=t+":"+e;if(c[n])return c[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i[M];o>a;a++)r=Math.max(d.measureText(i[a],e).width,r);return u>l&&(u=0,c={}),u++,c[n]=r,r}function i(t,n,i,r){var a=((t||"")+"").split("\n")[M],o=e(t,n),s=e("国",n),c=a*s,u=new f(0,0,o,c);switch(u.lineHeight=s,r){case v:case"alphabetic":u.y-=s;break;case k:u.y-=s/2}switch(i){case"end":case"right":u.x-=u.width;break;case L:u.x-=u.width/2}return u}function r(t,e,n,i){var r=e.x,a=e.y,o=e[I],s=e.width,c=n[I],u=o/2-c/2,l="left";switch(t){case"left":r-=i,a+=u,l="right";break;case"right":r+=i+s,a+=u,l="left";break;case"top":r+=s/2,a-=i+c,l=L;break;case v:r+=s/2,a+=o+i,l=L;break;case"inside":r+=s/2,a+=u,l=L;break;case"insideLeft":r+=i,a+=u,l="left";break;case"insideRight":r+=s-i,a+=u,l="right";break;case"insideTop":r+=s/2,a+=i,l=L;break;case"insideBottom":r+=s/2,a+=o-c-i,l=L;break;case"insideTopLeft":r+=i,a+=i,l="left";break;case"insideTopRight":r+=s-i,a+=i,l="right";break;case"insideBottomLeft":r+=i,a+=o-c-i;break;case"insideBottomRight":r+=s-i,a+=o-c-i,l="right"}return{x:r,y:a,textAlign:l,textBaseline:"top"}}function a(t,n,i,r){if(!i)return"";r=h.defaults({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",n),ascCharWidth:e("a",n)},r,!0),i-=e(r.ellipsis);for(var a=(t+"").split("\n"),s=0,c=a[M];c>s;s++)a[s]=o(a[s],n,i,r);return a.join("\n")}function o(t,n,i,r){for(var a=0;;a++){var o=e(t,n);if(i>o||a>=r.maxIterations){t+=r.ellipsis;break}var c=0===a?s(t,i,r):Math.floor(t[M]*i/o);if(cr&&e>i;r++){var o=t.charCodeAt(r);i+=o>=0&&127>=o?n.ascCharWidth:n.cnCharWidth}return r}var c={},u=0,l=5e3,h=t("../core/util"),f=t("../core/BoundingRect"),d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:r,ellipsis:a,measureText:function(t,e){var i=h[n]();return i.font=e,i.measureText(t)}};return d}),e("zrender/animation/Animator",[F,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function n(t,e,n){t[e]=n}function i(t,e,n){return(e-t)*n+t}function r(t,e,n){return n>.5?e:t}function a(t,e,n,r,a){var o=t[M];if(1==a)for(var s=0;o>s;s++)r[s]=i(t[s],e[s],n);else for(var c=t[0][M],s=0;o>s;s++)for(var u=0;c>u;u++)r[s][u]=i(t[s][u],e[s][u],n)}function o(t,e,n){var i=t[M],r=e[M];if(i!==r){var a=i>r;if(a)t[M]=r;else for(var o=i;r>o;o++)t.push(1===n?e[o]:g.call(e[o]))}}function s(t,e,n){if(t===e)return!0;var i=t[M];if(i!==e[M])return!1;if(1===n){for(var r=0;i>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][M],r=0;i>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function c(t,e,n,i,r,a,o,s,c){var l=t[M];if(1==c)for(var h=0;l>h;h++)s[h]=u(t[h],e[h],n[h],i[h],r,a,o);else for(var f=t[0][M],h=0;l>h;h++)for(var d=0;f>d;d++)s[h][d]=u(t[h][d],e[h][d],n[h][d],i[h][d],r,a,o)}function u(t,e,n,i,r,a,o){var s=.5*(n-t),c=.5*(i-e);return(2*(e-n)+s+c)*o+(-3*(e-n)-2*s-c)*a+s*r+e}function l(t){if(v(t)){var e=t[M];if(v(t[0])){for(var n=[],i=0;e>i;i++)n.push(g.call(t[i]));return n}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t,e,n,l,f){var m=t._getter,g=t._setter,_="spline"===e,x=l[M];if(x){var b,w=l[0].value,C=v(w),S=!1,T=!1,z=C&&v(w[0])?2:1;l.sort(function(t,e){return t.time-e.time}),b=l[x-1].time;for(var L=[],k=[],A=l[0].value,P=!0,D=0;x>D;D++){L.push(l[D].time/b);var I=l[D].value;if(C&&s(I,A,z)||!C&&I===A||(P=!1),A=I,typeof I==y){var R=p.parse(I);R?(I=R,S=!0):T=!0}k.push(I)}if(!P){if(C){for(var O=k[x-1],D=0;x-1>D;D++)o(k[D],O,z);o(m(t._target,f),O,z)}var E,B,F,N,G,V,q=0,H=0;if(S)var Z=[0,0,0,0];var W=function(t,e){var n;if(H>e){for(E=Math.min(q+1,x-1),n=E;n>=0&&!(L[n]<=e);n--);n=Math.min(n,x-2)}else{for(n=q;x>n&&!(L[n]>e);n++);n=Math.min(n-1,x-2)}q=n,H=e;var o=L[n+1]-L[n];if(0!==o)if(B=(e-L[n])/o,_)if(N=k[n],F=k[0===n?n:n-1],G=k[n>x-2?x-1:n+1],V=k[n>x-3?x-1:n+2],C)c(F,N,G,V,B,B*B,B*B*B,m(t,f),z);else{var s;if(S)s=c(F,N,G,V,B,B*B,B*B*B,Z,1),s=h(Z);else{if(T)return r(N,G,B);s=u(F,N,G,V,B,B*B,B*B*B)}g(t,f,s)}else if(C)a(k[n],k[n+1],B,m(t,f),z);else{var s;if(S)a(k[n],k[n+1],B,Z,1),s=h(Z);else{if(T)return r(k[n],k[n+1],B);s=i(k[n],k[n+1],B)}g(t,f,s)}},U=new d({target:t._target,life:b,loop:t._loop,delay:t._delay,onframe:W,ondestroy:n});return e&&"spline"!==e&&(U.easing=e),U}}}var d=t("./Clip"),p=t("../tool/color"),m=t("../core/util"),v=m.isArrayLike,g=Array[S].slice,_=function(t,i,r,a){this._tracks={},this._target=t,this._loop=i||!1,this._getter=r||e,this._setter=a||n,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[S]={when:function(t,e){var n=this._tracks;for(var i in e){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:l(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[M]=0;for(var t=this._doneList,e=t[M],n=0;e>n;n++)t[n].call(this)},start:function(t){var e,n=this,i=0,r=function(){i--,i||n._doneCallback()};for(var a in this._tracks){var o=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),i++,this.animation&&this.animation.addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var i=0;i1)for(var t in arguments)console.log(arguments[t])}}),e("echarts/util/component",[F,T,"./clazz"],function(t){var e=t(T),n=t("./clazz"),i=n.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=i(t),e[t.main]=n},t.determineSubType=function(n,r){var a=r.type;if(!a){var o=i(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,n){function i(t){var i={},o=[];return e.each(t,function(s){var c=r(i,s),u=c.originalDeps=n(s),h=a(u,t);c.entryCount=h[M],0===c.entryCount&&o.push(s),e.each(h,function(t){e[l](c.predecessor,t)<0&&c.predecessor.push(t);var n=r(i,t);e[l](n.successor,t)<0&&n.successor.push(s)})}),{graph:i,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,n){var i=[];return e.each(t,function(t){e[l](n,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,n,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&l.push(t)}function s(t){h[t]=!0,o(t)}if(t[M]){var c=i(n),u=c.graph,l=c.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});l[M];){var f=l.pop(),d=u[f],p=!!h[f];p&&(r.call(a,f,d.originalDeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[F],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(v),width:this.get("width"),height:this.get(I)}}}}),e("zrender/animation/Clip",[F,"./easing"],function(t){function e(t){this._target=t[D],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==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 n=t("./easing");return e[S]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1); var i=this.easing,r=typeof i==y?n[i]:i,a=typeof r===u?r(e):e;return this.fire("frame",a),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){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("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,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.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}),e("zrender/config",[],function(){var t=1;typeof window!==o&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/bbox",[F,"./vector","./curve"],function(t){var e=t("./vector"),n=t("./curve"),i={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,c=e[b](),u=e[b](),l=e[b](),h=2*Math.PI;return i.fromPoints=function(t,e,n){if(0!==t[M]){var i,o=t[0],s=o[0],c=o[0],u=o[1],l=o[1];for(i=1;ig;g++)y[g]=b(t,i,s,u,y[g]);for(w=x(e,o,c,l,_),g=0;w>g;g++)_[g]=b(e,o,c,l,_[g]);y.push(t,u),_.push(e,l),d=r.apply(null,y),p=a.apply(null,y),m=r.apply(null,_),v=a.apply(null,_),h[0]=d,h[1]=m,f[0]=p,f[1]=v},i.fromQuadratic=function(t,e,i,o,s,c,u,l){var h=n.quadraticExtremum,f=n.quadraticAt,d=a(r(h(t,i,s),1),0),p=a(r(h(e,o,c),1),0),m=f(t,i,s,d),v=f(e,o,c,p);u[0]=r(t,s,m),u[1]=r(e,c,v),l[0]=a(t,s,m),l[1]=a(e,c,v)},i.fromArc=function(t,n,i,r,a,f,d,p,m){var v=e.min,g=e.max,y=Math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-i,p[1]=n-r,m[0]=t+i,void(m[1]=n+r);if(c[0]=s(a)*i+t,c[1]=o(a)*r+n,u[0]=s(f)*i+t,u[1]=o(f)*r+n,v(p,c,u),g(m,c,u),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var _=f;f=a,a=_}for(var x=0;f>x;x+=Math.PI/2)x>a&&(l[0]=s(x)*i+t,l[1]=o(x)*r+n,v(p,l,p),g(m,l,m))},i}),e("zrender/core/curve",[F,"./vector"],function(t){function e(t){return t>-x&&x>t}function n(t){return t>x||-x>t}function i(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function r(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function a(t,n,i,r,a,o){var s=r+3*(n-i)-t,c=3*(i-2*n+t),u=3*(n-t),l=t-a,h=c*c-3*s*u,f=c*u-9*s*l,d=u*u-3*c*l,p=0;if(e(h)&&e(f))if(e(c))o[0]=0;else{var m=-u/c;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-c/s+g,x=-g/2;m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x)}else if(v>0){var b=_(v),C=h*c+1.5*s*(-f+b),S=h*c+1.5*s*(-f-b);C=0>C?-y(-C,M):y(C,M),S=0>S?-y(-S,M):y(S,M);var m=(-c-(C+S))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var T=(2*h*c-3*s*f)/(2*_(h*h*h)),z=Math.acos(T)/3,L=_(h),k=Math.cos(z),m=(-c-2*L*k)/(3*s),x=(-c+L*(k+w*Math.sin(z)))/(3*s),A=(-c+L*(k-w*Math.sin(z)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),A>=0&&1>=A&&(o[p++]=A)}}return p}function o(t,i,r,a,o){var s=6*r-12*i+6*t,c=9*i+3*a-3*t-9*r,u=3*i-3*t,l=0;if(e(c)){if(n(s)){var h=-u/s;h>=0&&1>=h&&(o[l++]=h)}}else{var f=s*s-4*c*u;if(e(f))o[0]=-s/(2*c);else if(f>0){var d=_(f),h=(-s+d)/(2*c),p=(-s-d)/(2*c);h>=0&&1>=h&&(o[l++]=h),p>=0&&1>=p&&(o[l++]=p)}}return l}function s(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,c=(i-n)*r+n,u=(s-o)*r+o,l=(c-s)*r+s,h=(l-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=l,a[6]=c,a[7]=i}function c(t,e,n,r,a,o,s,c,u,l,h){var f,d,p,m,v,y=.005,b=1/0;C[0]=u,C[1]=l;for(var w=0;1>w;w+=.05)S[0]=i(t,n,a,s,w),S[1]=i(e,r,o,c,w),m=g(C,S),b>m&&(f=w,b=m);b=1/0;for(var M=0;32>M&&!(x>y);M++)d=f-y,p=f+y,S[0]=i(t,n,a,s,d),S[1]=i(e,r,o,c,d),m=g(S,C),d>=0&&b>m?(f=d,b=m):(T[0]=i(t,n,a,s,p),T[1]=i(e,r,o,c,p),v=g(T,C),1>=p&&b>v?(f=p,b=v):y*=.5);return h&&(h[0]=i(t,n,a,s,f),h[1]=i(e,r,o,c,f)),_(b)}function u(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function l(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function h(t,i,r,a,o){var s=t-2*i+r,c=2*(i-t),u=t-a,l=0;if(e(s)){if(n(c)){var h=-u/c;h>=0&&1>=h&&(o[l++]=h)}}else{var f=c*c-4*s*u;if(e(f)){var h=-c/(2*s);h>=0&&1>=h&&(o[l++]=h)}else if(f>0){var d=_(f),h=(-c+d)/(2*s),p=(-c-d)/(2*s);h>=0&&1>=h&&(o[l++]=h),p>=0&&1>=p&&(o[l++]=p)}}return l}function f(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function d(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function p(t,e,n,i,r,a,o,s,c){var l,h=.005,f=1/0;C[0]=o,C[1]=s;for(var d=0;1>d;d+=.05){S[0]=u(t,n,r,d),S[1]=u(e,i,a,d);var p=g(C,S);f>p&&(l=d,f=p)}f=1/0;for(var m=0;32>m&&!(x>h);m++){var v=l-h,y=l+h;S[0]=u(t,n,r,v),S[1]=u(e,i,a,v);var p=g(S,C);if(v>=0&&f>p)l=v,f=p;else{T[0]=u(t,n,r,y),T[1]=u(e,i,a,y);var b=g(T,C);1>=y&&f>b?(l=y,f=b):h*=.5}}return c&&(c[0]=u(t,n,r,l),c[1]=u(e,i,a,l)),_(f)}var m=t("./vector"),v=m[b],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-4,w=_(3),M=1/3,C=v(),S=v(),T=v();return{cubicAt:i,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:c,quadraticAt:u,quadraticDerivativeAt:l,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,c=0,u=t;if(o>e+s&&o>i+s||e-s>o&&i-s>o||a>t+s&&a>n+s||t-s>a&&n-s>a)return!1;if(t===n)return Math.abs(a-t)<=s/2;c=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var l=c*a-o+u,h=l*l/(c*c+1);return s/2*s/2>=h}}}),e("zrender/contain/quadratic",[F,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,n,i,r,a,o,s,c,u){if(0===s)return!1;var l=s;if(u>n+l&&u>r+l&&u>o+l||n-l>u&&r-l>u&&o-l>u||c>t+l&&c>i+l&&c>a+l||t-l>c&&i-l>c&&a-l>c)return!1;var h=e.quadraticProjectPoint(t,n,i,r,a,o,c,u,null);return l/2>=h}}}),e("zrender/contain/cubic",[F,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,n,i,r,a,o,s,c,u,l,h){if(0===u)return!1;var f=u;if(h>n+f&&h>r+f&&h>o+f&&h>c+f||n-f>h&&r-f>h&&o-f>h&&c-f>h||l>t+f&&l>i+f&&l>a+f&&l>s+f||t-f>l&&i-f>l&&a-f>l&&s-f>l)return!1;var d=e.cubicProjectPoint(t,n,i,r,a,o,s,c,l,h,null);return f/2>=d}}}),e("zrender/contain/arc",[F,"./util"],function(t){var e=t("./util").normalizeRadian,n=2*Math.PI;return{containStroke:function(t,i,r,a,o,s,c,u,l){if(0===c)return!1;var h=c;u-=t,l-=i;var f=Math.sqrt(u*u+l*l);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%n<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=n);var p=Math.atan2(l,u);return 0>p&&(p+=n),p>=a&&o>=p||p+n>=a&&o>=p+n}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,n,i,r,a){if(a>e&&a>i||e>a&&i>a)return 0;if(i===e)return 0;var o=e>i?1:-1,s=(a-e)/(i-e),c=s*(n-t)+t;return c>r?o:0}}),e("zrender/contain/util",[F],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/graphic/helper/roundRect",[F],function(){return{buildPath:function(t,e){var n,i,r,a,o=e.x,s=e.y,c=e.width,u=e[I],l=e.r;0>c&&(o+=c,c=-c),0>u&&(s+=u,u=-u),"number"==typeof l?n=i=r=a=l:l instanceof Array?1===l[M]?n=i=r=a=l[0]:2===l[M]?(n=r=l[0],i=a=l[1]):3===l[M]?(n=l[0],i=a=l[1],r=l[2]):(n=l[0],i=l[1],r=l[2],a=l[3]):n=i=r=a=0;var h;n+i>c&&(h=n+i,n*=c/h,i*=c/h),r+a>c&&(h=r+a,r*=c/h,a*=c/h),i+r>u&&(h=i+r,i*=u/h,r*=u/h),n+a>u&&(h=n+a,n*=u/h,a*=u/h),t.moveTo(o+n,s),t.lineTo(o+c-i,s),0!==i&&t.quadraticCurveTo(o+c,s,o+c,s+i),t.lineTo(o+c,s+u-r),0!==r&&t.quadraticCurveTo(o+c,s+u,o+c-r,s+u),t.lineTo(o+a,s+u),0!==a&&t.quadraticCurveTo(o,s+u,o,s+u-a),t.lineTo(o,s+n),0!==n&&t.quadraticCurveTo(o,s,o+n,s)}}}),e("zrender/core/LRU",[F],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[S];e.insert=function(t){var e=new n(t);return this.insertEntry(e),e},e.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},e.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var n=function(t){this.value=t,this.next,this.prev},i=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=i[S];return r.put=function(t,e){var n=this._list,i=this._map;if(null==i[t]){var r=n.len();if(r>=this._maxSize&&r>0){var a=n.head;n.remove(a),delete i[a.key]}var o=n.insert(e);o.key=t,i[t]=o}},r.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},i}),e("zrender/graphic/helper/poly",[F,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),n=t("./smoothBezier");return{buildPath:function(t,i,r){var a=i.points,o=i.smooth;if(a&&a[M]>=2){if(o&&"spline"!==o){var s=n(a,o,r,i.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var c=a[M],u=0;(r?c:c-1)>u;u++){var l=s[2*u],h=s[2*u+1],f=a[(u+1)%c];t.bezierCurveTo(l[0],l[1],h[0],h[1],f[0],f[1])}}else{"spline"===o&&(a=e(a,r)),t.moveTo(a[0][0],a[0][1]);for(var u=1,d=a[M];d>u;u++)t.lineTo(a[u][0],a[u][1])}r&&t.closePath()}}}}),e("zrender/graphic/helper/smoothSpline",[F,"../../core/vector"],function(t){function e(t,e,n,i,r,a,o){var s=.5*(n-t),c=.5*(i-e);return(2*(e-n)+s+c)*o+(-3*(e-n)-2*s-c)*a+s*r+e}var n=t("../../core/vector");return function(t,i){for(var r=t[M],a=[],o=0,s=1;r>s;s++)o+=n.distance(t[s-1],t[s]);var c=o/2;c=r>c?r:c;for(var s=0;c>s;s++){var u,l,h,f=s/(c-1)*(i?r:r-1),d=Math.floor(f),p=f-d,m=t[d%r];i?(u=t[(d-1+r)%r],l=t[(d+1)%r],h=t[(d+2)%r]):(u=t[0===d?d:d-1],l=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var v=p*p,g=p*v;a.push([e(u[0],m[0],l[0],h[0],p,v,g),e(u[1],m[1],l[1],h[1],p,v,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[F,"../../core/vector"],function(t){var e=t("../../core/vector"),n=e.min,i=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,c,u){var l,h,f,d,p=[],m=[],v=[],g=[];if(u){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[M];_>y;y++)n(f,f,t[y]),i(d,d,t[y]);n(f,f,u[0]),i(d,d,u[1])}for(var y=0,_=t[M];_>y;y++){var x=t[y];if(c)l=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}l=t[y-1],h=t[y+1]}e.sub(m,h,l),r(m,m,s);var b=a(x,l),w=a(x,h),C=b+w;0!==C&&(b/=C,w/=C),r(v,m,-b),r(g,m,w);var S=o([],x,v),T=o([],x,g);u&&(i(S,S,f),n(S,S,d),i(T,T,f),n(T,T,d)),p.push(S),p.push(T)}return c&&p.push(p.shift()),p}}),e("zrender/Handler",[F,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t,e,n){return{type:t,event:n,target:e,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta}}function n(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===n&&i.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[D],a,r.event)}}function i(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var n=g.concat(y),i=0;i=0;a--)if(!i[a].silent&&i[a]!==n&&!i[a].ignore&&r(i[a],t,e))return i[a]}},f.mixin(z,m),f.mixin(z,d),z}),e("echarts/coord/cartesian/Cartesian2D",[F,T,"./Cartesian"],function(t){function e(t){r.call(this,t)}var n=t(T),r=t("./Cartesian");return e[S]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(i)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e[w](e.toLocalCoord(t[0]))&&n[w](n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.toGlobalCoord(n.dataToCoord(t[0],e)),i.toGlobalCoord(i.dataToCoord(t[1],e))]},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return[n.coordToData(n.toLocalCoord(t[0]),e),i.coordToData(i.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},n[c](e,r),e}),e("zrender/Storage",[F,"./core/util","./container/Group"],function(t){function e(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var n=t("./core/util"),i=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[S]={constructor:r,getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var n=this._roots,i=this._displayList,r=0,a=n[M];a>r;r++)this._updateAndAddDisplayable(n[r],null,t);i[M]=this._displayListLen;for(var r=0,a=i[M];a>r;r++)i[r].__renderidx=r;i.sort(e)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.clipPath;if(i&&(i.parent=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var r=t._children,a=0;ae;e++)this.delRoot(t[e]);else{var o;o=typeof t==y?this._elements[t]:t;var s=n[l](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[p](s,1),o instanceof i&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof i&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,n=e[t];return n&&(delete e[t],n instanceof i&&(n.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/Painter",[F,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[g]!==u||typeof t.refresh!==u?!1:!0:!1}function a(t){t.__unusedCount++}function o(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function s(t,e,n){return _.copy(t[R]()),t.transform&&_[r](t.transform),x.width=e,x[I]=n,!_.intersect(x)}function c(t,e){if(!t||!e||t[M]!==e[M])return!0;for(var n=0;nd;d++){var v=t[d],g=this._singleCanvas?0:v.zlevel;if(i!==g&&(i=g,n=this.getLayer(i),n.isBuildin||m("ZLevel "+i+" has been used by unkown layer "+n.id),r=n.ctx,n.__unusedCount=0,(n.__dirty||e)&&n.clear()),(n.__dirty||e)&&!v.invisible&&0!==v.style.opacity&&v.scale[0]&&v.scale[1]&&(!v.culling||!s(v,u,l))){var y=v.__clipPaths;c(y,f)&&(f&&r.restore(),y&&(r.save(),h(y,r)),f=y),v.beforeBrush&&v.beforeBrush(r),v.brush(r,!1),v.afterBrush&&v.afterBrush(r)}v.__dirty=!1}f&&r.restore(),this.eachBuildinLayer(o)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new y("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&d.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[M],o=null,s=-1,c=this._domRoot;if(n[t])return void m("ZLevel "+t+" has been used already");if(!i(e))return void m("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]t);s++);o=n[r[s]]}if(r[p](s+1,0,t),o){var u=o.dom;u.nextSibling?c.insertBefore(e.dom,u.nextSibling):c.appendChild(e.dom)}else c.firstChild?c.insertBefore(e.dom,c.firstChild):c.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;ii;i++){var a=t[i],o=this._singleCanvas?0:a.zlevel,s=e[o];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=a.__dirty}}this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?d.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&d.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n[p](d[l](n,t),1))},resize:function(t,e){var n=this._domRoot;if(n.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style[I]=e+"px";for(var i in this._layers)this._layers[i][g](t,e);this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new y("image",this,t.pixelRatio||this.dpr);e.initContext();var n=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),r=0;r=0&&this._clips[p](n,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;no;o++){var s=n[o],c=s.step(t);c&&(r.push(c),a.push(s))}for(var o=0;i>o;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r[M];for(var o=0;i>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},start:function(){function t(){e._running&&(i(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),i(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var n=new r(t,e.loop,e.getter,e.setter);return n}},e.mixin(a,n),a}),e("echarts/coord/axisHelper",[F,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",T,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),n=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var r=t("../scale/Scale"),a=t("../util/number"),o=t(T),s=t("zrender/contain/text"),c={};return c.getScaleExtent=function(t,e){var n=t.scale,r=n.getExtent(),s=r[1]-r[0];if(n.type===i)return isFinite(s)?r:[0,0];var c=e.getMin?e.getMin():e.get("min"),u=e.getMax?e.getMax():e.get("max"),l=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),f=e.get("boundaryGap");o[h](f)||(f=[f||0,f||0]),f[0]=a.parsePercent(f[0],1),f[1]=a.parsePercent(f[1],1);var d=!0,p=!0;return null==c&&(c=r[0]-f[0]*s,d=!1),null==u&&(u=r[1]+f[1]*s,p=!1),"dataMin"===c&&(c=r[0]),"dataMax"===u&&(u=r[1]),l&&(c>0&&u>0&&!d&&(c=0),0>c&&0>u&&!p&&(u=0)),[c,u]},c.niceScaleExtent=function(t,e){var n=t.scale,i=c.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max"));n.setExtent(i[0],i[1]),n.niceExtent(e.get("splitNumber"),r,a);var o=e.get("interval");null!=o&&n.setInterval&&n.setInterval(o)},c.createScaleByModel=function(t,i){if(i=i||t.get("type"))switch(i){case"category":return new e(t.getCategories(),[1/0,-1/0]);case"value":return new n;default:return(r.getClass(i)||n)[b](t)}},c.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)},c.getAxisLabelInterval=function(t,e,n,i){var r,a=0,o=0,c=1;e[M]>40&&(c=Math.round(e[M]/40));for(var u=0;u1?c:a*c},c.getFormattedLabels=function(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return typeof e===y?(e=function(t){return function(e){return t[f]("{value}",e)}}(e),o.map(i,e)):typeof e===u?o.map(r,function(i,r){return e("category"===t.type?n.getLabel(i):i,r)},this):i},c}),e("echarts/coord/cartesian/GridModel",[F,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[C]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("zrender/mixin/Draggable",[F],function(){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[S]={constructor:t,_dragStart:function(t){var e=t[D];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this.findHover(n,i,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("zrender/core/GestureMgr",[F],function(){function t(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=function(){this._track=[]};n[S]={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[M]=0,this},_doTrack:function(t,e){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},r=0,a=n[M];a>r;r++){var o=n[r];i.points.push([o.clientX,o.clientY]),i.touches.push(o)}this._track.push(i)}},_recognize:function(t){for(var e in i)if(i.hasOwnProperty(e)){var n=i[e](this._track,t);if(n)return n}}};var i={pinch:function(n,i){var r=n[M];if(r){var a=(n[r-1]||{}).points,o=(n[r-2]||{}).points||a;if(o&&o[M]>1&&a&&a[M]>1){var s=t(a)/t(o);!isFinite(s)&&(s=1),i.pinchScale=s;var c=e(a);return i.pinchX=c[0],i.pinchY=c[1],{type:"pinch",target:n[0][D],event:i}}}}};return n}),e("echarts/coord/cartesian/Axis2D",[F,T,"../Axis","./axisLabelInterval"],function(t){var e=t(T),n=t("../Axis"),i=t("./axisLabelInterval"),r=function(t,e,i,r,a){n.call(this,t,e,i),this.type=r||"value",this[z]=a||v};return r[S]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[z]; return"top"===t||t===v},getGlobalExtent:function(){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=i(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return typeof e===u&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[c](r,n),r}),e("zrender/core/event",[F,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function n(t,n){if(n=n||window.event,null!=n.zrX)return n;var i=n.type,r=i&&i[l]("touch")>=0;if(r){var a="touchend"!=i?n.targetTouches[0]:n.changedTouches[0];if(a){var o=e(t);n.zrX=a.clientX-o.left,n.zrY=a.clientY-o.top}}else{var s=e(t);n.zrX=n.clientX-s.left,n.zrY=n.clientY-s.top,n.zrDelta=n.wheelDelta?n.wheelDelta/120:-(n.detail||0)/3}return n}function i(t,e,n){s?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function r(t,e,n){s?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var a=t("../mixin/Eventful"),s=typeof window!==o&&!!window.addEventListener,c=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:n,addEventListener:i,removeEventListener:r,stop:c,Dispatcher:a}}),e("echarts/scale/Ordinal",[F,T,"./Scale"],function(t){var e=t(T),n=t("./Scale"),i=n[S],r=n[C]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[M]-1]},parse:function(t){return typeof t===y?e[l](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),i[w].call(this,t)&&null!=this._data[t]},normalize:function(t){return i.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(i.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[b]=function(){return new r},r}),e("zrender/Layer",[F,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,n,i){var r=document.createElement(e),a=n[P](),o=n[A](),s=r.style;return s[z]="absolute",s.left=0,s.top=0,s.width=a+"px",s[I]=o+"px",r.width=a*i,r[I]=o*i,r.setAttribute("data-zr-dom-id",t),r}var r=t("./core/util"),a=t("./config"),o=function(t,n,o){var s;o=o||a.devicePixelRatio,typeof t===y?s=i(t,"canvas",n,o):r[m](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var c=s.style;c&&(s.onselectstart=e,c["-webkit-user-select"]="none",c["user-select"]="none",c["-webkit-touch-callout"]="none",c["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return o[S]={constructor:o,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[n]("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack[n]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r.width=t+"px",r[I]=e+"px",i.width=t*n,i[I]=e*n,1!=n&&this.ctx.scale(n,n),a&&(a.width=t*n,a[I]=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e[I],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,c=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/c,r/c)),n.clearRect(0,0,i/c,r/c),a&&(n.save(),n.fillStyle=this.clearColor,n.fillRect(0,0,i/c,r/c),n.restore()),o){var u=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(u,0,0,i/c,r/c),n.restore()}}},o}),e("echarts/coord/cartesian/Cartesian",[F,T],function(t){function e(t){return this._axes[t]}var n=t(T),i=function(t){this._axes={},this._dimList=[],this.name=t||""};return i[S]={constructor:i,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[_](),n[x](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r=n&&i>=t},containData:function(t){return this[w](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return n.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,n){var a=this._extent,s=this.scale;return t=s.normalize(t),this.onBand&&s.type===i&&(a=a.slice(),e(a,s.count())),r(t,o,a,n)},coordToData:function(t,n){var a=this._extent,s=this.scale;this.onBand&&s.type===i&&(a=a.slice(),e(a,s.count()));var c=r(t,a,o,n);return this.scale.scale(c)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],n=0;no;o++)e.push([a*o/n+i,a*(o+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n}},s}),e("echarts/data/List",[F,"../model/Model","./DataDiffer",T,"../util/model"],function(t){function e(t){return v[h](t)||(t=[t]),t}function n(t,e){var n=t.dimensions,i=new w(v.map(n,t.getDimensionInfo,t),t.hostModel);b(i,t,t._wrappedMethods);for(var r=i._storage={},a=t._storage,o=0;o=0?new c.constructor(a[s][M]):a[s]}return i}var r=o,a=typeof window===o?global:window,s=typeof a.Float64Array===r?Array:a.Float64Array,c=typeof a.Int32Array===r?Array:a.Int32Array,f={"float":s,"int":c,ordinal:Array,number:Array,time:Array},d=t("../model/Model"),p=t("./DataDiffer"),v=t(T),g=t("../util/model"),_=v[m],x=["stackedOn","_nameList","_idList","_rawData"],b=function(t,e,n){v.each(x.concat(n||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})},w=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r0&&(w+="__ec__"+u[C]),u[C]++),w&&(c[l]=w)}this._nameList=e,this._idList=c},z.count=function(){return this.indices[M]},z.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=i[t]&&i[t][r];if(n){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var c=s.get(t,e);(a>=0&&c>0||0>=a&&0>c)&&(a+=c),s=s.stackedOn}}return a},z.getValues=function(t,e,n){var i=[];v[h](t)||(n=e,e=t,t=this.dimensions);for(var r=0,a=t[M];a>r;r++)i.push(this.get(t[r],e,n));return i},z.hasValue=function(t){for(var e=this.dimensions,n=this._dimensionInfos,r=0,a=e[M];a>r;r++)if(n[e[r]].type!==i&&isNaN(this.get(e[r],t)))return!1;return!0},z.getDataExtent=function(t,e){var n=this._storage[t],i=this.getDimensionInfo(t);e=i&&i.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(n){for(var o=1/0,s=-1/0,c=0,u=this.count();u>c;c++)r=this.get(t,c,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-1/0]},z.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(i+=o)}return i},z[l]=function(t,e){var n=this._storage,i=n[t],r=this.indices;if(i)for(var a=0,o=r[M];o>a;a++){var s=r[a];if(i[s]===e)return a}return-1},z.indexOfName=function(t){for(var e=this.indices,n=this._nameList,i=0,r=e[M];r>i;i++){var a=e[i];if(n[a]===t)return i}return-1},z.indexOfNearest=function(t,e,n){var i=this._storage,r=i[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,c=this.count();c>s;s++){var u=Math.abs(this.get(t,s,n)-e);a>=u&&(a=u,o=s)}return o}return-1},z.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},z.getName=function(t){return this._nameList[this.indices[t]]||""},z.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},z.each=function(t,n,i,r){typeof t===u&&(r=i,i=n,n=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=t[M],s=this.indices;r=r||this;for(var c=0;cl;l++)a[l]=this.get(t[l],c,i);a[l]=c,n.apply(r,a)}},z.filterSelf=function(t,n,i,r){typeof t===u&&(r=i,i=n,n=t,t=[]),t=v.map(e(t),this.getDimension,this);var a=[],o=[],s=t[M],c=this.indices;r=r||this;for(var l=0;lf;f++)o[f]=this.get(t[f],l,i);o[f]=l,h=n.apply(r,o)}h&&a.push(c[l])}return this.indices=a,this._extent={},this},z.mapArray=function(t,e,n,i){typeof t===u&&(i=n,n=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n,i),r},z.map=function(t,i,r,a){t=v.map(e(t),this.getDimension,this);var o=n(this,t),s=o.indices=this.indices,c=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[M]-1],n=i&&i.apply(this,arguments);if(null!=n){"number"==typeof n&&(u[0]=n,n=u);for(var r=0;rm;m+=f){f>p-m&&(f=p-m,l[M]=f);for(var v=0;f>v;v++){var g=c[m+v];l[v]=d[g],h[v]=g}var y=i(l),g=h[r(l,y)||0];d[g]=y,u.push(g)}return a},z.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new d(this._rawData[t],e,e.ecModel)},z.diff=function(t){var e=this._idList,n=t&&t._idList;return new p(t?t.indices:[],this.indices,function(t){return n[t]||t+""},function(t){return e[t]||t+""})},z.getVisual=function(t){var e=this._visual;return e&&e[t]},z.setVisual=function(t,e){if(_(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},z.setLayout=function(t,e){if(_(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},z.getLayout=function(t){return this._layout[t]},z.getItemLayout=function(t){return this._itemLayouts[t]},z.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?v[C](this._itemLayouts[t]||{},e):e},z.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},z.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};if(this._itemVisuals[t]=i,_(e))for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]);else i[e]=n};var L=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex};return z.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(L,e)),this._graphicEls[t]=e},z.getItemGraphicEl=function(t){return this._graphicEls[t]},z.eachItemGraphicEl=function(t,e){v.each(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},z.cloneShallow=function(){var t=v.map(this.dimensions,this.getDimensionInfo,this),e=new w(t,this.hostModel);return e._storage=this._storage,b(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},z.wrapMethod=function(t,e){var n=this[t];typeof n===u&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.call(this,t)})},w}),e("echarts/data/helper/completeDimensions",[F,T],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),c=r[h](s)&&s[M]||1;a=a||[],o=o||"extra";for(var u=0;c>u;u++)if(!t[u]){var l=a[u]||o+(u-a[M]);t[u]=n(e,u)?{type:"ordinal",name:l}:l}return t}function n(t,e){for(var n=0,a=t[M];a>n;n++){var o=i(t[n]);if(!r[h](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r.isString(o)&&"-"!==o)return!0}return!1}function i(t){return r[h](t)?t:r[m](t)?t.value:t}var r=t(T);return e}),e("echarts/chart/helper/dataSelectableMixin",[F,T],function(t){var e=t(T);return{updateSelectedMap:function(){var t=this[s];this._dataOptMap=e.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var n=this._dataOptMap,i=n[t],r=this.get("selectedMode");"single"===r&&e.each(n,function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}}),e("echarts/coord/cartesian/AxisModel",[F,"../../model/Component",T,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?"category":"value")}var n=t("../../model/Component"),i=t(T),r=t("../axisModelCreator"),a=n[C]({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this[s].rangeStart=t,this[s].rangeEnd=e},getMin:function(){var t=this[s];return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this[s];return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this[s];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this[s].rangeStart=this[s].rangeEnd=null}});i.merge(a[S],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("echarts/data/DataDiffer",[F],function(){function t(t){return t}function e(e,n,i,r){this._old=e,this._new=n,this._oldKeyGetter=i||t,this._newKeyGetter=r||t}function n(t,e,n){for(var i=0;it;t++)this._add&&this._add(u[t]);else this._add&&this._add(u)}}},e}),e("echarts/coord/axisModelCreator",[F,"./axisDefault",T,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),n=t(T),i=t("../model/Component"),r=t("../util/layout"),a=["value","category","time","log"];return function(t,o,s,c){n.each(a,function(i){o[C]({type:t+"Axis."+i,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,c=o?r.getLayoutParams(e):{},u=a.getTheme();n.merge(e,u.get(i+"Axis")),n.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,c,o)},defaultOption:n.mergeAll([{},e[i+"Axis"],c],!0)})}),i.registerSubTypeDefaulter(t+"Axis",n.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[F,T,"./axisHelper"],function(t){function e(t){return r[m](t)&&null!=t.value?t.value:t}function n(){return"category"===this.get("type")&&r.map(this.get("data"),e)}function i(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(T),a=t("./axisHelper");return{getFormattedLabels:i,getCategories:n}}),e("echarts/component/helper/MapDraw",[F,"./RoamController","../../util/graphic",T],function(t){function e(t){var e=t.getItemStyle(),n=t.get("areaColor");return n&&(e.fill=n),e}function n(t,e,n,r,a){n.off("click"),t.get("selectedMode")&&n.on("click",function(n){var o=n[D].dataIndex;if(null!=o){var s=e.getName(o);r.dispatchAction({type:"mapToggleSelect",seriesIndex:t.seriesIndex,name:s,from:a.uid}),i(t,e,r)}})}function i(t,e){e.eachItemGraphicEl(function(n,i){var r=e.getName(i);n.trigger(t.isSelected(r)?"emphasis":a)})}function r(t,e){var n=new s.Group;this._controller=new o(t.getZr(),e?n:null,null),this.group=n,this._updateGroup=e}var o=t("./RoamController"),s=t("../../util/graphic"),c=t(T);return r[S]={constructor:r,draw:function(t,r,o,u){var l=t[d]&&t[d](),h=t.coordinateSystem,f=this.group;f.removeAll();var p=h.scale;f[z]=h[z].slice(),f.scale=p.slice();var m,v,g,y,_,x,b=["itemStyle",a],w=["itemStyle","emphasis"],M=["label",a],C=["label","emphasis"];l||(m=t[B](b),v=t[B](w),g=e(m,p),y=e(v,p),_=t[B](M),x=t[B](C)),c.each(h.regions,function(n){var i,r=new s.Group;if(l){i=l.indexOfName(n.name);var o=l.getItemModel(i),u=l.getItemVisual(i,"color",!0);m=o[B](b),v=o[B](w),g=e(m,p),y=e(v,p),_=o[B](M),x=o[B](C),u&&(g.fill=u)}var h=_[B](E),d=x[B](E);c.each(n.contours,function(t){var e=new s.Polygon({shape:{points:t},style:{strokeNoScale:!0},culling:!0});e.setStyle(g),r.add(e)});var S=_.get("show"),T=x.get("show"),z=l&&isNaN(l.get("value",i)),k=l&&l.getItemLayout(i);if(!l||z&&(S||T)||k&&k.showLabel){var A=l?i:n.name,P=t.getFormattedLabel(A,a),D=t.getFormattedLabel(A,"emphasis"),I=new s.Text({style:{text:S?P||n.name:"",fill:h.getTextColor(),textFont:h[O](),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:T?D||n.name:"",fill:d.getTextColor(),textFont:d[O]()},position:n[L].slice(),scale:[1/p[0],1/p[1]],z2:10,silent:!0});r.add(I)}l&&l.setItemGraphicEl(i,r),s.setHoverStyle(r,y),f.add(r)}),this._updateController(t,r,o),l&&n(t,l,f,o,u),l&&i(t,l)},remove:function(){this.group.removeAll(),this._controller.dispose()},_updateController:function(t,e,n){var i=t.coordinateSystem,r=this._controller;r.enable(t.get("roam")||!1);var a=t.type.split(".")[0];r.off("pan").on("pan",function(e,i){n.dispatchAction({type:"geoRoam",component:a,name:t.name,dx:e,dy:i})}),r.off("zoom").on("zoom",function(e,i,r){if(n.dispatchAction({type:"geoRoam",component:a,name:t.name,zoom:e,originX:i,originY:r}),this._updateGroup){var o=this.group,s=o.scale;o.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),r.rect=i.getViewRect()}},r}),e("echarts/coord/axisDefault",[F,T],function(t){var e=t(T),n={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},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)"]}}},i=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},n),r=e.defaults({boundaryGap:[0,0],splitNumber:5},n),a=e.defaults({scale:!0,min:"dataMin",max:"dataMax"},r),o=e.defaults({},r);return o.scale=!0,{categoryAxis:i,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/helper/RoamController",[F,"zrender/mixin/Eventful",T,"zrender/core/event","./interactionMutex"],function(t){function e(t){if(!t[D]||!t[D].draggable){var e=t.offsetX,n=t.offsetY,i=this.rect;i&&i[w](e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function n(t){if(this._dragging&&(l.stop(t.event),"pinch"!==t.gestureEvent)){if(h.isTaken("globalPan",this._zr))return;var e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y;this._x=e,this._y=n;var a=this[D];if(a){var o=a[z];o[0]+=i,o[1]+=r,a.dirty()}l.stop(t.event),this.trigger("pan",i,r)}}function i(){this._dragging=!1}function r(t){l.stop(t.event);var e=t.wheelDelta>0?1.1:1/1.1;o.call(this,t,e,t.offsetX,t.offsetY)}function a(t){if(!h.isTaken("globalPan",this._zr)){l.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,n,i){var r=this.rect;if(r&&r[w](n,i)){var a=this[D];if(a){var o=a[z],s=a.scale,c=this._zoom=this._zoom||1;c*=e;var u=c/this._zoom;this._zoom=c,o[0]-=(n-o[0])*(u-1),o[1]-=(i-o[1])*(u-1),s[0]*=u,s[1]*=u,a.dirty()}this.trigger("zoom",e,n,i)}}function s(t,o,s){this[D]=o,this.rect=s,this._zr=t;var l=u.bind,h=l(e,this),f=l(n,this),d=l(i,this),p=l(r,this),m=l(a,this);c.call(this),this.enable=function(e){this.disable(),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",h),t.on("mousemove",f),t.on("mouseup",d)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",p),t.on("pinch",m))},this.disable=function(){t.off("mousedown",h),t.off("mousemove",f),t.off("mouseup",d),t.off("mousewheel",p),t.off("pinch",m)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var c=t("zrender/mixin/Eventful"),u=t(T),l=t("zrender/core/event"),h=t("./interactionMutex");return u.mixin(s,c),s}),e("echarts/component/axis/AxisView",[F,T,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function n(t){var e=i.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var i=t.coordinateSystem,r=e.axis,a={},o=r[z],s=r.onZero?"onZero":o,c=r.dim,u=i.getRect(),l=[u.x,u.x+u.width,u.y,u.y+u[I]],h={x:{top:l[2],bottom:l[3]},y:{left:l[0],right:l[1]}};h.x.onZero=Math.max(Math.min(n("y"),h.x[v]),h.x.top),h.y.onZero=Math.max(Math.min(n("x"),h.y.right),h.y.left),a[z]=["y"===c?h.y[s]:l[0],"x"===c?h.x[s]:l[3]];var f={x:0,y:1};a.rotation=Math.PI/2*f[c];var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],r.onZero&&(a.labelOffset=h[c][o]-h[c].onZero),e[B]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[B]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var p=e[B]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var n=t(T),i=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],c=["splitLine","splitArea"],u=t("../../echarts").extendComponentView({type:"axis",render:function(t,i){if(this.group.removeAll(),t.get("show")){var a=i.getComponent("grid",t.get("gridIndex")),o=e(a,t),u=new r(t,o);n.each(s,u.add,u),this.group.add(u.getGroup()),n.each(c,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,r){var s=t.axis,c=t[B]("splitLine"),u=c[B]("lineStyle"),l=u.get("width"),f=u.get("color"),d=o(c,r);f=n[h](f)?f:[f];for(var p=e.coordinateSystem.getRect(),m=s.isHorizontal(),v=[],g=0,y=s.getTicksCoords(),_=[],x=[],b=0;b0?"top":v,i=L):h(a-f)?(r=n>0?v:"top",i=L):(r=k,i=a>0&&f>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,verticalAlign:r}}function n(t,e,n){var i,r,a=l(-t.rotation),o=n[0]>n[1],s="start"===e&&!o||"start"!==e&&o;return h(a-f/2)?(r=s?v:"top",i=L):h(a-1.5*f)?(r=s?"top":v,i=L):(r=k,i=1.5*f>a&&a>f/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:i,verticalAlign:r}}var a=t(T),o=t("../../util/graphic"),s=t("../../model/Model"),c=t("../../util/number"),l=c.remRadian,h=c.isRadianAroundZero,f=Math.PI,d=function(t,e){this.opt=e,this.axisModel=t,a.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new o.Group({position:e[z].slice(),rotation:e.rotation})};d[S]={constructor:d,hasBuilder:function(t){return!!p[t]},add:function(t){p[t].call(this)},getGroup:function(){return this.group}};var p={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent();this.group.add(new o.Line({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:a[C]({lineCap:"round"},e[B]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.silent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,n=t[B]("axisTick"),i=this.opt,r=n[B]("lineStyle"),a=n.get(M),s=g(n,i.labelInterval),c=e.getTicksCoords(),u=[],l=0;lh[1]?-1:1,d=["start"===s?h[0]-f*l:"end"===s?h[1]+f*l:(h[0]+h[1])/2,s===k?t.labelOffset+c*l:0];a=s===k?e(t,t.rotation,c):n(t,s,h),this.group.add(new o.Text({style:{text:r,textFont:u[O](),fill:u.getTextColor()||i.get("axisLine.lineStyle.color"),textAlign:a.textAlign,textVerticalAlign:a.verticalAlign},position:d,rotation:a.rotation,silent:!0,z2:1}))}}},m=d.ifIgnoreOnTick=function(t,e,n){var r,a=t.scale;return a.type===i&&(typeof n===u?(r=a.getTicks()[e],!n(r,a.getLabel(r))):e%(n+1))},g=d.getInterval=function(t,e){var n=t.get("interval");return(null==n||"auto"==n)&&(n=e),n};return d}),e("echarts/action/roamHelper",[F],function(){var t={};return t.calcPanAndZoom=function(t,e){var n=e.dx,i=e.dy,r=e.zoom,a=t.get("x")||0,o=t.get("y")||0,s=t.get("zoom")||1;if(null!=n&&null!=i&&(a+=n,o+=i),null!=r){var c=(e.originX-a)*(r-1),u=(e.originY-o)*(r-1);a-=c,o-=u}return{x:a,y:o,zoom:(r||1)*s}},t}),e("echarts/coord/geo/Geo",[F,"./parseGeoJson",T,"zrender/core/BoundingRect","../View","./fix/nanhai","./fix/textCoord","./fix/geoCoord"],function(t){function e(t,e,n,i,r){a.call(this,t),this.map=e,this._nameCoordMap={},this.loadGeoJson(n,i,r)}var n=t("./parseGeoJson"),i=t(T),r=t("zrender/core/BoundingRect"),a=t("../View"),o=[t("./fix/nanhai"),t("./fix/textCoord"),t("./fix/geoCoord")];return e[S]={constructor:e,type:"geo",dimensions:["lng","lat"],loadGeoJson:function(t,e,r){try{this.regions=t?n(t):[]}catch(a){throw"Invalid geoJson format\n"+a}e=e||{},r=r||{};for(var s=this.regions,c={},u=0;u>1^-(1&o),s=s>>1^-(1&s),o+=i,s+=r,i=o,r=s,n.push([o/1024,s/1024])}return n}function i(t){for(var e=[],n=0;nr;r++)if(n[w](i[r],t[0],t[1]))return!0;return!1},transformTo:function(t,e,n,a){var s=this[R](),c=s.width/s[I];n?a||(a=n/c):n=c*a;for(var u=new i(t,e,n,a),l=s.calculateTransform(u),h=this.contours,f=0;f