text: !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,d=i(e[u],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}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="lineWidth",n="undefined",r="ordinal",a="retrieve",o="getContext",s="createElement",l="ecModel",u="stroke",c="category",h="getItemModel",d="transform",f="applyTransform",p="getExtent",v="normal",m="option",g="contain",y="opacity",_="position",x="center",b="middle",w="getBoundingRect",T="getTextColor",M="getFont",S="textAlign",C="textStyle",P="inherits",A="function",L="isArray",z="replace",I="splice",k="series",D="defaults",O="extend",R="isObject",E="colorStops",B="create",F="coordinateSystem",N="indexOf",V="length",G="bottom",H="ignore",q="canvasSupported",W="getHeight",j="getWidth",U="getModel",X="animation",Z="height",Y="canvas",$="string",Q="prototype",K="toLowerCase",J="getData",te="zrender/core/util",ee="require";e("echarts/component/tooltip",[ee,"./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("echarts/chart/pie",[ee,te,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(te),i=t("../echarts");t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/component/legend",[ee,"./legend/LegendModel","./legend/legendAction","./legend/LegendView","../echarts","./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t("../echarts");e.registerProcessor(t("./legend/legendFilter"))}),e("echarts/chart/bar",[ee,te,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts","../component/grid"],function(t){var e=t(te);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t("../echarts");n.registerLayout(e.curry(i,"bar")),n.registerVisual(function(t){t.eachSeriesByType("bar",function(t){var e=t[J]();e.setVisual("legendSymbol","roundRect")})}),t("../component/grid")}),e("echarts/echarts",[ee,"zrender/core/env","./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","./util/model","./util/throttle","zrender",te,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./visual/seriesColor","./preprocessor/backwardCompat","./loading/default","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix","zrender/core/vector"],function(t){function e(t){return function(e,i,n){e=e&&e[K](),le[Q][t].call(this,e,i,n)}}function i(){le.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===$&&(e=Le[e]),this.id,this.group,this._dom=t;var a=this._zr=ae.init(t,{renderer:n.renderer||Y,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n[Z]});this._throttledZrFlush=re.throttle(oe.bind(a.flush,a),17),this._theme=oe.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new b(this),this._coordSysMgr=new w,le.call(this),this._messageCenter=new i,this._initEvents(),this.resize=oe.bind(this.resize,this),this._pendingActions=[],ue(Ae,r),ue(Ce,r),a[X].on("frame",this._onframe,this)}function r(t,e,i){var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=ne.parseFinder(r,e);for(var o=0;o<a[V];o++){var s=a[o];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}function a(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 o(t,e){var i=Me[t.type],n=i.actionInfo,r=n.update||"update";this[ye]=!0;var a=[t],o=!1;t.batch&&(o=!0,a=oe.map(t.batch,function(e){return e=oe[D](oe[O]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[V];c++){var h=a[c];s=i.action(h,this._model),s=s||oe[O]({},h),s.type=n.event||s.type,l.push(s),u&&we[r].call(this,h)}"none"===r||u||(this[xe]?(we.prepareAndUpdate.call(this,t),this[xe]=!1):we[r].call(this,t)),s=o?{type:n.event||t.type,batch:l}:l[0],this[ye]=!1,!e&&this._messageCenter.trigger(s.type,s)}function s(t){for(var e=this._pendingActions;e[V];){var i=e.shift();o.call(this,i,t)}}function l(t,e,i){var n=this._api;ce(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),g(a,r)},this),e.eachSeries(function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),g(r,a),m(r,a)},this),v(this._zr,e)}function u(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[V];o++)n[o].__alive=!1;e[i?"eachComponent":"eachSeries"](function(t,o){if(i){if(t===k)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=M.parseClassType(o.type),c=i?C.getClass(u.main,u.sub):ee.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[V];){var s=n[o];s.__alive?o++:(a.remove(s.group),s.dispose(e,this._api),n[I](o,1),delete r[s.__id])}}function c(t,e){ce(Ce,function(i){i.func(t,e)})}function h(t){var e={};t.eachSeries(function(t){var i=t.get("stack"),n=t[J]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function d(t,e){var i=this._api;ce(Ae,function(n){n.isLayout&&n.func(t,i,e)})}function f(t,e){var i=this._api;t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()}),ce(Ae,function(n){n.func(t,i,e)})}function p(t,e){var i=this._api;ce(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),g(r,n)},this),ce(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"),g(n,r),m(n,r)},this),v(this._zr,t),ce(this._chartsViews,function(e){e.__alive||e.remove(t,i)},this)}function v(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!_.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function m(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t[H]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!_.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.setStyle("blend",a)})}function g(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function y(t){function e(t,e){for(var i=0;i<t[V];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";oe.each(Se,function(o,s){t._messageCenter.on(s,function(o){if(ke[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];oe.each(Ie,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,i),ce(l,function(t){t[a]!==n&&t.dispatchAction(s)}),e(l,r)}})})}var _=t("zrender/core/env"),x=t("./model/Global"),b=t("./ExtensionAPI"),w=t("./CoordinateSystem"),T=t("./model/OptionManager"),M=t("./model/Component"),S=t("./model/Series"),C=t("./view/Component"),ee=t("./view/Chart"),ie=t("./util/graphic"),ne=t("./util/model"),re=t("./util/throttle"),ae=t("zrender"),oe=t(te),se=t("zrender/tool/color"),le=t("zrender/mixin/Eventful"),ue=t("zrender/core/timsort"),ce=oe.each,he=1e3,de=5e3,fe=1e3,pe=2e3,ve=3e3,me=4e3,ge=5e3,ye="__flagInMainProcess",_e="__hasGradientOrPatternBg",xe="__optionUpdated";i[Q].on=e("on"),i[Q].off=e("off"),i[Q].one=e("one"),oe.mixin(i,le);var be=n[Q];be._onframe=function(){this[xe]&&(this[ye]=!0,we.prepareAndUpdate.call(this),this[ye]=!1,this[xe]=!1)},be.getDom=function(){return this._dom},be.getZr=function(){return this._zr},be.setOption=function(t,e,i){if(this[ye]=!0,!this._model||e){var n=new T(this._api),r=this._theme,a=this._model=new x(null,null,r,n);a.init(null,null,r,n)}this.__lastOnlyGraphic=!(!t||!t.graphic),oe.each(t,function(t,e){"graphic"!==e&&(this.__lastOnlyGraphic=!1)},this),this._model.setOption(t,Pe),i?this[xe]=!0:(we.prepareAndUpdate.call(this),this._zr.flush(),this[xe]=!1),this[ye]=!1,s.call(this,!1)},be.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},be[U]=function(){return this._model},be.getOption=function(){return this._model&&this._model.getOption()},be[j]=function(){return this._zr[j]()},be[W]=function(){return this._zr[W]()},be.getRenderedCanvas=function(t){if(_[q]){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return oe.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},be.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;ce(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[H]||(n.push(e),e.group[H]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ce(n,function(t){t.group[H]=!1}),a},be.getConnectedDataURL=function(t){if(_[q]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(ke[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;oe.each(Ie,function(r){if(r.group===e){var c=r.getRenderedCanvas(oe.clone(t)),h=r.getDom().getBoundingClientRect();a=i(h.left,a),o=i(h.top,o),s=n(h.right,s),l=n(h[G],l),u.push({dom:c,left:h.left,top:h.top})}}),a*=c,o*=c,s*=c,l*=c;var h=s-a,d=l-o,f=oe.createCanvas();f.width=h,f[Z]=d;var p=ae.init(f);return ce(u,function(t){var e=new ie.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});p.add(e)}),p.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},be.convertToPixel=oe.curry(r,"convertToPixel"),be.convertFromPixel=oe.curry(r,"convertFromPixel"),be.containPixel=function(t,e){var i,n=this._model;return t=ne.parseFinder(n,t),oe.each(t,function(t,n){n[N]("Models")>=0&&oe.each(t,function(t){var r=t[F];if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}},this)},this),!!i},be.getVisual=function(t,e){var i=this._model;t=ne.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,r=n[J](),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)};var we={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[B](this._model,this._api),c.call(this,e,i),h.call(this,e),n.update(e,i),f.call(this,e,t),p.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!_[q]){var s=se.parse(a);a=se.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a[E]||a.image?(r.configLayer(0,{clearColor:a}),this[_e]=!0,this._dom.style.background="transparent"):(this[_e]&&r.configLayer(0,{clearColor:null}),this[_e]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[J]().clearAllVisual()}),f.call(this,e,t),l.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[J]().clearAllVisual()}),f.call(this,e,t),l.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(d.call(this,e,t),l.call(this,"updateLayout",e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;u.call(this,"component",e),u.call(this,"chart",e),this.__lastOnlyGraphic?(ce(this._componentsViews,function(i){var n=i.__model;n&&"graphic"===n.mainType&&(i.render(n,e,this._api,t),g(n,i))},this),this.__lastOnlyGraphic=!1):we.update.call(this,t)}};be.resize=function(t){this[ye]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media");we[e?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[ye]=!1,s.call(this)},be.showLoading=function(t,e){if(oe[R](t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ze[t]){var i=ze[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},be.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},be.makeActionFromEvent=function(t){var e=oe[O]({},t);return e.type=Se[t.type],e},be.dispatchAction=function(t,e){if(oe[R](e)||(e={silent:!!e}),Me[t.type]){if(this[ye])return void this._pendingActions.push(t);o.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&_.browser.weChat&&this._throttledZrFlush(),s.call(this,e.silent)}},be.on=e("on"),be.off=e("off"),be.one=e("one");var Te=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];be._initEvents=function(){ce(Te,function(t){this._zr.on(t,function(e){var i,n=this[U](),r=e.target;if("globalout"===t)i={};else if(r&&null!=r.dataIndex){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(i=oe[O]({},r.eventData));i&&(i.event=e,i.type=t,this.trigger(t,i))},this)},this),ce(Se,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},be.isDisposed=function(){return this._disposed},be.clear=function(){this.setOption({series:[]},!0)},be.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;ce(this._componentsViews,function(i){i.dispose(e,t)}),ce(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete Ie[this.id]}},oe.mixin(n,le);var Me=[],Se={},Ce=[],Pe=[],Ae=[],Le={},ze={},Ie={},ke={},De=new Date-0,Oe=new Date-0,Re="_echarts_instance_",Ee={version:"3.3.2",dependencies:{zrender:"3.2.2"}};Ee.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+De++,Ie[r.id]=r,t.setAttribute&&t.setAttribute(Re,r.id),y(r),r},Ee.connect=function(t){if(oe[L](t)){var e=t;t=null,oe.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Oe++,oe.each(e,function(e){e.group=t})}return ke[t]=!0,t},Ee.disConnect=function(t){ke[t]=!1},Ee.dispose=function(t){oe.isDom(t)?t=Ee.getInstanceByDom(t):typeof t===$&&(t=Ie[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Ee.getInstanceByDom=function(t){var e=t.getAttribute(Re);return Ie[e]},Ee.getInstanceById=function(t){return Ie[t]},Ee.registerTheme=function(t,e){Le[t]=e},Ee.registerPreprocessor=function(t){Pe.push(t)},Ee.registerProcessor=function(t,e){typeof t===A&&(e=t,t=he),Ce.push({prio:t,func:e})},Ee.registerAction=function(t,e,i){typeof e===A&&(i=e,e="");var n=oe[R](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[K](),e=t.event,Me[n]||(Me[n]={action:i,actionInfo:t}),Se[e]=n},Ee.registerCoordinateSystem=function(t,e){w.register(t,e)},Ee.registerLayout=function(t,e){typeof t===A&&(e=t,t=fe),Ae.push({prio:t,func:e,isLayout:!0})},Ee.registerVisual=function(t,e){typeof t===A&&(e=t,t=ve),Ae.push({prio:t,func:e})},Ee.registerLoading=function(t,e){ze[t]=e};var Be=M.parseClassType;return Ee.extendComponentModel=function(t,e){var i=M;if(e){var n=Be(e);i=M.getClass(n.main,n.sub,!0)}return i[O](t)},Ee.extendComponentView=function(t,e){var i=C;if(e){var n=Be(e);i=C.getClass(n.main,n.sub,!0)}return i[O](t)},Ee.extendSeriesModel=function(t,e){var i=S;if(e){e="series."+e[z]("series.","");var n=Be(e);i=M.getClass(n.main,n.sub,!0)}return i[O](t)},Ee.extendChartView=function(t,e){var i=ee;if(e){e[z]("series.","");var n=Be(e);i=ee.getClass(n.main,!0)}return i[O](t)},Ee.setCanvasCreator=function(t){oe.createCanvas=t},Ee.registerVisual(pe,t("./visual/seriesColor")),Ee.registerPreprocessor(t("./preprocessor/backwardCompat")),Ee.registerLoading("default",t("./loading/default")),Ee.registerAction({type:"highlight",event:"highlight",update:"highlight"},oe.noop),Ee.registerAction({type:"downplay",event:"downplay",update:"downplay"},oe.noop),Ee.List=t("./data/List"),Ee.Model=t("./model/Model"),Ee.graphic=t("./util/graphic"),Ee.number=t("./util/number"),Ee.format=t("./util/format"),Ee.matrix=t("zrender/core/matrix"),Ee.vector=t("zrender/core/vector"),Ee.color=t("zrender/tool/color"),Ee.util={},ce(["map","each","filter",N,P,"reduce","filter","bind","curry",L,"isString",R,"isFunction",O,D,"clone"],function(t){Ee.util[t]=oe[t]}),Ee.PRIORITY={PROCESSOR:{FILTER:he,STATISTIC:de},VISUAL:{LAYOUT:fe,GLOBAL:pe,CHART:ve,COMPONENT:me,BRUSH:ge}},Ee}),e("echarts/component/title",[ee,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=t("../util/layout");e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(t,e,r){if(this.group.removeAll(),t.get("show")){var a=this.group,o=t[U](C),s=t[U]("subtextStyle"),l=t.get(S),u=t.get("textBaseline"),c=new i.Text({style:{text:t.get("text"),textFont:o[M](),fill:o[T]()},z2:10}),h=c[w](),d=t.get("subtext"),f=new i.Text({style:{text:d,textFont:s[M](),fill:s[T](),y:h[Z]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),v=t.get("sublink");c.silent=!p,f.silent=!v,p&&c.on("click",function(){window.open(p,"_"+t.get("target"))}),v&&f.on("click",function(){window.open(v,"_"+t.get("subtarget"))}),a.add(c),d&&a.add(f);var m=a[w](),g=t.getBoxLayoutParams();g.width=m.width,g[Z]=m[Z];var P=n.getLayoutRect(g,{width:r[j](),height:r[W]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===b&&(l=x),"right"===l?P.x+=P.width:l===x&&(P.x+=P.width/2)),u||(u=t.get("top")||t.get(G),u===x&&(u=b),u===G?P.y+=P[Z]:u===b&&(P.y+=P[Z]/2),u=u||"top"),a.attr(_,[P.x,P.y]);var A={textAlign:l,textVerticalAlign:u};c.setStyle(A),f.setStyle(A),m=a[w]();var L=P.margin,z=t.getItemStyle(["color",y]);z.fill=t.get("backgroundColor");var I=new i.Rect({shape:{x:m.x-L[3],y:m.y-L[0],width:m.width+L[1]+L[3],height:m[Z]+L[0]+L[2]},style:z,silent:!0});i.subPixelOptimizeRect(I),a.add(I)}}})}),e("zrender/vml/vml",[ee,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/component/tooltip/TooltipModel",[ee,"../../echarts"],function(t){t("../../echarts").extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!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("echarts/scale/Time",[ee,te,"../util/number","../util/format","./Interval"],function(t){var e=t(te),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[Q],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,d=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},f=r[O]({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=p[V],l=d(p,r,0,a),u=p[Math.min(l,a-1)],c=u[2];if("year"===u[0]){var h=n/c,f=i.nice(h/t,!0);c*=f}var v=[o(e[0]/c)*c,s(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=v},parse:function(t){return+i.parseDate(t)}});e.each([g,"normalize"],function(t){f[Q][t]=function(e){return a[t].call(this,this.parse(e))}});var p=[["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 f[B]=function(){return new f},f}),e("echarts/chart/pie/PieSeries",[ee,"../../data/List",te,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(te),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../../component/helper/selectableMixin"),o=t("../../echarts").extendSeriesModel({type:"series.pie",init:function(t){o.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){o.superCall(this,"mergeOption",t),this.updateSelectedMap(this[m].data)},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=o.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[v],i=t.labelLine.emphasis;e.show=e.show&&t.label[v].show,i.show=i.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationEasing:"cubicOut",data:[]}});return i.mixin(o,a),o}),e("echarts/scale/Log",[ee,te,"./Scale","../util/number","./Interval"],function(t){function e(t,e){return u(t,l(e))}var i=t(te),n=t("./Scale"),r=t("../util/number"),a=t("./Interval"),o=n[Q],s=a[Q],l=r.getPrecisionSafe,u=r.round,c=Math.floor,h=Math.ceil,d=Math.pow,f=Math.log,v=n[O]({type:"log",base:10,$constructor:function(){n.apply(this,arguments),this._originalScale=new a},getTicks:function(){var t=this._originalScale,n=this._extent,a=t[p]();return i.map(s.getTicks.call(this),function(i){var o=r.round(d(this.base,i));return o=i===n[0]&&t.__fixMin?e(o,a[0]):o,o=i===n[1]&&t.__fixMax?e(o,a[1]):o},this)},getLabel:s.getLabel,scale:function(t){return t=o.scale.call(this,t),d(this.base,t)},setExtent:function(t,e){var i=this.base;t=f(t)/f(i),e=f(e)/f(i),s.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,i=o[p].call(this);i[0]=d(t,i[0]),i[1]=d(t,i[1]);var n=this._originalScale,r=n[p]();return n.__fixMin&&(i[0]=e(i[0],r[0])),n.__fixMax&&(i[1]=e(i[1],r[1])),i},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=f(t[0])/f(e),t[1]=f(t[1])/f(e),o.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 n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[r.round(h(e[0]/n)*n),r.round(c(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t,e,i){s.niceExtent.call(this,t,e,i);var n=this._originalScale;n.__fixMin=e,n.__fixMax=i}});return i.each([g,"normalize"],function(t){v[Q][t]=function(e){return e=f(e)/f(this.base),o[t].call(this,e)}}),v[B]=function(){return new v},v}),e("echarts/component/tooltip/TooltipView",[ee,"./TooltipContent","../../util/graphic",te,"../../util/format","../../util/number","../../util/model","zrender/core/env","../../model/Model","../../echarts"],function(t){function e(t,e){if(!t||!e)return!1;var i=S.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function n(t,e,i,n){return{x:t,y:e,width:i,height:n}}function r(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function a(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 o(t,e,i,n,r){var a=i.clientWidth,o=i.clientHeight;return t=Math.min(t+a,n)-a,e=Math.min(e+o,r)-o,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function s(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[Z];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 G: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 v(t,e,i,n,r,l,u,c){var h=c[j](),p=c[W](),v=u&&u[w]().clone();if(u&&v[f](u[d]),typeof t===A&&(t=t([e,i],l,r.el,v)),x[L](t))e=z(t[0],h),i=z(t[1],p);else if(typeof t===$&&u){var m=s(t,v,r.el);e=m[0],i=m[1]}else{var m=a(e,i,r.el,h,p);e=m[0],i=m[1]}if(n){var m=o(e,i,r.el,h,p);e=m[0],i=m[1]}r.moveTo(e,i)}function m(t){var e=t[F],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===i)}var g=t("./TooltipContent"),y=t("../../util/graphic"),x=t(te),b=t("../../util/format"),S=t("../../util/number"),P=t("../../util/model"),z=S.parsePercent,I=t("zrender/core/env"),D=t("../../model/Model");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!I.node){var i=new g(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!I.node){this.group.removeAll(),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n.update(),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o._manuallyShowTip({x:o._lastX,y:o._lastY})})}var s=this._api.getZr();s.off("click",this._tryShow),s.off("mousemove",this._mousemove),s.off("mouseout",this._hide),s.off("globalout",this._hide),"click"===a?s.on("click",this._tryShow,this):"mousemove"===a&&(s.on("mousemove",this._mousemove,this),s.on("mouseout",this._hide,this),s.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){function e(e){var i=e[J](),n=P.queryDataIndex(i,t);return null!=n&&!x[L](n)&&i.hasValue(n)?!0:void 0}if(t.from!==this.uid){var i=this._ecModel,n=t.seriesIndex,r=i.getSeriesByIndex(n),a=this._api,o="axis"===this._tooltipModel.get("trigger");if(null==t.x||null==t.y){if(o?(r&&!e(r)&&(r=null),r||i.eachSeries(function(t){m(t)&&!r&&e(t)&&(r=t)})):r=r||i.getSeriesByIndex(0),r){var s=r[J](),l=P.queryDataIndex(s,t);if(null==l||x[L](l))return;var u,c,h=s.getItemGraphicEl(l),p=r[F];if(r.getTooltipPosition){var v=r.getTooltipPosition(l)||[];u=v[0],c=v[1]}else if(p&&p.dataToPoint){var v=p.dataToPoint(s.getValues(x.map(p.dimensions,function(t){return r.coordDimToDataDim(t)[0]}),l,!0));u=v&&v[0],c=v&&v[1]}else if(h){var g=h[w]().clone();g[f](h[d]),u=g.x+g.width/2,c=g.y+g[Z]/2}null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:t[_],target:h,event:{}})}}else{var h=a.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,position:t[_],target:h,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(m(t)){var e,n,r=t[F];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"singleAxis"===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][k].push(t)}},this),i},_tryShow:function(t){var e=t.target,i=this._tooltipModel,n=i.get("trigger"),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.seriesIndex),s=e.dataIndex,l=o[J]()[h](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,dataIndexInside:e.dataIndex,seriesIndex:e.seriesIndex})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===$){var c=u;u={content:c,formatter:c}}var d=new D(u,i),f=d.get("content"),p=Math.random();this._showTooltipContent(d,f,d.get("formatterParams")||{},p,t.offsetX,t.offsetY,t[_],e,a)}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[U]("axisPointer"),a=r.get("type");if("cross"===a){var o=n.target;if(o&&null!=o.dataIndex){var s=i.getSeriesByIndex(o.seriesIndex),l=o.dataIndex;this._showItemTooltipContent(s,l,o.dataType,n)}}this._showAxisPointer();var u=!0;x.each(this._seriesGroupByAxis,function(i){var o=i.coordSys,s=o[0],l=[n.offsetX,n.offsetY];if(!s.containPoint(l))return void this._hideAxisPointer(s.name);u=!1;var c=s.dimensions,h=s.pointToData(l,!0);l=s.dataToPoint(h);var d=s.getBaseAxis(),f=r.get("axis");"auto"===f&&(f=d.dim);var p=!1,v=this._lastHover;if("cross"===a)e(v.data,h)&&(p=!0),v.data=h;else{var m=x[N](c,f);v.data===h[m]&&(p=!0),v.data=h[m]}var g=t.get(X);"cartesian2d"!==s.type||p?"polar"!==s.type||p?"singleAxis"!==s.type||p||this._showSinglePointer(r,s,f,l,g):this._showPolarPointer(r,s,f,l,g):this._showCartesianPointer(r,s,f,l,g),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(s,i[k],l,h,p,n[_])},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,r,a,o){function s(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=u._getPointerElement(e,t,n,o);y.subPixelOptimizeLine({shape:o,style:s.style}),f?y.updateProps(s,{shape:o},t):s.attr({shape:o})
  }function l(i,r,a){var o=e.getAxis(i),s=o.getBandWidth(),l=a[1]-a[0],c="x"===i?n(r[0]-s/2,a[0],s,l):n(a[0],r[1]-s/2,l,s),h=u._getPointerElement(e,t,i,c);f?y.updateProps(h,{shape:c},t):h.attr({shape:c})}var u=this,h=t.get("type"),d=e.getBaseAxis(),f=o&&"cross"!==h&&d.type===c&&d.getBandWidth()>20;if("cross"===h)s("x",a,e.getAxis("y").getGlobalExtent()),s("y",a,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var p=e.getAxis("x"===r?"y":"x"),v=p.getGlobalExtent();"cartesian2d"===e.type&&("line"===h?s:l)(r,a,v)}},_showSinglePointer:function(t,e,n,r,a){function o(n,r,a){var o=e.getAxis(),l=o.orient,c="horizontal"===l?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),h=s._getPointerElement(e,t,n,c);u?y.updateProps(h,{shape:c},t):h.attr({shape:c})}var s=this,l=t.get("type"),u=a&&"cross"!==l&&e.getBaseAxis().type===c,h=e.getRect(),d=[h.y,h.y+h[Z]];o(n,r,d)},_showPolarPointer:function(t,e,n,a,o){function s(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var l=e.coordToPoint([a[0],s[1]]),c=e.coordToPoint([a[1],s[1]]);o=i(l[0],l[1],c[0],c[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var h=u._getPointerElement(e,t,n,o);v?y.updateProps(h,{shape:o},t):h.attr({shape:o})}function l(i,n,a){var o,s=e.getAxis(i),l=s.getBandWidth(),c=e.pointToCoord(n),h=Math.PI/180;o="angle"===i?r(e.cx,e.cy,a[0],a[1],(-c[1]-l/2)*h,(-c[1]+l/2)*h):r(e.cx,e.cy,c[0]-l/2,c[0]+l/2,0,2*Math.PI);var d=u._getPointerElement(e,t,i,o);v?y.updateProps(d,{shape:o},t):d.attr({shape:o})}var u=this,h=t.get("type"),d=e.getAngleAxis(),f=e.getRadiusAxis(),v=o&&"cross"!==h&&e.getBaseAxis().type===c;if("cross"===h)s("angle",a,f[p]()),s("radius",a,d[p]()),this._updateCrossText(e,a,t);else{var m=e.getAxis("radius"===n?"angle":"radius"),g=m[p]();("line"===h?s:l)(n,a,g)}},_updateCrossText:function(t,e,i){var n=i[U]("crossStyle"),r=n[U](C),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new y.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t.dimensions;s=x.map(s,function(e,i){var n=t.getAxis(l[i]);return e=n.type===c||"time"===n.type?n.scale.getLabel(e):b.addCommas(e.toFixed(n.getPixelPrecision()))}),o.setStyle({fill:r[T]()||n.get("color"),textFont:r[M](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o.zlevel=a.get("zlevel")},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get("zlevel"),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var c=e.get("type"),h=e[U](c+"Style"),d="shadow"===c,f=h[d?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?d?"Sector":"radius"===i?"Circle":"Line":d?"Rect":"Line";d?f[u]=null:f.fill=null;var v=s[l][i]=new y[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,r,a){var o,s=this._tooltipModel,l=t.getBaseAxis(),u="x"===l.dim||"radius"===l.dim?0:1,h=x.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndexInside:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(l.dim),n,l):t[J]().indexOfNearest(t.coordDimToDataDim(l.dim)[0],n[u],!1,l.type===c?.5:null)}});x.each(h,function(t,i){e[i][J]().hasValue(t.dataIndexInside)&&(o=i)}),o=o||0;var d=this._lastHover,f=this._api;if(d.payloadBatch&&!r&&f.dispatchAction({type:"downplay",batch:d.payloadBatch}),r||(f.dispatchAction({type:"highlight",batch:h}),d.payloadBatch=h),f.dispatchAction({type:"showTip",dataIndexInside:h[o].dataIndexInside,seriesIndex:h[o].seriesIndex,from:this.uid}),l&&s.get("showContent")&&s.get("show")){var p=x.map(e,function(t,e){return t.getDataParams(h[e].dataIndexInside)});if(r)v(a||s.get(_),i[0],i[1],s.get("confine"),this._tooltipContent,p,null,f);else{var m=h[o].dataIndexInside,g="time"===l.type?l.scale.getLabel(n[u]):e[o][J]().getName(m),y=(g?g+"<br />":"")+x.map(e,function(t,e){return t.formatTooltip(h[e].dataIndexInside,!0)}).join("<br />"),b="axis_"+t.name+"_"+m;this._showTooltipContent(s,y,p,b,i[0],i[1],a,null,f)}}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[J](i),o=a[h](e),s=o.get("tooltip",!0);if(typeof s===$){var u=s;s={formatter:u}}var c=this._tooltipModel,d=t[U]("tooltip",c),f=new D(s,d,d[l]),p=t.getDataParams(e,i),v=t.formatTooltip(e,!1,i),m="item_"+t.name+"_"+e;this._showTooltipContent(f,v,p,m,n.offsetX,n.offsetY,n[_],n.target,r)},_showTooltipContent:function(t,e,i,n,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("confine"),h=t.get("formatter");o=o||t.get(_);var d=e;if(h)if(typeof h===$)d=b.formatTpl(h,i);else if(typeof h===A){var f=this,p=n,m=function(t,e){t===f._ticket&&(u.setContent(e),v(o,r,a,c,u,i,s,l))};f._ticket=p,d=h(i,p,m)}u.show(t),u.setContent(d),v(o,r,a,c,u,i,s,l)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&x.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&&x.each(e,function(t){t.hide()})}else this.group.children()[V]&&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(!I.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/action/createDataSelectAction",[ee,"../echarts",te],function(t){var e=t("../echarts"),i=t(te);return function(t,n){i.each(n,function(i){i.update="updateView",e.registerAction(i,function(e,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[J]();n.each(function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e(te,[ee],function(){function t(e){if(null==e||"object"!=typeof e)return e;var i=e,n=D.call(e);if("[object Array]"===n){i=[];for(var r=0,a=e[V];a>r;r++)i[r]=t(e[r])}else if(k[n])i=e.constructor.from(e);else if(!I[n]&&!S(e)){i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=t(e[o]))}return i}function e(i,n,r){if(!T(n)||!T(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!T(s)||!T(o)||x(s)||x(o)||S(s)||S(o)||M(s)||M(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[V];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(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 a(){return document[s](Y)}function l(){return z||(z=H.createCanvas()[o]("2d")),z}function u(t,e){if(t){if(t[N])return t[N](e);for(var i=0,n=t[V];n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t[Q];i[Q]=e[Q],t[Q]=new i;for(var r in n)t[Q][r]=n[r];t[Q].constructor=t,t.superClass=e}function h(t,e,i){t=Q in t?t[Q]:t,e=Q in e?e[Q]:e,r(t,e,i)}function d(t){return t?typeof t==$?!1:"number"==typeof t[V]:void 0}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[V]===+t[V])for(var n=0,r=t[V];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===F)return t.map(e,i);for(var n=[],r=0,a=t[V];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function v(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===G)return t.reduce(e,i,n);for(var r=0,a=t[V];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===E)return t.filter(e,i);for(var n=[],r=0,a=t[V];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[V];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=B.call(arguments,2);return function(){return t.apply(e,i.concat(B.call(arguments)))}}function _(t){var e=B.call(arguments,1);return function(){return t.apply(this,e.concat(B.call(arguments)))}}function x(t){return"[object Array]"===D.call(t)}function b(t){return typeof t===A}function w(t){return"[object String]"===D.call(t)}function T(t){var e=typeof t;return e===A||!!t&&"object"==e}function M(t){return!!I[D.call(t)]}function S(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function C(){for(var t=0,e=arguments[V];e>t;t++)if(null!=arguments[t])return arguments[t]}function P(){return Function.call.apply(B,arguments)}function L(t,e){if(!t)throw new Error(e)}var z,I={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},k={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},D=Object[Q].toString,O=Array[Q],R=O.forEach,E=O.filter,B=O.slice,F=O.map,G=O.reduce,H={inherits:c,mixin:h,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:l,createCanvas:a,indexOf:u,slice:P,find:g,isArrayLike:d,each:f,map:p,reduce:v,filter:m,bind:y,curry:_,isArray:x,isString:w,isObject:T,isFunction:b,isBuildInObject:M,isDom:S,retrieve:C,assert:L,noop:function(){}};return H}),e("echarts/chart/pie/PieView",[ee,"../../util/graphic",te,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[J](),o=this.dataIndex,s=a.getName(o),l=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr(_,u)}function n(t,e){function i(){a[H]=a.hoverIgnore,s[H]=s.hoverIgnore}function n(){a[H]=a.normalIgnore,s[H]=s.normalIgnore}o.Group.call(this);var r=new o.Sector({z2:2}),a=new o.Polyline,s=new o.Text;this.add(r),this.add(a),this.add(s),this.updateData(t,e,!0),this.on("emphasis",i).on(v,n).on("mouseover",i).on("mouseout",n)}function r(t,e,i,n,r){var o=n[U](C),l="inside"===r||"inner"===r;return{fill:o[T]()||(l?"#fff":t.getItemVisual(e,"color")),opacity:t.getItemVisual(e,y),textFont:o[M](),text:s[a](t.hostModel.getFormattedLabel(e,i),t.getName(e))}}var o=t("../../util/graphic"),s=t(te),l=n[Q];l.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r+10}},300,"elasticOut")}function a(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,c=t[h](e),d=t.getItemLayout(e),f=s[O]({},d);f.label=null,n?(l.setShape(f),l.shape.endAngle=d.startAngle,o.updateProps(l,{shape:{endAngle:d.endAngle}},u,e)):o.updateProps(l,{shape:f},u,e);var p=c[U]("itemStyle"),m=t.getItemVisual(e,"color");l.useStyle(s[D]({lineJoin:"bevel",fill:m},p[U](v).getItemStyle())),l.hoverStyle=p[U]("emphasis").getItemStyle(),i(this,t.getItemLayout(e),c.get("selected"),u.get("selectedOffset"),u.get(X)),l.off("mouseover").off("mouseout").off("emphasis").off(v),c.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on("mouseover",r).on("mouseout",a).on("emphasis",r).on(v,a),this._updateLabel(t,e),o.setHoverStyle(this)},l._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,s=t[h](e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");o.updateProps(i,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},a,e),o.updateProps(n,{style:{x:u.x,y:u.y}},a,e),n.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u[S],textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var d=s[U]("label.normal"),f=s[U]("label.emphasis"),p=s[U]("labelLine.normal"),m=s[U]("labelLine.emphasis"),g=d.get(_)||f.get(_);n.setStyle(r(t,e,v,d,g)),n[H]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),i[H]=i.normalIgnore=!p.get("show"),i.hoverIgnore=!m.get("show"),i.setStyle({stroke:c,opacity:t.getItemVisual(e,y)}),i.setStyle(p[U]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,"emphasis",f,g),i.hoverStyle=m[U]("lineStyle").getLineStyle();var x=p.get("smooth");x&&x===!0&&(x=.4),i.setShape({smooth:x})},s[P](n,o.Group);var u=t("../../view/Chart")[O]({type:"pie",init:function(){var t=new o.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var o=t[J](),l=this._data,u=this.group,c=i.get(X),h=!l,d=s.curry(e,this.uid,t,c,r),f=t.get("selectedMode");if(o.diff(l).add(function(t){var e=new n(o,t);h&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",d),o.setItemGraphicEl(t,e),u.add(e)}).update(function(t,e){var i=l.getItemGraphicEl(e);i.updateData(o,t),i.off("click"),f&&i.on("click",d),u.add(i),o.setItemGraphicEl(t,i)}).remove(function(t){var e=l.getItemGraphicEl(t);u.remove(e)}).execute(),c&&h&&o.count()>0){var p=o.getItemLayout(0),v=Math.max(r[j](),r[W]())/2,m=s.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(p.cx,p.cy,v,p.startAngle,p.clockwise,m,t))}this._data=o}},dispose:function(){},_createClipPath:function(t,e,i,n,r,a,s){var l=new o.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return o.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,a),l},containPoint:function(t,e){var i=e[J](),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}});return u}),e("echarts/visual/dataColor",[ee],function(){return function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[J]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),n.each(function(e){var o=n[h](e),s=r[e],l=null!=s&&a.getItemVisual(s,"color",!0);if(l)n.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(n.getName(e),i);n.setItemVisual(e,"color",u),null!=s&&a.setItemVisual(s,"color",u)}})}})}}),e("echarts/chart/pie/pieLayout",[ee,"../../util/number","./labelLayout",te],function(t){var e=t("../../util/number"),i=e.parsePercent,n=t("./labelLayout"),r=t(te),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s.eachSeriesByType(t,function(t){var s=t.get(x),u=t.get("radius");r[L](u)||(u=[0,u]),r[L](s)||(s=[s,s]);var c=l[j](),h=l[W](),d=Math.min(c,h),f=i(s[0],c),p=i(s[1],h),v=i(u[0],d/2),m=i(u[1],d/2),g=t[J](),y=-t.get("startAngle")*o,_=t.get("minAngle")*o,b=g.getSum("value"),w=Math.PI/(b||g.count())*2,T=t.get("clockwise"),M=t.get("roseType"),S=g.getDataExtent("value");S[0]=0;var C=a,P=0,A=y,z=T?1:-1;if(g.each("value",function(t,i){var n;n="area"!==M?0===b?w:t*w:a/(g.count()||1),_>n?(n=_,C-=_):P+=t;var r=A+z*n;g.setItemLayout(i,{angle:n,startAngle:A,endAngle:r,clockwise:T,cx:f,cy:p,r0:v,r:M?e.linearMap(t,S,[v,m]):m}),A=r},!0),a>C)if(.001>=C){var I=a/g.count();g.each(function(t){var e=g.getItemLayout(t);e.startAngle=y+z*t*I,e.endAngle=y+z*(t+1)*I})}else w=C/P,A=y,g.each("value",function(t,e){var i=g.getItemLayout(e),n=i.angle===_?_:t*w;i.startAngle=A,i.endAngle=A+z*n,A+=z*n});n(t,m,c,h)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[V]&&e.eachSeriesByType(t,function(t){var e=t[J]();e.filterSelf(function(t){for(var n=e.getName(t),r=0;r<i[V];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/component/legend/LegendModel",[ee,te,"../../model/Model","../../echarts"],function(t){var e=t(te),i=t("../../model/Model"),n=t("../../echarts").extendComponentModel({type:"legend",dependencies:[k],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){n.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this[l]);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t[V];i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var n=e.map(this.get("data")||[],function(t){return(typeof t===$||"number"==typeof t)&&(t={name:t}),new i(t,this,this[l])},this);this._data=n;var r=e.map(t.getSeries(),function(t){return t.name});t.eachSeries(function(t){if(t.legendDataProvider){var e=t.legendDataProvider();r=r.concat(e.mapArray(e.getName))}}),this._availableNames=r},getData:function(){return this._data},select:function(t){var i=this[m].selected,n=this.get("selectedMode");if("single"===n){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[m].selected[t]=!1)},toggleSelected:function(t){var e=this[m].selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[m].selected;return!(i.hasOwnProperty(t)&&!i[t])&&e[N](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});return n}),e("echarts/component/legend/legendAction",[ee,"../../echarts",te],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[J]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t("../../echarts"),n=t(te);i.registerAction("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i.registerAction("legendSelect","legendselected",n.curry(e,"select")),i.registerAction("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendView",[ee,te,"../../util/symbol","../../util/graphic","../helper/listComponent","../../echarts"],function(t){function e(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function i(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var r=t(te),a=t("../../util/symbol"),o=t("../../util/graphic"),s=t("../helper/listComponent"),l=r.curry;return t("../../echarts").extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,u){var c=this.group;if(c.removeAll(),t.get("show")){var h=t.get("selectedMode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var f={};r.each(t[J](),function(r){var s=r.get("name");if(""===s||"\n"===s)return void c.add(new o.Group({newline:!0}));var p=a.getSeriesByName(s)[0];if(!f[s])if(p){var v=p[J](),m=v.getVisual("color");typeof m===A&&(m=m(p.getDataParams(0)));var g=v.getVisual("legendSymbol")||"roundRect",y=v.getVisual("symbol"),_=this._createItem(s,r,t,g,y,d,m,h);_.on("click",l(e,s,u)).on("mouseover",l(i,p,null,u)).on("mouseout",l(n,p,null,u)),f[s]=!0}else a.eachRawSeries(function(a){if(!f[s]&&a.legendDataProvider){var o=a.legendDataProvider(),c=o.indexOfName(s);if(0>c)return;var p=o.getItemVisual(c,"color"),v="roundRect",m=this._createItem(s,r,t,v,null,d,p,h);m.on("click",l(e,s,u)).on("mouseover",l(i,a,s,u)).on("mouseout",l(n,a,s,u)),f[s]=!0}},this)},this),s.layout(c,t,u),s.addBackground(c,t)}},_createItem:function(t,e,i,n,s,l,u,c){var h=i.get("itemWidth"),d=i.get("itemHeight"),f=i.get("inactiveColor"),p=i.isSelected(t),v=new o.Group,g=e[U](C),y=e.get("icon"),_=e[U]("tooltip"),x=_.parentModel;if(n=y||n,v.add(a.createSymbol(n,0,0,h,d,p?u:f)),!y&&s&&(s!==n||"none"==s)){var b=.8*d;"none"===s&&(s="circle"),v.add(a.createSymbol(s,(h-b)/2,(d-b)/2,b,b,p?u:f))}var S="left"===l?h+5:-5,P=l,L=i.get("formatter"),I=t;typeof L===$&&L?I=L[z]("{name}",null!=t?t:""):typeof L===A&&(I=L(t));var k=new o.Text({style:{text:I,x:S,y:d/2,fill:p?g[T]():f,textFont:g[M](),textAlign:P,textVerticalAlign:"middle"}});v.add(k);var D=new o.Rect({shape:v[w](),invisible:!0,tooltip:_.get("show")?r[O]({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},_[m]):null});return v.add(D),v.eachChild(function(t){t.silent=!0}),D.silent=!c,this.group.add(v),o.setHoverStyle(v),v}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[V]&&t.filterSeries(function(t){for(var i=0;i<e[V];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/chart/bar/BarSeries",[ee,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[O]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},getMarkerPosition:function(t){var e=this[F];if(e){var i=e.dataToPoint(t,!0),n=this[J](),r=n.getLayout("offset"),a=n.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return i[o]+=r+a/2,i}return[0/0,0/0]},brushSelector:"rect",defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})}),e("echarts/coord/cartesian/Grid",[ee,"exports","../../util/layout","../../coord/axisHelper",te,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e){return t.findGridModel()===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=i[U]("axisLabel.textStyle"),a=1,o=n[V];o>40&&(a=Math.ceil(o/40));for(var s=0;o>s;s+=a)if(!t.isLabelIgnored(s)){var l=r.getTextRect(n[s]);e?e.union(l):e=l}return e}function n(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[p](),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}}function o(t){return h.map(x,function(e){var i=t.getReferringComponents(e)[0];return i})}function s(t){return"cartesian2d"===t.get(F)}var l=t("../../util/layout"),u=t("../../coord/axisHelper"),h=t(te),d=t("./Cartesian2D"),f=t("./Axis2D"),v=h.each,m=u.ifAxisCrossZero,g=u.niceScaleExtent;t("./GridModel");var y=n[Q];y.type="grid",y.getRect=function(){return this._rect},y.update=function(t,e){function i(t){var e=n[t];for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r&&(r.type===c||!m(r)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),v(n.x,function(t){g(t,t.model)}),v(n.y,function(t){g(t,t.model)}),v(n.x,function(t){i("y")&&(t.onZero=!1)}),v(n.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this._model,e)},y.resize=function(t,e){function n(){v(o,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r[Z]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),a(t,e?r.x:r.y)})}var r=l.getLayoutRect(t.getBoxLayoutParams(),{width:e[j](),height:e[W]()});this._rect=r;var o=this._axesList;n(),t.get("containLabel")&&(v(o,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?Z:"width",a=t.model.get("axisLabel.margin");r[n]-=e[n]+a,"top"===t[_]?r.y+=e[Z]+a:"left"===t[_]&&(r.x+=e.width+a)}}}),n())},y.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},y.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n<r[V];n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},y.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},y.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},y._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)i=r[F],h[N](l,i)<0&&(i=null);else if(a&&o)i=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)n=this.getAxis("x",a.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(s){var u=s[F];u===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},y.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},y._initCartesian=function(t,i){function n(n){return function(s,l){if(e(s,t,i)){var h=s.get(_);"x"===n?"top"!==h&&h!==G&&(h=G,r[h]&&(h="top"===h?G:"top")):"left"!==h&&"right"!==h&&(h="left",r[h]&&(h="left"===h?"right":"left")),r[h]=!0;var d=new f(n,u.createScaleByModel(s),[0,0],s.get("type"),h),p=d.type===c;d.onBand=p&&s.get("boundaryGap"),d.inverse=s.get("inverse"),d.onZero=s.get("axisLine.onZero"),s.axis=d,d.model=s,d.grid=this,d.index=l,this._axesList.push(d),a[n][l]=d,o[n]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},o={x:0,y:0};return i.eachComponent("xAxis",n("x"),this),i.eachComponent("yAxis",n("y"),this),o.x&&o.y?(this._axesMap=a,void v(a.x,function(t,e){v(a.y,function(i,n){var r="x"+e+"y"+n,a=new d(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=[]))},y._updateScale=function(t,i){function n(t,e,i){v(i.coordDimToDataDim(e.dim),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==r))})}h.each(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(r){if(s(r)){var a=o(r,t),l=a[0],u=a[1];if(!e(l,i,t)||!e(u,i,t))return;var c=this.getCartesian(l.componentIndex,u.componentIndex),h=r[J](),d=c.getAxis("x"),f=c.getAxis("y");"list"===h.type&&(n(h,d,r),n(h,f,r))}},this)};var x=["xAxis","yAxis"];return n[B]=function(t,e){var i=[];return t.eachComponent("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o.resize(r,e),r[F]=o,i.push(o)}),t.eachSeries(function(e){if(s(e)){var i=o(e,t),n=i[0],r=i[1],a=n.findGridModel(),l=a[F];e[F]=l.getCartesian(n.componentIndex,r.componentIndex)}}),i},n.dimensions=d[Q].dimensions,t("../../CoordinateSystem").register("cartesian2d",n),n}),e("echarts/chart/bar/BarView",[ee,te,"../../util/graphic","../../model/Model","./barItemStyle","../../echarts"],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[Z]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[Z])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[Z]-=n*e}var i=t(te),n=t("../../util/graphic");return i[O](t("../../model/Model")[Q],t("./barItemStyle")),t("../../echarts").extendChartView({type:"bar",render:function(t,e,i){var n=t.get(F);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},dispose:i.noop,_renderOnCartesian:function(t){function r(r,a){var s=o.getItemLayout(r),l=o[h](r).get(f)||0;e(s,l);var u=new n.Rect({shape:i[O]({},s)});if(d){var p=u.shape,v=c?Z:"width",m={};p[v]=0,m[v]=s[v],n[a?"updateProps":"initProps"](u,{shape:m},t,r)}return u}var a=this.group,o=t[J](),s=this._data,l=t[F],u=l.getBaseAxis(),c=u.isHorizontal(),d=t.get(X),f=["itemStyle",v,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}}).update(function(i,l){var u=s.getItemGraphicEl(l);if(!o.hasValue(i))return void a.remove(u);u||(u=r(i,!0));var c=o.getItemLayout(i),d=o[h](i).get(f)||0;e(c,d),n.updateProps(u,{shape:c},t,i),o.setItemGraphicEl(i,u),a.add(u)}).remove(function(e){var i=s.getItemGraphicEl(e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,e,function(){a.remove(i)}))}).execute(),this._updateStyle(t,o,c),this._data=o},_updateStyle:function(t,e,r){function o(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(s,l){var u=e[h](l),c=e.getItemVisual(l,"color"),d=e.getItemVisual(l,y),f=e.getItemLayout(l),p=u[U]("itemStyle.normal"),m=u[U]("itemStyle.emphasis").getBarItemStyle();s.setShape("r",p.get("barBorderRadius")||0),s.useStyle(i[D]({fill:c,opacity:d},p.getBarItemStyle()));var g=r?f[Z]>0?G:"top":f.width>0?"left":"right",_=u[U]("label.normal"),x=u[U]("label.emphasis"),b=s.style;_.get("show")?o(b,_,c,i[a](t.getFormattedLabel(l,v),t.getRawValue(l)),g):b.text="",x.get("show")?o(m,x,c,i[a](t.getFormattedLabel(l,"emphasis"),t.getRawValue(l)),g):m.text="",n.setHoverStyle(s,m)})},remove:function(t){var e=this.group;t.get(X)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,i.dataIndex,function(){e.remove(i)})}):e.removeAll()}})}),e("echarts/layout/barGrid",[ee,te,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function i(t){return t.dim+t.index}function n(t){var n={};a.each(t,function(t){var r=t[J](),a=t[F],o=a.getBaseAxis(),l=o[p](),u=o.type===c?o.getBandWidth():Math.abs(l[1]-l[0])/r.count(),h=n[i(o)]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[i(o)]=h;var f=e(t);d[f]||h.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var v=s(t.get("barWidth"),u),m=s(t.get("barMaxWidth"),u),g=t.get("barGap"),y=t.get("barCategoryGap");v&&!d[f].width&&(v=Math.min(h.remainedWidth,v),d[f].width=v,h.remainedWidth-=v),m&&(d[f].maxWidth=m),null!=g&&(h.gap=g),null!=y&&(h.categoryGap=y)});var r={};return a.each(n,function(t,e){r[e]={};var i=t.stacks,n=t.bandWidth,o=s(t.categoryGap,n),l=s(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-o)/(c+(c-1)*l);h=Math.max(h,0),a.each(i,function(t){var e=t.maxWidth;!t.width&&e&&h>e&&(e=Math.min(e,u),u-=e,t.width=e,c--)}),h=(u-o)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;a.each(i,function(t){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;a.each(i,function(t,i){r[e][i]=r[e][i]||{offset:p,width:t.width},p+=t.width*(1+l)})}),r}function r(t,r){var o=n(a.filter(r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[F]&&"cartesian2d"===t[F].type})),s={},l={};r.eachSeriesByType(t,function(t){var n=t[J](),r=t[F],a=r.getBaseAxis(),u=e(t),c=o[i(a)][u],h=c.offset,d=c.width,f=r.getOtherAxis(a),p=t.get("barMinHeight")||0,v=a.onZero?f.toGlobalCoord(f.dataToCoord(0)):f.getGlobalExtent()[0],m=r.dataToPoints(n,!0);s[u]=s[u]||[],l[u]=l[u]||[],n.setLayout({offset:h,size:d}),n.each(f.dim,function(t,e){if(!isNaN(t)){s[u][e]||(s[u][e]={p:v,n:v},l[u][e]={p:v,n:v});var i,r,a,o,c=t>=0?"p":"n",g=m[e],y=s[u][e][c],_=l[u][e][c];f.isHorizontal()?(i=y,r=g[1]+h,a=g[0]-_,o=d,l[u][e][c]+=a,Math.abs(a)<p&&(a=(0>a?-1:1)*p),s[u][e][c]+=a):(i=g[0]+h,r=y,a=d,o=g[1]-_,l[u][e][c]+=o,Math.abs(o)<p&&(o=(0>=o?-1:1)*p),s[u][e][c]+=o),n.setItemLayout(e,{x:i,y:r,width:a,height:o})}},!0)},this)}var a=t(te),o=t("../util/number"),s=o.parsePercent;return r}),e("echarts/component/grid",[ee,"../util/graphic",te,"../echarts","../coord/cartesian/Grid","./axis"],function(t){var e=t("../util/graphic"),i=t(te),n=t("../echarts");t("../coord/cartesian/Grid"),t("./axis"),n.extendComponentView({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new e.Rect({shape:t[F].getRect(),style:i[D]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e("zrender/core/env",[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),l=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),l&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:document[s](Y)[o]?!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===n?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/model/Global",[ee,te,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){l.each(e,function(e,i){y.hasClass(i)||("object"==typeof e?t[i]=t[i]?l.merge(t[i],e,!1):l.clone(e):null==t[i]&&(t[i]=e))})}function i(t){t=t,this[m]={},this[m][x]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[m]),l.merge(t,_,!1),this.mergeOption(t)}function n(t,e){l[L](e)||(e=e?[e]:[]);var i={};return h(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e,i){var n=e.type?e.type:i?i.subType:y.determineSubType(t,e);return n}function a(t){return f(t,function(t){return t.componentIndex})||[]}function o(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function s(t){}var l=t(te),u=t("../util/model"),c=t("./Model"),h=l.each,d=l.filter,f=l.map,p=l[L],v=l[N],g=l[R],y=t("./Component"),_=t("./globalDefault"),x="\x00_ec_inner",b=c[O]({constructor:b,init:function(t,e,i,n){i=i||{},this[m]=null,this._theme=new c(i),this._optionManager=n},setOption:function(t,e){l.assert(!(x 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[m]&&"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[V]&&h(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var c=u.normalizeToArray(t[e]),d=u.mappingToExists(o[e],c);u.makeIdAndName(d),h(d,function(t){var i=t[m];g(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=r(e,i,t.exist))});var f=n(o,s);i[e]=[],o[e]=[],h(d,function(t,n){var r=t.exist,a=t[m];if(l.assert(g(a)||r,"Empty component definition"),a){var s=y.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r.mergeOption(a,this),r.optionUpdated(a,!1);else{var u=l[O]({dependentModels:f,componentIndex:n},t.keyInfo);r=new s(a,this,this,u),l[O](r,u),r.init(a,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o[e][n]=r,i[e][n]=r[m]},this),e===k&&(this._seriesIndices=a(o[k]))}var i=this[m],o=this._componentsMap,s=[];h(t,function(t,e){null!=t&&(y.hasClass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),y.topologicalTravel(s,y.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=l.clone(this[m]);return h(t,function(e,i){if(y.hasClass(i)){for(var e=u.normalizeToArray(e),n=e[V]-1;n>=0;n--)u.isIdInner(e[n])&&e[I](n,1);t[i]=e}}),delete t[x],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[V])return[];var s;if(null!=i)p(i)||(i=[i]),s=d(f(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=p(n);s=d(a,function(t){return l&&v(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=p(r);s=d(a,function(t){return u&&v(r,t.name)>=0||!u&&t.name===r})}else s=a;return o(s,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),s=a?this.queryComponents(a):this._componentsMap[r];return i(o(s,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===A)i=e,e=t,h(n,function(t,n){h(t,function(t,r){e.call(i,n,t,r)})});else if(l.isString(t))h(n[t],e,i);else if(g(t)){var r=this.findComponents(t);h(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[k];return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[k][t]},getSeriesByType:function(t){var e=this._componentsMap[k];return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[k].slice()},eachSeries:function(t,e){s(this),h(this._seriesIndices,function(i){var n=this._componentsMap[k][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){h(this._componentsMap[k],t,e)},eachSeriesByType:function(t,e,i){s(this),h(this._seriesIndices,function(n){var r=this._componentsMap[k][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return h(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return s(this),l[N](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){s(this);var i=d(this._componentsMap[k],t,e);this._seriesIndices=a(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=a(t[k]);var e=[];h(t,function(t,i){e.push(i)}),y.topologicalTravel(e,y.getAllClassMainTypes(),function(e){h(t[e],function(t){t.restoreData()})})}});return l.mixin(b,t("./mixin/colorPalette")),b}),e("echarts/ExtensionAPI",[ee,te],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(te),n=["getDom","getZr",j,W,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",U,"getOption"];return e}),e("echarts/CoordinateSystem",[ee,te],function(t){function e(){this._coordinateSystems=[]}var i=t(te),n={};return e[Q]={constructor:e,create:function(t,e){var r=[];i.each(n,function(i){var n=i[B](t,e);r=r.concat(n||[])}),this._coordinateSystems=r},update:function(t,e){i.each(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]},e}),e("echarts/model/OptionManager",[ee,te,"../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,i){var n,r,a=[],o=[],l=t.timeline;if(t.baseOption&&(r=t.baseOption),(l||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var u=t.media;c(u,function(t){t&&t[m]&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=l),c([r].concat(a).concat(s.map(o,function(t){return t[m]})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}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][K]();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]=d(r,function(t){return t[m]&&t.exist?f(t.exist,t[m],!0):t.exist||t[m]})}else t[i]=f(n,e,!0)}})}var s=t(te),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[Q]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[V]&&(n.timelineOptions=r.timelineOptions),r.mediaList[V]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=d(e.timelineOptions,h),this._mediaList=d(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[V]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[j](),e=this._api[W](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[V]&&!r)return s;for(var l=0,u=i[V];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[V]&&r&&(o=[-1]),o[V]&&!a(o,this._currentMediaIndices)&&(s=d(o,function(t){return h(-1===t?r[m]:i[t][m])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[ee,"./Model",te,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(u.getClassesByMainType(t),function(t){r.apply(e,t[Q].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(te),r=Array[Q].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),u=i[O]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,r){i.call(this,t,e,n,r),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},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[m],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[m],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[Q].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[V]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption},getReferringComponents:function(t){return this[l].queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});return o.enableClassManagement(u,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(u),a.enableTopologicalTravel(u,e),n.mixin(u,t("./mixin/boxLayout")),u}),e("echarts/view/Component",[ee,"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[Q]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[Q];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/model/Series",[ee,te,"../util/format","../util/model","./Component","./mixin/colorPalette","zrender/core/env","../util/layout"],function(t){var e=t(te),i=t("../util/format"),n=t("../util/model"),a=t("./Component"),o=t("./mixin/colorPalette"),s=t("zrender/core/env"),u=t("../util/layout"),c=i.encodeHTML,h=i.addCommas,d=a[O]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){var r=this.layoutMode,a=r?u.getLayoutParams(t):{};e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data),r&&u.mergeLayoutParam(t,a,r)},mergeOption:function(t,i){t=e.merge(this[m],t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&u.mergeLayoutParam(this[m],t,n);var r=this.getInitialData(t,i);r&&(this._data=r,this._dataBeforeProcessed=r.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e<t[V];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[F];return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,n){function a(t){var a=[];return e.each(t,function(t,e){var s,l=o.getDimensionInfo(e),u=l&&l.type;s=u===r?t+"":"time"===u?n?"":i.formatTime("yyyy/MM/dd hh:mm:ss",t):h(t),s&&a.push(s)}),a.join(", ")}var o=this._data,s=this.getRawValue(t),l=e[L](s)?a(s):h(s),u=o.getName(t),d=o.getItemVisual(t,"color");e[R](d)&&d[E]&&(d=(d[E][0]||{}).color),d=d||"transparent";var f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+d+'"></span>',p=this.name;return"\x00-"===p&&(p=""),n?f+c(this.name)+" : "+l:(p&&c(p)+"<br />")+f+(u?c(u)+" : "+l:l)},ifEnableAnimation:function(){if(s.node)return!1;var t=this.getShallow(X);return t&&this[J]().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this[l],n=o.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null,getTooltipPosition:null});return e.mixin(d,n.dataFormatMixin),e.mixin(d,o),d}),e("echarts/view/Chart",[ee,"zrender/container/Group","../util/component","../util/clazz","../util/model",te],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){var r=s.queryDataIndex(t,e);null!=r?l.each(s.normalizeToArray(r),function(e){i(t.getItemGraphicEl(e),n)}):t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz"),s=t("../util/model"),l=t(te);e[Q]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[J](),r,"emphasis")},downplay:function(t,e,i,r){n(t[J](),r,v)},remove:function(){this.group.removeAll()},dispose:function(){}};var u=e[Q];return u.updateView=u.updateLayout=u.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e,["dispose"]),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/graphic",[ee,te,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix","zrender/core/vector","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 n(t){return typeof t===$?L.lift(t,-.1):t}function r(t){if(t.__hoverStlDirty){var i=t.style[u],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?n(r):null),a[u]=a[u]||(e(i)?n(i):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function a(t){t.__isHover||(r(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function o(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function s(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t)}):a(t)}function l(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&o(t)}):o(t)}function c(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&r(t)}function h(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&s(this)}function d(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&l(this)}function p(){this.__isEmphasis=!0,s(this)}function m(){this.__isEmphasis=!1,l(this)}function g(t,e,i,n,r,a){typeof r===A&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n.getShallow(X));if(o){var s=t?"Update":"",l=n&&n.getShallow("animationDuration"+s),u=n&&n.getShallow("animationEasing"+s),c=n&&n.getShallow("animationDelay"+s);typeof c===A&&(c=c(r)),l>0?e.animateTo(i,l,c||0,u,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var y=t(te),b=t("zrender/tool/path"),S=Math.round,P=t("zrender/graphic/Path"),L=t("zrender/tool/color"),z=t("zrender/core/matrix"),I=t("zrender/core/vector"),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 P[O](t)},k.extendPath=function(t,e){return b.extendFromString(t,e)},k.makePath=function(t,e,i,n){var r=b.createFromString(t,e),a=r[w]();if(i){var o=a.width/a[Z];if(n===x){var s,l=i[Z]*o;l<=i.width?s=i[Z]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[Z]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[Z]=s}this.resizePath(r,i)}return r},k.mergePath=b.mergePath,k.resizePath=function(t,e){if(t[f]){var i=t[w](),n=i.calculateTransform(e);t[f](n)}},k.subPixelOptimizeLine=function(t){var e=k.subPixelOptimize,n=t.shape,r=t.style[i];return S(2*n.x1)===S(2*n.x2)&&(n.x1=n.x2=e(n.x1,r,!0)),S(2*n.y1)===S(2*n.y2)&&(n.y1=n.y2=e(n.y1,r,!0)),t},k.subPixelOptimizeRect=function(t){var e=k.subPixelOptimize,n=t.shape,r=t.style[i],a=n.x,o=n.y,s=n.width,l=n[Z];return n.x=e(n.x,r,!0),n.y=e(n.y,r,!0),n.width=Math.max(e(a+s,r,!1)-n.x,0===s?0:1),n[Z]=Math.max(e(o+l,r,!1)-n.y,0===l?0:1),t},k.subPixelOptimize=function(t,e,i){var n=S(2*t);return(n+S(e))%2===0?n/2:(n+(i?1:-1))/2},k.setHoverStyle=function(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",d),t.on("emphasis",p).on(v,m)},k.setText=function(t,e,i){var n=e.getShallow(_)||"inside",r=n[N]("inside")>=0?"white":i,a=e[U](C);y[O](t,{textDistance:e.getShallow("distance")||5,textFont:a[M](),textPosition:n,textFill:a[T]()||r})},k.updateProps=function(t,e,i,n,r){g(!0,t,e,i,n,r)},k.initProps=function(t,e,i,n,r){g(!1,t,e,i,n,r)},k.getTransform=function(t,e){for(var i=z.identity([]);t&&t!==e;)z.mul(i,t.getLocalTransform(),i),t=t.parent;return i},k[f]=function(t,e,i){return i&&(e=z.invert([],e)),I[f]([],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===G?r:0];return a=k[f](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?G:"top"},k.groupTransition=function(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:I.clone(t[_]),rotation:t.rotation};return t.shape&&(e.shape=y[O]({},t.shape)),e}if(t&&e){var a=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),k.updateProps(t,n,i,t.dataIndex)}}})}},k}),e("echarts/util/model",[ee,"./format","./number","../model/Model",te],function(t){function e(t,e){return t&&t.hasOwnProperty(e)}var i=t("./format"),n=t("./number"),o=t("../model/Model"),s=t(te),l=s.each,u=s[R],c={};return c.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},c.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t[v]=t[v]||{};l(e,function(t){var e=s[a](i[t],n[t]);null!=e&&(i[t]=e)})}},c.LABEL_OPTIONS=[_,"show",C,"distance","formatter"],c.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},c.isDataItemOption=function(t){return u(t)&&!(t instanceof Array)},c.converDataValue=function(t,e){var i=e&&e.type;return i===r?t:("time"!==i||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?0/0:+t)},c.createDataFormatModel=function(t,e){var i=new o;return s.mixin(i,c.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[J]=function(){return t},i},c.dataFormatMixin={getDataParams:function(t,e){var i=this[J](e),n=this.seriesIndex,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:this.mainType===k?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,e,n,r){e=e||v;var a=this[J](n),o=a[h](t),s=this.getDataParams(t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",e,"formatter"]);return typeof l===A?(s.status=e,l(s)):typeof l===$?i.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this[J](e),n=i.getRawDataItem(t);return null!=n?!u(n)||n instanceof Array?n:n.value:void 0},formatTooltip:s.noop},c.mappingToExists=function(t,e){e=(e||[]).slice();var i=s.map(t||[],function(t){return{exist:t}});return l(e,function(t,n){if(u(t)){for(var r=0;r<i[V];r++)if(!i[r][m]&&null!=t.id&&i[r].exist.id===t.id+"")return i[r][m]=t,void(e[n]=null);for(var r=0;r<i[V];r++){var a=i[r].exist;if(!(i[r][m]||null!=a.id&&null!=t.id||null==t.name||c.isIdInner(t)||c.isIdInner(a)||a.name!==t.name+""))return i[r][m]=t,void(e[n]=null)}}}),l(e,function(t){if(u(t)){for(var e=0;e<i[V];e++){var n=i[e].exist;if(!i[e][m]&&!c.isIdInner(n)&&null==t.id){i[e][m]=t;break}}e>=i[V]&&i.push({option:t})}}),i},c.makeIdAndName=function(t){var e={};l(t,function(t){var i=t.exist;i&&(e[i.id]=t)}),l(t,function(t){var i=t[m];s.assert(!i||null==i.id||!e[i.id]||e[i.id]===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(e[i.id]=t),!t.keyInfo&&(t.keyInfo={})}),l(t,function(t){var i=t.exist,n=t[m],r=t.keyInfo;if(u(n)){if(r.name=null!=n.name?n.name+"":i?i.name:"\x00-",i)r.id=i.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(e[r.id])}e[r.id]=t}})},c.isIdInner=function(t){return u(t)&&t.id&&0===(t.id+"")[N]("\x00_ec_\x00")},c.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[V];r>n;n++)for(var a=t[n].seriesId,o=c.normalizeToArray(t[n].dataIndex),s=i&&i[a],l=0,u=o[V];u>l;l++){var h=o[l];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[V]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},c.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?s[L](e.dataIndex)?s.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?s[L](e.name)?s.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},c.parseFinder=function(t,i,n){if(s.isString(i)){var r={};r[i+"Index"]=0,i=r}var a=n&&n.defaultMainType;!a||e(i,a+"Index")||e(i,a+"Id")||e(i,a+"Name")||(i[a+"Index"]=0);var o={};return l(i,function(e,n){var e=i[n];if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=e);var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],a=r[1],s=r[2];if(a&&s){var l={mainType:a};l[s[K]()]=e;var u=t.queryComponents(l);o[a+"Models"]=u,o[a+"Model"]=u[0]}}),o},c}),e("echarts/util/throttle",[],function(){var t={},e="\x00__throttleOriginMethod",i="\x00__throttleRate",n="\x00__throttleType";return t.throttle=function(t,e,i){function n(){u=(new Date).getTime(),c=null,t.apply(o,s||[])}var r,a,o,s,l=0,u=0,c=null;e=e||0;var h=function(){r=(new Date).getTime(),o=this,s=arguments,a=r-(i?l:u)-e,clearTimeout(c),i?c=setTimeout(n,e):a>=0?n():c=setTimeout(n,-a),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h},t.createOrUpdate=function(r,a,o,s){var l=r[a];if(l){var u=l[e]||l,c=l[n],h=l[i];if(h!==o||c!==s){if(null==o||!s)return r[a]=u;l=r[a]=t.throttle(u,o,"debounce"===s),l[e]=u,l[n]=s,l[i]=o}return l}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("zrender/tool/color",[ee],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[V]&&"%"===e.charAt(e[V]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[V]&&"%"===t.charAt(t[V]-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[z](/ /g,"")[K]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[N]("("),a=e[N](")");if(-1!==i&&a+1===e[V]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[V])return;u=r(s.pop());case"rgb":if(3!==s[V])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[V])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[V])return;return l(s);default:return}}}else{if(4===e[V]){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[V]){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[V]&&(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,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}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 m(i,4===i[V]?"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 d(e,i,n){if(i&&i[V]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[V]-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 f(e,n,r){if(n&&n[V]&&e>=0&&1>=e){var a=e*(n[V]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),d=a-l,f=m([t(o(c[0],h[0],d)),t(o(c[1],h[1],d)),t(o(c[2],h[2],d)),i(o(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:u,value:a}:f}}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)),m(l(t),"rgba")):void 0}function v(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),m(t,"rgba")):void 0}function m(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}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:d,mapToColor:f,modifyHSL:p,modifyAlpha:v,stringify:m}}),e("zrender/zrender",[ee,"./core/guid","./core/env","./core/util","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./core/util"),a=t("./Handler"),o=t("./Storage"),s=t("./animation/Animation"),l=t("./dom/HandlerProxy"),u=!n[q],c={canvas:t("./Painter")},h={},d={};d.version="3.2.2",d.init=function(t,e){var n=new f(i(),t,e);return h[n.id]=n,n},d.dispose=function(t){if(t)t.dispose();else{for(var e in h)h.hasOwnProperty(e)&&h[e].dispose();h={}}return d},d.getInstance=function(t){return h[t]},d.registerPainter=function(t,e){c[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,d=new o,f=i.renderer;if(u){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&c[f]||(f=Y);var p=new c[f](e,d,i);this.storage=d,this.painter=p;var v=n.node?null:new l(p.getViewportRoot());this.handler=new a(d,p,v,p.root),this[X]=new s({stage:{update:r.bind(this.flush,this)}}),this[X].start(),this._needsRefresh;var m=d.delFromMap,g=d.addToMap;d.delFromMap=function(t){var e=d.get(t);
  m.call(d,t),e&&e.removeSelfFromZr(h)},d.addToMap=function(t){g.call(d,t),t.addSelfToZr(h)}};return f[Q]={constructor:f,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},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t[Z]),this.handler.resize()},clearAnimation:function(){this[X].clear()},getWidth:function(){return this.painter[j]()},getHeight:function(){return this.painter[W]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[X].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this[X]=this.storage=this.painter=this.handler=null,e(this.id)}},d}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=l;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,l=n;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;s>l&&a(t,e[i+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[i+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;s>l&&a(t,e[i+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=n-r;s>l&&a(t,e[i+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])<0?l=c:o=c+1}return l}function o(t,e){function i(t,e){d[y]=t,f[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&f[t-1]<=f[t]+f[t+1]||t>=2&&f[t-2]<=f[t]+f[t-1])f[t-1]<f[t+1]&&t--;else if(f[t]>f[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&f[t-1]<f[t+1]&&t--,s(t)}}function s(i){var n=d[i],o=f[i],s=d[i+1],u=f[i+1];f[i]=o+u,i===y-3&&(d[i+1]=d[i+2],f[i+1]=f[i+2]),y--;var c=a(t[s],t,n,o,0,e);n+=c,o-=c,0!==o&&(u=r(t[n+o-1],t,s,u,u-1,e),0!==u&&(u>=o?l(n,o,s,u):h(n,o,s,u)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)_[l]=t[i+l];var c=0,h=o,d=i;if(t[d++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];return void(t[d+s]=_[c])}for(var f,v,m,g=p;;){f=0,v=0,m=!1;do if(e(t[h],_[c])<0){if(t[d++]=t[h++],v++,f=0,0===--s){m=!0;break}}else if(t[d++]=_[c++],f++,v=0,1===--n){m=!0;break}while(g>(f|v));if(m)break;do{if(f=a(t[h],_,c,n,0,e),0!==f){for(l=0;f>l;l++)t[d+l]=_[c+l];if(d+=f,c+=f,n-=f,1>=n){m=!0;break}}if(t[d++]=t[h++],0===--s){m=!0;break}if(v=r(_[c],t,h,s,0,e),0!==v){for(l=0;v>l;l++)t[d+l]=t[h+l];if(d+=v,h+=v,s-=v,0===s){m=!0;break}}if(t[d++]=_[c++],1===--n){m=!0;break}g--}while(f>=u||v>=u);if(m)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];t[d+s]=_[c]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[d+l]=_[c+l]}}else for(l=0;n>l;l++)t[d+l]=_[c+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)_[l]=t[o+l];var c=i+n-1,h=s-1,d=o+s-1,f=0,v=0;if(t[d--]=t[c--],0!==--n){if(1===s){for(d-=n,c-=n,v=d+1,f=c+1,l=n-1;l>=0;l--)t[v+l]=t[f+l];return void(t[d]=_[h])}for(var m=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[c])<0){if(t[d--]=t[c--],g++,y=0,0===--n){x=!0;break}}else if(t[d--]=_[h--],y++,g=0,1===--s){x=!0;break}while(m>(g|y));if(x)break;do{if(g=n-a(_[h],t,i,n,n-1,e),0!==g){for(d-=g,c-=g,n-=g,v=d+1,f=c+1,l=g-1;l>=0;l--)t[v+l]=t[f+l];if(0===n){x=!0;break}}if(t[d--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[c],_,0,s,s-1,e),0!==y){for(d-=y,h-=y,s-=y,v=d+1,f=h+1,l=0;y>l;l++)t[v+l]=_[f+l];if(1>=s){x=!0;break}}if(t[d--]=t[c--],0===--n){x=!0;break}m--}while(g>=u||y>=u);if(x)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(d-=n,c-=n,v=d+1,f=c+1,l=n-1;l>=0;l--)t[v+l]=t[f+l];t[d]=_[h]}else{if(0===s)throw new Error;for(f=d-(s-1),l=0;s>l;l++)t[f+l]=_[l]}}else for(f=d-(s-1),l=0;s>l;l++)t[f+l]=_[l]}var d,f,p=u,v=0,m=c,g=0,y=0;v=t[V],2*c>v&&(m=v>>>1);var _=[];g=120>v?5:1542>v?10:119151>v?19:40,d=[],f=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[V]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),d=t(u);do{if(c=e(i,a,s,r),d>c){var f=u;f>d&&(f=d),n(i,a,a+f,a+c,r),c=f}h.pushRun(a,c),h.mergeRuns(),u-=c,a+=c}while(0!==u);h.forceMergeRuns()}}var l=32,u=7,c=256;return s}),e("zrender/mixin/Eventful",[ee],function(){var t=Array[Q].slice,e=function(){this._$handlers={}};return e[Q]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][V];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!0,ctx:i||this}),this},on:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;r<n[t][V];r++)if(n[t][r].h===e)return this;return n[t].push({h:e,one:!1,ctx:i||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][V]},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][V];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][V]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[V];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[V],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[I](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[V];n>4&&(i=t.call(i,1,i[V]-1));for(var r=i[i[V]-1],a=this._$handlers[e],o=a[V],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[I](s,1),o--):s++}}return this}},e}),e("echarts/visual/seriesColor",[ee,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[J](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==A||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i.getDataParams(t)))}),r.each(function(t){var e=r[h](t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/loading/default",[ee,"../util/graphic",te],function(t){var e=t("../util/graphic"),i=t(te),n=Math.PI;return function(t,r){r=r||{},i[D](r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r.zlevel,z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*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[j]()/2,i=t[W]()/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[j](),height:t[W]()})},l.resize(),l}}),e("echarts/preprocessor/backwardCompat",[ee,te,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[V]&&(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[V]-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(te),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",G]],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[k],function(t){if(r[R](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[V];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[L](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/data/List",[ee,"../model/Model","./DataDiffer",te,"../util/model"],function(t){function e(t){return p[L](t)||(t=[t]),t}function i(t,e){var i=t.dimensions,n=new _(p.map(i,t.getDimensionInfo,t),t.hostModel);y(n,t);for(var r=n._storage={},a=t._storage,o=0;o<i[V];o++){var s=i[o],l=a[s];r[s]=p[N](e,s)>=0?new l.constructor(a[s][V]):a[s]}return n}var a=n,o=typeof window===n?global:window,s=typeof o.Float64Array===a?Array:o.Float64Array,u=typeof o.Int32Array===a?Array:o.Int32Array,c={"float":s,"int":u,ordinal:Array,number:Array,time:Array},d=t("../model/Model"),f=t("./DataDiffer"),p=t(te),v=t("../util/model"),m=p[R],g=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],y=function(t,e){p.each(g.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},_=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[V];r++){var a,o={};typeof t[r]===$?(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.dimensions=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},x=_[Q];x.type="list",x.hasItemOption=!0,x.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},x.getDimensionInfo=function(t){return p.clone(this._dimensionInfos[this.getDimension(t)])},x.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this.dimensions,o=t[V],s=this._dimensionInfos,l=[],u={};e=e||[];for(var h=0;h<a[V];h++){var d=s[a[h]],f=c[d.type];n[a[h]]=new f(o)}var p=this;i||(p.hasItemOption=!1),i=i||function(t,e,i,n){var r=v.getDataItemValue(t);return v.isDataItemOption(t)&&(p.hasItemOption=!0),v.converDataValue(r instanceof Array?r[n]:r,s[e])};for(var m=0;m<t[V];m++){for(var g=t[m],y=0;y<a[V];y++){var _=a[y],x=n[_];x[m]=i(g,_,m,y)}r.push(m)}for(var h=0;h<t[V];h++){e[h]||t[h]&&null!=t[h].name&&(e[h]=t[h].name);var b=e[h]||"",w=t[h]&&t[h].id;!w&&b&&(u[b]=u[b]||0,w=b,u[b]>0&&(w+="__ec__"+u[b]),u[b]++),w&&(l[h]=w)}this._nameList=e,this._idList=l},x.count=function(){return this.indices[V]},x.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},x.getValues=function(t,e,i){var n=[];p[L](t)||(i=e,e=t,t=this.dimensions);for(var r=0,a=t[V];a>r;r++)n.push(this.get(t[r],e,i));return n},x.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,n=0,a=e[V];a>n;n++)if(i[e[n]].type!==r&&isNaN(this.get(e[n],t)))return!1;return!0},x.getDataExtent=function(t,e){t=this.getDimension(t);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]},x.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},x[N]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[V];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},x.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[V];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},x.indexOfRawIndex=function(t){var e=this.indices,i=e[t];if(null!=i&&i===t)return t;for(var n=0,r=e[V]-1;r>=n;){var a=(n+r)/2|0;if(e[a]<t)n=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},x.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,l=0,u=this.count();u>l;l++){var c=e-this.get(t,l,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=l)}return o},x.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},x.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},x.getName=function(t){return this._nameList[this.indices[t]]||""},x.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},x.each=function(t,i,n,r){typeof t===A&&(r=n,n=i,i=t,t=[]),t=p.map(e(t),this.getDimension,this);var a=[],o=t[V],s=this.indices;r=r||this;for(var l=0;l<s[V];l++)switch(o){case 0:i.call(r,l);break;case 1:i.call(r,this.get(t[0],l,n),l);break;case 2:i.call(r,this.get(t[0],l,n),this.get(t[1],l,n),l);break;default:for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},x.filterSelf=function(t,i,n,r){typeof t===A&&(r=n,n=i,i=t,t=[]),t=p.map(e(t),this.getDimension,this);var a=[],o=[],s=t[V],l=this.indices;r=r||this;for(var u=0;u<l[V];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},x.mapArray=function(t,e,i,n){typeof t===A&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},x.map=function(t,n,r,a){t=p.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[V]-1],i=n&&n.apply(this,arguments);if(null!=i){"number"==typeof i&&(u[0]=i,i=u);for(var r=0;r<i[V];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=i[r])}}},r,a),o},x.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=[],d=Math.floor(1/e),f=s[t],p=this.count(),v=0;v<o[t][V];v++)s[t][v]=o[t][v];for(var v=0;p>v;v+=d){d>p-v&&(d=p-v,c[V]=d);for(var m=0;d>m;m++){var g=l[v+m];c[m]=f[g],h[m]=g}var y=n(c),g=h[r(c,y)||0];f[g]=y,u.push(g)}return a},x[h]=function(t){var e=this.hostModel;return t=this.indices[t],new d(this._rawData[t],e,e&&e[l])},x.diff=function(t){var e,i=this._idList,n=t&&t._idList,r="e\x00\x00";return new f(t?t.indices:[],this.indices,function(t){return null!=(e=n[t])?e:r+t},function(t){return null!=(e=i[t])?e:r+t})},x.getVisual=function(t){var e=this._visual;return e&&e[t]},x.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},x.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},x.getLayout=function(t){return this._layout[t]},x.getItemLayout=function(t){return this._itemLayouts[t]},x.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?p[O](this._itemLayouts[t]||{},e):e},x.clearItemLayouts=function(){this._itemLayouts[V]=0},x.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},x.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},x.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var b=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};return x.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(b,e)),this._graphicEls[t]=e},x.getItemGraphicEl=function(t){return this._graphicEls[t]},x.eachItemGraphicEl=function(t,e){p.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},x.cloneShallow=function(){var t=p.map(this.dimensions,this.getDimensionInfo,this),e=new _(t,this.hostModel);return e._storage=this._storage,y(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=p[O]({},this._extent)),e},x.wrapMethod=function(t,e){var i=this[t];typeof i===A&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(p.slice(arguments)))})},x.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],x.CHANGABLE_METHODS=["filterSelf"],_}),e("echarts/model/Model",[ee,te,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e,this[l]=i,this[m]=t}var i=t(te),n=t("../util/clazz");e[Q]={constructor:e,init:null,mergeOption:function(t){i.merge(this[m],t,!0)},get:function(t,e){if(!t)return this[m];typeof t===$&&(t=t.split("."));for(var i=this[m],n=this.parentModel,r=0;r<t[V]&&(!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[m],n=null==i?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[U](t),this[l]);return a},isEmpty:function(){return null==this[m]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[m]))},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("zrender/core/matrix",[],function(){var t=typeof Float32Array===n?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("echarts/util/format",[ee,te,"./number","zrender/contain/text"],function(t){var e=t(te),i=t("./number"),n=t("zrender/contain/text"),r={};r.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][z](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[V]>1?"."+t[1]:""))},r.toCamelCase=function(t,e){return t=(t||"")[K]()[z](/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},r.normalizeCssArray=function(t){var e=t[V];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},r.encodeHTML=function(t){return String(t)[z](/&/g,"&amp;")[z](/</g,"&lt;")[z](/>/g,"&gt;")[z](/"/g,"&quot;")[z](/'/g,"&#39;")};var a=["a","b","c","d","e","f","g"],o=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formatTpl=function(t,i){e[L](i)||(i=[i]);var n=i[V];if(!n)return"";for(var r=i[0].$vars||[],s=0;s<r[V];s++){var l=a[s];t=t[z](o(l),o(l,0))}for(var u=0;n>u;u++)for(var c=0;c<r[V];c++)t=t[z](o(a[c],u),i[u][r[c]]);return t};var s=function(t){return 10>t?"0"+t:t};return r.formatTime=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),l=n.getHours(),u=n.getMinutes(),c=n.getSeconds();return t=t[z]("MM",s(a))[K]()[z]("yyyy",r)[z]("yy",r%100)[z]("dd",s(o))[z]("d",o)[z]("hh",s(l))[z]("h",l)[z]("mm",s(u))[z]("m",u)[z]("ss",s(c))[z]("s",c)},r.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},r.truncateText=n.truncateText,r}),e("echarts/util/number",[ee],function(){function t(t){return t[z](/^\s+/,"")[z](/\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 x:case b:e="50%";break;case"left":case"top":e="0%";break;case"right":case G:e="100%"}return typeof e===$?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t,e){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),+(+t).toFixed(e)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e[N](".");return 0>i?0:e[V]-1-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){if(t instanceof Date)return t;if(typeof t===$){var e=new Date(t);return isNaN(+e)&&(e=new Date(new Date(t[z](/-/g,"/"))-new Date("1970/01/01"))),e}return new Date(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.reformIntervals=function(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]===(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t[V];){for(var a=t[r].interval,o=t[r].close,s=0;2>s;s++)a[s]<=i&&(a[s]=i,o[s]=s?1:1-n),i=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t[I](r,1):r++}return t},e}),e("zrender/core/vector",[],function(){var t=typeof Float32Array===n?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,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[V]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/util/layout",[ee,te,"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,u){var c,h,d=l[_],f=l[w](),p=e.childAt(u+1),v=p&&p[w]();if("horizontal"===t){var m=f.width+(v?-v.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,o+=s+i,s=f[Z]):s=Math.max(s,f[Z])}else{var g=f[Z]+(v?-v.y+f.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+i:o=h+i)})}var i=t(te),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,l={},u=l.LOCATION_PARAMS=["left","right","top",G,"width",Z];return l.box=e,l.vbox=i.curry(e,"vertical"),l.hbox=i.curry(e,"horizontal"),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[Z],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)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[Z],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[G],s),d=o(t.width,r),f=o(t[Z],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=r-c-v-l),isNaN(f)&&(f=s-h-p-u),isNaN(d)&&isNaN(f)&&(m>r/s?d=.8*r:f=.8*s),null!=m&&(isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=r-c-d-v),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case x:l=r/2-d/2-i[3];break;case"right":l=r-d-v}switch(t.top||t[G]){case b:case x:u=s/2-f/2-i[0];break;case G:u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-l-(c||0)),isNaN(f)&&(f=s-u-(h||0));var g=new n(l+i[3],u+i[0],d,f);return g.margin=i,g},l.positionElement=function(t,e,r,a,o){var s=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||u){var h;if("raw"===c)h="group"===t.type?new n(0,0,+e.width||0,+e[Z]||0):t[w]();else if(h=t[w](),t.needLocalTransform()){var d=t.getLocalTransform();h=h.clone(),h[f](d)}e=l.getLayoutRect(i[D]({width:h.width,height:h[Z]},e),r,a);var p=t[_],v=s?e.x-h.x:0,m=u?e.y-h.y:0;t.attr(_,"raw"===c?[v,m]:[p[0]+v,p[1]+m])}},l.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 d=0;d<i[V];d++){var f=i[d];if(!a(r,f)&&a(t,f)){r[f]=t[f];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[R](n)&&(n={});var u=["width","left","right"],c=[Z,"top",G],h=r(u),d=r(c);l(u,t,h),l(c,t,d)},l.getLayoutParams=function(t){return l.copyLayoutParams({},t)},l.copyLayoutParams=function(t,e){return e&&t&&s(u,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t},l}),e("echarts/scale/Scale",[ee,"../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[Q];return n.parse=function(t){return t},n[g]=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[p]=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[V];i++)t.push(this.getLabel(e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/scale/Interval",[ee,"../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=e.getPrecisionSafe,s=e.round,l=n[O]({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]),l[Q].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,e=this._extent,i=[],n=1e4;if(t){var r=this._niceExtent,a=o(t)+2;e[0]<r[0]&&i.push(e[0]);for(var l=r[0];l<=r[1];)if(i.push(l),l=s(l+t,a),i[V]>n)return[];e[1]>(i[V]?i[i[V]-1]:r[1])&&i.push(e[1])}return i},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[V];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 l=s(e.nice(n/t,!0),Math.max(o(i[0]),o(i[1]))+2),u=o(l)+2,c=[s(a(i[0]/l)*l,u),s(r(i[1]/l)*l,u)];this._interval=l,this._niceExtent=c}},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1])if(0!==n[0]){var o=n[0];i?n[0]-=o/2:(n[1]+=o/2,n[0]-=o/2)}else n[1]=1;var l=n[1]-n[0];isFinite(l)||(n[0]=0,n[1]=1),this.niceTicks(t);var u=this._interval;e||(n[0]=s(r(n[0]/u)*u)),i||(n[1]=s(a(n[1]/u)*u))}});return l[B]=function(){return new l},l}),e("zrender/vml/graphic",[ee,"../core/env","../core/vector","../core/BoundingRect","../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){if(!t("../core/env")[q]){var e=t("../core/vector"),n=t("../core/BoundingRect"),r=t("../core/PathProxy").CMD,a=t("../tool/color"),o=t("../contain/text"),l=t("../graphic/mixin/RectText"),c=t("../graphic/Displayable"),h=t("../graphic/Image"),p=t("../graphic/Text"),m=t("../graphic/Path"),g=t("../graphic/Gradient"),_=t("./core"),T=Math.round,M=Math.sqrt,C=Math.abs,P=Math.cos,A=Math.sin,L=Math.max,I=e[f],k=",",D="progid:DXImageTransform.Microsoft",O=21600,R=O/2,B=1e5,F=1e3,N=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=O+","+O,t.coordorigin="0,0"},H=function(t){return String(t)[z](/&/g,"&amp;")[z](/"/g,"&quot;")},W=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},j=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},U=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},X=function(t,e,i){return(parseFloat(t)||0)*B+(parseFloat(e)||0)*F+i},Y=function(t,e){return typeof t===$?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},K=function(t,e,i){var n=a.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=W(n[0],n[1],n[2]),t[y]=i*n[3])
  },J=function(t){var e=a.parse(t);return[W(e[0],e[1],e[2]),e[3]]},te=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof g){var r,a=0,o=[0,0],s=0,l=1,u=i[w](),c=u.width,h=u[Z];if("linear"===n.type){r="gradient";var f=i[d],p=[n.x*c,n.y*h],v=[n.x2*c,n.y2*h];f&&(I(p,p,f),I(v,v,f));var m=v[0]-p[0],_=v[1]-p[1];a=180*Math.atan2(m,_)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var p=[n.x*c,n.y*h],f=i[d],x=i.scale,b=c,T=h;o=[(p[0]-u.x)/b,(p[1]-u.y)/T],f&&I(p,p,f),b/=x[0]*O,T/=x[1]*O;var M=L(b,T);s=0/M,l=2*n.r/M-s}var S=n[E].slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[V],P=[],A=[],z=0;C>z;z++){var k=S[z],D=J(k.color);A.push(k.offset*l+s+" "+D[0]),(0===z||z===C-1)&&P.push(D)}if(C>=2){var R=P[0][0],B=P[1][0],F=P[0][1]*e[y],N=P[1][1]*e[y];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=R,t.color2=B,t.colors=A.join(","),t[y]=N,t.opacity2=F}"radial"===r&&(t.focusposition=o.join(","))}else K(t,n,e[y])},ee=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[u]||e[u]instanceof g||K(t,e[u],e[y])},ie=function(t,e,n,r){var a="fill"==e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(a||!a&&n[i])?(t[a?"filled":"stroked"]="true",n[e]instanceof g&&U(t,o),o||(o=_.createNode(e)),a?te(o,n,r):ee(o,n),j(t,o)):(t[a?"filled":"stroked"]="false",U(t,o))},ne=[[],[],[]],re=function(t,e){var i,n,a,o,s,l,u=r.M,c=r.C,h=r.L,d=r.A,f=r.Q,p=[];for(o=0;o<t[V];){switch(a=t[o++],n="",i=0,a){case u:n=" m ",i=1,s=t[o++],l=t[o++],ne[0][0]=s,ne[0][1]=l;break;case h:n=" l ",i=1,s=t[o++],l=t[o++],ne[0][0]=s,ne[0][1]=l;break;case f:case c:n=" c ",i=3;var v,m,g=t[o++],y=t[o++],_=t[o++],x=t[o++];a===f?(v=_,m=x,_=(_+2*g)/3,x=(x+2*y)/3,g=(s+2*g)/3,y=(l+2*y)/3):(v=t[o++],m=t[o++]),ne[0][0]=g,ne[0][1]=y,ne[1][0]=_,ne[1][1]=x,ne[2][0]=v,ne[2][1]=m,s=v,l=m;break;case d:var b=0,w=0,S=1,C=1,L=0;e&&(b=e[4],w=e[5],S=M(e[0]*e[0]+e[1]*e[1]),C=M(e[2]*e[2]+e[3]*e[3]),L=Math.atan2(-e[1]/C,e[0]/S));var z=t[o++],D=t[o++],E=t[o++],B=t[o++],F=t[o++]+L,N=t[o++]+F+L;o++;var G=t[o++],H=z+P(F)*E,q=D+A(F)*B,g=z+P(N)*E,y=D+A(N)*B,W=G?" wa ":" at ";Math.abs(H-g)<1e-10&&(Math.abs(N-F)>.01?G&&(H+=270/O):Math.abs(q-D)<1e-10?G&&z>H||!G&&H>z?y-=270/O:y+=270/O:G&&D>q||!G&&q>D?g+=270/O:g-=270/O),p.push(W,T(((z-E)*S+b)*O-R),k,T(((D-B)*C+w)*O-R),k,T(((z+E)*S+b)*O-R),k,T(((D+B)*C+w)*O-R),k,T((H*S+b)*O-R),k,T((q*C+w)*O-R),k,T((g*S+b)*O-R),k,T((y*C+w)*O-R)),s=g,l=y;break;case r.R:var j=ne[0],U=ne[1];j[0]=t[o++],j[1]=t[o++],U[0]=j[0]+t[o++],U[1]=j[1]+t[o++],e&&(I(j,j,e),I(U,U,e)),j[0]=T(j[0]*O-R),U[0]=T(U[0]*O-R),j[1]=T(j[1]*O-R),U[1]=T(U[1]*O-R),p.push(" m ",j[0],k,j[1]," l ",U[0],k,j[1]," l ",U[0],k,U[1]," l ",j[0],k,U[1]);break;case r.Z:p.push(" x ")}if(i>0){p.push(n);for(var X=0;i>X;X++){var Z=ne[X];e&&I(Z,Z,e),p.push(T(Z[0]*O-R),k,T(Z[1]*O-R),i-1>X?k:"")}}}return p.join("")};m[Q].brushVML=function(t){var e=this.style,n=this._vmlEl;n||(n=_.createNode("shape"),N(n),this._vmlEl=n),ie(n,"fill",e,this),ie(n,u,e,this);var r=this[d],a=null!=r,o=n.getElementsByTagName(u)[0];if(o){var s=e[i];if(a&&!e.strokeNoScale){var l=r[0]*r[3]-r[1]*r[2];s*=M(C(l))}o.weight=s+"px"}var c=this.path;this.__dirtyPath&&(c.beginPath(),this.buildPath(c,this.shape),c.toStatic(),this.__dirtyPath=!1),n.path=re(c.data,this[d]),n.style.zIndex=X(this.zlevel,this.z,this.z2),j(t,n),null!=e.text?this.drawRectText(t,this[w]()):this.removeRectText(t)},m[Q].onRemove=function(t){U(t,this._vmlEl),this.removeRectText(t)},m[Q].onAdd=function(t){j(t,this._vmlEl),this.appendRectText(t)};var ae=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};h[Q].brushVML=function(t){var e,i,n=this.style,r=n.image;if(ae(r)){var a=r.src;if(a===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var o=r.runtimeStyle,l=o.width,u=o[Z];o.width="auto",o[Z]="auto",e=r.width,i=r[Z],o.width=l,o[Z]=u,this._imageSrc=a,this._imageWidth=e,this._imageHeight=i}r=a}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var c=n.x||0,h=n.y||0,f=n.width,p=n[Z],v=n.sWidth,m=n.sHeight,g=n.sx||0,x=n.sy||0,b=v&&m,S=this._vmlEl;S||(S=_.doc[s]("div"),N(S),this._vmlEl=S);var C,P=S.style,A=!1,z=1,O=1;if(this[d]&&(C=this[d],z=M(C[0]*C[0]+C[1]*C[1]),O=M(C[2]*C[2]+C[3]*C[3]),A=C[1]||C[2]),A){var R=[c,h],E=[c+f,h],B=[c,h+p],F=[c+f,h+p];I(R,R,C),I(E,E,C),I(B,B,C),I(F,F,C);var V=L(R[0],E[0],B[0],F[0]),G=L(R[1],E[1],B[1],F[1]),H=[];H.push("M11=",C[0]/z,k,"M12=",C[2]/O,k,"M21=",C[1]/z,k,"M22=",C[3]/O,k,"Dx=",T(c*z+C[4]),k,"Dy=",T(h*O+C[5])),P.padding="0 "+T(V)+"px "+T(G)+"px 0",P.filter=D+".Matrix("+H.join("")+", SizingMethod=clip)"}else C&&(c=c*z+C[4],h=h*O+C[5]),P.filter="",P.left=T(c)+"px",P.top=T(h)+"px";var q=this._imageEl,W=this._cropEl;q||(q=_.doc[s]("div"),this._imageEl=q);var U=q.style;if(b){if(e&&i)U.width=T(z*e*f/v)+"px",U[Z]=T(O*i*p/m)+"px";else{var Y=new Image,$=this;Y.onload=function(){Y.onload=null,e=Y.width,i=Y[Z],U.width=T(z*e*f/v)+"px",U[Z]=T(O*i*p/m)+"px",$._imageWidth=e,$._imageHeight=i,$._imageSrc=r},Y.src=r}W||(W=_.doc[s]("div"),W.style.overflow="hidden",this._cropEl=W);var Q=W.style;Q.width=T((f+g*f/v)*z),Q[Z]=T((p+x*p/m)*O),Q.filter=D+".Matrix(Dx="+-g*f/v*z+",Dy="+-x*p/m*O+")",W.parentNode||S.appendChild(W),q.parentNode!=W&&W.appendChild(q)}else U.width=T(z*f)+"px",U[Z]=T(O*p)+"px",S.appendChild(q),W&&W.parentNode&&(S.removeChild(W),this._cropEl=null);var K="",J=n[y];1>J&&(K+=".Alpha(opacity="+T(100*J)+") "),K+=D+".AlphaImageLoader(src="+r+", SizingMethod=scale)",U.filter=K,S.style.zIndex=X(this.zlevel,this.z,this.z2),j(t,S),null!=n.text&&this.drawRectText(t,this[w]())}},h[Q].onRemove=function(t){U(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},h[Q].onAdd=function(t){j(t,this._vmlEl),this.appendRectText(t)};var oe,se=v,le={},ue=0,ce=100,he=document[s]("div"),de=function(t){var e=le[t];if(!e){ue>ce&&(ue=0,le={});var i,n=he.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||se,variant:n.fontVariant||se,weight:n.fontWeight||se,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},le[t]=e,ue++}return e};o.measureText=function(t,e){var i=_.doc;oe||(oe=i[s]("div"),oe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",_.doc.body.appendChild(oe));try{oe.style.font=e}catch(n){}return oe.innerHTML="",oe.appendChild(i.createTextNode(t)),{width:oe.offsetWidth}};for(var fe=new n,pe=function(t,e,i,n){var r=this.style,a=r.text;if(null!=a&&(a+=""),a){var s,l,c=r[S],h=de(r.textFont),p=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',v=r.textBaseline,m=r.textVerticalAlign;i=i||o[w](a,p,c,v);var g=this[d];if(g&&!n&&(fe.copy(e),fe[f](g),e=fe),n)s=e.x,l=e.y;else{var M=r.textPosition,C=r.textDistance;if(M instanceof Array)s=e.x+Y(M[0],e.width),l=e.y+Y(M[1],e[Z]),c=c||"left",v=v||"top";else{var P=o.adjustTextPositionOnRect(M,e,i,C);s=P.x,l=P.y,c=c||P[S],v=v||P.textBaseline}}if(m){switch(m){case b:l-=i[Z]/2;break;case G:l-=i[Z]}v="top"}var A=h.size;switch(v){case"hanging":case"top":l+=A/1.75;break;case b:break;default:l-=A/2.25}switch(c){case"left":break;case x:s-=i.width/2;break;case"right":s-=i.width}var L,z,D,O=_.createNode,R=this._textVmlEl;R?(D=R.firstChild,L=D.nextSibling,z=L.nextSibling):(R=O("line"),L=O("path"),z=O("textpath"),D=O("skew"),z.style["v-text-align"]="left",N(R),L.textpathok=!0,z.on=!0,R.from="0 0",R.to="1000 0.05",j(R,D),j(R,L),j(R,z),this._textVmlEl=R);var E=[s,l],B=R.style;g&&n?(I(E,E,g),D.on=!0,D.matrix=g[0].toFixed(3)+k+g[2].toFixed(3)+k+g[1].toFixed(3)+k+g[3].toFixed(3)+",0,0",D.offset=(T(E[0])||0)+","+(T(E[1])||0),D.origin="0 0",B.left="0px",B.top="0px"):(D.on=!1,B.left=T(s)+"px",B.top=T(l)+"px"),z[$]=H(a);try{z.style.font=p}catch(F){}ie(R,"fill",{fill:n?r.fill:r.textFill,opacity:r[y]},this),ie(R,u,{stroke:n?r[u]:r.textStroke,opacity:r[y],lineDash:r.lineDash},this),R.style.zIndex=X(this.zlevel,this.z,this.z2),j(t,R)}},ve=function(t){U(t,this._textVmlEl),this._textVmlEl=null},me=function(t){j(t,this._textVmlEl)},ge=[l,c,h,m,p],ye=0;ye<ge[V];ye++){var _e=ge[ye][Q];_e.drawRectText=pe,_e.removeRectText=ve,_e.appendRectText=me}p[Q].brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[w](),!0):this.removeRectText(t)},p[Q].onRemove=function(t){this.removeRectText(t)},p[Q].onAdd=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[ee,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this.storage=e;var i=document[s]("div"),n=document[s]("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=e.delFromMap,o=e.addToMap;e.delFromMap=function(t){var i=e.get(t);r.call(e,t),i&&i.onRemove&&i.onRemove(n)},e.addToMap=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function n(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=t("../core/log"),a=t("./core");i[Q]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[V];i++){var n=t[i];n.invisible||n[H]?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[Z]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t.clientHeight||e(i[Z]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],l=0;l<o[V];l++){var u=o[l];i[Q][u]=n(u)}return i}),e("echarts/coord/cartesian/Cartesian2D",[ee,te,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(te),n=t("./Cartesian");return e[Q]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(r)[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e[g](e.toLocalCoord(t[0]))&&i[g](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[P](e,n),e}),e("echarts/coord/axisHelper",[ee,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",te,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),a=t("../util/number"),o=t(te),s=t("zrender/contain/text"),l={};return l.getScaleExtent=function(t,e){var i=t.scale,n=i[p](),s=n[1]-n[0];if(i.type===r)return isFinite(s)?n:[0,0];var l=e.getMin?e.getMin():e.get("min"),u=e.getMax?e.getMax():e.get("max"),c=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),h=e.get("boundaryGap");o[L](h)||(h=[h||0,h||0]),h[0]=a.parsePercent(h[0],1),h[1]=a.parsePercent(h[1],1);var d=!0,f=!0;return null==l&&(l=n[0]-h[0]*s,d=!1),null==u&&(u=n[1]+h[1]*s,f=!1),"dataMin"===l&&(l=n[0]),"dataMax"===u&&(u=n[1]),c&&(l>0&&u>0&&!d&&(l=0),0>l&&0>u&&!f&&(u=0)),[l,u]},l.niceScaleExtent=function(t,e){var i=t.scale,n=l.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");"log"===i.type&&(i.base=e.get("logBase")),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 u=i.getInterval(),c=Math.max(Math.abs(u),s)/u;n=i[p]();var h=(n[1]+n[0])/2;i.setExtent(c*(n[0]-h)+h,c*(n[1]-h)+h),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},l.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case c:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[B](t)}},l.ifAxisCrossZero=function(t){var e=t.scale[p](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},l.getAxisLabelInterval=function(t,e,i,n){var r,a=0,o=0,l=1;e[V]>40&&(l=Math.floor(e[V]/40));for(var u=0;u<t[V];u+=l){var c=t[u],h=s[w](e[u],i,x,"top");h[n?"x":"y"]+=c,h[n?"width":Z]*=1.3,r?r.intersect(h)?(o++,a=Math.max(a,o)):(r.union(h),o=0):r=h.clone()}return 0===a&&l>1?l:(a+1)*l-1},l.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===$?(e=function(t){return function(e){return t[z]("{value}",null!=e?e:"")}}(e),o.map(n,e)):typeof e===A?o.map(r,function(n,r){return e(t.type===c?i.getLabel(n):n,r)},this):n},l}),e("echarts/coord/cartesian/Axis2D",[ee,te,"../Axis","./axisLabelInterval"],function(t){var e=t(te),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[_]=a||G};return r[Q]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[_];return"top"===t||t===G},getGlobalExtent:function(){var t=this[p]();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=n(this)),t},isLabelIgnored:function(t){if(this.type===c){var e=this.getLabelInterval();return typeof e===A&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[P](r,i),r}),e("echarts/coord/cartesian/GridModel",[ee,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[O]({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("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==n&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}}),e("echarts/model/mixin/colorPalette",[],function(){return{clearColorPalette:function(){this._colorIdx=0,this._colorNameMap={}},getColorFromPalette:function(t,e){e=e||this;var i=e._colorIdx||0,n=e._colorNameMap||(e._colorNameMap={});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r[V]){var a=r[i];return t&&(n[t]=a),e._colorIdx=(i+1)%r[V],a}}}}),e("echarts/model/mixin/lineStyle",[ee,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[i,"width"],[u,"color"],[y],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var n=e.call(this,t),r=this.getLineDash(n[i]);return r&&(n.lineDash=r),n},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}}}),e("echarts/util/clazz",[ee,te],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[Q][e].apply(t,i)}function i(t,e,i){return this.superClass[Q][e].apply(t,i)}var n=t(te),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.$constructor=t,t[O]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[O](a[Q],t),a[O]=this[O],a.superCall=e,a.superApply=i,n[P](a,this),a.superClass=r,a}},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 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[O];a&&(t[O]=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",[ee,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[y],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[ee,"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[l];return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[l],i=t&&t[U](C);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){return i[w](t,this[M](),this.getShallow("align"),this.getShallow("baseline"))},truncateText:function(t,e,n,r){return i.truncateText(t,e,this[M](),n,r)}}}),e("echarts/model/mixin/itemStyle",[ee,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[u,"borderColor"],[i,"borderWidth"],[y],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],[S]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/contain/text",[ee,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(l[i])return l[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[V];o>a;a++)r=Math.max(p.measureText(n[a],e).width,r);return u>c&&(u=0,l={}),u++,l[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[V],o=e(t,i),s=e("国",i),l=a*s,u=new d(0,0,o,l);switch(u.lineHeight=s,r){case G:case"alphabetic":u.y-=s;break;case b:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case x:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[Z],s=e.width,l=i[Z],u=o/2-l/2,c="left";switch(t){case"left":r-=n,a+=u,c="right";break;case"right":r+=n+s,a+=u,c="left";break;case"top":r+=s/2,a-=n+l,c=x;break;case G:r+=s/2,a+=o+n,c=x;break;case"inside":r+=s/2,a+=u,c=x;break;case"insideLeft":r+=n,a+=u,c="left";break;case"insideRight":r+=s-n,a+=u,c="right";break;case"insideTop":r+=s/2,a+=n,c=x;break;case"insideBottom":r+=s/2,a+=o-l-n,c=x;break;case"insideTopLeft":r+=n,a+=n,c="left";break;case"insideTopRight":r+=s-n,a+=n,c="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function r(t,i,n,r,a){if(!i)return"";a=a||{},r=f(r,"...");for(var o=f(a.maxIterations,2),l=f(a.minChar,0),u=e("国",n),c=e("a",n),h=f(a.placeholder,""),d=i=Math.max(0,i-1),p=0;l>p&&d>=c;p++)d-=c;var v=e(r);v>d&&(r="",v=0),d=i-v;for(var m=(t+"").split("\n"),p=0,g=m[V];g>p;p++){var y=m[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=o){y+=r;break}var b=0===x?s(y,d,c,u):_>0?Math.floor(y[V]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),m[p]=y}}return m.join("\n")}function s(t,e,i,n){for(var r=0,a=0,o=t[V];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var l={},u=0,c=5e3,h=t("../core/util"),d=t("../core/BoundingRect"),f=h[a],p={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:r,measureText:function(t,e){var i=h[o]();return i.font=e||"12px sans-serif",i.measureText(t)}};return p}),e("zrender/core/PathProxy",[ee,"./curve","./vector","./bbox","./BoundingRect","../config"],function(t){var e=t("./curve"),i=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),o=t("../config").devicePixelRatio,s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],h=[],d=[],f=Math.min,p=Math.max,v=Math.cos,m=Math.sin,g=Math.sqrt,y=Math.abs,_=typeof Float32Array!=n,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[Q]={constructor:x,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/o/t)||0,this._uy=y(1/o/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(s.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||this._len<5;return this.addData(s.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(s.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(s.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(s.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=v(r)*i+t,this._xi=m(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(s.R,t,e,i,n),this},closePath:function(){this.addData(s.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[u](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[V];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[V];this.data&&this.data[V]==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[V],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[V];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[V]>e[V]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[V];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,d=g(c*c+h*h),v=l,m=u,y=o[V];for(c/=d,h/=d,0>a&&(a=r+a),a%=r,v-=a*c,m-=a*h;c>0&&t>=v||0>c&&v>=t||0==c&&(h>0&&e>=m||0>h&&m>=e);)n=this._dashIdx,i=o[n],v+=c*i,m+=h*i,this._dashIdx=(n+1)%y,c>0&&l>v||0>c&&v>l||h>0&&u>m||0>h&&m>u||s[n%2?"moveTo":"lineTo"](c>=0?f(v,t):p(v,t),h>=0?f(m,e):p(m,e));c=v-t,h=m-e,this._dashOffset=-g(c*c+h*h)},_dashedBezierTo:function(t,i,n,r,a,o){var s,l,u,c,h,d=this._dashSum,f=this._dashOffset,p=this._lineDash,v=this._ctx,m=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=p[V],T=0;for(0>f&&(f=d+f),f%=d,s=0;1>s;s+=.1)l=_(m,t,n,a,s+.1)-_(m,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&&(T+=p[b],!(T>f));b++);for(s=(T-f)/x;1>=s;)c=_(m,t,n,a,s),h=_(y,i,r,o,s),b%2?v.moveTo(c,h):v.lineTo(c,h),s+=p[b]/x,b=(b+1)%w;b%2!==0&&v.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[V]=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,o=0,u=0,f=0;f<t[V];){var p=t[f++];switch(1==f&&(e=t[f],n=t[f+1],o=e,u=n),p){case s.M:o=t[f++],u=t[f++],e=o,n=u,h[0]=o,h[1]=u,d[0]=o,d[1]=u;break;case s.L:r.fromLine(e,n,t[f],t[f+1],h,d),e=t[f++],n=t[f++];break;case s.C:r.fromCubic(e,n,t[f++],t[f++],t[f++],t[f++],t[f],t[f+1],h,d),e=t[f++],n=t[f++];break;case s.Q:r.fromQuadratic(e,n,t[f++],t[f++],t[f],t[f+1],h,d),e=t[f++],n=t[f++];break;case s.A:var g=t[f++],y=t[f++],_=t[f++],x=t[f++],b=t[f++],w=t[f++]+b,T=(t[f++],1-t[f++]);1==f&&(o=v(b)*_+g,u=m(b)*x+y),r.fromArc(g,y,_,x,b,w,T,h,d),e=v(w)*_+g,n=m(w)*x+y;break;case s.R:o=e=t[f++],u=n=t[f++];var M=t[f++],S=t[f++];r.fromLine(o,u,o+M,u+S,h,d);break;case s.Z:e=o,n=u}i.min(l,l,h),i.max(c,c,d)}return 0===f&&(l[0]=l[1]=c[0]=c[1]=0),new a(l[0],l[1],c[0]-l[0],c[1]-l[1])},rebuildPath:function(t){for(var e,i,n,r,a,o,l=this.data,u=this._ux,c=this._uy,h=this._len,d=0;h>d;){var f=l[d++];switch(1==d&&(n=l[d],r=l[d+1],e=n,i=r),f){case s.M:e=n=l[d++],i=r=l[d++],t.moveTo(n,r);break;case s.L:a=l[d++],o=l[d++],(y(a-n)>u||y(o-r)>c||d===h-1)&&(t.lineTo(a,o),n=a,r=o);break;case s.C:t.bezierCurveTo(l[d++],l[d++],l[d++],l[d++],l[d++],l[d++]),n=l[d-2],r=l[d-1];break;case s.Q:t.quadraticCurveTo(l[d++],l[d++],l[d++],l[d++]),n=l[d-2],r=l[d-1];break;case s.A:var p=l[d++],g=l[d++],_=l[d++],x=l[d++],b=l[d++],w=l[d++],T=l[d++],M=l[d++],S=_>x?_:x,C=_>x?1:_/x,P=_>x?x/_:1,A=Math.abs(_-x)>.001,L=b+w;A?(t.translate(p,g),t.rotate(T),t.scale(C,P),t.arc(0,0,S,b,L,1-M),t.scale(1/C,1/P),t.rotate(-T),t.translate(-p,-g)):t.arc(p,g,S,b,L,1-M),1==d&&(e=v(b)*_+p,i=m(b)*x+g),n=v(L)*_+p,r=m(L)*x+g;break;case s.R:e=n=l[d],i=r=l[d+1],t.rect(l[d++],l[d++],l[d++],l[d++]);break;case s.Z:t.closePath(),n=e,r=i}}}},x.CMD=s,x}),e("zrender/core/BoundingRect",[ee,"./vector","./matrix"],function(t){function e(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this[Z]=n}var i=t("./vector"),n=t("./matrix"),r=i[f],a=Math.min,o=Math.max;return e[Q]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=o(t.x+t.width,this.x+this.width)-e,this[Z]=o(t.y+t[Z],this.y+this[Z])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(s){if(s){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this[Z],r(t,t,s),r(e,e,s),r(i,i,s),r(n,n,s),this.x=a(t[0],e[0],i[0],n[0]),this.y=a(t[1],e[1],i[1],n[1]);var l=o(t[0],e[0],i[0],n[0]),u=o(t[1],e[1],i[1],n[1]);this.width=l-this.x,this[Z]=u-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[Z]/e[Z],a=n[B]();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){if(!t)return!1;t instanceof e||(t=e[B](t));var i=this,n=i.x,r=i.x+i.width,a=i.y,o=i.y+i[Z],s=t.x,l=t.x+t.width,u=t.y,c=t.y+t[Z];return!(s>r||n>l||u>o||a>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[Z]},clone:function(){return new e(this.x,this.y,this.width,this[Z])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[Z]=t[Z]},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this[Z]}}},e[B]=function(t){return new e(t.x,t.y,t.width,t[Z])},e}),e("zrender/graphic/mixin/RectText",[ee,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===$?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),n=t("../../core/BoundingRect"),r=new n,a=function(){};return a[Q]={constructor:a,drawRectText:function(t,n,a){var o=this.style,s=o.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=o.textPosition,h=o.textDistance,p=o[S],v=o.textFont||o.font,m=o.textBaseline,g=o.textVerticalAlign;a=a||i[w](s,v,p,m);var y=this[d];if(o.textTransform?this.setTransform(t):y&&(r.copy(n),r[f](y),n=r),c instanceof Array){if(l=n.x+e(c[0],n.width),u=n.y+e(c[1],n[Z]),p=p||"left",m=m||"top",g){switch(g){case b:u-=a[Z]/2-a.lineHeight/2;break;case G:u-=a[Z]-a.lineHeight/2;break;default:u+=a.lineHeight/2}m=b}}else{var _=i.adjustTextPositionOnRect(c,n,a,h);l=_.x,u=_.y,p=p||_[S],m=m||_.textBaseline}t[S]=p||"left",t.textBaseline=m||"alphabetic";var x=o.textFill,T=o.textStroke;x&&(t.fillStyle=x),T&&(t.strokeStyle=T),t.font=v||"12px sans-serif",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor||"transparent",t.shadowOffsetX=o.textShadowOffsetX,t.shadowOffsetY=o.textShadowOffsetY;var M=s.split("\n");o.textRotation&&(y&&t.translate(y[4],y[5]),t.rotate(o.textRotation),y&&t.translate(-y[4],-y[5]));for(var C=0;C<M[V];C++)x&&t.fillText(M[C],l,u),T&&t.strokeText(M[C],l,u),u+=a.lineHeight;t.restore()}}},a}),e("zrender/graphic/Image",[ee,"./Displayable","../core/BoundingRect","../core/util","../core/LRU"],function(t){function e(t){i.call(this,t)}var i=t("./Displayable"),n=t("../core/BoundingRect"),r=t("../core/util"),a=t("../core/LRU"),o=new a(50);return e[Q]={constructor:e,type:"image",brush:function(t,e){var i,n=this.style,r=n.image;if(n.bind(t,this,e),i=typeof r===$?this._image:r,!i&&r){var a=o.get(r);if(!a)return i=new Image,i.onload=function(){i.onload=null;for(var t=0;t<a.pending[V];t++)a.pending[t].dirty()},a={image:i,pending:[this]},i.src=r,o.put(r,a),void(this._image=i);if(i=a.image,this._image=i,!i.width||!i[Z])return void a.pending.push(this)}if(i){var s=n.width||i.width,l=n[Z]||i[Z],u=n.x||0,c=n.y||0;if(!i.width||!i[Z])return;if(this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;t.drawImage(i,h,d,n.sWidth,n.sHeight,u,c,s,l)}else if(n.sx&&n.sy){var h=n.sx,d=n.sy,f=s-h,p=l-d;t.drawImage(i,h,d,f,p,u,c,s,l)}else t.drawImage(i,u,c,s,l);null==n.width&&(n.width=s),null==n[Z]&&(n[Z]=l),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this[w]())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t[Z]||0)),this._rect}},r[P](e,i),e}),e("zrender/graphic/Displayable",[ee,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");
  return e[Q]={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,progressive:-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[w]();return n[g](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?r[Q].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 n(t),this.dirty(!1),this}},i[P](e,r),i.mixin(e,a),e}),e("zrender/graphic/Text",[ee,"./Displayable","../core/util","../contain/text"],function(t){var e=t("./Displayable"),i=t("../core/util"),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[Q]={constructor:r,type:"text",brush:function(t,e){var i=this.style,r=i.x||0,a=i.y||0,o=i.text;if(null!=o&&(o+=""),i.bind(t,this,e),o){this.setTransform(t);var s,l=i[S],u=i.textFont||i.font;if(i.textVerticalAlign){var c=n[w](o,u,i[S],"top");switch(s=b,i.textVerticalAlign){case b:a-=c[Z]/2-c.lineHeight/2;break;case G:a-=c[Z]-c.lineHeight/2;break;default:a+=c.lineHeight/2}}else s=i.textBaseline;t.font=u||"12px sans-serif",t[S]=l||"left",t[S]!==l&&(t[S]="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var h=n.measureText("国",t.font).width,d=o.split("\n"),f=0;f<d[V];f++)i.hasFill()&&t.fillText(d[f],r,a),i.hasStroke()&&t.strokeText(d[f],r,a),a+=h;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,i=n[w](t.text+"",t.textFont||t.font,t[S],e?"top":t.textBaseline);switch(e){case b:i.y-=i[Z]/2;break;case G:i.y-=i[Z]}i.x+=t.x||0,i.y+=t.y||0,this._rect=i}return this._rect}},i[P](r,e),r}),e("zrender/graphic/Gradient",[ee],function(){var t=function(t){this[E]=t||[]};return t[Q]={constructor:t,addColorStop:function(t,e){this[E].push({offset:t,color:e})}},t}),e("zrender/graphic/Path",[ee,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){n.call(this,t),this.path=new a}var n=t("./Displayable"),r=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),s=t("./Pattern"),l=s[Q].getCanvasPattern,c=Math.abs;return e[Q]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path,r=i.hasStroke(),a=i.hasFill(),o=i.fill,s=i[u],c=a&&!!o[E],h=r&&!!s[E],d=a&&!!o.image,f=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var p=this[w]();c&&(this._fillGradient=i.getGradient(t,o,p)),h&&(this._strokeGradient=i.getGradient(t,s,p))}c?t.fillStyle=this._fillGradient:d&&(t.fillStyle=l.call(o,t)),h?t.strokeStyle=this._strokeGradient:f&&(t.strokeStyle=l.call(s,t));var v=i.lineDash,m=i.lineDashOffset,g=!!t.setLineDash,y=this.getGlobalScale();n.setScale(y[0],y[1]),this.__dirtyPath||v&&!g&&r?(n=this.path.beginPath(t),v&&!g&&(n.setLineDash(v),n.setLineDashOffset(m)),this.buildPath(n,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),a&&n.fill(t),v&&g&&(t.setLineDash(v),t.lineDashOffset=m),r&&n[u](t),v&&g&&t.setLineDash([]),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this[w]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var r=this.path;this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),t=r[w]()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e[i],s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a[Z]+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),r=this[w](),a=this.style;if(t=n[0],e=n[1],r[g](t,e)){var s=this.path.data;if(a.hasStroke()){var l=a[i],u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(a.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),o.containStroke(s,l/u,t,e)))return!0}if(a.hasFill())return o[g](s,t,e)}return!1},dirty:function(t){null==t&&(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),this.__dirtyPath=!0,this._rect=null):n[Q].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r[R](t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[d];return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},e[O]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,i)};r[P](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[Q][n]=t[n]);return i},r[P](e,n),e}),e("zrender/vml/core",[ee,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[q]){var n,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,l=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),n=function(t){return o[s]("<zrvml:"+t+' class="zrvml">')}}catch(u){n=function(t){return o[s]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var c=function(){if(!l){l=!0;var t=o.styleSheets;t[V]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:c,createNode:n}}}),e("echarts/model/mixin/makeStyleMapper",[ee,te],function(t){var e=t(te);return function(t){for(var i=0;i<t[V];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[V];r++){var a=t[r][1];if(!(i&&e[N](i,a)>=0)){var o=this.getShallow(a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("echarts/scale/Ordinal",[ee,te,"./Scale"],function(t){var e=t(te),i=t("./Scale"),n=i[Q],r=i[O]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[V]-1]},parse:function(t){return typeof t===$?e[N](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[g].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[B]=function(){return new r},r}),e("zrender/core/curve",[ee,"./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,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*h*f;if(e(m)){var g=d/h,v=-l/s+g,x=-g/2;v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x)}else if(m>0){var b=_(m),M=h*l+1.5*s*(-d+b),S=h*l+1.5*s*(-d-b);M=0>M?-y(-M,T):y(M,T),S=0>S?-y(-S,T):y(S,T);var v=(-l-(M+S))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*d)/(2*_(h*h*h)),P=Math.acos(C)/3,A=_(h),L=Math.cos(P),v=(-l-2*A*L)/(3*s),x=(-l+A*(L+w*Math.sin(P)))/(3*s),z=(-l+A*(L-w*Math.sin(P)))/(3*s);v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x),z>=0&&1>=z&&(o[p++]=z)}}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 d=s*s-4*l*u;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=_(d),h=(-s+f)/(2*l),p=(-s-f)/(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 d,f,p,v,m,y=.005,x=1/0;M[0]=u,M[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),v=g(M,S),x>v&&(d=w,x=v);x=1/0;for(var T=0;32>T&&!(b>y);T++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,M),f>=0&&x>v?(d=f,x=v):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),m=g(C,M),1>=p&&x>m?(d=p,x=m):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),_(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 d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=_(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(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,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){S[0]=u(t,i,r,f),S[1]=u(e,n,a,f);var p=g(M,S);d>p&&(c=f,d=p)}d=1/0;for(var v=0;32>v&&!(b>h);v++){var m=c-h,y=c+h;S[0]=u(t,i,r,m),S[1]=u(e,n,a,m);var p=g(S,M);if(m>=0&&d>p)c=m,d=p;else{C[0]=u(t,i,r,y),C[1]=u(e,n,a,y);var x=g(C,M);1>=y&&d>x?(c=y,d=x):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),_(d)}var v=t("./vector"),m=v[B],g=v.distSquare,y=Math.pow,_=Math.sqrt,x=1e-8,b=1e-4,w=_(3),T=1/3,M=m(),S=m(),C=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/config",[],function(){var t=1;typeof window!==n&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/bbox",[ee,"./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[B](),u=e[B](),c=e[B](),h=2*Math.PI;n.fromPoints=function(t,e,i){if(0!==t[V]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[V];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 d=[],f=[];return n.fromCubic=function(t,e,n,o,s,l,u,c,h,p){var v,m=i.cubicExtrema,g=i.cubicAt,y=m(t,n,s,u,d);for(h[0]=1/0,h[1]=1/0,p[0]=-1/0,p[1]=-1/0,v=0;y>v;v++){var _=g(t,n,s,u,d[v]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=m(e,o,l,c,f),v=0;y>v;v++){var x=g(e,o,l,c,f[v]);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,d=i.quadraticAt,f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=d(t,n,s,f),m=d(e,o,l,p);u[0]=r(t,s,v),u[1]=r(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,d,f,p,v){var m=e.min,g=e.max,y=Math.abs(a-d);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,m(p,l,u),g(v,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var _=d;d=a,a=_}for(var x=0;d>x;x+=Math.PI/2)x>a&&(c[0]=s(x)*n+t,c[1]=o(x)*r+i,m(p,c,p),g(v,c,v))},n}),e("echarts/model/mixin/boxLayout",[ee],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(G),width:this.get("width"),height:this.get(Z)}}}}),e("echarts/util/component",[ee,te,"./clazz"],function(t){var e=t(te),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[V],0===l.entryCount&&o.push(s),e.each(c,function(t){e[N](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[N](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[N](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[V]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[V];){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(a,d,f.originalDeps.slice()),delete h[d]),e.each(f.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/coord/cartesian/Cartesian",[ee,te],function(t){function e(t){return this._axes[t]}var i=t(te),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[Q]={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[K](),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[V];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/Element",[ee,"./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[Q]={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[d];i||(i=this[d]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===_||"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[H]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[H]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===$)this.attrKV(t,e);else if(a[R](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),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(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[V];i++)t[X].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[V];i++)t[X].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",[ee],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[Z]+i.y,o=o*i[Z]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[Z],a=Math.min(n,r),o=e.x,s=e.y,l=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var n=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],r=function(t){this.extendFrom(t)};r[Q]={constructor:r,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,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,r){for(var a=this,o=r&&r.style,s=!o,l=0;l<n[V];l++){var c=n[l],h=c[0];(s||a[h]!==o[h])&&(t[h]=a[h]||c[1])}if((s||a.fill!==o.fill)&&(t.fillStyle=a.fill),(s||a[u]!==o[u])&&(t.strokeStyle=a[u]),(s||a[y]!==o[y])&&(t.globalAlpha=null==a[y]?1:a[y]),(s||a.blend!==o.blend)&&(t.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var d=a[i];t[i]=d/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this[u];return null!=t&&"none"!==t&&this[i]>0},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===$?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n[E],l=0;l<s[V];l++)o.addColorStop(s[l].offset,s[l].color);return o}};for(var a=r[Q],o=0;o<n[V];o++){var s=n[o];s[0]in a||(a[s[0]]=s[1])}return r.getGradient=a.getGradient,r}),e("zrender/container/Group",[ee,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};return r[Q]={constructor:r,isGroup:!0,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[V];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[V]},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[N](e);n>=0&&(i[I](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 r&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,a=this._children,o=e[N](a,t);return 0>o?this:(a[I](o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),i&&i.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[V];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t.parent=null;return i[V]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[V];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[V];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[V];e++){var i=this._children[e];t.addToMap(i),i instanceof r&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[V];e++){var i=this._children[e];t.delFromMap(i.id),i instanceof r&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[V];o++){var s=r[o];if(!s[H]&&!s.invisible){var l=s[w](),u=s.getLocalTransform(a);u?(i.copy(l),i[f](u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[P](r,i),r}),e("echarts/coord/Axis",[ee,"../util/number",te],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,a=t(te),o=[0,1],s=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return s[Q]={constructor:s,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[g](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[p](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var a=this._extent,s=this.scale;return t=s.normalize(t),this.onBand&&s.type===r&&(a=a.slice(),e(a,s.count())),n(t,o,a,i)},coordToData:function(t,i){var a=this._extent,s=this.scale;this.onBand&&s.type===r&&(a=a.slice(),e(a,s.count()));var l=n(t,a,o,i);return this.scale.scale(l)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n<e[V];n++)i.push(e[n][0]);return e[n-1]&&i.push(e[n-1][1]),i}return a.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return a.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[p](),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[p](),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}},s}),e("echarts/coord/cartesian/axisLabelInterval",[ee,te,"../axisHelper"],function(t){var e=t(te),i=t("../axisHelper");return function(t){var n=t.model,r=n[U]("axisLabel"),a=r.get("interval");return t.type!==c||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[U](C)[M](),t.isHorizontal())}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Animatable",[ee,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[R],o=t("../core/log"),s=function(){this.animators=[]};return s[Q]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var u=t.split("."),c=s;a="shape"===u[0];for(var h=0,d=u[V];d>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){f[I](i[N](f,p),1)}),f.push(p),l&&l[X].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[V],n=0;i>n;n++)e[n].stop(t);return e[V]=0,this},animateTo:function(t,e,i,a,o){function s(){u--,u||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),u=l[V];u||o&&o();for(var c=0;c<l[V];c++)l[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var u in n)if(n.hasOwnProperty(u))if(null!=e[u])a(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,o):(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(o||0),this}},s}),e("zrender/mixin/Transformable",[ee,"../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[_]||(this[_]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[Q];s[d]=null,s.needLocalTransform=function(){return e(this.rotation)||e(this[_][0])||e(this[_][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this.parent,e=t&&t[d],n=this.needLocalTransform(),a=this[d];return n||e?(a=a||i[B](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t[d],a):i.copy(a,t[d])),this[d]=a,this.invTransform=this.invTransform||i[B](),void i.invert(this.invTransform,a)):void(a&&r(a))},s.getLocalTransform=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,o=this[_];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},s.setTransform=function(t){var e=this[d],i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},s.restoreTransform=function(t){var e=(this[d],t.dpr||1);t.setTransform(e,0,0,e,0,0)};var l=[];return s.decomposeTransform=function(){if(this[d]){var t=this.parent,n=this[d];t&&t[d]&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[_],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)}},s.getGlobalScale=function(){var t=this[d];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]},s.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[f](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[d];return r&&n[f](i,i,r),i},o}),e("echarts/coord/cartesian/AxisModel",[ee,"../../model/Component",te,"../axisModelCreator","../axisModelCommonMixin","../axisModelZoomMixin"],function(t){function e(t,e){return e.type||(e.data?c:"value")}var i=t("../../model/Component"),n=t(te),r=t("../axisModelCreator"),a=i[O]({type:"cartesian2dAxis",axis:null,init:function(){a.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){a.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){a.superApply(this,"restoreData",arguments),this.resetRange()},findGridModel:function(){return this[l].queryComponents({mainType:"grid",index:this.get("gridIndex"),id:this.get("gridId")})[0]}});n.merge(a[Q],t("../axisModelCommonMixin")),n.merge(a[Q],t("../axisModelZoomMixin"));var o={offset:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/core/log",[ee,"../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",[ee,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[V];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][V],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=n(t[s][u],e[s][u],i)}function o(t,e,i){var n=t[V],r=e[V];if(n!==r){var a=n>r;if(a)t[V]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}for(var s=t[0]&&t[0][V],o=0;o<t[V];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 s(t,e,i){if(t===e)return!0;var n=t[V];if(n!==e[V])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][V],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var c=t[V];if(1==l)for(var h=0;c>h;h++)s[h]=u(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][V],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(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 c(t){if(m(t)){var e=t[V];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,c,d){var v=t._getter,g=t._setter,y="spline"===e,_=c[V];if(_){var x,b=c[0].value,w=m(b),T=!1,M=!1,S=w&&m(b[0])?2:1;c.sort(function(t,e){return t.time-e.time}),x=c[_-1].time;for(var C=[],P=[],A=c[0].value,L=!0,z=0;_>z;z++){C.push(c[z].time/x);var I=c[z].value;if(w&&s(I,A,S)||!w&&I===A||(L=!1),A=I,typeof I==$){var k=p.parse(I);k?(I=k,T=!0):M=!0}P.push(I)}if(!L){for(var D=P[_-1],z=0;_-1>z;z++)w?o(P[z],D,S):!isNaN(P[z])||isNaN(D)||M||T||(P[z]=D);w&&o(v(t._target,d),D,S);var O,R,E,B,F,N,G=0,H=0;if(T)var q=[0,0,0,0];var W=function(t,e){var i;if(0>e)i=0;else if(H>e){for(O=Math.min(G+1,_-1),i=O;i>=0&&!(C[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=G;_>i&&!(C[i]>e);i++);i=Math.min(i-1,_-2)}G=i,H=e;var o=C[i+1]-C[i];if(0!==o)if(R=(e-C[i])/o,y)if(B=P[i],E=P[0===i?i:i-1],F=P[i>_-2?_-1:i+1],N=P[i>_-3?_-1:i+2],w)l(E,B,F,N,R,R*R,R*R*R,v(t,d),S);else{var s;if(T)s=l(E,B,F,N,R,R*R,R*R*R,q,1),s=h(q);else{if(M)return r(B,F,R);s=u(E,B,F,N,R,R*R,R*R*R)}g(t,d,s)}else if(w)a(P[i],P[i+1],R,v(t,d),S);else{var s;if(T)a(P[i],P[i+1],R,q,1),s=h(q);else{if(M)return r(P[i],P[i+1],R);s=n(P[i],P[i+1],R)}g(t,d,s)}},j=new f({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:W,ondestroy:i});return e&&"spline"!==e&&(j.easing=e),j}}}var f=t("./Clip"),p=t("../tool/color"),v=t("../core/util"),m=v.isArrayLike,g=Array[Q].slice,y=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 y[Q]={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:c(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[V]=0;for(var t=this._doneList,e=t[V],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)if(this._tracks.hasOwnProperty(a)){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[X]&&this[X].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[V];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[X],n=0;n<e[V];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[V]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("echarts/coord/axisModelCreator",[ee,"./axisDefault",te,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(te),n=t("../model/Component"),r=t("../util/layout"),a=["value",c,"time","log"];return function(t,o,s,l){i.each(a,function(n){o[O]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,a){var o=this.layoutMode,l=o?r.getLayoutParams(e):{},u=a.getTheme();i.merge(e,u.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&r.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelZoomMixin",[ee],function(){return{getMin:function(){var t=this[m],e=null!=t.rangeStart?t.rangeStart:t.min;return e instanceof Date&&(e=+e),e},getMax:function(){var t=this[m],e=null!=t.rangeEnd?t.rangeEnd:t.max;return e instanceof Date&&(e=+e),e},getNeedCrossZero:function(){var t=this[m];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},setRange:function(t,e){this[m].rangeStart=t,this[m].rangeEnd=e},resetRange:function(){this[m].rangeStart=this[m].rangeEnd=null}}}),e("echarts/coord/axisModelCommonMixin",[ee,te,"./axisHelper"],function(t){function e(t){return r[R](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===c&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(te),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("zrender/animation/Clip",[ee,"./easing"],function(t){function e(t){this._target=t.target,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[Q]={constructor:e,step:function(t){this._initialized||(this._startTime=t+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==$?i[n]:n,a=typeof r===A?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime)%this._life;this._startTime=t-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/axisDefault",[ee,te],function(t){var e=t(te),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{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,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e[D]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[D]({logBase:10},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),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("echarts/chart/helper/createListFromArray",[ee,"../../data/List","../../data/helper/completeDimensions",te,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e<t[V]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!h[L](p(i))}function n(t,e,n){t=t||[];var r=e.get(F),a=m[r],o=f.get(r),c=a&&a(t,e,n),g=c&&c.dimensions;g||(g=o&&o.dimensions||["x","y"],g=u(g,t,g.concat(["value"])));var y=c?c.categoryIndex:-1,_=new l(g,e),x=s(c,t),b={},w=y>=0&&i(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(_.hasItemOption=!0),n===y?i:v(p(t),g[n])}:function(t,e,i,n){var r=p(t),a=v(r&&r[n],g[n]);d.isDataItemOption(t)&&(_.hasItemOption=!0);var o=c&&c.categoryAxesModels;return o&&o[e]&&typeof a===$&&(b[e]=b[e]||o[e].getCategories(),a=h[N](b[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return _.hasItemOption=!1,_.initData(t,x,w),_}function a(t){return t!==c&&"time"!==t}function o(t){return t===c?r:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[V];if(h[L](e[0])&&e[0][V]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var l=t("../../data/List"),u=t("../../data/helper/completeDimensions"),h=t(te),d=t("../../util/model"),f=t("../../CoordinateSystem"),p=d.getDataItemValue,v=d.converDataValue,m={cartesian2d:function(t,e,i){var n=h.map(["xAxis","yAxis"],function(t){return i.queryComponents({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),r=n[0],s=n[1],l=r.get("type"),d=s.get("type"),f=[{name:"x",type:o(l),stackable:a(l)},{name:"y",type:o(d),stackable:a(d)}],p=l===c,v=d===c;u(f,t,["x","y","z"]);var m={};return p&&(m.x=r),v&&(m.y=s),{dimensions:f,categoryIndex:p?0:v?1:-1,categoryAxesModels:m}},polar:function(t,e,i){var n=i.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],r=n.findAxisModel("angleAxis"),s=n.findAxisModel("radiusAxis"),l=s.get("type"),h=r.get("type"),d=[{name:"radius",type:o(l),stackable:a(l)},{name:"angle",type:o(h),stackable:a(h)}],f=h===c,p=l===c;u(d,t,["radius","angle","value"]);var v={};return p&&(v.radius=s),f&&(v.angle=r),{dimensions:d,categoryIndex:f?1:p?0:-1,categoryAxesModels:v}},geo:function(t){return{dimensions:u([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("zrender/graphic/shape/Circle",[ee,"../Path"],function(t){return t("../Path")[O]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&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",[ee,"../Path"],function(t){return t("../Path")[O]({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/Polyline",[ee,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[O]({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/Polygon",[ee,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[O]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e.buildPath(t,i,!0)}})}),e("zrender/graphic/shape/Ring",[ee,"../Path"],function(t){return t("../Path")[O]({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/tool/path",[ee,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,u,f){var v=l*(p/180),y=d(v)*(t-i)/2+h(v)*(e-n)/2,_=-1*h(v)*(t-i)/2+d(v)*(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,T=b*-s*y/o,M=(t+i)/2+d(v)*w-h(v)*T,S=(e+n)/2+h(v)*w+d(v)*T,C=g([1,0],[(y-w)/o,(_-T)/s]),P=[(y-w)/o,(_-T)/s],A=[(-1*y-w)/o,(-1*_-T)/s],L=g(P,A);m(P,A)<=-1&&(L=p),m(P,A)>=1&&(L=0),0===a&&L>0&&(L-=2*p),1===a&&0>L&&(L+=2*p),f.addData(u,M,S,o,s,C,L,v,a)}function i(t){if(!t)return[];var i,n=t[z](/-/g," -")[z](/  /g," ")[z](/ /g,",")[z](/,,/g,",");for(i=0;i<u[V];i++)n=n[z](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[V];i++){var d,f=o[i],p=f.charAt(0),v=0,m=f.slice(1)[z](/e,-/g,"e-").split(",");m[V]>0&&""===m[0]&&m.shift();for(var g=0;g<m[V];g++)m[g]=parseFloat(m[g]);for(;v<m[V]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,_,x,b,w,T,M,S=s,C=l;switch(p){case"l":s+=m[v++],l+=m[v++],d=h.L,c.addData(d,s,l);break;case"L":s=m[v++],l=m[v++],d=h.L,c.addData(d,s,l);break;case"m":s+=m[v++],l+=m[v++],d=h.M,c.addData(d,s,l),p="l";break;case"M":s=m[v++],l=m[v++],d=h.M,c.addData(d,s,l),p="L";break;case"h":s+=m[v++],d=h.L,c.addData(d,s,l);break;case"H":s=m[v++],d=h.L,c.addData(d,s,l);break;case"v":l+=m[v++],d=h.L,c.addData(d,s,l);break;case"V":l=m[v++],d=h.L,c.addData(d,s,l);break;case"C":d=h.C,c.addData(d,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],l=m[v-1];break;case"c":d=h.C,c.addData(d,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l,m[v++]+s,m[v++]+l),s+=m[v-2],l+=m[v-1];break;case"S":y=s,_=l;var P=c.len(),A=c.data;r===h.C&&(y+=s-A[P-4],_+=l-A[P-3]),d=h.C,S=m[v++],C=m[v++],s=m[v++],l=m[v++],c.addData(d,y,_,S,C,s,l);break;case"s":y=s,_=l;var P=c.len(),A=c.data;r===h.C&&(y+=s-A[P-4],_+=l-A[P-3]),d=h.C,S=s+m[v++],C=l+m[v++],s+=m[v++],l+=m[v++],c.addData(d,y,_,S,C,s,l);break;case"Q":S=m[v++],C=m[v++],s=m[v++],l=m[v++],d=h.Q,c.addData(d,S,C,s,l);break;case"q":S=m[v++]+s,C=m[v++]+l,s+=m[v++],l+=m[v++],d=h.Q,c.addData(d,S,C,s,l);break;case"T":y=s,_=l;var P=c.len(),A=c.data;r===h.Q&&(y+=s-A[P-4],_+=l-A[P-3]),s=m[v++],l=m[v++],d=h.Q,c.addData(d,y,_,s,l);break;case"t":y=s,_=l;var P=c.len(),A=c.data;r===h.Q&&(y+=s-A[P-4],_+=l-A[P-3]),s+=m[v++],l+=m[v++],d=h.Q,c.addData(d,y,_,s,l);break;case"A":x=m[v++],b=m[v++],w=m[v++],T=m[v++],M=m[v++],S=s,C=l,s=m[v++],l=m[v++],d=h.A,e(S,C,s,l,T,M,x,b,w,d,c);break;case"a":x=m[v++],b=m[v++],w=m[v++],T=m[v++],M=m[v++],S=s,C=l,s+=m[v++],l+=m[v++],d=h.A,e(S,C,s,l,T,M,x,b,w,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}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&&s(t,n);var e=t[o]();e&&t.rebuildPath(e)},e[f]=function(t){n||(n=l[B]()),l.mul(n,t,n),this.dirty(!0)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),s=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,d=Math.cos,p=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},g=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[O](n(t,e))},mergePath:function(t,e){for(var i=[],n=t[V],a=0;n>a;a++){var s=t[a];s.__dirty&&s.buildPath(s.path,s.shape,!0),i.push(s.path)}var l=new r(e);return l.buildPath=function(t){t.appendPath(i);var e=t[o]();e&&t.rebuildPath(e)},l}}}),e("zrender/graphic/shape/Arc",[ee,"../Path"],function(t){return t("../Path")[O]({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/Line",[ee,"../Path"],function(t){return t("../Path")[O]({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/Rect",[ee,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[O]({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[Z];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/BezierCurve",[ee,"../../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")[O]({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,d=e.cpy2,f=e.percent;0!==f&&(t.moveTo(i,n),null==h||null==d?(1>f&&(r(i,l,o,f,c),l=c[1],o=c[2],r(n,u,s,f,c),u=c[1],s=c[2]),t.quadraticCurveTo(l,u,o,s)):(1>f&&(a(i,l,h,o,f,c),l=c[1],h=c[2],o=c[3],a(n,u,d,s,f,c),u=c[1],d=c[2],s=c[3]),t.bezierCurveTo(l,u,h,d,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",[ee,"./Path"],function(t){var e=t("./Path");return e[O]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e[V];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[V];i++)t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i[V];n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t[V];e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),e[Q][w].call(this)}})}),e("zrender/graphic/LinearGradient",[ee,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,i.call(this,a)};return n[Q]={constructor:n},e[P](n,i),n}),e("zrender/graphic/RadialGradient",[ee,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[Q]={constructor:n},e[P](n,i),n}),e("zrender/core/LRU",[ee],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[Q];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[Q];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/tool/transformPath",[ee,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d,f=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,_=i.Q;for(u=0,c=0;u<f[V];){switch(n=f[u++],c=u,l=0,n){case p:l=1;break;case m:l=1;break;case v:l=3;break;case _:l=2;break;case y:var x=e[4],b=e[5],w=o(e[0]*e[0]+e[1]*e[1]),T=o(e[2]*e[2]+e[3]*e[3]),M=s(-e[1]/T,e[0]/w);f[u++]+=x,f[u++]+=b,f[u++]*=w,f[u++]*=T,f[u++]+=M,f[u++]+=M,u+=2,c=u;break;case g:d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1],d[0]+=f[u++],d[1]+=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}for(h=0;l>h;h++){var d=a[h];d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[f],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("echarts/data/DataDiffer",[ee],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,n){for(var r=0;r<t[V];r++){var a=n(t[r],r),o=e[a];null==o?(i.push(a),e[a]=r):(o[V]||(e[a]=o=[o]),o.push(r))}}return e[Q]={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={},l=[],u=[];for(i(e,o,l,r),i(n,s,u,a),t=0;t<e[V];t++){var c=l[t],h=s[c];if(null!=h){var d=h[V];d?(1===d&&(s[c]=null),h=h.unshift()):s[c]=null,this._update&&this._update(h,t)}else this._remove&&this._remove(t)}for(var t=0;t<u[V];t++){var c=u[t];if(s.hasOwnProperty(c)){var h=s[c];if(null==h)continue;if(h[V])for(var f=0,d=h[V];d>f;f++)this._add&&this._add(h[f]);else this._add&&this._add(h)}}}},e}),e("echarts/data/helper/completeDimensions",[ee,te],function(t){function e(t,e,a,o){if(!e)return t;var s=i(e[0]),l=n[L](s)&&s[V]||1;a=a||[],o=o||"extra";for(var u=0;l>u;u++)if(!t[u]){var c=a[u]||o+(u-a[V]);t[u]=r(e,u)?{type:"ordinal",name:c}:c}return t}function i(t){return n[L](t)?t:n[R](t)?t.value:t}var n=t(te),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[V];a>r;r++){var o=i(t[r]);if(!n[L](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("zrender/contain/path",[ee,"../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=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,v=0,m=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=f.cubicAt(t,n,a,s,x);u>w||(0>m&&(m=f.cubicExtrema(e,r,o,l,_),_[1]<_[0]&&m>1&&i(),d=f.cubicAt(e,r,o,l,_[0]),m>1&&(p=f.cubicAt(e,r,o,l,_[1]))),v+=2==m?x<_[0]?e>d?b:-b:x<_[1]?d>p?b:-b:p>l?b:-b:x<_[0]?e>d?b:-b:d>l?b:-b)}return v}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=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f.quadraticAt(e,n,a,u),d=0;l>d;d++){var p=0===y[d]||1===y[d]?.5:1,v=f.quadraticAt(t,i,r,y[d]);o>v||(c+=y[d]<u?e>h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,v=f.quadraticAt(t,i,r,y[0]);return o>v?0:e>a?p:-p}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%m){n=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=m);for(var h=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var v=Math.atan2(s,p),c=a?1:-1;0>v&&(v=m+v),(v>=n&&r>=v||v+m>=n&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,m=0,g=0,y=0,_=0,x=0;x<t[V];){var b=t[x++];switch(b===s.M&&x>1&&(o||(f+=p(m,g,y,_,l,d))),1==x&&(m=t[x],g=t[x+1],y=m,_=g),b){case s.M:y=t[x++],_=t[x++],m=y,g=_;break;case s.L:if(o){if(v(m,g,t[x],t[x+1],i,l,d))return!0}else f+=p(m,g,t[x],t[x+1],l,d)||0;m=t[x++],g=t[x++];break;case s.C:if(o){if(u.containStroke(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l,d))return!0}else f+=n(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,d)||0;m=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(m,g,t[x++],t[x++],t[x],t[x+1],i,l,d))return!0}else f+=r(m,g,t[x++],t[x++],t[x],t[x+1],l,d)||0;m=t[x++],g=t[x++];break;case s.A:var w=t[x++],T=t[x++],M=t[x++],S=t[x++],C=t[x++],P=t[x++],A=(t[x++],1-t[x++]),L=Math.cos(C)*M+w,z=Math.sin(C)*S+T;x>1?f+=p(m,g,L,z,l,d):(y=L,_=z);var I=(l-w)*S/M+w;if(o){if(h.containStroke(w,T,S,C,C+P,A,i,I,d))return!0}else f+=a(w,T,S,C,C+P,A,I,d);m=Math.cos(C+P)*M+w,g=Math.sin(C+P)*S+T;break;case s.R:y=m=t[x++],_=g=t[x++];var k=t[x++],D=t[x++],L=y+k,z=_+D;if(o){if(v(y,_,L,_,i,l,d)||v(L,_,L,z,i,l,d)||v(L,z,y,z,i,l,d)||v(y,z,y,_,i,l,d))return!0}else f+=p(L,_,L,z,l,d),f+=p(y,z,y,_,l,d);break;case s.Z:if(o){if(v(m,g,y,_,i,l,d))return!0}else f+=p(m,g,y,_,l,d);m=y,g=_}}return o||e(g,_)||(f+=p(m,g,y,_,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=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("zrender/graphic/Pattern",[ee],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[Q].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/chart/bar/barItemStyle",[ee,"../../model/mixin/makeStyleMapper"],function(t){var e=t("../../model/mixin/makeStyleMapper")([["fill","color"],[u,"borderColor"],[i,"borderWidth"],[u,"barBorderColor"],[i,"barBorderWidth"],[y],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getBarItemStyle:function(t){var i=e.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(i.lineDash=n)}return i}}}),e("zrender/contain/util",[ee],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),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/cubic",[ee,"../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 d=u;if(h>i+d&&h>r+d&&h>o+d&&h>l+d||i-d>h&&r-d>h&&o-d>h&&l-d>h||c>t+d&&c>n+d&&c>a+d&&c>s+d||t-d>c&&n-d>c&&a-d>c&&s-d>c)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return d/2>=f}}}),e("zrender/contain/arc",[ee,"./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 d=Math.sqrt(u*u+c*c);if(d-h>r||r>d+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}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/quadratic",[ee,"../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/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);(1===s||0===s)&&(o=e>n?.5:-.5);var l=s*(i-t)+t;return l>r?o:0}}),e("zrender/graphic/helper/poly",[ee,"./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[V]>=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[V],u=0;(r?l:l-1)>u;u++){var c=s[2*u],h=s[2*u+1],d=a[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=e(a,r)),t.moveTo(a[0][0],a[0][1]);for(var u=1,f=a[V];f>u;u++)t.lineTo(a[u][0],a[u][1])}r&&t.closePath()}}}}),e("zrender/Painter",[ee,"./config","./core/util","./core/log","./core/BoundingRect","./core/timsort","./Layer","./animation/requestAnimationFrame","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t.resize!==A||typeof t.refresh!==A?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){1==t.__unusedCount&&t.clear()}function a(t,e,i){return M.copy(t[w]()),t[d]&&M[f](t[d]),S.width=e,S[Z]=i,!M.intersect(S)}function l(t,e){if(t==e)return!1;if(!t||!e||t[V]!==e[V])return!0;for(var i=0;i<t[V];i++)if(t[i]!==e[i])return!0}function u(t,e){for(var i=0;i<t[V];i++){var n=t[i],r=n.path;n.setTransform(e),r.beginPath(e),n.buildPath(r,n.shape),e.clip(),n.restoreTransform(e)}}function c(t,e){var i=document[s]("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var h=t("./config"),p=t("./core/util"),v=t("./core/log"),m=t("./core/BoundingRect"),g=t("./core/timsort"),x=t("./Layer"),b=t("./animation/requestAnimationFrame"),T=5,M=new m(0,0,0,0),S=new m(0,0,0,0),C=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=p[O]({},i||{}),this.dpr=i.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},n){var s=t.width,l=t[Z];this._width=s,this._height=l;var u=new x(t,this,1);u.initContext(),o[0]=u,a.push(0)}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=c(this._width,this._height);t.appendChild(d)}this.pathToImage=this._createPathToImage(),this._progressiveLayers=[],this._hoverlayer,this._hoverElements=[]};return C[Q]={constructor:C,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[V];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this.refreshHover(),this._progressiveLayers[V]&&this._startProgessive(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape});i.__from=t,t.__hoverMir=i,i.setStyle(e),this._hoverElements.push(i)}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=p[N](i,e);n>=0&&i[I](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t[V];e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t[V]=0},refreshHover:function(){var t=this._hoverElements,e=t[V],i=this._hoverlayer;if(i&&i.clear(),e){g(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a[d]=o[d],a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,i,!0,n))):(t[I](r,1),o.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,b(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,b(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,p.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(n),this._doPaintList(t,e),this.eachBuildinLayer(r)},_doPaintList:function(t,e){function i(t){var e=a.dpr||1;a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.setTransform(1,0,0,1,0,0),a.drawImage(t.dom,0,0,c*e,h*e),a.restore()}for(var n,r,a,o,s,l,u=0,c=this._width,h=this._height,d=this._progress,f=0,m=t[V];m>f;f++){var g=t[f],y=this._singleCanvas?0:g.zlevel,_=g.__frame;if(0>_&&s&&(i(s),s=null),r!==y&&(a&&a.restore(),o={},r=y,n=this.getLayer(r),n.isBuildin||v("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(_>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,T-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){f=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(d=l),s.__progress=d+1}_===d&&this._doPaintEl(g,s,!0,s.renderScope)}else this._doPaintEl(g,n,e,o);g.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,p.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,n){var r=e.ctx,o=t[d];if(!(!e.__dirty&&!i||t.invisible||0===t.style[y]||o&&!o[0]&&!o[3]||t.culling&&a(t,this._width,this._height))){var s=t.__clipPaths;(n.prevClipLayer!==e||l(s,n.prevElClipPaths))&&(n.prevElClipPaths&&(n.prevClipLayer.ctx.restore(),n.prevClipLayer=n.prevElClipPaths=null,n.prevEl=null),s&&(r.save(),u(s,r),n.prevClipLayer=e,n.prevElClipPaths=s)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new x("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&p.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[V],o=null,s=-1,l=this._domRoot;if(n[t])return void v("ZLevel "+t+" has been used already");if(!i(e))return void v("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[I](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[V];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[V];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[V];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._progressiveLayers,n={},r={};this.eachBuildinLayer(function(t,e){n[e]=t.elCount,t.elCount=0,t.__dirty=!1}),p.each(i,function(t,e){r[e]=t.elCount,t.elCount=0,t.__dirty=!1});for(var a,o,s=0,l=0,u=0,c=t[V];c>u;u++){var h=t[u],d=this._singleCanvas?0:h.zlevel,f=e[d],v=h.progressive;if(f&&(f.elCount++,f.__dirty=f.__dirty||h.__dirty),v>=0){o!==v&&(o=v,l++);var m=h.__frame=l-1;if(!a){var g=Math.min(s,T-1);a=i[g],a||(a=i[g]=new x("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||h.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,m),a.__maxProgress>=a.__progress&&(f.__dirty=!0)}else h.__frame=-1,a&&(a.__nextIdxNotProg=u,s++,a=null)}a&&(s++,a.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[V]=Math.min(s,T),p.each(i,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=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]?p.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&p.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[I](p[N](i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n[Z]=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[Z]=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);p.each(this._progressiveLayers,function(i){i.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 x("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this.storage.getDisplayList(!0),n={},r=0;r<i[V];r++){var a=i[r];this._doPaintEl(a,e,!0,n)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var i=this._opts,n=["width",Z][t],r=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[r]||e(l[n])||e(s.style[n]))-(e(l[a])||0)-(e(l[o])||0)|0},_pathToImage:function(e,i,n,r,a){var l=document[s](Y),u=l[o]("2d");l.width=n*a,l[Z]=r*a,u.clearRect(0,0,n*a,r*a);var c={position:i[_],rotation:i.rotation,scale:i.scale};i[_]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(u);var h=t("./graphic/Image"),d=new h({id:e,style:{x:0,y:0,image:l}});return null!=c[_]&&(d[_]=i[_]=c[_]),null!=c.rotation&&(d.rotation=i.rotation=c.rotation),null!=c.scale&&(d.scale=i.scale=c.scale),d},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},C}),e("zrender/Handler",[ee,"./core/util","./mixin/Draggable","./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,zrByTouch:i.zrByTouch}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":g](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[g](e,i))return!1;n=n.parent}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[Q].dispose=function(){};var s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],l=function(t,e,n,l){o.call(this),this.storage=t,this.painter=e,this.painterRoot=l,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return l[Q]={constructor:l,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement: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.trigger(i,a),o=o.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==A&&t[r].call(t,a),t.trigger&&t.trigger(i,a)}))},findHover:function(t,e,i){for(var r=this.storage.getDisplayList(),a=r[V]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][H]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){l[Q][t]=function(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.dispatchToElement(i,t,e)}}),r.mixin(l,o),r.mixin(l,a),l}),e("zrender/Storage",[ee,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[Q]={constructor:o,traverse:function(t,e){for(var i=0;i<this._roots[V];i++)this._roots[i].traverse(t,e)},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,r=this._displayList,o=0,s=i[V];s>o;o++)this._updateAndAddDisplayable(i[o],null,t);r[V]=this._displayListLen,n[q]&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[H]||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n&&(n.parent=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;a<r[V];a++){var o=r[a];t.__dirty&&(o.__dirty=!0),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 r&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[V];e++){var n=this._roots[e];n instanceof r&&n.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[V];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==$?this._elements[t]:t;var s=i[N](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[I](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(t.__storage=this),t.dirty(!1),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 r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("zrender/dom/HandlerProxy",[ee,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r.target,a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i<g[V];i++){var n=g[i];t._handlers[n]=l.bind(y[n],t)}for(var i=0;i<m[V];i++){var n=m[i];t._handlers[n]=e(y[n],t)}}function o(t){function i(i,n){l.each(i,function(i){d(t,e(i),n._handlers[i])},n)}u.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new h,this._handlers={},a(this),r()&&i(g,this),i(m,this)}var s=t("../core/event"),l=t("../core/util"),u=t("../mixin/Eventful"),c=t("../core/env"),h=t("../core/GestureMgr"),d=s.addEventListener,f=s.removeEventListener,p=s.normalizeEvent,v=300,m=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],g=["touchstart","touchend","touchmove"],y={mousemove:function(t){t=p(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=p(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=p(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,i(this,t,"start"),y.mousemove.call(this,t),y.mousedown.call(this,t),n(this)},touchmove:function(t){t=p(this.dom,t),t.zrByTouch=!0,i(this,t,"change"),y.mousemove.call(this,t),n(this)},touchend:function(t){t=p(this.dom,t),t.zrByTouch=!0,i(this,t,"end"),y.mouseup.call(this,t),+new Date-this._lastTouchMoment<v&&y.click.call(this,t),n(this)}};l.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){y[t]=function(e){e=p(this.dom,e),this.trigger(t,e)}});var _=o[Q];return _.dispose=function(){for(var t=m.concat(g),i=0;i<t[V];i++){var n=t[i];f(this.dom,e(n),this._handlers[n])}},_.setCursor=function(t){this.dom.style.cursor=t||"default"},l.mixin(o,u),o}),e("zrender/animation/Animation",[ee,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,i.call(this)};return a[Q]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[X]=this;for(var e=t.getClips(),i=0;i<e[V];i++)this.addClip(e[i])},removeClip:function(t){var i=e[N](this._clips,t);i>=0&&this._clips[I](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[V];i++)this.removeClip(e[i]);t[X]=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i[V],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[V];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(n(t),!e._paused&&e._update())}var e=this;this._running=!0,n(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/graphic/helper/smoothBezier",[ee,"../../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,d,f,p=[],v=[],m=[],g=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,_=t[V];_>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,u[0]),n(f,f,u[1])}for(var y=0,_=t[V];_>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(v,h,c),r(v,v,s);var b=a(x,c),w=a(x,h),T=b+w;0!==T&&(b/=T,w/=T),r(m,v,-b),r(g,v,w);var M=o([],x,m),S=o([],x,g);u&&(n(M,M,d),i(M,M,f),n(S,S,d),i(S,S,f)),p.push(M),p.push(S)}return l&&p.push(p.shift()),p}}),e("zrender/graphic/helper/smoothSpline",[ee,"../../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[V],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,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(u[0],v[0],c[0],h[0],p,m,g),e(u[1],v[1],c[1],h[1],p,m,g)])}return a}}),e("zrender/mixin/Draggable",[ee],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[Q]={constructor:t,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(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.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("zrender/graphic/helper/roundRect",[ee],function(){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,l=e.width,u=e[Z],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[V]?i=n=r=a=c[0]:2===c[V]?(i=r=c[0],n=a=c[1]):3===c[V]?(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/core/event",[ee,"../mixin/Eventful","./env"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,e,i,n){return i=i||{},n||!u[q]?r(t,e,i):u.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):r(t,e,i),i}function r(t,i,n){var r=e(t);n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top}function a(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var r=e.type,a=r&&r[N]("touch")>=0;if(a){var o="touchend"!=r?e.targetTouches[0]:e.changedTouches[0];o&&i(t,o,e,n)}else i(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function o(t,e,i){c?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function s(t,e,i){c?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var l=t("../mixin/Eventful"),u=t("./env"),c=typeof window!==n&&!!window.addEventListener,h=c?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:i,normalizeEvent:a,addEventListener:o,removeEventListener:s,stop:h,Dispatcher:l}}),e("zrender/animation/requestAnimationFrame",[ee],function(){return typeof window!==n&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/GestureMgr",[ee,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[Q]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[V]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[V];s>o;o++){var l=r[o],u=n.clientToLocal(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[V];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[V]>1&&a&&a[V]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0].target,event:n}}}}};return r}),e("zrender/Layer",[ee,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[s](e),a=i[j](),o=i[W](),l=r.style;return l[_]="absolute",l.left=0,l.top=0,l.width=a+"px",l[Z]=o+"px",r.width=a*n,r[Z]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),l=t("./graphic/Pattern"),u=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===$?s=i(t,Y,a,o):n[R](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)",l.padding=0,l.margin=0,l["border-width"]=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 u[Q]={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[o]("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,Y,this.painter,t),this.ctxBack=this.domBack[o]("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[Z]=e+"px",n.width=t*i,n[Z]=e*i,a&&(a.width=t*i,a[Z]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[Z],o=this.clearColor,s=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,r/c)),i.clearRect(0,0,n,r),o){var h;o[E]?(h=o.__canvasGradient||a.getGradient(i,o,{x:0,y:0,width:n,height:r}),o.__canvasGradient=h):o.image&&(h=l[Q].getCanvasPattern.call(o,i)),i.save(),i.fillStyle=h||o,i.fillRect(0,0,n,r),i.restore()}if(s){var d=this.domBack;i.save(),i.globalAlpha=u,i.drawImage(d,0,0,n,r),i.restore()}}},u}),e("echarts/preprocessor/helper/compatStyle",[ee,te],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[v],a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n][v]?i.merge(t[n][v],r[n]):t[n][v]=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(te),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[V];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[V];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[V];r++)i[L](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}}),e("echarts/component/axis",[ee,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/helper/selectableMixin",[ee,te],function(t){var e=t(te);return{updateSelectedMap:function(t){this._selectTargetMap=e.reduce(t||[],function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._selectTargetMap,n=i[t],r=this.get("selectedMode");"single"===r&&e.each(i,function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._selectTargetMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._selectTargetMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._selectTargetMap[t];return e&&e.selected}}}),e("echarts/component/tooltip/TooltipContent",[ee,te,"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 a.map(f,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[T]();return n&&e.push("color:"+n),e.push("font:"+t[M]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),c(["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"),a=t.get("backgroundColor"),s=t[U](C),l=t.get("padding");return r&&n.push(e(r)),a&&(d[q]?n.push("background-Color:"+a):(n.push("background-Color:#"+o.toHex(a)),n.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(s)),null!=l&&n.push("padding:"+u.normalizeCssArray(l).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[s]("div"),n=e.getZr();this.el=i,this._x=e[j]()/2,this._y=e[W]()/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(e=e||window.event,!r.enterable){var i=n.handler;l.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var a=t(te),o=t("zrender/tool/color"),l=t("zrender/core/event"),u=t("../../util/format"),c=a.each,h=u.toCamelCase,d=t("zrender/core/env"),f=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[Q]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[_]&&"absolute"!==e[_]&&(i[_]="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=p+n(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",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(a.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/component/helper/listComponent",[ee,"../../util/layout","../../util/format","../../util/graphic"],function(t){function e(t,e,n){i.positionElement(t,e.getBoxLayoutParams(),{width:n[j](),height:n[W]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t("../../util/graphic");return{layout:function(t,n,r){var a=i.getLayoutRect(n.getBoxLayoutParams(),{width:r[j](),height:r[W]()},n.get("padding"));i.box(n.get("orient"),t,n.get("itemGap"),a.width,a[Z]),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[w](),o=e.getItemStyle(["color",y]);o.fill=e.get("backgroundColor");var s=new r.Rect({shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[1]+i[3],height:a[Z]+i[0]+i[2]},style:o,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/util/symbol",[ee,"./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[Z]/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[Z]/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[Z]),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),d=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var f=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),o=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[Z],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()}}),s={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:r,pin:a,arrow:o,triangle:n},l={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[Z]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[Z]=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[Z]=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[Z]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Z]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[Z]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[Z]=n}},c={};for(var h in s)s.hasOwnProperty(h)&&(c[h]=new s[h]);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[S]=x,t.textVerticalAlign=b)},buildPath:function(t,e,i){var n=e.symbolType,r=c[n];"none"!==e.symbolType&&(r||(n="rect",r=c[n]),l[n](e.x,e.y,e.width,e[Z],r.shape),r.buildPath(t,r.shape,i))}}),f=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[u]=t:this.__isEmptyBrush?(e[u]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[u]&&(e[u]=t)),this.dirty(!1)}},p={createSymbol:function(t,n,r,a,o,s){var l=0===t[N]("empty");l&&(t=t.substr(5,1)[K]()+t.substr(6));var u;return u=0===t[N]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[N]("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=f,u.setColor(s),u}};return p}),e("echarts/component/axis/AxisView",[ee,te,"../../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[F],r=e.axis,a={},o=r[_],s=r.onZero?"onZero":o,l=r.dim,u=n.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u[Z]],h=e.get("offset")||0,d={x:{top:c[2]-h,bottom:c[3]+h},y:{left:c[0]-h,right:c[1]+h}};d.x.onZero=Math.max(Math.min(i("y"),d.x[G]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[_]=["y"===l?d.y[s]:c[0],"x"===l?d.x[s]:c[3]],a.rotation=Math.PI/2*("x"===l?0:1);var f={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],r.onZero&&(a.labelOffset=d[l][o]-d[l].onZero),e[U]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[U]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var p=e[U]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(te),n=t("../../util/graphic"),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitArea","splitLine"],u=t("../../echarts").extendComponentView({type:"axis",render:function(t){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new n.Group,this.group.add(this._axisGroup),t.get("show")){var o=t.findGridModel(),u=e(o,t),c=new r(t,u);i.each(s,c.add,c),this._axisGroup.add(c.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,o,u.labelInterval)},this),n.groupTransition(a,this._axisGroup,t)}},_splitLine:function(t,e,r){var s=t.axis,l=t[U]("splitLine"),u=l[U]("lineStyle"),c=u.get("color"),h=o(l,r);c=i[L](c)?c:[c];for(var d=e[F].getRect(),f=s.isHorizontal(),p=0,v=s.getTicksCoords(),m=s.scale.getTicks(),g=[],y=[],_=u.getLineStyle(),x=0;x<v[V];x++)if(!a(s,x,h)){var b=s.toGlobalCoord(v[x]);f?(g[0]=b,g[1]=d.y,y[0]=b,y[1]=d.y+d[Z]):(g[0]=d.x,g[1]=b,y[0]=d.x+d.width,y[1]=b);var w=p++%c[V];this._axisGroup.add(new n.Line(n.subPixelOptimizeLine({anid:"line_"+m[x],shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:i[D]({stroke:c[w]},_),silent:!0})))}},_splitArea:function(t,e,r){var s=t.axis,l=t[U]("splitArea"),u=l[U]("areaStyle"),c=u.get("color"),h=e[F].getRect(),d=s.getTicksCoords(),f=s.scale.getTicks(),p=s.toGlobalCoord(d[0]),v=s.toGlobalCoord(d[0]),m=0,g=o(l,r),y=u.getAreaStyle();c=i[L](c)?c:[c];for(var _=1;_<d[V];_++)if(!a(s,_,g)){var x,b,w,T,M=s.toGlobalCoord(d[_]);s.isHorizontal()?(x=p,b=h.y,w=M-x,T=h[Z]):(x=h.x,b=v,w=h.width,T=M-b);var S=m++%c[V];this._axisGroup.add(new n.Rect({anid:"area_"+f[_],shape:{x:x,y:b,width:w,height:T},style:i[D]({fill:c[S]},y),silent:!0})),p=x+w,v=b+T}}});u[O]({type:"xAxis"}),u[O]({type:"yAxis"})}),e("echarts/chart/pie/labelLayout",[ee,"zrender/contain/text"],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n){for(var r=e;i>r;r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r][Z])return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][Z]));n--);}function u(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[V];l>s;s++)if(t[s][_]!==x){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=r+c>u?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&o>=d&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,d=t[V],f=[],p=[],v=0;d>v;v++)c=t[v].y-h,0>c&&s(v,d,-c,r),h=t[v].y+t[v][Z];0>o-h&&l(d-1,h-o);for(var v=0;d>v;v++)t[v].y>=i?p.push(t[v]):f.push(t[v]);u(f,!1,e,i,n,r),u(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],u=0;u<t[V];u++)t[u].x<i?s.push(t[u]):l.push(t[u]);e(l,i,n,r,1,a,o),e(s,i,n,r,-1,a,o);for(var u=0;u<t[V];u++){var c=t[u].linePoints;if(c){var h=c[1][0]-c[2][0];c[2][0]=t[u].x<i?t[u].x+3:t[u].x-3,c[1][1]=c[2][1]=t[u].y,c[1][0]=c[2][0]+h}}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,s,l=t[J](),u=[],c=!1;l.each(function(i){var r,a,d,f,p=l.getItemLayout(i),m=l[h](i),g=m[U]("label.normal"),y=g.get(_)||m.get("label.emphasis.position"),b=m[U]("labelLine.normal"),T=b.get(V),S=b.get("length2"),P=(p.startAngle+p.endAngle)/2,A=Math.cos(P),L=Math.sin(P);o=p.cx,s=p.cy;var z="inside"===y||"inner"===y;if(y===x)r=p.cx,a=p.cy,f=x;else{var I=(z?(p.r+p.r0)/2*A:p.r*A)+o,k=(z?(p.r+p.r0)/2*L:p.r*L)+s;if(r=I+3*A,a=k+3*L,!z){var D=I+A*(T+e-p.r),O=k+L*(T+e-p.r),R=D+(0>A?-1:1)*S,E=O;r=R+(0>A?-5:5),a=E,d=[[I,k],[D,O],[R,E]]}f=z?x:A>0?"left":"right"}var B=g[U](C)[M](),F=g.get("rotate")?0>A?-P+Math.PI:-P:0,N=t.getFormattedLabel(i,v)||l.getName(i),G=n[w](N,B,f,"top");c=!!F,p.label={x:r,y:a,position:y,height:G[Z],len:T,len2:S,linePoints:d,textAlign:f,verticalAlign:"middle",font:B,rotation:F},z||u.push(p.label)}),!c&&t.get("avoidLabelOverlap")&&i(u,o,s,e,r,a)}}),e("echarts/component/axis/AxisBuilder",[ee,te,"../../util/format","../../util/graphic","../../model/Model","../../util/number","zrender/core/vector"],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function i(t,e,i){var n,r,a=g(e-t.rotation);return y(a)?(r=i>0?"top":G,n=x):y(a-I)?(r=i>0?G:"top",n=x):(r=b,n=a>0&&I>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function n(t,e,i,n){var r,a,o=g(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return y(o-I/2)?(a=l?G:"top",r=x):y(o-1.5*I)?(a=l?"top":G,r=x):(a=b,r=1.5*I>o&&o>I/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function o(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var s=t(te),u=t("../../util/format"),h=t("../../util/graphic"),v=t("../../model/Model"),m=t("../../util/number"),g=m.remRadian,y=m.isRadianAroundZero,P=t("zrender/core/vector"),L=P[f],z=s[a],I=Math.PI,k=function(t,e){this.opt=e,this.axisModel=t,s[D](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;var i=new h.Group({position:e[_].slice(),rotation:e.rotation});i.updateTransform(),this._transform=i[d],this._dumbGroup=i};k[Q]={constructor:k,hasBuilder:function(t){return!!R[t]},add:function(t){R[t].call(this)},getGroup:function(){return this.group}};var R={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[p](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(L(r,r,n),L(a,a,n)),this.group.add(new h.Line(h.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:s[O]({lineCap:"round"},e[U]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[U]("axisTick"),n=this.opt,r=i[U]("lineStyle"),a=i.get(V),o=B(i,n.labelInterval),l=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale.getTicks(),c=[],d=[],f=this._transform,p=0;p<l[V];p++)if(!E(e,p,o)){var v=l[p];
  c[0]=v,c[1]=0,d[0]=v,d[1]=n.tickDirection*a,f&&(L(c,c,f),L(d,d,f)),this.group.add(new h.Line(h.subPixelOptimizeLine({anid:"tick_"+u[p],shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:s[D](r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0})))}},axisLabel:function(){function t(t,e){var i=t&&t[w]().clone(),n=e&&e[w]().clone();return i&&n?(i[f](t.getLocalTransform()),n[f](e.getLocalTransform()),i.intersect(n)):void 0}var n=this.opt,r=this.axisModel,a=z(n.axisLabelShow,r.get("axisLabel.show"));if(a){var u=r.axis,d=r[U]("axisLabel"),p=d[U](C),m=d.get("margin"),g=u.scale.getTicks(),y=r.getFormattedLabels(),_=z(n.labelRotation,d.get("rotate"))||0;_=_*I/180;var x=i(n,_,n.labelDirection),b=r.get("data"),P=[],L=o(r),k=r.get("triggerEvent");if(s.each(g,function(t,i){if(!E(u,i,n.labelInterval)){var a=p;b&&b[t]&&b[t][C]&&(a=new v(b[t][C],p,r[l]));var o=a[T]()||r.get("axisLine.lineStyle.color"),s=u.dataToCoord(t),c=[s,n.labelOffset+n.labelDirection*m],d=u.scale.getLabel(t),f=new h.Text({anid:"label_"+t,style:{text:y[i],textAlign:a.get("align",!0)||x[S],textVerticalAlign:a.get("baseline",!0)||x.verticalAlign,textFont:a[M](),fill:typeof o===A?o(d):o},position:c,rotation:x.rotation,silent:L,z2:10});k&&(f.eventData=e(r),f.eventData.targetType="axisLabel",f.eventData.value=d),this._dumbGroup.add(f),f.updateTransform(),P.push(f),this.group.add(f),f.decomposeTransform()}},this),u.type!==c){if(r.getMin?r.getMin():r.get("min")){var D=P[0],O=P[1];t(D,O)&&(D[H]=!0)}if(r.getMax?r.getMax():r.get("max")){var R=P[P[V]-1],B=P[P[V]-2];t(B,R)&&(R[H]=!0)}}}},axisName:function(){var t=this.opt,r=this.axisModel,a=z(t.axisName,r.get("name"));if(a){var l,c=r.get("nameLocation"),d=t.nameDirection,f=r[U]("nameTextStyle"),v=r.get("nameGap")||0,m=this.axisModel.axis[p](),g=m[0]>m[1]?-1:1,y=["start"===c?m[0]-g*v:"end"===c?m[1]+g*v:(m[0]+m[1])/2,c===b?t.labelOffset+d*v:0],_=r.get("nameRotate");null!=_&&(_=_*I/180);var x;c===b?l=i(t,null!=_?_:t.rotation,d):(l=n(t,c,_||0,m),x=t.axisNameAvailableWidth,null!=x&&(x=Math.abs(x/Math.sin(l.rotation)),!isFinite(x)&&(x=null)));var w=f[M](),C=r.get("nameTruncate",!0)||{},P=C.ellipsis,A=z(C.maxWidth,x),L=null!=P&&null!=A?u.truncateText(a,A,w,P,{minChar:2,placeholder:C.placeholder}):a,k=r.get("tooltip",!0),D=r.mainType,R={componentType:D,name:a,$vars:["name"]};R[D+"Index"]=r.componentIndex;var E=new h.Text({anid:"name",__fullText:a,__truncatedText:L,style:{text:L,textFont:w,fill:f[T]()||r.get("axisLine.lineStyle.color"),textAlign:l[S],textVerticalAlign:l.verticalAlign},position:y,rotation:l.rotation,silent:o(r),z2:1,tooltip:k&&k.show?s[O]({content:a,formatter:function(){return a},formatterParams:R},k):null});r.get("triggerEvent")&&(E.eventData=e(r),E.eventData.targetType="axisName",E.eventData.name=a),this._dumbGroup.add(E),E.updateTransform(),this.group.add(E),E.decomposeTransform()}}},E=k.ifIgnoreOnTick=function(t,e,i){var n,a=t.scale;return a.type===r&&(typeof i===A?(n=a.getTicks()[e],!i(n,a.getLabel(n))):e%(i+1))},B=k.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return k}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var ie=t("echarts");return ie.graphic=t("echarts/util/graphic"),ie.number=t("echarts/util/number"),ie.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/pie"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("zrender/vml/vml"),ie});