echarts.min.js 208 KB
!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 i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,f=i(e[u],r);switch(f){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;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 i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="category",n="../core/util",r="undefined",a="textStyle",o="stroke",s="applyTransform",l="center",u="getBoundingRect",c="dimensions",h="ordinal",f="position",d="getContext",p="contain",m="getExtent",v="coordinateSystem",g="inherits",y="function",_="indexOf",x="isArray",b="zlevel",w="seriesIndex",M="target",T="getData",S="splice",C="trigger",A="length",P="defaults",z="extend",L="isObject",k="update",I="create",D="height",O="bottom",E="ignore",R="getHeight",B="getWidth",N="getModel",F="string",G="prototype",V="toLowerCase",q="transform",H="zrender/core/util",W="require";e("echarts/chart/line",[W,H,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(H),i=t("../echarts");t("./line/LineSeries"),t("./line/LineView"),i.registerVisualCoding("chart",e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor("statistic",e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/echarts",[W,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",H,"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,i,n){e=e&&e[V](),te[G][t].call(this,e,i,n)}}function i(){te.call(this)}function n(t,e,n){n=n||{},typeof e===F&&(e=pe[e]),e&&ee(fe,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=Q.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),this._theme=$.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new m(this),this._coordSysMgr=new v,te.call(this),this._messageCenter=new i,this._initEvents(),this.resize=$.bind(this.resize,this)}function r(t,e){var i=this._model;i&&i.eachComponent({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;ee(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),f(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),f(r,a)},this)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[A];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if("series"===t)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=Z.parseClassType(o.type),c=i?U.getClass(u.main,u.sub):Y.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__alive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[A];){var s=n[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),n[S](o,1),delete r[s.__id])}}function s(t,e){ee(ne,function(i){ee(he[i]||[],function(i){i(t,e)})})}function l(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[T]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function u(t,e){var i=this._api;ee(ce,function(n){n(t,i,e)})}function c(t,e){ee(ie,function(i){ee(de[i]||[],function(i){i(t,e)})})}function h(t,e){var i=this._api;ee(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),f(r,n)},this),ee(this._chartsViews,function(t){t.__alive=!1},this),t.eachSeries(function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),r.group.silent=!!n.get("silent"),f(n,r)},this),ee(this._chartsViews,function(e){e.__alive||e.remove(t,i)},this)}function f(t,e){var i=t.get("z"),n=t.get(b);e.group.traverse(function(t){null!=i&&(t.z=i),null!=n&&(t[b]=n)})}function d(t){function e(t,e){for(var i=0;i<t[A];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";$.each(ue,function(o,s){t._messageCenter.on(s,function(o){if(ve[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var u in me){var c=me[u];c!==t&&c.group===t.group&&l.push(c)}e(l,i),ee(l,function(t){t[a]!==n&&t.dispatchAction(s)}),e(l,r)}})})}var p=t("./model/Global"),m=t("./ExtensionAPI"),v=t("./CoordinateSystem"),W=t("./model/OptionManager"),Z=t("./model/Component"),X=t("./model/Series"),U=t("./view/Component"),Y=t("./view/Chart"),j=t("./util/graphic"),Q=t("zrender"),$=t(H),K=t("zrender/tool/color"),J=t("zrender/core/env"),te=t("zrender/mixin/Eventful"),ee=$.each,ie=["echarts","chart","component"],ne=[q,"filter","statistic"];i[G].on=e("on"),i[G].off=e("off"),i[G].one=e("one"),$.mixin(i,te);var re=n[G];re.getDom=function(){return this._dom},re.getZr=function(){return this._zr},re.setOption=function(t,e,i){(!this._model||e)&&(this._model=new p(null,null,this._theme,new W(this._api))),this._model.setOption(t,fe),ae.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},re.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},re[N]=function(){return this._model},re.getOption=function(){return this._model.getOption()},re[B]=function(){return this._zr[B]()},re[R]=function(){return this._zr[R]()},re.getRenderedCanvas=function(t){if(J.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return $.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},re.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;ee(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[E]||(n.push(e),e.group[E]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ee(n,function(t){t.group[E]=!1}),a},re.getConnectedDataURL=function(t){if(J.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(ve[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;for(var h in me){var f=me[h];if(f.group===e){var d=f.getRenderedCanvas($.clone(t)),p=f.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[O],l),u.push({dom:d,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,l*=c;var m=s-a,v=l-o,g=$.createCanvas();g.width=m,g[D]=v;var y=Q.init(g);return ee(u,function(t){var e=new j.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var ae={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr;if(e){e.restoreData(),n[I](this._model,this._api),s.call(this,e,i),l.call(this,e),n[k](e,i),u.call(this,e,t),c.call(this,e,t),h.call(this,e,t);var r=e.get("backgroundColor")||"transparent",a=this._zr.painter;if(a.isSingleCanvas&&a.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!J.canvasSupported){var o=K.parse(r);r=K.stringify(o,"rgb"),0===o[3]&&(r="transparent")}r=r,this._dom.style.backgroundColor=r}}},updateView:function(t){var e=this._model;e&&(u.call(this,e,t),c.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),ae[k].call(this,t)}};re.resize=function(){this._zr.resize();var t=this._model&&this._model.resetOption("media");ae[t?"prepareAndUpdate":k].call(this),this._loadingFX&&this._loadingFX.resize()};var oe=t("./loading/default");re.showLoading=function(t,e){$[L](t)&&(e=t,t="default"),this.hideLoading();var i=oe(this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},re.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},re.makeActionFromEvent=function(t){var e=$[z]({},t);return e.type=ue[t.type],e},re.dispatchAction=function(t,e){var i=le[t.type];if(i){var n=i.actionInfo,r=n[k]||k,a=[t],o=!1;t.batch&&(o=!0,a=$.map(t.batch,function(e){return e=$[P]($[z]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[A];c++){var h=a[c];s=i.action(h,this._model),s=s||$[z]({},h),s.type=n.event||s.type,l.push(s),u&&ae[r].call(this,h)}"none"!==r&&!u&&ae[r].call(this,t),e||(s=o?{type:n.event||t.type,batch:l}:l[0],this._messageCenter[C](s.type,s))}},re.on=e("on"),re.off=e("off"),re.one=e("one");var se=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout"];re._initEvents=function(){ee(se,function(t){this._zr.on(t,function(e){var i=this[N](),n=e[M];if(n&&null!=n.dataIndex){var r=n.dataModel||i.getSeriesByIndex(n[w]),a=r&&r.getDataParams(n.dataIndex,n.dataType)||{};a.event=e,a.type=t,this[C](t,a)}else n&&n.eventData&&this[C](t,n.eventData)},this)},this),ee(ue,function(t,e){this._messageCenter.on(e,function(t){this[C](e,t)},this)},this)},re.isDisposed=function(){return this._disposed},re.clear=function(){this.setOption({},!0)},re.dispose=function(){this._disposed=!0;var t=this._api,e=this._model;ee(this._componentsViews,function(i){i.dispose(e,t)}),ee(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete me[this.id]},$.mixin(n,te);var le=[],ue={},ce=[],he={},fe=[],de={},pe={},me={},ve={},ge=new Date-0,ye=new Date-0,_e="_echarts_instance_",xe={version:"3.1.10",dependencies:{zrender:"3.1.0"}};return xe.init=function(t,e,i){if(Q.version.replace(".","")-0<xe.dependencies.zrender.replace(".","")-0)throw new Error("ZRender "+Q.version+" is too old for ECharts "+xe.version+". Current version need ZRender "+xe.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id="ec_"+ge++,me[r.id]=r,t.setAttribute&&t.setAttribute(_e,r.id),d(r),r},xe.connect=function(t){if($[x](t)){var e=t;t=null,$.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ye++,$.each(e,function(e){e.group=t})}return ve[t]=!0,t},xe.disConnect=function(t){ve[t]=!1},xe.dispose=function(t){$.isDom(t)?t=xe.getInstanceByDom(t):typeof t===F&&(t=me[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},xe.getInstanceByDom=function(t){var e=t.getAttribute(_e);return me[e]},xe.getInstanceById=function(t){return me[t]},xe.registerTheme=function(t,e){pe[t]=e},xe.registerPreprocessor=function(t){fe.push(t)},xe.registerProcessor=function(t,e){if($[_](ne,t)<0)throw new Error("stage should be one of "+ne);var i=he[t]||(he[t]=[]);i.push(e)},xe.registerAction=function(t,e,i){typeof e===y&&(i=e,e="");var n=$[L](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[V](),e=t.event,le[n]||(le[n]={action:i,actionInfo:t}),ue[e]=n},xe.registerCoordinateSystem=function(t,e){v.register(t,e)},xe.registerLayout=function(t){$[_](ce,t)<0&&ce.push(t)},xe.registerVisualCoding=function(t,e){if($[_](ie,t)<0)throw new Error("stage should be one of "+ie);var i=de[t]||(de[t]=[]);i.push(e)},xe.extendChartView=function(t){return Y[z](t)},xe.extendComponentModel=function(t){return Z[z](t)},xe.extendSeriesModel=function(t){return X[z](t)},xe.extendComponentView=function(t){return U[z](t)},xe.setCanvasCreator=function(t){$.createCanvas=t},xe.registerVisualCoding("echarts",$.curry(t("./visual/seriesColor"),"","itemStyle")),xe.registerPreprocessor(t("./preprocessor/backwardCompat")),xe.registerAction({type:"highlight",event:"highlight",update:"highlight"},$.noop),xe.registerAction({type:"downplay",event:"downplay",update:"downplay"},$.noop),xe.graphic=t("./util/graphic"),xe.number=t("./util/number"),xe.format=t("./util/format"),xe.matrix=t("zrender/core/matrix"),xe.vector=t("zrender/core/vector"),xe.util={},ee(["map","each","filter",_,g,"reduce","filter","bind","curry",x,"isString",L,"isFunction",z],function(t){xe.util[t]=$[t]}),xe}),e("echarts/component/grid",[W,"../util/graphic",H,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(H);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[v].getRect(),style:i[P]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0}))}})}),e("echarts/scale/Log",[W,H,"./Scale","../util/number","./Interval"],function(t){var e=t(H),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[G],o=r[G],s=Math.floor,l=Math.ceil,u=Math.pow,c=10,h=Math.log,f=i[z]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(u(c,t))})},getLabel:o.getLabel,scale:function(t){return t=a.scale.call(this,t),u(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[m].call(this);return t[0]=u(c,t[0]),t[1]=u(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=u(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([p,"normalize"],function(t){f[G][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),f[I]=function(){return new f},f}),e("echarts/scale/Time",[W,H,"../util/number","../util/format","./Interval"],function(t){var e=t(H),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[G],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,f=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},d=r[z]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return n.formatTime(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=h,r[1]+=h),r[1]===-1/0&&1/0===r[0]){var a=new Date;r[1]=new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-h}this.niceTicks(t);var l=this._interval;e||(r[0]=i.round(s(r[0]/l)*l)),n||(r[1]=i.round(o(r[1]/l)*l))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0],r=n/t,a=m[A],l=f(m,r,0,a),u=m[Math.min(l,a-1)],c=u[2];if("year"===u[0]){var h=n/c,d=i.nice(h/t,!0);c*=d}var p=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=p},parse:function(t){return+i.parseDate(t)}});e.each([p,"normalize"],function(t){d[G][t]=function(e){return a[t].call(this,this.parse(e))}});var m=[["hh:mm:ss",1,l],["hh:mm:ss",5,5*l],["hh:mm:ss",10,10*l],["hh:mm:ss",15,15*l],["hh:mm:ss",30,30*l],["hh:mm\nMM-dd",1,u],["hh:mm\nMM-dd",5,5*u],["hh:mm\nMM-dd",10,10*u],["hh:mm\nMM-dd",15,15*u],["hh:mm\nMM-dd",30,30*u],["hh:mm\nMM-dd",1,c],["hh:mm\nMM-dd",2,2*c],["hh:mm\nMM-dd",6,6*c],["hh:mm\nMM-dd",12,12*c],["MM-dd\nyyyy",1,h],["week",7,7*h],["month",1,31*h],["quarter",3,380*h/4],["half-year",6,380*h/2],["year",1,380*h]];return d[I]=function(){return new d},d}),e("echarts/component/tooltip",[W,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts").registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts").registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e(H,[W,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[A];r>n;n++)i[n]=e(t[n])}else if(!C(t)&&!P(t)){i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e(t[a]))}return i}return t}function i(t,n,r){if(!S(n)||!S(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!S(s)||!S(o)||w(s)||w(o)||P(s)||P(o)||C(s)||C(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function n(t,e){for(var n=t[0],r=1,a=t[A];a>r;r++)n=i(n,t[r],e);return n}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function o(){return document.createElement("canvas")}function s(){return I||(I=W.createCanvas()[d]("2d")),I}function l(t,e){if(t){if(t[_])return t[_](e);for(var i=0,n=t[A];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[G];i[G]=e[G],t[G]=new i;for(var r in n)t[G][r]=n[r];t[G].constructor=t,t.superClass=e}function c(t,e,i){t=G in t?t[G]:t,e=G in e?e[G]:e,a(t,e,i)}function h(t){return t?typeof t==F?!1:"number"==typeof t[A]:void 0}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===B)t.forEach(e,i);else if(t[A]===+t[A])for(var n=0,r=t[A];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===q)return t.map(e,i);for(var n=[],r=0,a=t[A];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function m(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===H)return t.reduce(e,i,n);for(var r=0,a=t[A];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t.filter&&t.filter===N)return t.filter(e,i);for(var n=[],r=0,a=t[A];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function g(t,e,i){if(t&&e)for(var n=0,r=t[A];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function x(t,e){var i=V.call(arguments,2);return function(){return t.apply(e,i.concat(V.call(arguments)))}}function b(t){var e=V.call(arguments,1);return function(){return t.apply(this,e.concat(V.call(arguments)))}}function w(t){return"[object Array]"===E.call(t)}function M(t){return typeof t===y}function T(t){return"[object String]"===E.call(t)}function S(t){var e=typeof t;return e===y||!!t&&"object"==e}function C(t){return!!O[E.call(t)]||t instanceof D}function P(t){return t&&1===t.nodeType&&typeof t.nodeName==F}function z(){for(var t=0,e=arguments[A];e>t;t++)if(null!=arguments[t])return arguments[t]}function L(){return Function.call.apply(V,arguments)}function k(t,e){if(!t)throw new Error(e)}var I,D=t("../graphic/Gradient"),O={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},E=Object[G].toString,R=Array[G],B=R.forEach,N=R.filter,V=R.slice,q=R.map,H=R.reduce,W={inherits:u,mixin:c,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:L,find:g,isArrayLike:h,each:f,map:p,reduce:m,filter:v,bind:x,curry:b,isArray:w,isString:T,isObject:S,isFunction:M,isBuildInObject:C,isDom:P,retrieve:z,assert:k,noop:function(){}};return W}),e("echarts/chart/line/LineView",[W,H,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff","../../util/graphic","./poly","../../view/Chart"],function(t){function e(t,e){if(t[A]===e[A]){for(var i=0;i<t[A];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[m]()[0],o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(n,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t.dataToPoint(h)},!0)}function o(t,e){return null!=e.dataIndex?e.dataIndex:null!=e.name?t.indexOfName(e.name):void 0}function s(t,e,i){var r=n(t.getAxis("x")),a=n(t.getAxis("y")),o=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(a[0],a[1]),u=Math.max(r[0],r[1])-s,c=Math.max(a[0],a[1])-l,h=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?h/2:Math.max(u,c);o?(l-=f,c+=2*f):(s-=f,u+=2*f);var d=new y.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(d.shape[o?"width":D]=0,y.initProps(d,{shape:{width:u,height:c}},i)),d}function l(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[m](),o=n[m](),s=Math.PI/180,l=new y.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,y.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function u(t,e,i){return"polar"===t.type?l(t,e,i):s(t,e,i)}var c=t(H),d=t("../helper/SymbolDraw"),p=t("../helper/Symbol"),g=t("./lineAnimationDiff"),y=t("../../util/graphic"),_=t("./poly"),x=t("../../view/Chart");return x[z]({type:"line",init:function(){var t=new y.Group,e=new d;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var o=t[v],s=this.group,l=t[T](),h=t[N]("lineStyle.normal"),f=t[N]("areaStyle.normal"),d=l.mapArray(l.getItemLayout,!0),p="polar"===o.type,m=this._coordSys,g=this._symbolDraw,y=this._polyline,_=this._polygon,x=this._lineGroup,b=t.get("animation"),w=!f.isEmpty(),M=a(o,l),S=t.get("showSymbol"),C=S&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),A.setItemGraphicEl(e,null))}),S||g.remove(),s.add(x),y&&m.type===o.type?(w&&!_?_=this._newPolygon(d,M,o,b):_&&!w&&(x.remove(_),_=this._polygon=null),x.setClipPath(u(o,!1,t)),S&&g.updateData(l,C),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,M)&&e(this._points,d)||(b?this._updateAnimation(l,M,o,r):(y.setShape({points:d}),_&&_.setShape({points:d,stackedOnPoints:M})))):(S&&g.updateData(l,C),y=this._newPolyline(d,o,b),w&&(_=this._newPolygon(d,M,o,b)),x.setClipPath(u(o,!0,t))),y.useStyle(c[P](h.getLineStyle(),{fill:"none",stroke:l.getVisual("color"),lineJoin:"bevel"}));var z=t.get("smooth");if(z=i(t.get("smooth")),y.setShape({smooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var L=l.stackedOn,k=0;if(_.useStyle(c[P](f.getAreaStyle(),{fill:l.getVisual("color"),opacity:.7,lineJoin:"bevel"})),L){var I=L.hostModel;k=i(I.get("smooth"))}_.setShape({smooth:z,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=o,this._stackedOnPoints=M,this._points=d},highlight:function(t,e,i,n){var r=t[T](),a=o(r,n);if(null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var l=r.getItemLayout(a);s=new p(r,a,i),s[f]=l,s.setZ(t.get(b),t.get("z")),s[E]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else x[G].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[T](),a=o(r,n);if(null!=a&&a>=0){var s=r.getItemGraphicEl(a);s&&(s.__temp?(r.setItemGraphicEl(a,null),this.group.remove(s)):s.downplay())}else x[G].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new _.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new _.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(h)[0];return i&&i.isLabelIgnored?c.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i){var n=this._polyline,r=this._polygon,a=t.hostModel,o=g(this._data,t,this._stackedOnPoints,e,this._coordSys,i);n.shape.points=o.current,y.updateProps(n,{shape:{points:o.next}},a),r&&(r.setShape({points:o.current,stackedOnPoints:o.stackedOnCurrent}),y.updateProps(r,{shape:{points:o.next,stackedOnPoints:o.stackedOnNext}},a));for(var s=[],l=o.status,u=0;u<l[A];u++){var c=l[u].cmd;if("="===c){var h=t.getItemGraphicEl(l[u].idx1);h&&s.push({el:h,ptIdx:u})}}n.animators&&n.animators[A]&&n.animators[0].during(function(){for(var t=0;t<s[A];t++){var e=s[t].el;e.attr(f,n.shape.points[s[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})}),e("echarts/processor/dataSample",[],function(){var t={average:function(t){for(var e=0,i=0,n=0;n<t[A];n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t[A];i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t[A];i++)t[i]>e&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i<t[A];i++)t[i]<e&&(e=t[i]);return e},nearest:function(t){return t[0]}},e=function(t){return Math.round(t[A]/2)};return function(i,n){n.eachSeriesByType(i,function(i){var n=i[T](),r=i.get("sampling"),a=i[v];if("cartesian2d"===a.type&&r){var o=a.getBaseAxis(),s=a.getOtherAxis(o),l=o[m](),u=l[1]-l[0],c=Math.round(n.count()/u);if(c>1){var h;typeof r===F?h=t[r]:typeof r===y&&(h=r),h&&(n=n.downSample(s.dim,1/c,h,e),i.setData(n))}}},this)}}),e("echarts/chart/line/LineSeries",[W,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[z]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear"}})}),e("echarts/layout/points",[W],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[T](),i=t[v];if(i){var n=i[c];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[0/0,0/0]:i.dataToPoint([t,n]),e.setItemLayout(r,a)},!0)}})}}),e("echarts/visual/symbol",[W],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[T](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===y&&r.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r.getItemModel(t),i=e.get("symbol",!0),n=e.get("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/model/Global",[W,H,"../util/model","./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)b.hasClass(i)||("object"==typeof e[i]?t[i]=t[i]?u.merge(t[i],e[i],!1):u.clone(e[i]):null==t[i]&&(t[i]=e[i]))}function i(t){t=t,this.option={},this.option[M]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme.option),u.merge(t,w,!1),this.mergeOption(t)}function n(t,e){u[x](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){var i={};f(e,function(t){var e=t.exist;e&&(i[e.id]=t)}),f(e,function(e){var n=e.option;if(u.assert(!n||null==n.id||!i[n.id]||i[n.id]===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(i[n.id]=e),g(n)){var r=a(t,n,e.exist);e.keyInfo={mainType:t,subType:r}}}),f(e,function(t){var e=t.exist,n=t.option,r=t.keyInfo;if(g(n)){if(r.name=null!=n.name?n.name+"":e?e.name:"\x00-",e)r.id=e.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(i[r.id])}i[r.id]=t}})}function a(t,e,i){var n=e.type?e.type:i?i.subType:b.determineSubType(t,e);return n}function o(t){return p(t,function(t){return t.componentIndex})||[]}function s(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function l(t){if(!t._seriesIndices)throw new Error("Series has not been initialized yet.")}var u=t(H),c=t("../util/model"),h=t("./Model"),f=u.each,d=u.filter,p=u.map,m=u[x],v=u[_],g=u[L],b=t("./Component"),w=t("./globalDefault"),M="\x00_ec_inner",T=h[z]({constructor:T,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new h(i),this._optionManager=n},setOption:function(t,e){u.assert(!(M in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[A]&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var l=c.normalizeToArray(t[e]),h=c.mappingToExists(a[e],l);r(e,h);var d=n(a,s);i[e]=[],a[e]=[],f(h,function(t,n){var r=t.exist,o=t.option;if(u.assert(g(o)||r,"Empty component definition"),o){var s=b.getClass(e,t.keyInfo.subType,!0);r&&r instanceof s?(r.mergeOption(o,this),r.optionUpdated(this)):(r=new s(o,this,this,u[z]({dependentModels:d,componentIndex:n},t.keyInfo)),r.optionUpdated(this))}else r.mergeOption({},this),r.optionUpdated(this);a[e][n]=r,i[e][n]=r.option},this),"series"===e&&(this._seriesIndices=o(a.series))}var i=this.option,a=this._componentsMap,s=[];f(t,function(t,e){null!=t&&(b.hasClass(e)?s.push(e):i[e]=null==i[e]?u.clone(t):u.merge(i[e],t,!0))}),b.topologicalTravel(s,b.getAllClassMainTypes(),e,this)},getOption:function(){var t=u.clone(this.option);return f(t,function(e,i){if(b.hasClass(i)){for(var e=c.normalizeToArray(e),n=e[A]-1;n>=0;n--)c.isIdInner(e[n])&&e[S](n,1);t[i]=e}}),delete t[M],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[A])return[];var o;if(null!=i)m(i)||(i=[i]),o=d(p(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=m(n);o=d(a,function(t){return l&&v(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=m(r);o=d(a,function(t){return u&&v(r,t.name)>=0||!u&&t.name===r})}return s(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t.filter?d(e,t.filter):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(s(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===y)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(u.isString(t))f(n[t],e,i);else if(g(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){l(this),f(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap.series,t,e)
},eachSeriesByType:function(t,e,i){l(this),f(this._seriesIndices,function(n){var r=this._componentsMap.series[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return l(this),u[_](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){l(this);var i=d(this._componentsMap.series,t,e);this._seriesIndices=o(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=o(t.series);var e=[];f(t,function(t,i){e.push(i)}),b.topologicalTravel(e,b.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return T}),e("echarts/ExtensionAPI",[W,H],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(H),n=["getDom","getZr",B,R,"dispatchAction","on","off","getDataURL","getConnectedDataURL",N,"getOption"];return e}),e("echarts/model/OptionManager",[W,H,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e){var i,n,r=[],a=[],o=t.timeline;if(t.baseOption&&(n=t.baseOption),(o||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var l=t.media;c(l,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=o),c([n].concat(r).concat(s.map(a,function(t){return t.option})),function(t){c(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][V]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=f(r,function(t){return t.option&&t.exist?d(t.exist,t.option,!0):t.exist||t.option})}else t[i]=d(n,e,!0)}})}var s=t(H),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[G]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[A]&&(n.timelineOptions=r.timelineOptions),r.mediaList[A]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,h),this._mediaList=f(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[A]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[B](),e=this._api[R](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[A]&&!r)return s;for(var l=0,u=i[A];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[A]&&r&&(o=[-1]),o[A]&&!a(o,this._currentMediaIndices)&&(s=f(o,function(t){return h(-1===t?r.option:i[t].option)})),this._currentMediaIndices=o,s}},e}),e("echarts/CoordinateSystem",[W],function(){function t(){this._coordinateSystems=[]}var e={};return t[G]={constructor:t,create:function(t,i){var n=[];for(var r in e){var a=e[r][I](t,i);a&&(n=n.concat(a))}this._coordinateSystems=n},update:function(t,e){for(var i=this._coordinateSystems,n=0;n<i[A];n++)i[n][k]&&i[n][k](t,e)}},t.register=function(t,i){e[t]=i},t.get=function(t){return e[t]},t}),e("echarts/model/Series",[W,H,"../util/format","../util/model","./Component"],function(t){var e=t(H),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i.addCommas,s=r[z]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i){this[w]=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data)},mergeOption:function(t,i){t=e.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[A];e++)t[e]&&t[e].label&&n.defaultEmphasis(t[e].label,n.LABEL_OPTIONS)},getInitialData:function(){},getData:function(t){return null==t?this._data:this._data.getLinkedData(t)},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},coordDimToDataDim:function(t){return[t]},dataDimToCoordDim:function(t){return t},getBaseAxis:function(){var t=this[v];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,i){var n=this._data,r=this.getRawValue(t),s=e[x](r)?e.map(r,o).join(", "):o(r),l=n.getName(t),u=n.getItemVisual(t,"color"),c='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+u+'"></span>',h=this.name;return"\x00-"===h&&(h=""),i?c+a(this.name)+" : "+s:(h&&a(h)+"<br />")+c+(l?a(l)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getAxisTooltipDataIndex:null});return e.mixin(s,n.dataFormatMixin),s}),e("echarts/model/Component",[W,"./Model",H,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[G].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(H),r=Array[G].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[z]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this.mergeDefaultAndTheme(this.option,this.ecModel)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this.option,t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[G].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[A]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(l,function(t,e,i,r){n[z](this,r),this.uid=a.getUID("componentModel")}),o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/view/Component",[W,"zrender/container/Group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[G]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[G];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[W,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[C](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){if(null!=e.dataIndex){var r=t.getItemGraphicEl(e.dataIndex);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t.getItemGraphicEl(a);i(r,n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[G]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[T](),r,"emphasis")},downplay:function(t,e,i,r){n(t[T](),r,"normal")},remove:function(){this.group.removeAll()},dispose:function(){}};var s=e[G];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/graphic",[W,H,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix","zrender/core/vector","zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return t instanceof L?t:C.lift(t,-.1)}function n(t){if(t.__hoverStlDirty){var n=t.style[o],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[o]=a[o]||(e(n)?i(n):null);var s={};for(var l in a)a.hasOwnProperty(l)&&(s[l]=t.style[l]);t.__normalStl=s,t.__hoverStlDirty=!1}}function r(t){t.__isHover||(n(t),t.setStyle(t.__hoverStl),t.z2+=1,t.__isHover=!0)}function c(t){if(t.__isHover){var e=t.__normalStl;e&&t.setStyle(e),t.z2-=1,t.__isHover=!1}}function h(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&r(t)}):r(t)}function d(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t)}):c(t)}function p(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&n(t)}function m(){!this.__isEmphasis&&h(this)}function v(){!this.__isEmphasis&&d(this)}function g(){this.__isEmphasis=!0,h(this)}function x(){this.__isEmphasis=!1,d(this)}function b(t,e,i,n,r,a){typeof r===y&&(a=r,r=null);var o=t?"Update":"",s=n&&n.getShallow("animationDuration"+o),l=n&&n.getShallow("animationEasing"+o),u=n&&n.getShallow("animationDelay"+o);typeof u===y&&(u=u(r)),n&&n.getShallow("animation")?e.animateTo(i,s,u||0,l,a):(e.attr(i),a&&a())}var w=t(H),M=t("zrender/tool/path"),T=Math.round,S=t("zrender/graphic/Path"),C=t("zrender/tool/color"),A=t("zrender/core/matrix"),P=t("zrender/core/vector"),L=t("zrender/graphic/Gradient"),k={};return k.Group=t("zrender/container/Group"),k.Image=t("zrender/graphic/Image"),k.Text=t("zrender/graphic/Text"),k.Circle=t("zrender/graphic/shape/Circle"),k.Sector=t("zrender/graphic/shape/Sector"),k.Ring=t("zrender/graphic/shape/Ring"),k.Polygon=t("zrender/graphic/shape/Polygon"),k.Polyline=t("zrender/graphic/shape/Polyline"),k.Rect=t("zrender/graphic/shape/Rect"),k.Line=t("zrender/graphic/shape/Line"),k.BezierCurve=t("zrender/graphic/shape/BezierCurve"),k.Arc=t("zrender/graphic/shape/Arc"),k.CompoundPath=t("zrender/graphic/CompoundPath"),k.LinearGradient=t("zrender/graphic/LinearGradient"),k.RadialGradient=t("zrender/graphic/RadialGradient"),k.BoundingRect=t("zrender/core/BoundingRect"),k.extendShape=function(t){return S[z](t)},k.extendPath=function(t,e){return M.extendFromString(t,e)},k.makePath=function(t,e,i,n){var r=M.createFromString(t,e),a=r[u]();if(i){var o=a.width/a[D];if(n===l){var s,c=i[D]*o;c<=i.width?s=i[D]:(c=i.width,s=c/o);var h=i.x+i.width/2,f=i.y+i[D]/2;i.x=h-c/2,i.y=f-s/2,i.width=c,i[D]=s}this.resizePath(r,i)}return r},k.mergePath=M.mergePath,k.resizePath=function(t,e){if(t[s]){var i=t[u](),n=i.calculateTransform(e);t[s](n)}},k.subPixelOptimizeLine=function(t){var e=k.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return T(2*i.x1)===T(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),T(2*i.y1)===T(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},k.subPixelOptimizeRect=function(t){var e=k.subPixelOptimize,i=t.shape,n=t.style.lineWidth,r=i.x,a=i.y,o=i.width,s=i[D];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[D]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},k.subPixelOptimize=function(t,e,i){var n=T(2*t);return(n+T(e))%2===0?n/2:(n+(i?1:-1))/2},k.setHoverStyle=function(t,e){"group"===t.type?t.traverse(function(t){"group"!==t.type&&p(t,e)}):p(t,e),t.on("mouseover",m).on("mouseout",v),t.on("emphasis",g).on("normal",x)},k.setText=function(t,e,i){var n=e.getShallow(f)||"inside",r=n[_]("inside")>=0?"white":i,o=e[N](a);w[z](t,{textDistance:e.getShallow("distance")||5,textFont:o.getFont(),textPosition:n,textFill:o.getTextColor()||r})},k.updateProps=w.curry(b,!0),k.initProps=w.curry(b,!1),k.getTransform=function(t,e){for(var i=A.identity([]);t&&t!==e;)A.mul(i,t.getLocalTransform(),i),t=t.parent;return i},k[s]=function(t,e,i){return i&&(e=A.invert([],e)),P[s]([],t,e)},k.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===O?r:0];return a=k[s](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?O:"top"},k}),e("zrender/zrender",[W,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete u[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n.canvasSupported,l={canvas:t("./Painter")},u={},c={};c.version="3.1.0",c.init=function(t,e){var n=new h(i(),t,e);return u[n.id]=n,n},c.dispose=function(t){if(t)t.dispose();else{for(var e in u)u[e].dispose();u={}}return c},c.getInstance=function(t){return u[t]},c.registerPainter=function(t,e){l[t]=e};var h=function(t,e,i){i=i||{},this.dom=e,this.id=t;var u=this,c=new a,h=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&l[h]||(h="canvas");var f=new l[h](e,c,i);this.storage=c,this.painter=f,n.node||(this.handler=new r(f.getViewportRoot(),c,f)),this.animation=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately()}}}),this.animation.start(),this._needsRefresh;var d=c.delFromMap,p=c.addToMap;c.delFromMap=function(t){var e=c.get(t);d.call(c,t),e&&e.removeSelfFromZr(u)},c.addToMap=function(t){p.call(c,t),t.addSelfToZr(u)}};return h[G]={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.resize(),this.handler&&this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter[B]()},getHeight:function(){return this.painter[R]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler[C](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)}},c}),e("zrender/tool/color",[W],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 i(t){return 0>t?0:t>1?1:t}function n(e){return t(e[A]&&"%"===e.charAt(e[A]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[A]&&"%"===t.charAt(t[A]-1)?parseFloat(t)/100:parseFloat(t))}function a(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function o(t,e,i){return t+(e-t)*i}function s(t){if(t){t+="";var e=t.replace(/ /g,"")[V]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[_]("("),a=e[_](")");if(-1!==i&&a+1===e[A]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[A])return;u=r(s.pop());case"rgb":if(3!==s[A])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[A])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[A])return;return l(s);default:return}}}else{if(4===e[A]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[A]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,u=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[A]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;n===s?e=f-h:r===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,u];return null!=t[3]&&d.push(t[3]),d}}function c(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return v(i,4===i[A]?"rgba":"rgb")}}function h(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function f(e,i,n){if(i&&i[A]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[A]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],u=i[s],c=r-a;return n[0]=t(o(l[0],u[0],c)),n[1]=t(o(l[1],u[1],c)),n[2]=t(o(l[2],u[2],c)),n[3]=t(o(l[3],u[3],c)),n}}function d(e,n,r){if(n&&n[A]&&e>=0&&1>=e){var a=e*(n[A]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),f=a-l,d=v([t(o(c[0],h[0],f)),t(o(c[1],h[1],f)),t(o(c[2],h[2],f)),i(o(c[3],h[3],f))],"rgba");return r?{color:d,leftIndex:l,rightIndex:u,value:a}:d}}function p(t,i,n,a){return t=s(t),t?(t=u(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),v(l(t),"rgba")):void 0}function m(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),v(t,"rgba")):void 0}function v(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var g={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:c,toHex:h,fastMapToColor:f,mapToColor:d,modifyHSL:p,modifyAlpha:m,stringify:v}}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),u=l&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),f=t.match(/(BlackBerry).*Version\/([\d.]+)/),p=t.match(/(BB10).*Version\/([\d.]+)/),m=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),g=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),y=t.match(/Firefox\/([\d.]+)/),_=n&&t.match(/Mobile\//)&&!g,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!g,b=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),w=t.match(/Edge\/([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2].replace(/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2].replace(/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3].replace(/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),u&&(e.touchpad=!0),f&&(e.blackberry=!0,e.version=f[2]),p&&(e.bb10=!0,e.version=p[2]),m&&(e.rimtabletos=!0,e.version=m[2]),v&&(i.playbook=!0),c&&(e.kindle=!0,e.version=c[1]),h&&(i.silk=!0,i.version=h[1]),!h&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),g&&(i.chrome=!0,i.version=g[1]),y&&(i.firefox=!0,i.version=y[1]),b&&(i.ie=!0,i.version=b[1]),_&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(i.webview=!0),b&&(i.ie=!0,i.version=b[1]),w&&(i.edge=!0,i.version=w[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||y&&t.match(/Tablet/)||b&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||f||p||g&&t.match(/Android/)||g&&t.match(/CriOS\/([\d.]+)/)||y&&t.match(/Mobile/)||b&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document.createElement("canvas")[d]?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===r?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/mixin/Eventful",[W,n],function(t){var e=Array[G].slice,i=t(n),r=i[_],a=function(){this._$handlers={}};return a[G]={constructor:a,one:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),r(n[t],t)>=0?this:(n[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][A]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][A];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][A]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[A];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[A],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[S](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[A];n>4&&(i=e.call(i,1,i[A]-1));for(var r=i[i[A]-1],a=this._$handlers[t],o=a[A],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[S](s,1),o--):s++}}return this}},a}),e("echarts/loading/default",[W,"../util/graphic",H],function(t){var e=t("../util/graphic"),i=t(H),n=Math.PI;return function(t,r){r=r||{},i[P](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[b],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[b],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[b],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l.resize=function(){var e=t[B]()/2,i=t[R]()/2;o.setShape({cx:e,cy:i});var n=o.shape.r;s.setShape({x:e-n,y:i-n,width:2*n,height:2*n}),a.setShape({x:0,y:0,width:t[B](),height:t[R]()})},l.resize(),l}}),e("echarts/visual/seriesColor",[W,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,"normal","color"],a=n.get("color"),o=t[T](),s=t.get(r)||a[t[w]%a[A]];o.setVisual("color",s),n.isSeriesFiltered(t)||(typeof s!==y||s instanceof e||o.each(function(e){o.setItemVisual(e,"color",s(t.getDataParams(e)))}),o.each(function(t){var e=o.getItemModel(t),i=e.get(r,!0);null!=i&&o.setItemVisual(t,"color",i)}))}t?n.eachSeriesByType(t,r):n.eachSeries(r)}}),e("echarts/preprocessor/backwardCompat",[W,H,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[A]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[A]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(H),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",O]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=r.each;return function(t){u(t.series,function(t){if(r[L](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var u=0;u<l[A];u++)if(l[u]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(r[x](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/util/number",[W],function(){function t(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case l:case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case O:e="100%"}return typeof e===F?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t){return+(+t).toFixed(10)},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,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);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>-i&&i>t},e.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===F?t.replace(/-/g,"/"):Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?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/util/format",[W,H,"./number"],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[A]>1?"."+t[1]:""))}function i(t){return t[V]().replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[A];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).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){u[x](e)||(e=[e]);var i=e[A];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[A];r++){var o=h[r];t=t.replace(a(o),a(o,0))}for(var s=0;i>s;s++)for(var l=0;l<n[A];l++)t=t.replace(a(h[l],s),e[s][n[l]]);return t}function s(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=c.parseDate(e),n=i.getFullYear(),r=i.getMonth()+1,a=i.getDate(),o=i.getHours(),s=i.getMinutes(),u=i.getSeconds();return t=t.replace("MM",l(r))[V]().replace("yyyy",n).replace("yy",n%100).replace("dd",l(a)).replace("d",a).replace("hh",l(o)).replace("h",o).replace("mm",l(s)).replace("m",s).replace("ss",l(u)).replace("s",u)}function l(t){return 10>t?"0"+t:t}var u=t(H),c=t("./number"),h=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o,formatTime:s}}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===r?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;
return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("zrender/core/vector",[],function(){var t=typeof Float32Array===r?Array:Float32Array,e={create:function(e,i){var n=new t(2);return n[0]=e||0,n[1]=i||0,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[A]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/coord/cartesian/Grid",[W,"exports","../../util/layout","../../coord/axisHelper",H,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i.getComponent("grid",t.get("gridIndex"))===e}function n(t){var e,i=t.model,n=i.getFormattedLabels(),r=1,a=n[A];a>40&&(r=Math.ceil(a/40));for(var o=0;a>o;o+=r)if(!t.isLabelIgnored(o)){var s=i.getTextRect(n[o]);e?e.union(s):e=s}return e}function r(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function a(t,e){var i=t[m](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var o=t("../../util/layout"),s=t("../../coord/axisHelper"),l=t(H),u=t("./Cartesian2D"),d=t("./Axis2D"),p=l.each,g=s.ifAxisCrossZero,y=s.niceScaleExtent;t("./GridModel");var _=r[G];return _.type="grid",_.getRect=function(){return this._rect},_[k]=function(t,e){function n(t){var e=r[t];for(var n in e){var a=e[n];if(a&&(a.type===i||!g(a)))return!0}return!1}var r=this._axesMap;this._updateScale(t,this._model),p(r.x,function(t){y(t,t.model)}),p(r.y,function(t){y(t,t.model)}),p(r.x,function(t){n("y")&&(t.onZero=!1)}),p(r.y,function(t){n("x")&&(t.onZero=!1)}),this.resize(this._model,e)},_.resize=function(t,e){function i(){p(s,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r[D]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),a(t,e?r.x:r.y)})}var r=o.getLayoutRect(t.getBoxLayoutParams(),{width:e[B](),height:e[R]()});this._rect=r;var s=this._axesList;i(),t.get("containLabel")&&(p(s,function(t){if(!t.model.get("axisLabel.inside")){var e=n(t);if(e){var i=t.isHorizontal()?D:"width",a=t.model.get("axisLabel.margin");r[i]-=e[i]+a,"top"===t[f]?r.y+=e[D]+a:"left"===t[f]&&(r.x+=e.width+a)}}}),i())},_.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)return i[n];return i[e]}},_.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},_._initCartesian=function(t,n){function r(r){return function(u,c){if(e(u,t,n)){var h=u.get(f);"x"===r?("top"!==h&&h!==O&&(h=O),a[h]&&(h="top"===h?O:"top")):("left"!==h&&"right"!==h&&(h="left"),a[h]&&(h="left"===h?"right":"left")),a[h]=!0;var p=new d(r,s.createScaleByModel(u),[0,0],u.get("type"),h),m=p.type===i;p.onBand=m&&u.get("boundaryGap"),p.inverse=u.get("inverse"),p.onZero=u.get("axisLine.onZero"),u.axis=p,p.model=u,p.index=c,this._axesList.push(p),o[r][c]=p,l[r]++}}}var a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},l={x:0,y:0};return n.eachComponent("xAxis",r("x"),this),n.eachComponent("yAxis",r("y"),this),l.x&&l.y?(this._axesMap=o,void p(o.x,function(t,e){p(o.y,function(i,n){var r="x"+e+"y"+n,a=new u(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},_._updateScale=function(t,i){function n(t,e,i){p(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==h))})}l.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if("cartesian2d"===r.get(v)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t.getComponent("xAxis",a),l=t.getComponent("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var u=this.getCartesian(a,o),c=r[T](),h=u.getAxis("x"),f=u.getAxis("y");"list"===c.type&&(n(c,h,r),n(c,f,r))}},this)},r[I]=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e),n[v]=o,i.push(o)}),t.eachSeries(function(e){if("cartesian2d"===e.get(v)){var n=e.get("xAxisIndex"),r=t.getComponent("xAxis",n),a=i[r.get("gridIndex")];e[v]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},r[c]=u[G][c],t("../../CoordinateSystem").register("cartesian2d",r),r}),e("echarts/component/axis",[W,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/scale/Scale",[W,"../util/clazz"],function(t){function e(){this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t("../util/clazz"),n=e[G];return n.parse=function(t){return t},n[p]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[m]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[A];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/scale/Interval",[W,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[z]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[G].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,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[A]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[A];i++)t.push(this.getLabel(e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||5;var i=this._extent,n=i[1]-i[0];if(isFinite(n)){0>n&&(n=-n,i.reverse());var o=e.nice(n/t,!0),s=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},niceExtent:function(t,i,n){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 l=o[1]-o[0];isFinite(l)||(o[0]=0,o[1]=1),this.niceTicks(t);var u=this._interval;i||(o[0]=e.round(r(o[0]/u)*u)),n||(o[1]=e.round(a(o[1]/u)*u))}});return o[I]=function(){return new o},o}),e("echarts/component/tooltip/TooltipModel",[W,"../../echarts"],function(t){t("../../echarts").extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("zrender/graphic/Gradient",[W],function(){var t=function(t){this.colorStops=t||[]};return t[G]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("echarts/util/model",[W,"./format","./number",H],function(t){var e=t("./format"),i=t("./number"),n=t(H),r=["x","y","z","radius","angle"],o={};return o.createNameEach=function(t,e){t=t.slice();var i=n.map(t,o.capitalFirst);e=(e||[]).slice();var r=n.map(e,o.capitalFirst);return function(a,o){n.each(t,function(t,n){for(var s={name:t,capital:i[n]},l=0;l<e[A];l++)s[e[l]]=t+r[l];a.call(o,s)})}},o.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},o.eachAxisDim=o.createNameEach(r,["axisIndex","axis","index"]),o.normalizeToArray=function(t){return n[x](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){function r(t,e){return n[_](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(i){function n(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(n);while(l);return s}},o.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},r=t.normal=t.normal||{};n.each(e,function(t){var e=n.retrieve(i[t],r[t]);null!=e&&(i[t]=e)})}},o.LABEL_OPTIONS=[f,"show",a,"distance","formatter"],o.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},o.converDataValue=function(t,e){var n=e&&e.type;return n===h?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)},o.dataFormatMixin={getDataParams:function(t,e){var i=this[T](e),n=this[w],r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,r,a){i=i||"normal";var o=this[T](r),s=o.getItemModel(t),l=this.getDataParams(t,r);null!=a&&n[x](l.value)&&(l.value=l.value[a]);var u=s.get(["label",i,"formatter"]);return typeof u===y?(l.status=i,u(l)):typeof u===F?e.formatTpl(u,l):void 0},getRawValue:function(t,e){var i=this[T](e),r=i.getRawDataItem(t);return null!=r?n[L](r)&&!n[x](r)?r.value:r:void 0},formatTooltip:n.noop},o.mappingToExists=function(t,e){e=(e||[]).slice();var i=n.map(t||[],function(t){return{exist:t}});return n.each(e,function(t,r){if(n[L](t))for(var a=0;a<i[A];a++){var s=i[a].exist;if(!i[a].option&&(null!=t.id&&s.id===t.id+""||null!=t.name&&!o.isIdInner(t)&&!o.isIdInner(s)&&s.name===t.name+"")){i[a].option=t,e[r]=null;break}}}),n.each(e,function(t){if(n[L](t)){for(var e=0;e<i[A];e++){var r=i[e].exist;if(!i[e].option&&!o.isIdInner(r)&&null==t.id){i[e].option=t;break}}e>=i[A]&&i.push({option:t})}}),i},o.isIdInner=function(t){return n[L](t)&&t.id&&0===(t.id+"")[_]("\x00_ec_\x00")},o}),e("echarts/component/tooltip/TooltipView",[W,"./TooltipContent","../../util/graphic",H,"../../util/format","../../util/number","zrender/core/env","../../echarts"],function(t){function e(t,e){if(!t||!e)return!1;var i=L.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function n(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function r(t,e,i,n){return{x:t,y:e,width:i,height:n}}function l(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function h(t,e,i,n,r){var a=i.clientWidth,o=i.clientHeight,s=20;return t+a+s>n?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function d(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[D];switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case O:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function p(t,e,i,n,r,a,o){var l=o[B](),c=o[R](),f=a&&a[u]().clone();if(a&&f[s](a[q]),typeof t===y&&(t=t([e,i],r,n.el,f)),P[x](t))e=I(t[0],l),i=I(t[1],c);else if(typeof t===F&&a){var p=d(t,f,n.el);e=p[0],i=p[1]}else{var p=h(e,i,n.el,l,c);e=p[0],i=p[1]}n.moveTo(e,i)}function g(t){var e=t[v],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"single"!==e.type||"item"===i)}var S=t("./TooltipContent"),A=t("../../util/graphic"),P=t(H),z=t("../../util/format"),L=t("../../util/number"),I=L.parsePercent,E=t("zrender/core/env");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!E.node){var i=new S(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!E.node){this.group.removeAll(),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[k](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;if(r&&this.group.add(r),null!=this._lastX&&null!=this._lastY){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){a._manuallyShowTip({x:a._lastX,y:a._lastY})})}var o=this._api.getZr();o.off("click",this._tryShow),o.off("mousemove",this._mousemove),o.off("mouseout",this._hide),o.off("globalout",this._hide),"click"===t.get("triggerOn")?o.on("click",this._tryShow,this):(o.on("mousemove",this._mousemove,this),o.on("mouseout",this._hide,this),o.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),i=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){i._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[w],n=t.dataIndex,r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e.eachSeries(function(t){g(t)&&!r&&(r=t)}),r){var o=r[T]();null==n&&(n=o.indexOfName(t.name));var l,h,f=o.getItemGraphicEl(n),d=r[v];if(d&&d.dataToPoint){var p=d.dataToPoint(o.getValues(P.map(d[c],function(t){return r.coordDimToDataDim(t)[0]}),n,!0));l=p&&p[0],h=p&&p[1]}else if(f){var m=f[u]().clone();m[s](f[q]),l=m.x+m.width/2,h=m.y+m[D]/2}null!=l&&null!=h&&this._tryShow({offsetX:l,offsetY:h,target:f,event:{}})}}else{var f=a.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,target:f,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(g(t)){var e,n,r=t[v];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"single"===r.type?(e=r.getAxis(),n=e.dim+e.type):(e=r.getBaseAxis(),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n].series.push(t)}},this),i},_tryShow:function(t){var e=t[M],i=this._tooltipModel,n=i.get(C),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e.dataIndex){var o=e.dataModel||r.getSeriesByIndex(e[w]),s=e.dataIndex,l=o[T]().getItemModel(s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,e.dataType,t)),a.dispatchAction({type:"showTip",from:this.uid,dataIndex:e.dataIndex,seriesIndex:e[w]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){var r=t[N]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[M];if(o&&null!=o.dataIndex){var s=i.getSeriesByIndex(o[w]),l=o.dataIndex;this._showItemTooltipContent(s,l,o.dataType,n)}}this._showAxisPointer();var u=!0;P.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n.offsetX,n.offsetY];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var l=o[c],h=o.pointToData(s,!0);s=o.dataToPoint(h);var f=o.getBaseAxis(),d=r.get("axis");"auto"===d&&(d=f.dim);var p=!1,m=this._lastHover;if("cross"===a)e(m.data,h)&&(p=!0),m.data=h;else{var v=P[_](l,d);m.data===h[v]&&(p=!0),m.data=h[v]}"cartesian2d"!==o.type||p?"polar"!==o.type||p?"single"!==o.type||p||this._showSinglePointer(r,o,d,s):this._showPolarPointer(r,o,d,s):this._showCartesianPointer(r,o,d,s),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(o,t.series,s,h,p)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,i,a){function o(i,r,a){var o="x"===i?n(r[0],a[0],r[0],a[1]):n(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,i,o);c?A.updateProps(s,{shape:o},t):s.attr({shape:o})}function s(i,n,a){var o=e.getAxis(i),s=o.getBandWidth(),u=a[1]-a[0],h="x"===i?r(n[0]-s/2,a[0],s,u):r(a[0],n[1]-s/2,u,s),f=l._getPointerElement(e,t,i,h);c?A.updateProps(f,{shape:h},t):f.attr({shape:h})}var l=this,u=t.get("type"),c="cross"!==u;if("cross"===u)o("x",a,e.getAxis("y").getGlobalExtent()),o("y",a,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var h=e.getAxis("x"===i?"y":"x"),f=h.getGlobalExtent();"cartesian2d"===e.type&&("line"===u?o:s)(i,a,f)}},_showSinglePointer:function(t,e,i,r){function a(i,r,a){var s=e.getAxis(),u=s.orient,c="horizontal"===u?n(r[0],a[0],r[0],a[1]):n(a[0],r[1],a[1],r[1]),h=o._getPointerElement(e,t,i,c);l?A.updateProps(h,{shape:c},t):h.attr({shape:c})}var o=this,s=t.get("type"),l="cross"!==s,u=e.getRect(),c=[u.y,u.y+u[D]];a(i,r,c)},_showPolarPointer:function(t,e,i,r){function a(i,r,a){var o,l=e.pointToCoord(r);if("angle"===i){var u=e.coordToPoint([a[0],l[1]]),c=e.coordToPoint([a[1],l[1]]);o=n(u[0],u[1],c[0],c[1])}else o={cx:e.cx,cy:e.cy,r:l[0]};var h=s._getPointerElement(e,t,i,o);f?A.updateProps(h,{shape:o},t):h.attr({shape:o})}function o(i,n,r){var a,o=e.getAxis(i),u=o.getBandWidth(),c=e.pointToCoord(n),h=Math.PI/180;a="angle"===i?l(e.cx,e.cy,r[0],r[1],(-c[1]-u/2)*h,(-c[1]+u/2)*h):l(e.cx,e.cy,c[0]-u/2,c[0]+u/2,0,2*Math.PI);var d=s._getPointerElement(e,t,i,a);f?A.updateProps(d,{shape:a},t):d.attr({shape:a})}var s=this,u=t.get("type"),c=e.getAngleAxis(),h=e.getRadiusAxis(),f="cross"!==u;if("cross"===u)a("angle",r,h[m]()),a("radius",r,c[m]()),this._updateCrossText(e,r,t);else{var d=e.getAxis("radius"===i?"angle":"radius"),p=d[m]();("line"===u?a:o)(i,r,p)}},_updateCrossText:function(t,e,n){var r=n[N]("crossStyle"),o=r[N](a),s=this._tooltipModel,l=this._crossText;l||(l=this._crossText=new A.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(l));var u=t.pointToData(e),h=t[c];u=P.map(u,function(e,n){var r=t.getAxis(h[n]);return e=r.type===i||"time"===r.type?r.scale.getLabel(e):z.addCommas(e.toFixed(r.getPixelPrecision()))}),l.setStyle({fill:o.getTextColor()||r.get("color"),textFont:o.getFont(),text:u.join(", "),x:e[0]+5,y:e[1]-5}),l.z=s.get("z"),l[b]=s.get(b)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),s=r.get(b),l=this._axisPointers,u=t.name;if(l[u]=l[u]||{},l[u][i])return l[u][i];var c=e.get("type"),h=e[N](c+"Style"),f="shadow"===c,d=h[f?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?f?"Sector":"radius"===i?"Circle":"Line":f?"Rect":"Line";f?d[o]=null:d.fill=null;var m=l[u][i]=new A[p]({style:d,z:a,zlevel:s,silent:!0,shape:n});return this.group.add(m),m},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,s=t.getBaseAxis(),l=P.map(e,function(t){return{seriesIndex:t[w],dataIndex:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(s.dim),n,s):t[T]().indexOfNearest(t.coordDimToDataDim(s.dim)[0],n["x"===s.dim||"radius"===s.dim?0:1])}}),u=this._lastHover,c=this._api;if(u.payloadBatch&&!r&&c.dispatchAction({type:"downplay",batch:u.payloadBatch}),r||(c.dispatchAction({type:"highlight",batch:l}),u.payloadBatch=l),c.dispatchAction({type:"showTip",dataIndex:l[0].dataIndex,seriesIndex:l[0][w],from:this.uid}),s&&a.get("showContent")&&a.get("show")){var h,d=a.get("formatter"),m=a.get(f),v=P.map(e,function(t,e){return t.getDataParams(l[e].dataIndex)});o.show(a);var g=l[0].dataIndex;if(!r){if(this._ticket="",d){if(typeof d===F)h=z.formatTpl(d,v);else if(typeof d===y){var _=this,x="axis_"+t.name+"_"+g,b=function(t,e){t===_._ticket&&(o.setContent(e),p(m,i[0],i[1],o,v,null,c))};_._ticket=x,h=d(v,x,b)}}else{var M=e[0][T]().getName(g);h=(M?M+"<br />":"")+P.map(e,function(t,e){return t.formatTooltip(l[e].dataIndex,!0)}).join("<br />")}o.setContent(h)}p(m,i[0],i[1],o,v,null,c)}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[T](i),o=a.getItemModel(e),s=this._tooltipModel,l=this._tooltipContent,u=o[N]("tooltip");if(u.parentModel?u.parentModel.parentModel=s:u.parentModel=this._tooltipModel,u.get("showContent")&&u.get("show")){var c,h=u.get("formatter"),d=u.get(f),m=t.getDataParams(e,i);if(h){if(typeof h===F)c=z.formatTpl(h,m);else if(typeof h===y){var v=this,g="item_"+t.name+"_"+e,_=function(t,e){t===v._ticket&&(l.setContent(e),p(d,n.offsetX,n.offsetY,l,m,n[M],r))};v._ticket=g,c=h(m,g,_)}}else c=t.formatTooltip(e,!1,i);l.show(u),l.setContent(c),p(d,n.offsetX,n.offsetY,l,m,n[M],r)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&P.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&P.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!E.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._mousemove),i.off("mouseout",this._hide),i.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("echarts/model/Model",[W,H,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i,n){this.parentModel=e,this.ecModel=i,this.option=t,this.init&&(arguments[A]<=4?this.init(t,e,i,n):this.init.apply(this,arguments))}var i=t(H),n=t("../util/clazz");e[G]={constructor:e,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){if(!t)return this.option;typeof t===F&&(t=t.split("."));for(var i=this.option,n=this.parentModel,r=0;r<t[A]&&(!t[r]||(i=i&&"object"==typeof i?i[t[r]]:null,null!=i));r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this.option,n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r.getShallow(t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[N](t),this.ecModel);return a},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this.option))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==r&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}}),e("zrender/tool/path",[W,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,u,d){var m=l*(p/180),y=f(m)*(t-i)/2+h(m)*(e-n)/2,_=-1*h(m)*(t-i)/2+f(m)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=c(x),s*=c(x));var b=(r===a?-1:1)*c((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,T=(t+i)/2+f(m)*w-h(m)*M,S=(e+n)/2+h(m)*w+f(m)*M,C=g([1,0],[(y-w)/o,(_-M)/s]),A=[(y-w)/o,(_-M)/s],P=[(-1*y-w)/o,(-1*_-M)/s],z=g(A,P);v(A,P)<=-1&&(z=p),v(A,P)>=1&&(z=0),0===a&&z>0&&(z-=2*p),1===a&&0>z&&(z+=2*p),d.addData(u,T,S,o,s,C,z,m,a)}function i(t){if(!t)return[];var i,n=t.replace(/-/g," -").replace(/  /g," ").replace(/ /g,",").replace(/,,/g,",");for(i=0;i<u[A];i++)n=n.replace(new RegExp(u[i],"g"),"|"+u[i]);var r,o=n.split("|"),s=0,l=0,c=new a,h=a.CMD;for(i=1;i<o[A];i++){var f,d=o[i],p=d.charAt(0),m=0,v=d.slice(1).replace(/e,-/g,"e-").split(",");v[A]>0&&""===v[0]&&v.shift();for(var g=0;g<v[A];g++)v[g]=parseFloat(v[g]);for(;m<v[A]&&!isNaN(v[m])&&!isNaN(v[0]);){var y,_,x,b,w,M,T,S=s,C=l;switch(p){case"l":s+=v[m++],l+=v[m++],f=h.L,c.addData(f,s,l);break;case"L":s=v[m++],l=v[m++],f=h.L,c.addData(f,s,l);break;case"m":s+=v[m++],l+=v[m++],f=h.M,c.addData(f,s,l),p="l";break;case"M":s=v[m++],l=v[m++],f=h.M,c.addData(f,s,l),p="L";break;case"h":s+=v[m++],f=h.L,c.addData(f,s,l);break;case"H":s=v[m++],f=h.L,c.addData(f,s,l);break;case"v":l+=v[m++],f=h.L,c.addData(f,s,l);break;case"V":l=v[m++],f=h.L,c.addData(f,s,l);break;case"C":f=h.C,c.addData(f,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),s=v[m-2],l=v[m-1];break;case"c":f=h.C,c.addData(f,v[m++]+s,v[m++]+l,v[m++]+s,v[m++]+l,v[m++]+s,v[m++]+l),s+=v[m-2],l+=v[m-1];break;case"S":y=s,_=l;var P=c.len(),z=c.data;r===h.C&&(y+=s-z[P-4],_+=l-z[P-3]),f=h.C,S=v[m++],C=v[m++],s=v[m++],l=v[m++],c.addData(f,y,_,S,C,s,l);break;case"s":y=s,_=l;var P=c.len(),z=c.data;r===h.C&&(y+=s-z[P-4],_+=l-z[P-3]),f=h.C,S=s+v[m++],C=l+v[m++],s+=v[m++],l+=v[m++],c.addData(f,y,_,S,C,s,l);break;case"Q":S=v[m++],C=v[m++],s=v[m++],l=v[m++],f=h.Q,c.addData(f,S,C,s,l);break;case"q":S=v[m++]+s,C=v[m++]+l,s+=v[m++],l+=v[m++],f=h.Q,c.addData(f,S,C,s,l);break;case"T":y=s,_=l;var P=c.len(),z=c.data;r===h.Q&&(y+=s-z[P-4],_+=l-z[P-3]),s=v[m++],l=v[m++],f=h.Q,c.addData(f,y,_,s,l);break;case"t":y=s,_=l;var P=c.len(),z=c.data;r===h.Q&&(y+=s-z[P-4],_+=l-z[P-3]),s+=v[m++],l+=v[m++],f=h.Q,c.addData(f,y,_,s,l);break;case"A":x=v[m++],b=v[m++],w=v[m++],M=v[m++],T=v[m++],S=s,C=l,s=v[m++],l=v[m++],f=h.A,e(S,C,s,l,M,T,x,b,w,f,c);break;case"a":x=v[m++],b=v[m++],w=v[m++],M=v[m++],T=v[m++],S=s,C=l,s+=v[m++],l+=v[m++],f=h.A,e(S,C,s,l,M,T,x,b,w,f,c)}}("z"===p||"Z"===p)&&(f=h.Z,c.addData(f)),r=f}return c.toStatic(),c}function n(t,e){var n,r=i(t);return e=e||{},e.buildPath=function(t){t.setData(r.data),n&&o(t,n);var e=t[d]();e&&t.rebuildPath(e)},e[s]=function(t){n||(n=l[I]()),l.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),l=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,f=Math.cos,p=Math.PI,m=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},v=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(m(t)*m(e))},g=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(v(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[z](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[A];for(n=0;o>n;n++)i=t[n],i.__dirty&&i.buildPath(i.path,i.shape),a.push(i.path);var s=new r(e);return s.buildPath=function(t){t.appendPath(a);var e=t[d]();e&&t.rebuildPath(e)},s}}}),e("zrender/container/Group",[W,n,"../Element","../core/BoundingRect"],function(t){var e=t(n),i=t("../Element"),r=t("../core/BoundingRect"),a=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return a[G]={constructor:a,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[A];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[A]},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i[_](e);n>=0&&(i[S](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,r=this._children,o=e[_](r,t);return 0>o?this:(r[S](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[A];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),t.parent=null;return i[A]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[A];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[A];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[A];e++){var i=this._children[e];t.addToMap(i),i instanceof a&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[A];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof a&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new r(0,0,0,0),n=t||this._children,a=[],o=0;o<n[A];o++){var l=n[o];if(!l[E]&&!l.invisible){var c=l[u](),h=l.getLocalTransform(a);h?(i.copy(c),i[s](h),e=e||i.clone(),e.union(i)):(e=e||c.clone(),e.union(c))}}return e||i}},e[g](a,i),a}),e("zrender/graphic/Path",[W,"./Displayable",n,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[o];return null!=e&&"none"!==e&&t.lineWidth>0}function r(t){a.call(this,t),this.path=new l}var a=t("./Displayable"),s=t(n),l=t("../core/PathProxy"),c=t("../contain/path"),h=(t("./Gradient"),Math.abs);return r[G]={constructor:r,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var n=this.style,r=this.path,a=i(n),s=e(n),l=s&&!!n.fill.colorStops,c=a&&!!n[o].colorStops;if(n.bind(t,this),this.setTransform(t),this.__dirtyPath){var h=this[u]();l&&(this._fillGradient=n.getGradient(t,n.fill,h)),c&&(this._strokeGradient=n.getGradient(t,n[o],h))}l&&(t.fillStyle=this._fillGradient),c&&(t.strokeStyle=this._strokeGradient);var f=n.lineDash,d=n.lineDashOffset,p=!!t.setLineDash,m=this.getGlobalScale();r.setScale(m[0],m[1]),this.__dirtyPath||f&&!p&&a?(r=this.path.beginPath(t),f&&!p&&(r.setLineDash(f),r.setLineDashOffset(d)),this.buildPath(r,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),s&&r.fill(t),f&&p&&(t.setLineDash(f),t.lineDashOffset=d),a&&r[o](t),null!=n.text&&this.drawRectText(t,this[u]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,n=this.style,r=!t;if(r){var a=this.path;
this.__dirtyPath&&(a.beginPath(),this.buildPath(a,this.shape)),t=a[u]()}if(this._rect=t,i(n)){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||r){o.copy(t);var s=n.lineWidth,l=n.strokeNoScale?this.getLineScale():1;e(n)||(s=Math.max(s,this.strokeContainThreshold)),l>1e-10&&(o.width+=s/l,o[D]+=s/l,o.x-=s/l/2,o.y-=s/l/2)}return o}return t},contain:function(t,n){var r=this.transformCoordToLocal(t,n),a=this[u](),o=this.style;if(t=r[0],n=r[1],a[p](t,n)){var s=this.path.data;if(i(o)){var l=o.lineWidth,h=o.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(e(o)||(l=Math.max(l,this.strokeContainThreshold)),c.containStroke(s,l/h,t,n)))return!0}if(e(o))return c[p](s,t,n)}return!1},dirty:function(t){0===arguments[A]&&(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):a[G].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(s[L](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[q];return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1}},r[z]=function(t){var e=function(e){r.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};s[g](e,r);for(var i in t)"style"!==i&&"shape"!==i&&(e[G][i]=t[i]);return e},s[g](r,a),r}),e("zrender/graphic/Image",[W,"./Displayable","../core/BoundingRect",n,"./helper/roundRect","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),r=t("../core/BoundingRect"),a=t(n),o=t("./helper/roundRect"),s=t("../core/LRU"),l=new s(50);return e[G]={constructor:e,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===F?this._image:n,!e&&n){var r=l.get(n);if(!r)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<r.pending[A];t++)r.pending[t].dirty()},r={image:e,pending:[this]},e.src=n,l.put(n,r),void(this._image=e);if(e=r.image,this._image=e,!e.width||!e[D])return void r.pending.push(this)}if(e){var a=i.width||e.width,s=i[D]||e[D],c=i.x||0,h=i.y||0;if(!e.width||!e[D])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t.beginPath(),o.buildPath(t,i),t.clip()),i.sWidth&&i.sHeight){var f=i.sx||0,d=i.sy||0;t.drawImage(e,f,d,i.sWidth,i.sHeight,c,h,a,s)}else if(i.sx&&i.sy){var f=i.sx,d=i.sy,p=a-f,m=s-d;t.drawImage(e,f,d,p,m,c,h,a,s)}else t.drawImage(e,c,h,a,s);null==i.width&&(i.width=a),null==i[D]&&(i[D]=s),null!=i.text&&this.drawRectText(t,this[u]()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t[D]||0)),this._rect}},a[g](e,i),e}),e("zrender/graphic/Text",[W,"./Displayable",n,"../contain/text"],function(t){var e=t("./Displayable"),i=t(n),r=t("../contain/text"),a=function(t){e.call(this,t)};return a[G]={constructor:a,type:"text",brush:function(t){var e=this.style,i=e.x||0,n=e.y||0,a=e.text,s=e.fill,l=e[o];if(null!=a&&(a+=""),a){if(t.save(),this.style.bind(t),this.setTransform(t),s&&(t.fillStyle=s),l&&(t.strokeStyle=l),t.font=e.textFont||e.font,t.textAlign=e.textAlign,e.textVerticalAlign){var c=r[u](a,t.font,e.textAlign,"top");switch(t.textBaseline="middle",e.textVerticalAlign){case"middle":n-=c[D]/2-c.lineHeight/2;break;case O:n-=c[D]-c.lineHeight/2;break;default:n+=c.lineHeight/2}}else t.textBaseline=e.textBaseline;for(var h=r.measureText("国",t.font).width,f=a.split("\n"),d=0;d<f[A];d++)s&&t.fillText(f[d],i,n),l&&t.strokeText(f[d],i,n),n+=h;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=r[u](t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":i.y-=i[D]/2;break;case O:i.y-=i[D]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[g](a,e),a}),e("zrender/graphic/shape/Circle",[W,"../Path"],function(t){return t("../Path")[z]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[W,"../Path"],function(t){return t("../Path")[z]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),c=Math.sin(o);t.moveTo(u*r+i,c*r+n),t.lineTo(u*a+i,c*a+n),t.arc(i,n,a,o,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t.closePath()}})}),e("zrender/graphic/shape/Polygon",[W,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[z]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Ring",[W,"../Path"],function(t){return t("../Path")[z]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}})}),e("zrender/graphic/shape/Polyline",[W,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[z]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e.buildPath(t,i,!1)}})}),e("zrender/graphic/shape/Rect",[W,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[z]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[D];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Line",[W,"../Path"],function(t){return t("../Path")[z]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(i,n),1>o&&(r=i*(1-o)+r*o,a=n*(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/graphic/shape/Arc",[W,"../Path"],function(t){return t("../Path")[z]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/shape/BezierCurve",[W,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?u:s)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?u:s)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?l:o)(t.x1,t.cpx1,t.x2,e),(i?l:o)(t.y1,t.cpy1,t.y2,e)]}var i=t("../../core/curve"),n=t("../../core/vector"),r=i.quadraticSubdivide,a=i.cubicSubdivide,o=i.quadraticAt,s=i.cubicAt,l=i.quadraticDerivativeAt,u=i.cubicDerivativeAt,c=[];return t("../Path")[z]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,o=e.x2,s=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,f=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,n),null==h||null==f?(1>d&&(r(i,l,o,d,c),l=c[1],o=c[2],r(n,u,s,d,c),u=c[1],s=c[2]),t.quadraticCurveTo(l,u,o,s)):(1>d&&(a(i,l,h,o,d,c),l=c[1],h=c[2],o=c[3],a(n,u,f,s,d,c),u=c[1],f=c[2],s=c[3]),t.bezierCurveTo(l,u,h,f,o,s)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return n.normalize(i,i)}})}),e("zrender/graphic/CompoundPath",[W,"./Path"],function(t){var e=t("./Path");return e[z]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[A];i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t[A];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[A];n++)i[n].buildPath(t,i[n].shape)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[A];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[G][u].call(this)}})}),e("zrender/graphic/LinearGradient",[W,n,"./Gradient"],function(t){var e=t(n),i=t("./Gradient"),r=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return r[G]={constructor:r,type:"linear"},e[g](r,i),r}),e("zrender/graphic/RadialGradient",[W,n,"./Gradient"],function(t){var e=t(n),i=t("./Gradient"),r=function(t,e,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return r[G]={constructor:r,type:"radial"},e[g](r,i),r}),e("zrender/core/BoundingRect",[W,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[D]=n}var i=t("./vector"),n=t("./matrix"),r=i[s],a=Math.min,o=Math.abs,l=Math.max;return e[G]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this[D]=l(t.y+t[D],this.y+this[D])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[D],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[D]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[D]/e[D],a=n[I]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[D],o=t.x,s=t.x+t.width,l=t.y,u=t.y+t[D];return!(o>n||i>s||l>a||r>u)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[D]},clone:function(){return new e(this.x,this.y,this.width,this[D])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[D]=t[D]}},e}),e("echarts/model/mixin/lineStyle",[W,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["lineWidth","width"],[o,"color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/util/clazz",[W,H],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[G][e].apply(t,i)}function i(t,e,i){return this.superClass[G][e].apply(t,i)}var n=t(H),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[z]=function(a){var o=function(){r&&r.apply(this,arguments),t.apply(this,arguments)};return n[z](o[G],a),o[z]=this[z],o.superCall=e,o.superApply=i,n[g](o,this),o.superClass=this,o}},r.enableClassManagement=function(t,e){function i(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 n=i(e);n[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,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),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[z];a&&(t[z]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/areaStyle",[W,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[W,"zrender/contain/text"],function(t){function e(t,e){return t&&t.getShallow(e)}var i=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,i=t&&t[N](a);return[this.getShallow("fontStyle")||e(i,"fontStyle"),this.getShallow("fontWeight")||e(i,"fontWeight"),(this.getShallow("fontSize")||e(i,"fontSize")||12)+"px",this.getShallow("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(a)||{};return i[u](t,this.getFont(),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this.getFont(),e,n)}}}),e("echarts/model/mixin/itemStyle",[W,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[o,"borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("zrender/core/PathProxy",[W,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),i=t("./vector"),n=t("./bbox"),a=t("./BoundingRect"),s=t("../config").devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],f=[],d=Math.min,p=Math.max,m=Math.cos,v=Math.sin,g=Math.sqrt,y=Math.abs,_=typeof Float32Array!=r,x=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return x[G]={constructor:x,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/s/t)||0,this._uy=y(1/s/e)||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(l.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){var i=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||0===this._len;return this.addData(l.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(l.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(l.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(l.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=m(r)*i+t,this._xi=v(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(l.R,t,e,i,n),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[o](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[A];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[A];this.data&&this.data[A]==e||!_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[A],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[A];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[A]>e[A]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[A];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,f=g(c*c+h*h),m=l,v=u,y=o[A];for(c/=f,h/=f,0>a&&(a=r+a),a%=r,m-=a*c,v-=a*h;c>=0&&t>=m||0>c&&m>t;)n=this._dashIdx,i=o[n],m+=c*i,v+=h*i,this._dashIdx=(n+1)%y,c>0&&l>m||0>c&&m>l||s[n%2?"moveTo":"lineTo"](c>=0?d(m,t):p(m,t),h>=0?d(v,e):p(v,e));c=m-t,h=v-e,this._dashOffset=-g(c*c+h*h)},_dashedBezierTo:function(t,i,n,r,a,o){var s,l,u,c,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,m=this._ctx,v=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[A],M=0;for(0>d&&(d=f+d),d%=f,s=0;1>s;s+=.1)l=_(v,t,n,a,s+.1)-_(v,t,n,a,s),u=_(y,i,r,o,s+.1)-_(y,i,r,o,s),x+=g(l*l+u*u);for(;w>b&&(M+=p[b],!(M>d));b++);for(s=(M-d)/x;1>=s;)c=_(v,t,n,a,s),h=_(y,i,r,o,s),b%2?m.moveTo(c,h):m.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&m.lineTo(a,o),l=a-c,u=o-h,this._dashOffset=-g(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t[A]=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,r=0,o=0,s=0,d=0;d<t[A];){var p=t[d++];switch(1==d&&(e=t[d],r=t[d+1],o=e,s=r),p){case l.M:o=t[d++],s=t[d++],e=o,r=s,h[0]=o,h[1]=s,f[0]=o,f[1]=s;break;case l.L:n.fromLine(e,r,t[d],t[d+1],h,f),e=t[d++],r=t[d++];break;case l.C:n.fromCubic(e,r,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],h,f),e=t[d++],r=t[d++];break;case l.Q:n.fromQuadratic(e,r,t[d++],t[d++],t[d],t[d+1],h,f),e=t[d++],r=t[d++];break;case l.A:var g=t[d++],y=t[d++],_=t[d++],x=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(o=m(b)*_+g,s=v(b)*x+y),n.fromArc(g,y,_,x,b,w,M,h,f),e=m(w)*_+g,r=v(w)*x+y;break;case l.R:o=e=t[d++],s=r=t[d++];var T=t[d++],S=t[d++];n.fromLine(o,s,o+T,s+S,h,f);break;case l.Z:e=o,r=s}i.min(u,u,h),i.max(c,c,f)}return 0===d&&(u[0]=u[1]=c[0]=c[1]=0),new a(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,s=this.data,u=this._ux,c=this._uy,h=this._len,f=0;h>f;){var d=s[f++];switch(1==f&&(n=s[f],r=s[f+1],e=n,i=r),d){case l.M:e=n=s[f++],i=r=s[f++],t.moveTo(n,r);break;case l.L:a=s[f++],o=s[f++],(y(a-n)>u||y(o-r)>c||f===h-1)&&(t.lineTo(a,o),n=a,r=o);break;case l.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),n=s[f-2],r=s[f-1];break;case l.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),n=s[f-2],r=s[f-1];break;case l.A:var p=s[f++],g=s[f++],_=s[f++],x=s[f++],b=s[f++],w=s[f++],M=s[f++],T=s[f++],S=_>x?_:x,C=_>x?1:_/x,A=_>x?x/_:1,P=Math.abs(_-x)>.001,z=b+w;P?(t.translate(p,g),t.rotate(M),t.scale(C,A),t.arc(0,0,S,b,z,1-T),t.scale(1/C,1/A),t.rotate(-M),t.translate(-p,-g)):t.arc(p,g,S,b,z,1-T),1==f&&(e=m(b)*_+p,i=v(b)*x+g),n=m(z)*_+p,r=v(z)*x+g;break;case l.R:e=n=s[f],i=r=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case l.Z:t.closePath(),n=e,r=i}}}},x.CMD=l,x}),e("zrender/tool/transformPath",[W,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,s,u,c,h,f,d=t.data,p=i.M,m=i.C,v=i.L,g=i.R,y=i.A,_=i.Q;for(u=0,c=0;u<d[A];){switch(n=d[u++],c=u,s=0,n){case p:s=1;break;case v:s=1;break;case m:s=3;break;case _:s=2;break;case y:var x=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),M=o(e[2]*e[2]+e[3]*e[3]),T=l(-e[1]/M,e[0]/w);d[u++]+=x,d[u++]+=b,d[u++]*=w,d[u++]*=M,d[u++]+=T,d[u++]+=T,u+=2,c=u;break;case g:f[0]=d[u++],f[1]=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1],f[0]+=d[u++],f[1]+=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}for(h=0;s>h;h++){var f=a[h];f[0]=d[u++],f[1]=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[s],a=[[],[],[]],o=Math.sqrt,l=Math.atan2;return e}),e("zrender/graphic/Displayable",[W,n,"./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style),this._rect=null,this.__clipPaths=[]}var i=t(n),r=t("./Style"),a=t("../Element"),o=t("./mixin/RectText");return e[G]={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 i=this.transformCoordToLocal(t,e),n=this[u]();return n[p](i[0],i[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?a[G].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t),this.dirty(!1),this}},i[g](e,a),i.mixin(e,o),e}),e("zrender/contain/path",[W,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,l,u,c){if(c>e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=d.cubicRootAt(e,r,o,l,c,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,n,a,s,x);u>b||(0>v&&(v=d.cubicExtrema(e,r,o,l,_),_[1]<_[0]&&v>1&&i(),f=d.cubicAt(e,r,o,l,_[0]),v>1&&(p=d.cubicAt(e,r,o,l,_[1]))),m+=2==v?x<_[0]?e>f?1:-1:x<_[1]?f>p?1:-1:p>l?1:-1:x<_[0]?e>f?1:-1:f>l?1:-1)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=d.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=d.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=d.quadraticAt(e,n,a,u),f=0;l>f;f++){var p=d.quadraticAt(t,i,r,y[f]);o>p||(c+=y[f]<u?e>h?1:-1:h>a?1:-1)}return c}var p=d.quadraticAt(t,i,r,y[0]);return o>p?0:e>a?1:-1}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%v){n=0,r=v;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=f(r),r=f(l)}else n=f(n),r=f(r);n>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),c=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x<t[A];){var b=t[x++];if(b===s.M&&x>1&&(o||(d+=p(v,g,y,_,l,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],i,l,f))return!0}else d+=p(v,g,t[x],t[x+1],l,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],i,l,f))return!0}else d+=n(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,f)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],l,f)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],T=t[x++],S=t[x++],C=t[x++],P=t[x++],z=(t[x++],1-t[x++]),L=Math.cos(C)*T+w,k=Math.sin(C)*S+M;x>1?d+=p(v,g,L,k,l,f):(y=L,_=k);var I=(l-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+P,z,i,I,f))return!0}else d+=a(w,M,S,C,C+P,z,I,f);v=Math.cos(C+P)*T+w,g=Math.sin(C+P)*S+M;break;case s.R:y=v=t[x++],_=g=t[x++];var D=t[x++],O=t[x++],L=y+D,k=_+O;if(o){if(m(y,_,L,_,i,l,f)||m(L,_,L,k,i,l,f)||m(L,k,y,k,i,l,f)||m(y,k,L,k,i,l,f))return!0}else d+=p(L,_,L,k,l,f),d+=p(y,k,y,_,l,f);break;case s.Z:if(o){if(m(v,g,y,_,i,l,f))return!0}else if(d+=p(v,g,y,_,l,f),0!==d)return!0;v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,l,f)||0),0!==d}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeRadian,d=t("../core/curve"),p=t("./windingLine"),m=l.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("echarts/model/mixin/makeStyleMapper",[W,H],function(t){var e=t(H);return function(t){for(var i=0;i<t[A];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[A];r++){var a=t[r][1];if(!(i&&e[_](i,a)>=0)){var o=this.getShallow(a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/Element",[W,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),o=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return o[G]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this[q];i||(i=this[q]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===f||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[E]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[E]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===F)this.attrKV(t,e);else if(a[L](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[A];i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[A];i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(o,r),a.mixin(o,n),a.mixin(o,i),o}),e("zrender/graphic/Style",[W],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[G]={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,i){for(var n=this.fill,r=this[o],a=0;a<t[A];a++){var s=t[a];null!=this[s]&&(e[s]=this[s])}if(null!=r){var l=this.lineWidth;e.lineWidth=l/(this.strokeNoScale&&i&&i.getLineScale?i.getLineScale():1)}null==n||"none"===n||n.colorStops||(e.fillStyle=n),null==r||"none"===r||r.colorStops||(e.strokeStyle=r),null!=this.opacity&&(e.globalAlpha=this.opacity)},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===F?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},createLinearGradient:function(t,e,i){var n=e.x*i.width+i.x,r=e.x2*i.width+i.x,a=e.y*i[D]+i.y,o=e.y2*i[D]+i.y,s=t.createLinearGradient(n,a,r,o);return s},createRadialGradient:function(t,e,i){var n=i.width,r=i[D],a=Math.min(n,r),o=e.x*n+i.x,s=e.y*r+i.y,l=e.r*a,u=t.createRadialGradient(o,s,0,o,s,l);return u},getGradient:function(t,e,i){for(var n="radial"===e.type?"createRadialGradient":"createLinearGradient",r=this[n](t,e,i),a=e.colorStops,o=0;o<a[A];o++)r.addColorStop(a[o].offset,a[o].color);return r}};var i,n,r=e[G];for(n=0;n<t[A];n++)i=t[n],i in r||(r[i]=null);return e}),e("zrender/graphic/mixin/RectText",[W,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===F?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[q](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[G]={constructor:o,drawRectText:function(t,r,o){var l=this.style,c=l.text;if(null!=c&&(c+=""),c){var h,f,d=l.textPosition,p=l.textDistance,m=l.textAlign,v=l.textFont||l.font,g=l.textBaseline,y=l.textVerticalAlign;o=o||n[u](c,v,m,g);var _=this[q],x=this.invTransform;if(_&&(a.copy(r),a[s](_),r=a,i(t,x)),d instanceof Array){if(h=r.x+e(d[0],r.width),f=r.y+e(d[1],r[D]),m=m||"left",g=g||"top",y){switch(y){case"middle":f-=o[D]/2-o.lineHeight/2;break;case O:f-=o[D]-o.lineHeight/2;break;default:f+=o.lineHeight/2}g="middle"}}else{var b=n.adjustTextPositionOnRect(d,r,o,p);h=b.x,f=b.y,m=m||b.textAlign,g=g||b.textBaseline}t.textAlign=m,t.textBaseline=g;var w=l.textFill,M=l.textStroke;w&&(t.fillStyle=w),M&&(t.strokeStyle=M),t.font=v,t.shadowColor=l.textShadowColor,t.shadowBlur=l.textShadowBlur,t.shadowOffsetX=l.textShadowOffsetX,t.shadowOffsetY=l.textShadowOffsetY;for(var T=c.split("\n"),S=0;S<T[A];S++)w&&t.fillText(T[S],h,f),M&&t.strokeText(T[S],h,f),f+=o.lineHeight;_&&i(t,_)}}},o}),e("zrender/contain/text",[W,n,"../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(u[i])return u[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[A];o>a;a++)r=Math.max(m.measureText(n[a],e).width,r);return c>h&&(c=0,u={}),c++,u[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[A],o=e(t,i),s=e("国",i),u=a*s,c=new p(0,0,o,u);switch(c.lineHeight=s,r){case O:case"alphabetic":c.y-=s;break;case"middle":c.y-=s/2}switch(n){case"end":case"right":c.x-=c.width;break;case l:c.x-=c.width/2}return c}function r(t,e,i,n){var r=e.x,a=e.y,o=e[D],s=e.width,u=i[D],c=o/2-u/2,h="left";switch(t){case"left":r-=n,a+=c,h="right";break;case"right":r+=n+s,a+=c,h="left";break;case"top":r+=s/2,a-=n+u,h=l;break;case O:r+=s/2,a+=o+n,h=l;break;case"inside":r+=s/2,a+=c,h=l;break;case"insideLeft":r+=n,a+=c,h="left";break;case"insideRight":r+=s-n,a+=c,h="right";break;case"insideTop":r+=s/2,a+=n,h=l;break;case"insideBottom":r+=s/2,a+=o-u-n,h=l;break;case"insideTopLeft":r+=n,a+=n,h="left";break;case"insideTopRight":r+=s-n,a+=n,h="right";break;case"insideBottomLeft":r+=n,a+=o-u-n;break;case"insideBottomRight":r+=s-n,a+=o-u-n,h="right"}return{x:r,y:a,textAlign:h,textBaseline:"top"}}function a(t,i,n,r){if(!n)return"";r=f[P]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var a=(t+"").split("\n"),s=0,l=a[A];l>s;s++)a[s]=o(a[s],i,n,r);return a.join("\n")}function o(t,i,n,r){for(var a=0;;a++){var o=e(t,i);if(n>o||a>=r.maxIterations){t+=r.ellipsis;break}var l=0===a?s(t,n,r):Math.floor(t[A]*n/o);if(l<r.minCharacters){t="";break}t=t.substr(0,l)}return t}function s(t,e,i){for(var n=0,r=0,a=t[A];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var u={},c=0,h=5e3,f=t(n),p=t("../core/BoundingRect"),m={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:r,ellipsis:a,measureText:function(t,e){var i=f[d]();return i.font=e,i.measureText(t)}};return m}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Animatable",[W,"../animation/Animator",n,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(n),r=i.isString,a=i.isFunction,o=i[L],s=t("../core/log"),l=function(){this.animators=[]};return l[G]={constructor:l,animate:function(t,n){var r,a=!1,o=this,l=this.__zr;if(t){var u=t.split("."),c=o;a="shape"===u[0];for(var h=0,f=u[A];f>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=o;if(!r)return void s('Property "'+t+'" is not existed in element '+o.id);var d=o.animators,p=new e(r,n);return p.during(function(){o.dirty(a)}).done(function(){d[S](i[_](d,p),1)}),d.push(p),l&&l.animation.addAnimator(p),p
},stopAnimation:function(t){for(var e=this.animators,i=e[A],n=0;i>n;n++)e[n].stop(t);return e[A]=0,this},animateTo:function(t,e,i,n,o){function s(){u--,u||o&&o()}r(i)?(o=n,n=i,i=0):a(n)?(o=n,n="linear",i=0):a(i)?(o=i,i=0):a(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,n,o);var l=this.animators.slice(),u=l[A];u||o&&o();for(var c=0;c<l[A];c++)l[c].done(s).start(n)},_animateToShallow:function(t,e,n,r,a){var s={},l=0;for(var u in n)if(null!=e[u])o(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,a):(s[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(a||0),this}},l}),e("zrender/mixin/Transformable",[W,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,o=function(t){t=t||{},t[f]||(this[f]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=o[G];l[q]=null,l.needLocalTransform=function(){return e(this.rotation)||e(this[f][0])||e(this[f][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l.updateTransform=function(){var t=this.parent,e=t&&t[q],n=this.needLocalTransform(),a=this[q];return n||e?(a=a||i[I](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t[q],a):i.copy(a,t[q])),this[q]=a,this.invTransform=this.invTransform||i[I](),void i.invert(this.invTransform,a)):void(a&&r(a))},l.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,o=this[f];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i.rotate(t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},l.setTransform=function(t){var e=this[q];e&&t[q](e[0],e[1],e[2],e[3],e[4],e[5])};var u=[];return l.decomposeTransform=function(){if(this[q]){var t=this.parent,n=this[q];t&&t[q]&&(i.mul(u,t.invTransform,n),n=u);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[f],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),o[0]=n[4],o[1]=n[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-n[1]/a,n[0]/r)}},l.getGlobalScale=function(){var t=this[q];if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},l.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[s](i,i,r),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[q];return r&&n[s](i,i,r),i},o}),e("echarts/util/component",[W,H,"./clazz"],function(t){var e=t(H),i=t("./clazz"),n=i.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,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),u=l.originalDeps=i(s),c=a(u,t);l.entryCount=c[A],0===l.entryCount&&o.push(s),e.each(c,function(t){e[_](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[_](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[_](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[A]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[A];){var f=c.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/util/layout",[W,H,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,c){var h,d,p=l[f],m=l[u](),v=e.childAt(c+1),g=v&&v[u]();if("horizontal"===t){var y=m.width+(g?-g.x+m.x:0);h=a+y,h>n||l.newline?(a=0,h=y,o+=s+i,s=m[D]):s=Math.max(s,m[D])}else{var _=m[D]+(g?-g.y+m.y:0);d=o+_,d>r||l.newline?(a+=s+i,o=0,d=_,s=m.width):s=Math.max(s,m.width)}l.newline||(p[0]=a,p[1]=o,"horizontal"===t?a=h+i:o=d+i)})}var i=t(H),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,c={},h=["left","right","top",O,"width",D];return c.box=e,c.vbox=i.curry(e,"vertical"),c.hbox=i.curry(e,"horizontal"),c.getAvailableSize=function(t,e,i){var n=e.width,r=e[D],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=a.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},c.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[D],u=o(t.left,r),c=o(t.top,s),h=o(t.right,r),f=o(t[O],s),d=o(t.width,r),p=o(t[D],s),m=i[2]+i[0],v=i[1]+i[3],g=t.aspect;switch(isNaN(d)&&(d=r-h-v-u),isNaN(p)&&(p=s-f-m-c),isNaN(d)&&isNaN(p)&&(g>r/s?d=.8*r:p=.8*s),null!=g&&(isNaN(d)&&(d=g*p),isNaN(p)&&(p=d/g)),isNaN(u)&&(u=r-h-d-v),isNaN(c)&&(c=s-f-p-m),t.left||t.right){case l:u=r/2-d/2-i[3];break;case"right":u=r-d-v}switch(t.top||t[O]){case"middle":case l:c=s/2-p/2-i[0];break;case O:c=s-p-m}u=u||0,c=c||0,isNaN(d)&&(d=r-u-(h||0)),isNaN(p)&&(p=s-c-(f||0));var y=new n(u+i[3],c+i[0],d,p);return y.margin=i,y},c.positionGroup=function(t,e,n,r){var a=t[u]();e=i[z](i.clone(e),{width:a.width,height:a[D]}),e=c.getLayoutRect(e,n,r),t[f]=[e.x-a.x,e.y-a.y]},c.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,u={},c=0,h=n.ignoreSize?1:2;if(s(i,function(e){u[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&c++}),c!==h&&l){if(l>=h)return r;for(var f=0;f<i[A];f++){var d=i[f];if(!a(r,d)&&a(t,d)){r[d]=t[d];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,i){s(t,function(t){e[t]=i[t]})}!i[L](n)&&(n={});var u=["width","left","right"],c=[D,"top",O],h=r(u),f=r(c);l(u,t,h),l(c,t,f)},c.getLayoutParams=function(t){return c.copyLayoutParams({},t)},c.copyLayoutParams=function(t,e){return e&&t&&s(h,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},c}),e("echarts/model/mixin/boxLayout",[W],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(O),width:this.get("width"),height:this.get(D)}}}}),e("zrender/core/log",[W,"../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),e("zrender/animation/Animator",[W,"./Clip","../tool/color",n],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function r(t,e,i){return(e-t)*i+t}function a(t,e,i){return i>.5?e:t}function o(t,e,i,n,a){var o=t[A];if(1==a)for(var s=0;o>s;s++)n[s]=r(t[s],e[s],i);else for(var l=t[0][A],s=0;o>s;s++)for(var u=0;l>u;u++)n[s][u]=r(t[s][u],e[s][u],i)}function s(t,e,i){var n=t[A],r=e[A];if(n!==r){var a=n>r;if(a)t[A]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o]))}for(var s=t[0]&&t[0][A],o=0;o<t[A];o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var l=0;s>l;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function l(t,e,i){if(t===e)return!0;var n=t[A];if(n!==e[A])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][A],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function u(t,e,i,n,r,a,o,s,l){var u=t[A];if(1==l)for(var h=0;u>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][A],h=0;u>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function h(t){if(g(t)){var e=t[A];if(g(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function f(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,n,h){var d=t._getter,v=t._setter,y="spline"===e,_=n[A];if(_){var x,b=n[0].value,w=g(b),M=!1,T=!1,S=w&&g(b[0])?2:1;n.sort(function(t,e){return t.time-e.time}),x=n[_-1].time;for(var C=[],P=[],z=n[0].value,L=!0,k=0;_>k;k++){C.push(n[k].time/x);var I=n[k].value;if(w&&l(I,z,S)||!w&&I===z||(L=!1),z=I,typeof I==F){var D=m.parse(I);D?(I=D,M=!0):T=!0}P.push(I)}if(!L){for(var O=P[_-1],k=0;_-1>k;k++)w?s(P[k],O,S):!isNaN(P[k])||isNaN(O)||T||M||(P[k]=O);w&&s(d(t._target,h),O,S);var E,R,B,N,G,V,q=0,H=0;if(M)var W=[0,0,0,0];var Z=function(t,e){var i;if(H>e){for(E=Math.min(q+1,_-1),i=E;i>=0&&!(C[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=q;_>i&&!(C[i]>e);i++);i=Math.min(i-1,_-2)}q=i,H=e;var n=C[i+1]-C[i];if(0!==n)if(R=(e-C[i])/n,y)if(N=P[i],B=P[0===i?i:i-1],G=P[i>_-2?_-1:i+1],V=P[i>_-3?_-1:i+2],w)u(B,N,G,V,R,R*R,R*R*R,d(t,h),S);else{var s;if(M)s=u(B,N,G,V,R,R*R,R*R*R,W,1),s=f(W);else{if(T)return a(N,G,R);s=c(B,N,G,V,R,R*R,R*R*R)}v(t,h,s)}else if(w)o(P[i],P[i+1],R,d(t,h),S);else{var s;if(M)o(P[i],P[i+1],R,W,1),s=f(W);else{if(T)return a(P[i],P[i+1],R);s=r(P[i],P[i+1],R)}v(t,h,s)}},X=new p({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(X.easing=e),X}}}var p=t("./Clip"),m=t("../tool/color"),v=t(n),g=v.isArrayLike,y=Array[G].slice,_=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return _[G]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:h(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[A]=0;for(var t=this._doneList,e=t[A],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this.animation&&this.animation.addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;n<i._onframeList[A];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e[A];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[A]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},_}),e("zrender/animation/Clip",[W,"./easing"],function(t){function e(t){this._target=t[M],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 i=t("./easing");return e[G]={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 n=this.easing,r=typeof n==F?i[n]:n,a=typeof r===y?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,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.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!==r&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/curve",[W,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,f=l*u-9*s*c,d=u*u-3*l*c,p=0;if(e(h)&&e(f))if(e(l))o[0]=0;else{var m=-u/l;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-l/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),T=h*l+1.5*s*(-f+b),S=h*l+1.5*s*(-f-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var m=(-l-(T+S))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var C=(2*h*l-3*s*f)/(2*_(h*h*h)),A=Math.acos(C)/3,P=_(h),z=Math.cos(A),m=(-l-2*P*z)/(3*s),x=(-l+P*(z+w*Math.sin(A)))/(3*s),L=(-l+P*(z-w*Math.sin(A)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),L>=0&&1>=L&&(o[p++]=L)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*l*u;if(e(f))o[0]=-s/(2*l);else if(f>0){var d=_(f),h=(-s+d)/(2*l),p=(-s-d)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var f,d,p,m,v,y=.005,x=1/0;T[0]=u,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,l,w),m=g(T,S),x>m&&(f=w,x=m);x=1/0;for(var M=0;32>M&&!(b>y);M++)d=f-y,p=f+y,S[0]=n(t,i,a,s,d),S[1]=n(e,r,o,l,d),m=g(S,T),d>=0&&x>m?(f=d,x=m):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),v=g(C,T),1>=p&&x>v?(f=p,x=v):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,l,f)),_(x)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var f=l*l-4*s*u;if(e(f)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=_(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var c,h=.005,f=1/0;T[0]=o,T[1]=s;for(var d=0;1>d;d+=.05){S[0]=u(t,i,r,d),S[1]=u(e,n,a,d);var p=g(T,S);f>p&&(c=d,f=p)}f=1/0;for(var m=0;32>m&&!(b>h);m++){var v=c-h,y=c+h;S[0]=u(t,i,r,v),S[1]=u(e,n,a,v);var p=g(S,T);if(v>=0&&f>p)c=v,f=p;else{C[0]=u(t,i,r,y),C[1]=u(e,n,a,y);var x=g(C,T);1>=y&&f>x?(c=y,f=x):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),_(f)}var m=t("./vector"),v=m[I],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),M=1/3,T=v(),S=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:f,quadraticSubdivide:d,quadraticProjectPoint:p}}),e("zrender/core/bbox",[W,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[I](),u=e[I](),c=e[I](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[A]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[A];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)};var f=[],d=[];return n.fromCubic=function(t,e,n,o,s,l,u,c,h,p){var m,v=i.cubicExtrema,g=i.cubicAt,y=v(t,n,s,u,f);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,m=0;y>m;m++){var _=g(t,n,s,u,f[m]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=v(e,o,l,c,d),m=0;y>m;m++){var x=g(e,o,l,c,d[m]);h[1]=r(x,h[1]),p[1]=a(x,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(u,h[0]),p[0]=a(u,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,f=i.quadraticAt,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),m=f(t,n,s,d),v=f(e,o,l,p);u[0]=r(t,s,m),u[1]=r(e,l,v),c[0]=a(t,s,m),c[1]=a(e,l,v)},n.fromArc=function(t,i,n,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-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(f)*n+t,u[1]=o(f)*r+i,v(p,l,u),g(m,l,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&&(c[0]=s(x)*n+t,c[1]=o(x)*r+i,v(p,c,p),g(m,c,m))},n}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/arc",[W,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var f=Math.sqrt(u*u+c*c);if(f-h>r||r>f+h)return!1;if(Math.abs(a-o)%i<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+=i);var p=Math.atan2(c,u);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/cubic",[W,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var f=u;if(h>i+f&&h>r+f&&h>o+f&&h>l+f||i-f>h&&r-f>h&&o-f>h&&l-f>h||c>t+f&&c>n+f&&c>a+f&&c>s+f||t-f>c&&n-f>c&&a-f>c&&s-f>c)return!1;var d=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return f/2>=d}}}),e("zrender/contain/quadratic",[W,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/util",[W],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e),l=s*(i-t)+t;return l>r?o:0}}),e("zrender/core/LRU",[W],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[G];e.insert=function(t){var e=new i(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,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxSize=e||10},r=n[G];return r.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i.remove(a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/roundRect",[W],function(){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,l=e.width,u=e[D],c=e.r;0>l&&(o+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof c?i=n=r=a=c:c instanceof Array?1===c[A]?i=n=r=a=c[0]:2===c[A]?(i=r=c[0],n=a=c[1]):3===c[A]?(i=c[0],n=a=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],a=c[3]):i=n=r=a=0;var h;i+n>l&&(h=i+n,i*=l/h,n*=l/h),r+a>l&&(h=r+a,r*=l/h,a*=l/h),n+r>u&&(h=n+r,n*=u/h,r*=u/h),i+a>u&&(h=i+a,i*=u/h,a*=u/h),t.moveTo(o+i,s),t.lineTo(o+l-n,s),0!==n&&t.quadraticCurveTo(o+l,s,o+l,s+n),t.lineTo(o+l,s+u-r),0!==r&&t.quadraticCurveTo(o+l,s+u,o+l-r,s+u),t.lineTo(o+a,s+u),0!==a&&t.quadraticCurveTo(o,s+u,o,s+u-a),t.lineTo(o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/graphic/helper/poly",[W,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n.points,o=n.smooth;if(a&&a[A]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a[A],u=0;(r?l:l-1)>u;u++){var c=s[2*u],h=s[2*u+1],f=a[(u+1)%l];t.bezierCurveTo(c[0],c[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[A];d>u;u++)t.lineTo(a[u][0],a[u][1])}r&&t.closePath()}}}}),e("zrender/graphic/helper/smoothSpline",[W,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[A],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,f=s/(l-1)*(n?r:r-1),d=Math.floor(f),p=f-d,m=t[d%r];n?(u=t[(d-1+r)%r],c=t[(d+1)%r],h=t[(d+2)%r]):(u=t[0===d?d:d-1],c=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],c[0],h[0],p,v,g),e(u[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[W,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,f,d,p=[],m=[],v=[],g=[];if(u){f=[1/0,1/0],d=[-1/0,-1/0];for(var y=0,_=t[A];_>y;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,u[0]),n(d,d,u[1])}for(var y=0,_=t[A];_>y;y++){var x=t[y];if(l)c=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(m,h,c),r(m,m,s);var b=a(x,c),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var T=o([],x,v),S=o([],x,g);u&&(n(T,T,f),i(T,T,d),n(S,S,f),i(S,S,d)),p.push(T),p.push(S)}return l&&p.push(p.shift()),p}}),e("zrender/animation/Animation",[W,n,"../core/event","./Animator"],function(t){var e=t(n),i=t("../core/event").Dispatcher,a=typeof window!==r&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},o=t("./Animator"),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return s[G]={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e[A];i++)this.addClip(e[i])},removeClip:function(t){var i=e[_](this._clips,t);i>=0&&this._clips[S](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[A];i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[A],r=[],a=[],o=0;n>o;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[A];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[C]("frame",e),this.stage[k]&&this.stage[k]()},start:function(){function t(){e._running&&(a(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),a(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new o(t,e.loop,e.getter,e.setter);return i}},e.mixin(s,i),s}),e("zrender/Painter",[W,"./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.resize!==y||typeof t.refresh!==y?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return g.copy(t[u]()),t[q]&&g[s](t[q]),x.width=e,x[D]=i,!g.intersect(x)}function o(t,e){if(!t||!e||t[A]!==e[A])return!0;for(var i=0;i<t[A];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var i=0;i<t[A];i++){var n,r=t[i];r[q]&&(n=r[q],e[q](n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a.beginPath(e),r.buildPath(a,r.shape),e.clip(),r[q]&&(n=r.invTransform,e[q](n[0],n[1],n[2],n[3],n[4],n[5]))}}var c=t("./config"),h=t("./core/util"),p=t("./core/log"),m=t("./core/BoundingRect"),v=t("./Layer"),g=new m(0,0,0,0),x=new m(0,0,0,0),w=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||c.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,n){var a=t.width,o=t[D];this._width=a,this._height=o;var s=new v(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var a=this._getWidth(),o=this._getHeight();this._width=a,this._height=o;var l=document.createElement("div");this._domRoot=l;var u=l.style;u[f]="relative",u.overflow="hidden",u.width=this._width+"px",u[D]=this._height+"px",t.appendChild(l),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return w[G]={constructor:w,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[A];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,s,u,c=this._width,h=this._height;this.eachBuildinLayer(n);for(var f=null,d=0,m=t[A];m>d;d++){var v=t[d],g=this._singleCanvas?0:v[b];if(s!==g&&(s=g,i=this.getLayer(s),i.isBuildin||p("ZLevel "+s+" has been used by unkown layer "+i.id),u=i.ctx,i.__unusedCount=0,(i.__dirty||e)&&i.clear()),(i.__dirty||e)&&!v.invisible&&0!==v.style.opacity&&v.scale[0]&&v.scale[1]&&(!v.culling||!a(v,c,h))){var y=v.__clipPaths;o(y,f)&&(f&&u.restore(),y&&(u.save(),l(y,u)),f=y),v.beforeBrush&&v.beforeBrush(u),v.brush(u,!1),v.afterBrush&&v.afterBrush(u)}v.__dirty=!1}f&&u.restore(),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new v("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&h.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[A],o=null,s=-1,l=this._domRoot;if(n[t])return void p("ZLevel "+t+" has been used already");if(!i(e))return void p("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=n[r[s]]}if(r[S](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[A];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[A];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[A];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t[A];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[b],s=e[o];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=a.__dirty}}this.eachBuildinLayer(function(t,e){i[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 i=this._layerConfig;i[t]?h.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&h.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[S](h[_](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[D]=e+"px";for(var n in this._layers)this._layers[n].resize(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 v("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n[A];r++){var a=n[r];a.invisible||(a.beforeBrush&&a.beforeBrush(i),a.brush(i,!1),a.afterBrush&&a.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[D])||e(t.style[D]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document.createElement("canvas"),s=o[d]("2d");o.width=n*a,o[D]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[f],rotation:i.rotation,scale:i.scale};i[f]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[f]&&(c[f]=i[f]=l[f]),null!=l.rotation&&(c.rotation=i.rotation=l.rotation),null!=l.scale&&(c.scale=i.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},w}),e("zrender/Handler",[W,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}
}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[M],a,r.event)}}function n(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=g.concat(_),n=0;n<i[A];n++){var r=i[n];t._handlers[r]=h.bind(S[r],t)}for(var n=0;n<v[A];n++){var r=v[n];t._handlers[r]=e(S[r],t)}}function r(t,e,i){if(t[t.rectHover?"rectContain":p](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[p](e,i))return!1;n=n.parent}return!0}return!1}function a(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function o(){return!1}function s(){return u.touchEventsSupported}function l(t){return"mousewheel"===t&&u.browser.firefox?"DOMMouseScroll":t}var u=t("./core/env"),c=t("./core/event"),h=t("./core/util"),f=t("./mixin/Draggable"),d=t("./core/GestureMgr"),m=t("./mixin/Eventful"),v=["click","dblclick","mousewheel","mouseout"];!o()&&v.push("mouseup","mousedown","mousemove");var g=["touchstart","touchend","touchmove"],_=["pointerdown","pointerup","pointermove"],x=300,b=c.addEventListener,w=c.removeEventListener,T=c.normalizeEvent,S={mousemove:function(t){t=T(this.root,t);var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,"mouseout",t),this._dispatchProxy(n,"mousemove",t),n&&n!==r&&this._dispatchProxy(n,"mouseover",t)},mouseout:function(t){t=T(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,"mouseout",t),this[C]("globalout",{event:t})},touchstart:function(t){t=T(this.root,t),this._lastTouchMoment=new Date,i(this,t,"start"),S.mousemove.call(this,t),S.mousedown.call(this,t),a(this)},touchmove:function(t){t=T(this.root,t),i(this,t,"change"),S.mousemove.call(this,t),a(this)},touchend:function(t){t=T(this.root,t),i(this,t,"end"),S.mouseup.call(this,t),+new Date-this._lastTouchMoment<x&&S.click.call(this,t),a(this)}};h.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){S[t]=function(e){e=T(this.root,e);var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this._dispatchProxy(i,t,e)}});var P=function(t,e,i){function r(e,i){h.each(e,function(e){b(t,l(e),i._handlers[e])},i)}m.call(this),this.root=t,this.storage=e,this.painter=i,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new d,this._handlers=[],this._touching=!1,this._touchTimer,n(this),o()?r(_,this):s()&&r(g,this),r(v,this),f.call(this)};return P[G]={constructor:P,resize:function(){this._hovered=null},dispatch:function(t,e){var i=this._handlers[t];i&&i.call(this,e)},dispose:function(){for(var t=this.root,e=v.concat(g),i=0;i<e[A];i++){var n=e[i];w(t,l(n),this._handlers[n])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[C](i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this[C](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==y&&t[r].call(t,a),t[C]&&t[C](i,a)}))},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a=n[A]-1;a>=0;a--)if(!n[a].silent&&n[a]!==i&&!n[a][E]&&r(n[a],t,e))return n[a]}},h.mixin(P,m),h.mixin(P,f),P}),e("zrender/Storage",[W,"./core/util","./container/Group"],function(t){function e(t,e){return t[b]===e[b]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[b]-e[b]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[G]={constructor:r,getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var i=this._roots,n=this._displayList,r=0,a=i[A];a>r;r++)this._updateAndAddDisplayable(i[r],null,t);n[A]=this._displayListLen;for(var r=0,a=n[A];a>r;r++)n[r].__renderidx=r;n.sort(e)},_updateAndAddDisplayable:function(t,e,i){if(!t[E]||i){t.beforeUpdate(),t[k](),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),"group"==t.type){for(var r=t._children,a=0;a<r[A];a++){var o=r[a];o.__dirty=t.__dirty||o.__dirty,this._updateAndAddDisplayable(o,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof n&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[A];e++){var r=this._roots[e];r instanceof n&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[A];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==F?this._elements[t]:t;var s=i[_](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[S](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(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,i=e[t];return i&&(delete e[t],i instanceof n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("echarts/coord/axisHelper",[W,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",H,"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(H),s=t("zrender/contain/text"),c={};return c.getScaleExtent=function(t,e){var i=t.scale,n=i[m](),r=n[1]-n[0];if(i.type===h)return isFinite(r)?n:[0,0];var s=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),u=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),c=e.get("boundaryGap");o[x](c)||(c=[c||0,c||0]),c[0]=a.parsePercent(c[0],1),c[1]=a.parsePercent(c[1],1);var f=!0,d=!0;return null==s&&(s=n[0]-c[0]*r,f=!1),null==l&&(l=n[1]+c[1]*r,d=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),u&&(s>0&&l>0&&!f&&(s=0),0>s&&0>l&&!d&&(l=0)),[s,l]},c.niceScaleExtent=function(t,e){var i=t.scale,n=c.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var s=e.get("minInterval");if(isFinite(s)&&!r&&!a&&"interval"===i.type){var l=i.getInterval(),u=Math.max(Math.abs(l),s)/l;n=i[m](),i.setExtent(u*n[0],n[1]*u),i.niceExtent(o)}var l=e.get("interval");null!=l&&i.setInterval&&i.setInterval(l)},c.createScaleByModel=function(t,a){if(a=a||t.get("type"))switch(a){case i:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new n;default:return(r.getClass(a)||n)[I](t)}},c.ifAxisCrossZero=function(t){var e=t.scale[m](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},c.getAxisLabelInterval=function(t,e,i,n){var r,a=0,o=0,c=1;e[A]>40&&(c=Math.round(e[A]/40));for(var h=0;h<t[A];h+=c){var f=t[h],d=s[u](e[h],i,l,"top");d[n?"x":"y"]+=f,d[n?"width":D]*=1.5,r?r.intersect(d)?(o++,a=Math.max(a,o)):(r.union(d),o=0):r=d.clone()}return 0===a&&c>1?c:a*c},c.getFormattedLabels=function(t,e){var n=t.scale,r=n.getTicksLabels(),a=n.getTicks();return typeof e===F?(e=function(t){return function(e){return t.replace("{value}",e)}}(e),o.map(r,e)):typeof e===y?o.map(a,function(r,a){return e(t.type===i?n.getLabel(r):r,a)},this):r},c}),e("echarts/coord/cartesian/Cartesian2D",[W,H,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(H),n=t("./Cartesian");return e[G]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(h)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[p](e.toLocalCoord(t[0]))&&i[p](i.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 i=this.getAxis("x"),n=this.getAxis("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},i[g](e,n),e}),e("echarts/coord/cartesian/Axis2D",[W,H,"../Axis","./axisLabelInterval"],function(t){var e=t(H),n=t("../Axis"),r=t("./axisLabelInterval"),a=function(t,e,i,r,a){n.call(this,t,e,i),this.type=r||"value",this[f]=a||O};return a[G]={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[f];return"top"===t||t===O},getGlobalExtent:function(){var t=this[m]();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=r(this)),t},isLabelIgnored:function(t){if(this.type===i){var e=this.getLabelInterval();return typeof e===y&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[g](a,n),a}),e("echarts/coord/cartesian/GridModel",[W,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[z]({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/core/event",[W,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[_]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=e(t);i.zrX=i.clientX-s.left,i.zrY=i.clientY-s.top,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){s?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function a(t,e,i){s?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var o=t("../mixin/Eventful"),s=typeof window!==r&&!!window.addEventListener,l=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:a,stop:l,Dispatcher:o}}),e("zrender/mixin/Draggable",[W],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[G]={constructor:t,_dragStart:function(t){var e=t[M];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 i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this.findHover(i,n,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",[W],function(){function t(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var i=function(){this._track=[]};i[G]={constructor:i,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[A]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[A];a>r;r++){var o=i[r];n.points.push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in n)if(n.hasOwnProperty(e)){var i=n[e](this._track,t);if(i)return i}}};var n={pinch:function(i,n){var r=i[A];if(r){var a=(i[r-1]||{}).points,o=(i[r-2]||{}).points||a;if(o&&o[A]>1&&a&&a[A]>1){var s=t(a)/t(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=e(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:i[0][M],event:n}}}}};return i}),e("echarts/scale/Ordinal",[W,H,"./Scale"],function(t){var e=t(H),i=t("./Scale"),n=i[G],r=i[z]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[A]-1]},parse:function(t){return typeof t===F?e[_](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[p].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;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[I]=function(){return new r},r}),e("zrender/Layer",[W,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document.createElement(e),a=i[B](),o=i[R](),s=r.style;return s[f]="absolute",s.left=0,s.top=0,s.width=a+"px",s[D]=o+"px",r.width=a*n,r[D]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===F?s=i(t,"canvas",a,o):n[L](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return a[G]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[d]("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[d]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[D]=e+"px",n.width=t*i,n[D]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[D]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[D],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i.restore()),o){var u=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(u,0,0,n/l,r/l),i.restore()}}},a}),e("echarts/coord/cartesian/Cartesian",[W,H],function(t){function e(t){return this._axes[t]}var i=t(H),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[G]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[V](),i.filter(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 i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[A];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/preprocessor/helper/compatStyle",[W,H],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e.normal,a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n].normal?i.merge(t[n].normal,r[n]):t[n].normal=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?i.merge(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)})}var i=t(H),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var n=t.data;if(n){for(var r=0;r<n[A];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[A];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[A];r++)i[x](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/coord/cartesian/axisLabelInterval",[W,H,"../axisHelper"],function(t){var e=t(H),n=t("../axisHelper");return function(t){var r=t.model,o=r[N]("axisLabel"),s=o.get("interval");return t.type!==i||"auto"!==s?"auto"===s?0:s:n.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),r.getFormattedLabels(),o[N](a).getFont(),t.isHorizontal())}}),e("echarts/coord/Axis",[W,"../util/number",H],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(H),a=[0,1],o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[G]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[p](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[m](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type===h&&(r=r.slice(),e(r,o.count())),n(t,a,r,i)},coordToData:function(t,i){var r=this._extent,o=this.scale;this.onBand&&o.type===h&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t[A];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[A];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[m](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[m](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},o}),e("echarts/chart/helper/createListFromArray",[W,"../../data/List","../../data/helper/completeDimensions",H,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[A]&&null==t[e];)e++;return t[e]}function n(t){var i=e(t);return null!=i&&!f[x](m(i))}function r(t,e,i){if(t=t||[],!f[x](t))throw new Error("Invalid data.");var r=e.get(v),a=y[r],o=p.get(r),d=a&&a(t,e,i),b=d&&d[c];b||(b=o&&o[c]||["x","y"],b=u(b,t,b.concat(["value"])));var w,M=d&&d.categoryAxisModel,T=b[0].type===h?0:b[1].type===h?1:-1,S=new l(b,e),C=s(d,t),A=M&&n(t)?function(t,e,i,n){return n===T?i:g(m(t),b[n])}:function(t,e,i,n){var r=m(t),a=g(r&&r[n],b[n]);return T===n&&typeof a===F&&(w=w||M.getCategories(),a=f[_](w,a),0>a&&!isNaN(a)&&(a=+a)),a};return S.initData(t,C,A),S}function a(t){return t!==i&&"time"!==t}function o(t){return t===i?h:"time"===t?"time":"float"}function s(t,e){var i=[];if(t&&t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[A];if(f[x](e[0])&&e[0][A]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][t.categoryIndex||0]]}else i=n.slice(0)}}return i}var l=t("../../data/List"),u=t("../../data/helper/completeDimensions"),f=t(H),d=t("../../util/model"),p=t("../../CoordinateSystem"),m=d.getDataItemValue,g=d.converDataValue,y={cartesian2d:function(t,e,n){var r=n.getComponent("xAxis",e.get("xAxisIndex")),s=n.getComponent("yAxis",e.get("yAxisIndex"));if(!r||!s)throw new Error("Axis option not found");var l=r.get("type"),c=s.get("type"),h=[{name:"x",type:o(l),stackable:a(l)},{name:"y",type:o(c),stackable:a(c)}],f=l===i;return u(h,t,["x","y","z"]),{dimensions:h,categoryIndex:f?0:1,categoryAxisModel:f?r:c===i?s:null}},polar:function(t,e,n){var r=e.get("polarIndex")||0,s=function(t){return t.get("polarIndex")===r},l=n.findComponents({mainType:"angleAxis",filter:s})[0],c=n.findComponents({mainType:"radiusAxis",filter:s})[0];if(!l||!c)throw new Error("Axis option not found");var h=c.get("type"),f=l.get("type"),d=[{name:"radius",type:o(h),stackable:a(h)},{name:"angle",type:o(f),stackable:a(f)}],p=f===i;return u(d,t,["radius","angle","value"]),{dimensions:d,categoryIndex:p?1:0,categoryAxisModel:p?l:h===i?c:null}},geo:function(t){return{dimensions:u([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return r}),e("echarts/component/tooltip/TooltipContent",[W,H,"zrender/tool/color","zrender/core/event","../../util/format","zrender/core/env"],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(m,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t[N](a),u=t.get("padding");return r&&n.push(e(r)),o&&(p.canvasSupported?n.push("background-Color:"+o):(n.push("background-Color:#"+l.toHex(o)),n.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(e){var i="border-"+e,r=d(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(s)),null!=u&&n.push("padding:"+c.normalizeCssArray(u).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document.createElement("div"),n=e.getZr();this.el=i,this._x=e[B]()/2,this._y=e[R]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;u.normalizeEvent(t,e),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},o(i,t)}function o(t,e){function i(t){n(t[M])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}u.addEventListener(e,"touchstart",i),u.addEventListener(e,"touchmove",i),u.addEventListener(e,"touchend",i)}var s=t(H),l=t("zrender/tool/color"),u=t("zrender/core/event"),c=t("../../util/format"),h=s.each,d=c.toCamelCase,p=t("zrender/core/env"),m=["","-webkit-","-moz-","-o-"],v="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[G]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[f]&&"absolute"!==e[f]&&(i[f]="relative")},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=v+n(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/coord/cartesian/AxisModel",[W,"../../model/Component",H,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?i:"value")}var n=t("../../model/Component"),r=t(H),a=t("../axisModelCreator"),o=n[z]({type:"cartesian2dAxis",axis:null,init:function(){o.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){o.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){o.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},getMin:function(){var t=this.option;return null!=t.rangeStart?t.rangeStart:t.min},getMax:function(){var t=this.option;return null!=t.rangeEnd?t.rangeEnd:t.max},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});r.merge(o[G],t("../axisModelCommonMixin"));var s={gridIndex:0};return a("x",o,e,s),a("y",o,e,s),o}),e("echarts/data/helper/completeDimensions",[W,H],function(t){function e(t,e,a,o){if(!e)return t;var s=n(e[0]),l=r[x](s)&&s[A]||1;a=a||[],o=o||"extra";for(var u=0;l>u;u++)if(!t[u]){var c=a[u]||o+(u-a[A]);t[u]=i(e,u)?{type:"ordinal",name:c}:c}return t}function i(t,e){for(var i=0,a=t[A];a>i;i++){var o=n(t[i]);if(!r[x](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r.isString(o)&&"-"!==o)return!0}return!1}function n(t){return r[x](t)?t:r[L](t)?t.value:t}var r=t(H);return e}),e("echarts/data/List",[W,"../model/Model","./DataDiffer",H,"../util/model"],function(t){function e(t){return d[x](t)||(t=[t]),t}function i(t,e){var i=t[c],n=new b(d.map(i,t.getDimensionInfo,t),t.hostModel);g(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[A];o++){var s=i[o],l=a[s];r[s]=d[_](e,s)>=0?new l.constructor(a[s][A]):a[s]}return n}var n=r,a=typeof window===r?global:window,o=typeof a.Float64Array===n?Array:a.Float64Array,s=typeof a.Int32Array===n?Array:a.Int32Array,l={"float":o,"int":s,ordinal:Array,number:Array,time:Array},u=t("../model/Model"),f=t("./DataDiffer"),d=t(H),p=t("../util/model"),m=d[L],v=["stackedOn","_nameList","_idList","_rawData"],g=function(t,e){d.each(v.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},b=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[A];r++){var a,o={};typeof t[r]===F?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||"number"),n.push(a),i[a]=o}this[c]=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},M=b[G];M.type="list",M.getDimension=function(t){return isNaN(t)||(t=this[c][t]||t),t},M.getDimensionInfo=function(t){return d.clone(this._dimensionInfos[this.getDimension(t)])},M.initData=function(t,e,i){if(t=t||[],!d[x](t))throw new Error("Invalid data.");this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[c],o=t[A],s=this._dimensionInfos,u=[],h={};e=e||[];for(var f=0;f<a[A];f++){var m=s[a[f]],v=l[m.type];n[a[f]]=new v(o)}i=i||function(t,e,i,n){var r=p.getDataItemValue(t);return p.converDataValue(d[x](r)?r[n]:r,s[e])};for(var g=0;g<t[A];g++){for(var y=t[g],_=0;_<a[A];_++){var b=a[_],w=n[b];w[g]=i(y,b,g,_)}r.push(g)}for(var f=0;f<t[A];f++){var M="";e[f]||(e[f]=t[f].name,M=t[f].id);var T=e[f]||"";!M&&T&&(h[T]=h[T]||0,M=T,h[T]>0&&(M+="__ec__"+h[T]),h[T]++),M&&(u[f]=M)}this._nameList=e,this._idList=u},M.count=function(){return this.indices[A]},M.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},M.getValues=function(t,e,i){var n=[];d[x](t)||(i=e,e=t,t=this[c]);for(var r=0,a=t[A];a>r;r++)n.push(this.get(t[r],e,i));return n},M.hasValue=function(t){for(var e=this[c],i=this._dimensionInfos,n=0,r=e[A];r>n;n++)if(i[e[n]].type!==h&&isNaN(this.get(e[n],t)))return!1;return!0},M.getDataExtent=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-1/0]},M.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},M[_]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[A];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},M.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[A];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},M.indexOfNearest=function(t,e,i){var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=this.count();l>s;s++){var u=e-this.get(t,s,i),c=Math.abs(u);(a>c||c===a&&u>0)&&(a=c,o=s)}return o}return-1},M.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},M.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},M.getName=function(t){return this._nameList[this.indices[t]]||""},M.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},M.each=function(t,i,n,r){typeof t===y&&(r=n,n=i,i=t,t=[]),t=d.map(e(t),this.getDimension,this);var a=[],o=t[A],s=this.indices;r=r||this;for(var l=0;l<s[A];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},M.filterSelf=function(t,i,n,r){typeof t===y&&(r=n,n=i,i=t,t=[]),t=d.map(e(t),this.getDimension,this);var a=[],o=[],s=t[A],l=this.indices;r=r||this;for(var u=0;u<l[A];u++){var c;if(1===s)c=i.call(r,this.get(t[0],u,n),u);else{for(var h=0;s>h;h++)o[h]=this.get(t[h],u,n);o[h]=u,c=i.apply(r,o)}c&&a.push(l[u])}return this.indices=a,this._extent={},this},M.mapArray=function(t,e,i,n){typeof t===y&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},M.map=function(t,n,r,a){t=d.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[A]-1],i=n&&n.apply(this,arguments);if(null!=i){"number"==typeof i&&(u[0]=i,i=u);for(var r=0;r<i[A];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=i[r])}}},r,a),o},M.downSample=function(t,e,n,r){for(var a=i(this,[t]),o=this._storage,s=a._storage,l=this.indices,u=a.indices=[],c=[],h=[],f=Math.floor(1/e),d=s[t],p=this.count(),m=0;m<o[t][A];m++)s[t][m]=o[t][m];for(var m=0;p>m;m+=f){f>p-m&&(f=p-m,c[A]=f);for(var v=0;f>v;v++){var g=l[m+v];c[v]=d[g],h[v]=g}var y=n(c),g=h[r(c,y)||0];d[g]=y,u.push(g)}return a},M.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new u(this._rawData[t],e,e&&e.ecModel)},M.diff=function(t){var e=this._idList,i=t&&t._idList;return new f(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},M.getVisual=function(t){var e=this._visual;return e&&e[t]},M.setVisual=function(t,e){if(m(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},M.setLayout=function(t,e){if(m(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},M.getLayout=function(t){return this._layout[t]},M.getItemLayout=function(t){return this._itemLayouts[t]},M.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?d[z](this._itemLayouts[t]||{},e):e},M.clearItemLayouts=function(){this._itemLayouts[A]=0},M.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},M.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,m(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var T=function(t){t[w]=this[w],t.dataIndex=this.dataIndex,t.dataType=this.dataType
};return M.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e[w]=i&&i[w],"group"===e.type&&e.traverse(T,e)),this._graphicEls[t]=e},M.getItemGraphicEl=function(t){return this._graphicEls[t]},M.eachItemGraphicEl=function(t,e){d.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},M.cloneShallow=function(){var t=d.map(this[c],this.getDimensionInfo,this),e=new b(t,this.hostModel);return e._storage=this._storage,g(e,this),e.indices=this.indices.slice(),e},M.wrapMethod=function(t,e){var i=this[t];typeof i===y&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(d.slice(arguments)))})},M.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],M.CHANGABLE_METHODS=["filterSelf"],b}),e("echarts/coord/axisModelCommonMixin",[W,H,"./axisHelper"],function(t){function e(t){return a[L](t)&&null!=t.value?t.value:t}function n(){return this.get("type")===i&&a.map(this.get("data"),e)}function r(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var a=t(H),o=t("./axisHelper");return{getFormattedLabels:r,getCategories:n}}),e("echarts/coord/axisModelCreator",[W,"./axisDefault",H,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),n=t(H),r=t("../model/Component"),a=t("../util/layout"),o=["value",i,"time","log"];return function(t,i,s,l){n.each(o,function(r){i[z]({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,i){var o=this.layoutMode,l=o?a.getLayoutParams(e):{},u=i.getTheme();n.merge(e,u.get(r+"Axis")),n.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&a.mergeLayoutParam(e,l,o)},defaultOption:n.mergeAll([{},e[r+"Axis"],l],!0)})}),r.registerSubTypeDefaulter(t+"Axis",n.curry(s,t))}}),e("echarts/data/DataDiffer",[W],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i){for(var n=0;n<t[A];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[A]||(e[r]=a=[a]),a.push(n))}}return e[G]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={};for(i(e,o,r),i(n,s,a),t=0;t<e[A];t++){var l=r(e[t]),u=s[l];if(null!=u){var c=u[A];c?(1===c&&(s[l]=null),u=u.unshift()):s[l]=null,this._update&&this._update(u,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if(null==u)continue;if(u[A])for(var t=0,c=u[A];c>t;t++)this._add&&this._add(u[t]);else this._add&&this._add(u)}}},e}),e("echarts/coord/axisDefault",[W,H],function(t){var e=t(H),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,silent:!0,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)"]}}},n=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[P]({boundaryGap:[0,0],splitNumber:5},i),a=e[P]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[P]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/chart/line/lineAnimationDiff",[W],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),s=a.onZero?0:o.scale[m]()[0],l=o.dim,u="x"===l||"radius"===l?1:0,c=i.stackedOn,h=i.get(l,n);c&&t(c.get(l,n))===t(h);){r=c;break}var f=[];return f[u]=i.get(a.dim,n),f[1-u]=r?r.get(l,n,!0):s,e.dataToPoint(f)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[k](function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,s){for(var l=i(t,n),u=[],h=[],f=[],d=[],p=[],m=[],v=[],g=s[c],y=0;y<l[A];y++){var _=l[y],x=!0;switch(_.cmd){case"=":var b=t.getItemLayout(_.idx),w=n.getItemLayout(_.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=w.slice()),u.push(b),h.push(w),f.push(r[_.idx]),d.push(a[_.idx1]),v.push(n.getRawIndex(_.idx1));break;case"+":var M=_.idx;u.push(o.dataToPoint([n.get(g[0],M,!0),n.get(g[1],M,!0)])),h.push(n.getItemLayout(M).slice()),f.push(e(o,n,M)),d.push(a[M]),v.push(n.getRawIndex(M));break;case"-":var M=_.idx,T=t.getRawIndex(M);T!==M?(u.push(t.getItemLayout(M)),h.push(s.dataToPoint([t.get(g[0],M,!0),t.get(g[1],M,!0)])),f.push(r[M]),d.push(e(s,t,M)),v.push(T)):x=!1}x&&(p.push(_),m.push(m[A]))}m.sort(function(t,e){return v[t]-v[e]});for(var S=[],C=[],P=[],z=[],L=[],y=0;y<m[A];y++){var M=m[y];S[y]=u[M],C[y]=h[M],P[y]=f[M],z[y]=d[M],L[y]=p[M]}return{current:S,next:C,stackedOnCurrent:P,stackedOnNext:z,status:L}}}),e("echarts/chart/helper/Symbol",[W,H,"../../util/symbol","../../util/graphic","../../util/number"],function(t){function e(t){return r[x](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this.updateData(t,e)}function n(t,e){this.parent.drift(t,e)}var r=t(H),a=t("../../util/symbol"),o=t("../../util/graphic"),s=t("../../util/number"),l=i[G];l._createSymbol=function(t,i,r){this.removeAll();var s=i.hostModel,l=i.getItemVisual(r,"color"),u=a.createSymbol(t,-.5,-.5,1,1,l);u.attr({z2:100,culling:!0,scale:[0,0]}),u.drift=n;var c=e(i.getItemVisual(r,"symbolSize"));o.initProps(u,{scale:c},s,r),this._symbolType=t,this.add(u)},l.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},l.getScale=function(){return this.childAt(0).scale},l.highlight=function(){this.childAt(0)[C]("emphasis")},l.downplay=function(){this.childAt(0)[C]("normal")},l.setZ=function(t,e){var i=this.childAt(0);i[b]=t,i.z=e},l.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},l.updateData=function(t,i){var n=t.getItemVisual(i,"symbol")||"circle",r=t.hostModel,a=e(t.getItemVisual(i,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this.childAt(0);o.updateProps(s,{scale:a},r,i)}this._updateCommon(t,i,a),this._seriesModel=r};var u=["itemStyle","normal"],d=["itemStyle","emphasis"],p=["label","normal"],m=["label","emphasis"];return l._updateCommon=function(t,i,n){var a=this.childAt(0),l=t.hostModel,v=t.getItemModel(i),g=v[N](u),y=t.getItemVisual(i,"color");"image"!==a.type&&a.useStyle({strokeNoScale:!0});var _=a.style,x=v[N](d).getItemStyle();a.rotation=(v.getShallow("symbolRotate")||0)*Math.PI/180||0;var b=v.getShallow("symbolOffset");if(b){var w=a[f];w[0]=s.parsePercent(b[0],n[0]),w[1]=s.parsePercent(b[1],n[1])}a.setColor(y),r[z](_,g.getItemStyle(["color"]));var M=t.getItemVisual(i,"opacity");null!=M&&(_.opacity=M);for(var T,S,C=v[N](p),P=v[N](m),L=t[c].slice();L[A]&&(T=L.pop(),S=t.getDimensionInfo(T).type,S===h||"time"===S););null!=T&&C.get("show")?(o.setText(_,C,y),_.text=r.retrieve(l.getFormattedLabel(i,"normal"),t.get(T,i))):_.text="",null!=T&&P.getShallow("show")?(o.setText(x,P,y),x.text=r.retrieve(l.getFormattedLabel(i,"emphasis"),t.get(T,i))):x.text="";var k=e(t.getItemVisual(i,"symbolSize"));if(a.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.setHoverStyle(a,x),v.getShallow("hoverAnimation")){var I=function(){var t=k[1]/k[0];this.animateTo({scale:[Math.max(1.1*k[0],k[0]+3),Math.max(1.1*k[1],k[1]+3*t)]},400,"elasticOut")},D=function(){this.animateTo({scale:k},400,"elasticOut")};a.on("mouseover",I).on("mouseout",D).on("emphasis",I).on("normal",D)}},l.fadeOut=function(t){var e=this.childAt(0);e.off("mouseover").off("mouseout").off("emphasis").off("normal"),e.style.text="",o.updateProps(e,{scale:[0,0]},this._seriesModel,this.dataIndex,t)},r[g](i,o.Group),i}),e("echarts/chart/helper/SymbolDraw",[W,"../../util/graphic","./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t.getItemLayout(e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t.getItemVisual(e,"symbol"))}var n=t("../../util/graphic"),r=t("./Symbol"),a=e[G];return a.updateData=function(t,e){var r=this.group,a=t.hostModel,o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var o=new s(t,n);o.attr(f,a),t.setItemGraphicEl(n,o),r.add(o)}})[k](function(l,u){var c=o.getItemGraphicEl(u),h=t.getItemLayout(l);return i(t,l,e)?(c?(c.updateData(t,l),n.updateProps(c,{position:h},a)):(c=new s(t,l),c.attr(f,h)),r.add(c),void t.setItemGraphicEl(l,c)):void r.remove(c)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){r.remove(e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){e.attr(f,t.getItemLayout(i))})},a.remove=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},e}),e("echarts/chart/line/poly",[W,"zrender/graphic/Path","zrender/core/vector"],function(t){function e(t){return isNaN(t[0])||isNaN(t[1])}function i(t,i,n,r,d,p,m,v,g,y,_){for(var x=0,b=n,w=0;r>w;w++){var M=i[b];if(b>=d||0>b)break;if(e(M)){if(_){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](M[0],M[1]),u(h,M);else if(g>0){var T=b+p,S=i[T];if(_)for(;S&&e(i[T]);)T+=p,S=i[T];var C=.5,A=i[x],S=i[T];if(!S||e(S))u(f,M);else{e(S)&&!_&&(S=M),a.sub(c,S,A);var P,z;if("x"===y||"y"===y){var L="x"===y?0:1;P=Math.abs(M[L]-A[L]),z=Math.abs(M[L]-S[L])}else P=a.dist(M,A),z=a.dist(M,S);C=z/(z+P),l(f,M,c,-g*(1-C))}o(h,h,v),s(h,h,m),o(f,f,v),s(f,f,m),t.bezierCurveTo(h[0],h[1],f[0],f[1],M[0],M[1]),l(h,M,c,g*C)}else t.lineTo(M[0],M[1]);x=b,b+=p}return w}function n(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t[A];r++){var a=t[r];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[0]>n[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var r=t("zrender/graphic/Path"),a=t("zrender/core/vector"),o=a.min,s=a.max,l=a.scaleAndAdd,u=a.copy,c=[],h=[],f=[];return{Polyline:r[z]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,r){var a=r.points,o=0,s=a[A],l=n(a,r.smoothConstraint);if(r.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=i(t,a,o,s,s,1,l.min,l.max,r.smooth,r.smoothMonotone,r.connectNulls)+1}}),Polygon:r[z]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,r){var a=r.points,o=r.stackedOnPoints,s=0,l=a[A],u=r.smoothMonotone,c=n(a,r.smoothConstraint),h=n(o,r.smoothConstraint);if(r.connectNulls){for(;l>0&&e(a[l-1]);l--);for(;l>s&&e(a[s]);s++);}for(;l>s;){var f=i(t,a,s,l,l,1,c.min,c.max,r.smooth,u,r.connectNulls);i(t,o,s+f-1,f,l,-1,h.min,h.max,r.stackedOnSmooth,u,r.connectNulls),s+=f+1,t.closePath()}}})}}),e("echarts/component/axis/AxisView",[W,H,"../../util/graphic","./AxisBuilder","../../echarts"],function(t){function e(t,e){function i(t){var e=n.getAxis(t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t[v],r=e.axis,a={},o=r[f],s=r.onZero?"onZero":o,l=r.dim,u=n.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u[D]],h={x:{top:c[2],bottom:c[3]},y:{left:c[0],right:c[1]}};h.x.onZero=Math.max(Math.min(i("y"),h.x[O]),h.x.top),h.y.onZero=Math.max(Math.min(i("x"),h.y.right),h.y.left),a[f]=["y"===l?h.y[s]:c[0],"x"===l?h.x[s]:c[3]];var d={x:0,y:1};a.rotation=Math.PI/2*d[l];var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[o],r.onZero&&(a.labelOffset=h[l][o]-h[l].onZero),e[N]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[N]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var m=e[N]("axisLabel").get("rotate");return a.labelRotation="top"===s?-m:m,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(H),n=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"],u=t("../../echarts").extendComponentView({type:"axis",render:function(t,n){if(this.group.removeAll(),t.get("show")){var a=n.getComponent("grid",t.get("gridIndex")),o=e(a,t),u=new r(t,o);i.each(s,u.add,u),this.group.add(u.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,r){var s=t.axis,l=t[N]("splitLine"),u=l[N]("lineStyle"),c=u.get("width"),h=u.get("color"),f=o(l,r);h=i[x](h)?h:[h];for(var d=e[v].getRect(),p=s.isHorizontal(),m=[],g=0,y=s.getTicksCoords(),_=[],b=[],w=0;w<y[A];w++)if(!a(s,w,f)){var M=s.toGlobalCoord(y[w]);p?(_[0]=M,_[1]=d.y,b[0]=M,b[1]=d.y+d[D]):(_[0]=d.x,_[1]=M,b[0]=d.x+d.width,b[1]=M);var T=g++%h[A];m[T]=m[T]||[],m[T].push(new n.Line(n.subPixelOptimizeLine({shape:{x1:_[0],y1:_[1],x2:b[0],y2:b[1]},style:{lineWidth:c},silent:!0})))}for(var S=u.getLineStyle(),w=0;w<m[A];w++)this.group.add(n.mergePath(m[w],{style:i[P]({stroke:h[w%h[A]]},S),silent:!0}))},_splitArea:function(t,e,r){var s=t.axis,l=t[N]("splitArea"),u=l[N]("areaStyle"),c=u.get("color"),h=e[v].getRect(),f=s.getTicksCoords(),d=s.toGlobalCoord(f[0]),p=s.toGlobalCoord(f[0]),m=[],g=0,y=o(l,r);c=i[x](c)?c:[c];for(var _=1;_<f[A];_++)if(!a(s,_,y)){var b,w,M,T,S=s.toGlobalCoord(f[_]);s.isHorizontal()?(b=d,w=h.y,M=S-b,T=h[D]):(b=h.x,w=p,M=h.width,T=S-w);var C=g++%c[A];m[C]=m[C]||[],m[C].push(new n.Rect({shape:{x:b,y:w,width:M,height:T},silent:!0})),d=b+M,p=w+T}for(var z=u.getAreaStyle(),_=0;_<m[A];_++)this.group.add(n.mergePath(m[_],{style:i[P]({fill:c[_%c[A]]},z),silent:!0}))}});u[z]({type:"xAxis"}),u[z]({type:"yAxis"})}),e("echarts/util/symbol",[W,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),i=t("zrender/core/BoundingRect"),n=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[D]/2;t.moveTo(i,n-a),t.lineTo(i+r,n+a),t.lineTo(i-r,n+a),t.closePath()}}),r=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[D]/2;t.moveTo(i,n-a),t.lineTo(i+r,n),t.lineTo(i,n+a),t.lineTo(i-r,n),t.closePath()}}),a=e.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[D]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),f=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var d=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*d,l+s+f*d,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*d,l+s+f*d,i-c,l+s),t.closePath()}}),s=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[D],n=e.width,r=e.x,a=e.y,o=n/3*2;t.moveTo(r,a),t.lineTo(r+o,a+i),t.lineTo(r,a+i/4*3),t.lineTo(r-o,a+i),t.lineTo(r,a),t.closePath()}}),u={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:r,pin:a,arrow:s,triangle:n},c={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[D]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[D]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[D]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[D]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[D]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[D]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[D]=n}},h={};for(var f in u)h[f]=new u[f];var d=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign=l,t.textVerticalAlign="middle")},buildPath:function(t,e){var i=e.symbolType,n=h[i];"none"!==e.symbolType&&(n||(i="rect",n=h[i]),c[i](e.x,e.y,e.width,e[D],n.shape),n.buildPath(t,n.shape))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[o]=t:this.__isEmptyBrush?(e[o]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[o]&&(e[o]=t)),this.dirty()}},m={createSymbol:function(t,n,r,a,o,s){var l=0===t[_]("empty");l&&(t=t.substr(5,1)[V]()+t.substr(6));var u;return u=0===t[_]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[_]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new d({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),u.__isEmptyBrush=l,u.setColor=p,u.setColor(s),u}};return m}),e("echarts/component/axis/AxisBuilder",[W,H,"../../util/graphic","../../model/Model","../../util/number"],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function n(t,e,i){var n,r,a=v(e-t.rotation);return g(a)?(r=i>0?"top":O,n=l):g(a-_)?(r=i>0?O:"top",n=l):(r="middle",n=a>0&&_>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function r(t,e,i){var n,r,a=v(-t.rotation),o=i[0]>i[1],s="start"===e&&!o||"start"!==e&&o;return g(a-_/2)?(r=s?O:"top",n=l):g(a-1.5*_)?(r=s?"top":O,n=l):(r="middle",n=1.5*_>a&&a>_/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:n,verticalAlign:r}}var o=t(H),c=t("../../util/graphic"),d=t("../../model/Model"),p=t("../../util/number"),v=p.remRadian,g=p.isRadianAroundZero,_=Math.PI,x=function(t,e){this.opt=e,this.axisModel=t,o[P](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group({position:e[f].slice(),rotation:e.rotation})};x[G]={constructor:x,hasBuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[m]();this.group.add(new c.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:o[z]({lineCap:"round"},e[N]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.axisLineSilent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[N]("axisTick"),n=this.opt,r=i[N]("lineStyle"),a=i.get(A),o=M(i,n.labelInterval),s=e.getTicksCoords(),l=[],u=0;u<s[A];u++)if(!w(e,u,o)){var h=s[u];l.push(new c.Line(c.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:n.tickDirection*a},style:{lineWidth:r.get("width")},silent:!0})))}this.group.add(c.mergePath(l,{style:r.getLineStyle(),z2:2,silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[u]().clone(),n=e&&e[u]().clone();return i&&n?(i[s](t.getLocalTransform()),n[s](e.getLocalTransform()),i.intersect(n)):void 0}var r=this.axisModel;if(r.get("axisLabel.show")){var o=this.opt,l=r.axis,h=r[N]("axisLabel"),f=h[N](a),p=h.get("margin"),m=l.scale.getTicks(),v=r.getFormattedLabels(),g=o.labelRotation;null==g&&(g=h.get("rotate")||0),g=g*_/180;for(var x=n(o,g,o.labelDirection),b=r.get("data"),M=[],T=r.get("silent"),S=0;S<m[A];S++)if(!w(l,S,o.labelInterval)){var C=f;b&&b[S]&&b[S][a]&&(C=new d(b[S][a],f,r.ecModel));var P=C.getTextColor(),z=l.dataToCoord(m[S]),L=[z,o.labelOffset+o.labelDirection*p],k=l.scale.getLabel(m[S]),I=new c.Text({style:{text:v[S],textAlign:C.get("align",!0)||x.textAlign,textVerticalAlign:C.get("baseline",!0)||x.verticalAlign,textFont:C.getFont(),fill:typeof P===y?P(k):P},position:L,rotation:x.rotation,silent:T,z2:10});I.eventData=e(r),I.eventData.targetType="axisLabel",I.eventData.value=k,M.push(I),this.group.add(I)}if(l.type!==i){if(r.getMin?r.getMin():r.get("min")){var D=M[0],O=M[1];t(D,O)&&(D[E]=!0)}if(r.getMax?r.getMax():r.get("max")){var R=M[M[A]-1],B=M[M[A]-2];t(B,R)&&(R[E]=!0)}}}},axisName:function(){var t=this.opt,i=this.axisModel,a=this.opt.axisName;if(null==a&&(a=i.get("name")),a){var o,s=i.get("nameLocation"),l=t.nameDirection,u=i[N]("nameTextStyle"),h=i.get("nameGap")||0,f=this.axisModel.axis[m](),d=f[0]>f[1]?-1:1,p=["start"===s?f[0]-d*h:"end"===s?f[1]+d*h:(f[0]+f[1])/2,"middle"===s?t.labelOffset+l*h:0];o="middle"===s?n(t,t.rotation,l):r(t,s,f);var v=new c.Text({style:{text:a,textFont:u.getFont(),fill:u.getTextColor()||i.get("axisLine.lineStyle.color"),textAlign:o.textAlign,textVerticalAlign:o.verticalAlign},position:p,rotation:o.rotation,silent:i.get("silent"),z2:1});v.eventData=e(i),v.eventData.targetType="axisName",v.eventData.name=a,this.group.add(v)}}},w=x.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===h&&(typeof i===y?(n=r.getTicks()[e],!i(n,r.getLabel(n))):e%(i+1))},M=x.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return x}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Z=t("echarts");return Z.graphic=t("echarts/util/graphic"),Z.number=t("echarts/util/number"),Z.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/component/grid"),t("echarts/component/tooltip"),Z});