You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
286 KiB

!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],c=0,h=Math.min(e.length,n.length);h>c;c++){var u,d=i(e[c],r);switch(d){case"require":u=l&&l.require||t;break;case"exports":u=l.exports;break;case"module":u=l;break;default:u=a(d)}s.push(u)}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="mousemove",n="moveTo",r="buildPath",a="../core/util",o="undefined",s="middle",l="ecModel",c="parent",h="lineWidth",u="applyTransform",d="horizontal",f="stroke",p="../../util/number",m="textBaseline",v="inside",g="getName",y="toFixed",x="dimensions",_="dataToPoint",b="mapArray",w="radius",M="parsePercent",S="emphasis",C="getItemVisual",T="getItemGraphicEl",k="updateProps",A="getItemModel",z="getItemLayout",L="normal",D="animation",I="getBaseAxis",P="../../echarts",O="../../util/graphic",R="ordinal",B="getDataExtent",E="category",Z="getAxis",V="getComponent",N="concat",G="createElement",F="getExtent",H="getLabel",W="create",q="contain",j="inherits",U="function",X="indexOf",Y="isArray",$="replace",Q="zlevel",K="getDataParams",J="seriesIndex",te="hostModel",ee="mouseout",ie="mouseover",ne="splice",re="series",ae="eachSeries",oe="trigger",se="length",le="dispatchAction",ce="extend",he="remove",ue="isObject",de="update",fe="bottom",pe="ignore",me="eachComponent",ve="option",ge="resize",ye="string",xe="prototype",_e="toLowerCase",be="transform",we="opacity",Me="setStyle",Se="position",Ce="center",Te="getHeight",ke="getWidth",Ae="target",ze="height",Le="getBoundingRect",De="getTextColor",Ie="getFont",Pe="textAlign",Oe="textStyle",Re="getModel",Be="extendComponentModel",Ee="getItemStyle",Ze="defaults",Ve="coordinateSystem",Ne="removeAll",Ge="extendComponentView",Fe="filter",He="getData",We="zrender/core/util",qe="require";e("echarts/chart/bar",[qe,We,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts"],function(t){var e=t(We);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.registerVisualCoding("chart",function(t){t.eachSeriesByType("bar",function(t){var e=t[He]();e.setVisual("legendSymbol","roundRect")})})}),e("echarts/chart/line",[qe,We,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points"],function(t){var e=t(We),i=t("../echarts");t("./line/LineSeries"),t("./line/LineView"),i.registerVisualCoding("chart",e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line"))}),e("echarts/chart/pie",[qe,We,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(We),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.registerVisualCoding("chart",e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(Fe,e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/chart/candlestick",[qe,"../echarts","./candlestick/CandlestickSeries","./candlestick/CandlestickView","./candlestick/preprocessor","./candlestick/candlestickVisual","./candlestick/candlestickLayout"],function(t){var e=t("../echarts");t("./candlestick/CandlestickSeries"),t("./candlestick/CandlestickView"),e.registerPreprocessor(t("./candlestick/preprocessor")),e.registerVisualCoding("chart",t("./candlestick/candlestickVisual")),e.registerLayout(t("./candlestick/candlestickLayout"))}),e("echarts/component/grid",[qe,"../util/graphic",We,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(We);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts")[Ge]({type:"grid",render:function(t){this.group[Ne](),t.get("show")&&this.group.add(new e.Rect({shape:t[Ve].getRect(),style:i[Ze]({fill:t.get("backgroundColor")},t[Ee]()),silent:!0}))}})}),e("echarts/component/legend",[qe,"./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(Fe,t("./legend/legendFilter"))}),e("echarts/component/title",[qe,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=t("../util/layout");e[Be]({type:"title",defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"left",top:"top",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[Ge]({type:"title",render:function(t,e,r){if(this.group[Ne](),t.get("show")){var a=this.group,o=t[Re](Oe),s=t[Re]("subtextStyle"),l=t.get(Pe),c=new i.Text({style:{text:t.get("text"),textFont:o[Ie](),fill:o[De](),textBaseline:"top"},z2:10}),h=c[Le](),u=t.get("subtext"),d=new i.Text({style:{text:u,textFont:s[Ie](),fill:s[De](),y:h[ze]+t.get("itemGap"),textBaseline:"top"},z2:10}),f=t.get("link"),p=t.get("sublink");c.silent=!f,d.silent=!p,f&&c.on("click",function(){window.open(f,t.get(Ae))}),p&&d.on("click",function(){window.open(p,t.get("subtarget"))}),a.add(c),u&&a.add(d);var m=a[Le](),v=t.getBoxLayoutParams();v.width=m.width,v[ze]=m[ze];var g=n.getLayoutRect(v,{width:r[ke](),height:r[Te]()},t.get("padding"));if(!l){var y=g.x/r[ke](),x=(g.x+g.width)/r[ke]();.2>y?l="left":x>.8?(g.x+=g.width,l="right"):(g.x+=g.width/2,l=Ce)}a[Se]=[g.x,g.y],c[Me](Pe,l),d[Me](Pe,l),m=a[Le]();var _=g.margin,b=t[Ee](["color",we]);b.fill=t.get("backgroundColor");var w=new i.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m[ze]+_[0]+_[2]},style:b,silent:!0});i.subPixelOptimizeRect(w),a.add(w)}}})}),e("echarts/echarts",[qe,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",We,"zrender/tool/color","zrender/core/env","zrender/mixin/Eventful","./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","echarts/util/number","echarts/util/format"],function(t){function e(t){return function(e,i,n){e=e&&e[_e](),k[xe][t].call(this,e,i,n)}}function i(){k.call(this)}function n(t,e,n){n=n||{},e&&A(V,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=M.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),typeof e===ye&&(e=G[e]),this._theme=S.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new m(this),this._coordinateSystem=new v,k.call(this),this._messageCenter=new i,this._initEvents(),this[ge]=S.bind(this[ge],this)}function r(t,e){var i=this._model;i&&i[me]({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r.__alive&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;A(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e[ae](function(r){var a=this._chartsMap[r.__viewId];a[t](r,e,n,i),d(r,a)},this)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[se];o++)n[o].__alive=!1;e[i?me:ae](function(t,o){if(i){if(t===re)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var c=y.parseClassType(o.type),h=i?_.getClass(c.main,c.sub):b.getClass(c.sub);if(!h)return;l=new h,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[se];){var s=n[o];s.__alive?o++:(a[he](s.group),s.dispose(e,this._api),n[ne](o,1),delete r[s.__id])}}function s(t){A(L,function(e){A(Z[e]||[],function(e){e(t)})})}function l(t){var e={};t[ae](function(t){var i=t.get("stack"),n=t[He]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function c(t,e){var i=this._api;A(E,function(n){n(t,i,e)})}function h(t,e){A(z,function(i){A(N[i]||[],function(i){i(t,e)})})}function u(t,e){var i=this._api;A(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),d(r,n)},this),A(this._chartsViews,function(t){t.__alive=!1},this),t[ae](function(n){var r=this._chartsMap[n.__viewId];r.__alive=!0,r.render(n,t,i,e),d(n,r)},this),A(this._chartsViews,function(e){e.__alive||e[he](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(Q);e.group.traverse(function(t){null!=i&&(t.z=i),null!=n&&(t[Q]=n)})}function f(t){function e(t,e){for(var i=0;i<t[se];i++){var n=t[i];n[a]=e}}var i=0,n=1,r=2,a="__connectUpdateStatus";S.each(B,function(o,s){t._messageCenter.on(s,function(o){if(H[t.group]&&t[a]!==i){var s=t.makeActionFromEvent(o),l=[];for(var c in F){var h=F[c];h!==t&&h.group===t.group&&l.push(h)}e(l,i),A(l,function(t){t[a]!==n&&t[le](s)}),e(l,r)}})})}var p=t("./model/Global"),m=t("./ExtensionAPI"),v=t("./CoordinateSystem"),g=t("./model/OptionManager"),y=t("./model/Component"),x=t("./model/Series"),_=t("./view/Component"),b=t("./view/Chart"),w=t("./util/graphic"),M=t("zrender"),S=t(We),C=t("zrender/tool/color"),T=t("zrender/core/env"),k=t("zrender/mixin/Eventful"),A=S.each,z=["echarts","chart","component"],L=[be,Fe,"statistic"];i[xe].on=e("on"),i[xe].off=e("off"),i[xe].one=e("one"),S.mixin(i,k);var D=n[xe];D.getDom=function(){return this._dom},D.getZr=function(){return this._zr},D.setOption=function(t,e,i){(!this._model||e)&&(this._model=new p(null,null,this._theme,new g(this._api))),this._model.setOption(t,V),I.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},D.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},D[Re]=function(){return this._model},D.getOption=function(){return S.clone(this._model[ve])},D[ke]=function(){return this._zr[ke]()},D[Te]=function(){return this._zr[Te]()},D.getRenderedCanvas=function(t){if(T.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,i=e.storage.getDisplayList();return S.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},D.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;A(e,function(t){i[me]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[pe]||(n.push(e),e.group[pe]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(n,function(t){t.group[pe]=!1}),a},D.getConnectedDataURL=function(t){if(T.canvasSupported){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(H[e]){var a=r,o=r,s=-r,l=-r,c=[],h=t&&t.pixelRatio||1;for(var u in F){var d=F[u];if(d.group===e){var f=d.getRenderedCanvas(S.clone(t)),p=d.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[fe],l),c.push({dom:f,left:p.left,top:p.top})}}a*=h,o*=h,s*=h,l*=h;var m=s-a,v=l-o,g=S.createCanvas();g.width=m,g[ze]=v;var y=M.init(g);return A(c,function(t){var e=new w.Image({style:{x:t.left*h-a,y:t.top*h-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var I={update:function(t){var e=this._model;if(e){e.restoreData(),s.call(this,e),l.call(this,e),this._coordinateSystem[de](e,this._api),c.call(this,e,t),h.call(this,e,t),u.call(this,e,t);var i=e.get("backgroundColor")||"transparent",n=this._zr.painter;if(n.isSingleCanvas&&n.isSingleCanvas())this._zr.configLayer(0,{clearColor:i});else{if(!T.canvasSupported){var r=C.parse(i);i=C.stringify(r,"rgb"),0===r[3]&&(i="transparent")}i=i,this._dom.style.backgroundColor=i}}},updateView:function(t){var e=this._model;e&&(c.call(this,e,t),h.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(h.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),I[de].call(this,t)}};D[ge]=function(){this._zr[ge]();var t=this._model&&this._model.resetOption("media");I[t?"prepareAndUpdate":de].call(this),this._loadingFX&&this._loadingFX[ge]()};var P=t("./loading/default");D.showLoading=function(t,e){S[ue](t)&&(e=t,t="default");var i=P(this._api,e),n=this._zr;this._loadingFX=i,n.painter.clear(),n.add(i)},D.hideLoading=function(){this._loadingFX&&this._zr[he](this._loadingFX),this._loadingFX=null},D.makeActionFromEvent=function(t){var e=S[ce]({},t);return e.type=B[t.type],e},D[le]=function(t,e){var i=R[t.type];if(i){var n=i.actionInfo,r=n[de]||de,a=[t],o=!1;t.batch&&(o=!0,a=S.map(t.batch,function(e){return e=S[Ze](S[ce]({},e),t),e.batch=null,e}));for(var s,l=[],c="highlight"===t.type||"downplay"===t.type,h=0;h<a[se];h++){var u=a[h];s=i.action(u,this._model),s=s||S[ce]({},u),s.type=n.event||s.type,l.push(s),c&&I[r].call(this,u)}"none"!==r&&!c&&I[r].call(this,t),e||(s=o?{type:l[0].type,batch:l}:l[0],this._messageCenter[oe](s.type,s))}},D.on=e("on"),D.off=e("off"),D.one=e("one");var O=["click","dblclick",ie,ee,"globalout"];D._initEvents=function(){var t=this._zr;A(O,function(e){t.on(e,function(t){var i=this[Re](),n=t[Ae];if(n&&null!=n.dataIndex){var r=n[te]||i.getSeriesByIndex(n[J]),a=r&&r[K](n.dataIndex)||{};a.event=t,a.type=e,this[oe](e,a)}},this)},this),A(B,function(t,e){this._messageCenter.on(e,function(t){this[oe](e,t)},this)},this)},D.isDisposed=function(){return this._disposed},D.clear=function(){this.setOption({},!0)},D.dispose=function(){this._disposed=!0;var t=this._api,e=this._model;A(this._componentsViews,function(i){i.dispose(e,t)}),A(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),F[this.id]=null},S.mixin(n,k);var R=[],B={},E=[],Z={},V=[],N={},G={},F={},H={},W=new Date-0,q=new Date-0,we="_echarts_instance_",Me={version:"3.0.1",dependencies:{zrender:"3.0.1"}};return Me.init=function(t,e,i){if(M.version[$](".","")-0<Me.dependencies.zrender[$](".","")-0)throw new Error("ZRender "+M.version+" is too old for ECharts "+Me.version+". Current version need ZRender "+Me.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id="ec_"+W++,F[r.id]=r,t.setAttribute&&t.setAttribute(we,r.id),f(r),r},Me.connect=function(t){if(S[Y](t)){var e=t;t=null,S.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+q++,S.each(e,function(e){e.group=t})}return H[t]=!0,t},Me.disConnect=function(t){H[t]=!1},Me.dispose=function(t){S.isDom(t)?t=Me.getInstanceByDom(t):typeof t===ye&&(t=F[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},Me.getInstanceByDom=function(t){var e=t.getAttribute(we);return F[e]},Me.getInstanceById=function(t){return F[t]},Me.registerTheme=function(t,e){G[t]=e},Me.registerPreprocessor=function(t){V.push(t)},Me.registerProcessor=function(t,e){if(S[X](L,t)<0)throw new Error("stage should be one of "+L);var i=Z[t]||(Z[t]=[]);i.push(e)},Me.registerAction=function(t,e,i){typeof e===U&&(i=e,e="");var n=S[ue](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[_e](),e=t.event,R[n]||(R[n]={action:i,actionInfo:t}),B[e]=n},Me.registerCoordinateSystem=function(t,e){v.register(t,e)},Me.registerLayout=function(t){S[X](E,t)<0&&E.push(t)},Me.registerVisualCoding=function(t,e){if(S[X](z,t)<0)throw new Error("stage should be one of "+z);var i=N[t]||(N[t]=[]);i.push(e)},Me.extendChartView=function(t){return b[ce](t)},Me[Be]=function(t){return y[ce](t)},Me.extendSeriesModel=function(t){return x[ce](t)},Me[Ge]=function(t){return _[ce](t)},Me.setCanvasCreator=function(t){S.createCanvas=t},Me.registerVisualCoding("echarts",S.curry(t("./visual/seriesColor"),"","itemStyle")),Me.registerPreprocessor(t("./preprocessor/backwardCompat")),Me.registerAction({type:"highlight",event:"highlight",update:"highlight"},S.noop),Me.registerAction({type:"downplay",event:"downplay",update:"downplay"},S.noop),Me.graphic=t("echarts/util/graphic"),Me.number=t("echarts/util/number"),Me.format=t("echarts/util/format"),Me.util={},A(["map","each",Fe,X,j,"reduce",Fe,"bind","curry",Y,"isString",ue,"isFunction",ce],function(t){Me.util[t]=S[t]}),Me}),e("echarts/component/markLine",[qe,"./marker/MarkLineModel","./marker/MarkLineView"],function(t){t("./marker/MarkLineModel"),t("./marker/MarkLineView")}),e("echarts/component/dataZoom",[qe,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SliderZoomModel","./dataZoom/SliderZoomView","./dataZoom/InsideZoomModel","./dataZoom/InsideZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SliderZoomModel"),t("./dataZoom/SliderZoomView"),t("./dataZoom/InsideZoomModel"),t("./dataZoom/InsideZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/toolbox",[qe,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("zrender/vml/vml",[qe,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[qe,We,"../util/number","./Interval"],function(t){var e=t(We),i=t("../util/number"),n=t("./Interval"),r=n[xe],a=Math.ceil,o=Math.floor,s=864e5,l=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},c=function(t){return 10>t?"0"+t:t},h=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(),s=n.getHours(),l=n.getMinutes(),h=n.getSeconds();return t=t[$]("MM",c(a))[_e]()[$]("yyyy",r)[$]("yy",r%100)[$]("dd",c(o))[$]("d",o)[$]("hh",c(s))[$]("h",s)[$]("mm",c(l))[$]("m",l)[$]("ss",c(h))[$]("s",h)},u=n[ce]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return h(e[0],i)},niceExtent:function(t,e,n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=s,r[1]+=s),r[1]===-1/0&&1/0===r[0]){var l=new Date;r[1]=new Date(l.getFullYear(),l.getMonth(),l.getDate()),r[0]=r[1]-s}this.niceTicks(t,e,n);var c=this._interval;e||(r[0]=i.round(o(r[0]/c)*c)),n||(r[1]=i.round(a(r[1]/c)*c))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=d[se],s=l(d,n,0,r),c=d[Math.min(s,r-1)],h=c[2],u=[a(e[0]/h)*h,o(e[1]/h)*h];this._stepLvl=c,this._interval=h,this._niceExtent=u}});e.each([q,"normalize"],function(t){u[xe][t]=function(e){return e=+i.parseDate(e),r[t].call(this,e)}});var d=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,s],["week",7,7*s],["month",1,31*s],["quarter",3,380*s/4],["half-year",6,380*s/2],["year",1,380*s]];return u[W]=function(){return new u},u}),e("echarts/scale/Log",[qe,We,"./Scale","../util/number","./Interval"],function(t){var e=t(We),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[xe],o=r[xe],s=Math.floor,l=Math.ceil,c=Math.pow,h=10,u=Math.log,d=i[ce]({type:"log",getTicks:function(){return e.map(o.getTicks.call(this),function(t){return n.round(c(h,t))})},getLabel:o[H],scale:function(t){return t=a.scale.call(this,t),c(h,t)},setExtent:function(t,e){t=u(t)/u(h),e=u(e)/u(h),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[F].call(this);return t[0]=c(h,t[0]),t[1]=c(h,t[1]),t},unionExtent:function(t){t[0]=u(t[0])/u(h),t[1]=u(t[1])/u(h),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=c(10,s(u(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([q,"normalize"],function(t){d[xe][t]=function(e){return e=u(e)/u(h),a[t].call(this,e)}}),d[W]=function(){return new d},d}),e(We,[qe,"../graphic/Gradient"],function(t){function e(t){if("object"==typeof t&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[se];r>n;n++)i[n]=e(t[n])}else if(!M(t)&&!S(t)){i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e(t[a]))}return i}return t}function i(t,n,r){if(!w(n)||!w(t))return r?e(n):t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!w(s)||!w(o)||x(s)||x(o)||S(s)||S(o)||M(s)||M(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}function n(t,e){for(var n=t[0],r=1,a=t[se];a>r;r++)n=i(n,t[r],e);return n}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function o(){return document[G]("canvas")}function s(){return A||(A=Z.createCanvas().getContext("2d")),A}function l(t,e){if(t){if(t[X])return t[X](e);for(var i=0,n=t[se];n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t[xe];i[xe]=e[xe],t[xe]=new i;for(var r in n)t[xe][r]=n[r];t[xe].constructor=t,t.superClass=e}function h(t,e,i){t=xe in t?t[xe]:t,e=xe in e?e[xe]:e,a(t,e,i)}function u(t){return t?typeof t==ye?!1:"number"==typeof t[se]:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===P)t.forEach(e,i);else if(t[se]===+t[se])for(var n=0,r=t[se];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 f(t,e,i){if(t&&e){if(t.map&&t.map===B)return t.map(e,i);for(var n=[],r=0,a=t[se];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===E)return t.reduce(e,i,n);for(var r=0,a=t[se];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(t&&e){if(t[Fe]&&t[Fe]===O)return t[Fe](e,i);for(var n=[],r=0,a=t[se];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function v(t,e,i){if(t&&e)for(var n=0,r=t[se];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function g(t,e){var i=R.call(arguments,2);return function(){return t.apply(e,i[N](R.call(arguments)))}}function y(t){var e=R.call(arguments,1);return function(){return t.apply(this,e[N](R.call(arguments)))}}function x(t){return"[object Array]"===D.call(t)}function _(t){return typeof t===U}function b(t){return"[object String]"===D.call(t)}function w(t){var e=typeof t;return e===U||!!t&&"object"==e}function M(t){return!!L[D.call(t)]||t instanceof z}function S(t){return t&&1===t.nodeType&&typeof t.nodeName==ye}function C(){for(var t=0,e=arguments[se];e>t;t++)if(null!=arguments[t])return arguments[t]}function T(){return Function.call.apply(R,arguments)}function k(t,e){if(!t)throw new Error(e)}var A,z=t("../graphic/Gradient"),L={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},D=Object[xe].toString,I=Array[xe],P=I.forEach,O=I[Fe],R=I.slice,B=I.map,E=I.reduce,Z={inherits:c,mixin:h,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:T,find:v,isArrayLike:u,each:d,map:f,reduce:p,filter:m,bind:g,curry:y,isArray:x,isString:b,isObject:w,isFunction:_,isBuildInObject:M,isDom:S,retrieve:C,assert:k,noop:function(){}};return Z}),e("echarts/coord/cartesian/Grid",[qe,"exports","../../util/layout","../../coord/axisHelper",We,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i[V]("grid",t.get("gridIndex"))===e}function i(t){for(var e,i=t.model,n=i.getFormattedLabels(),r=0;r<n[se];r++)if(!t.isLabelIgnored(r)){var a=i.getTextRect(n[r]);e?e.union(a):e=a}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i)}function r(t,e){var i=t[F](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var a=t("../../util/layout"),o=t("../../coord/axisHelper"),s=t(We),l=t("./Cartesian2D"),c=t("./Axis2D"),h=s.each,u=o.ifAxisCrossZero,d=o.ifAxisNeedsCrossZero,f=o.niceScaleExtent;t("./GridModel");var p=n[xe];return p.type="grid",p.getRect=function(){return this._rect},p[ge]=function(t,e){function n(){h(s,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o[ze]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),r(t,e?o.x:o.y)})}var o=a.getLayoutRect(t.getBoxLayoutParams(),{width:e[ke](),height:e[Te]()});this._rect=o;var s=this._axesList;n(),t.get("containLabel")&&(h(s,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?ze:"width",r=t.model.get("axisLabel.margin");o[n]-=e[n]+r,"top"===t[Se]?o.y+=e[ze]+r:"left"===t[Se]&&(o.x+=e.width+r)}}}),n())},p[Z]=function(t,e){if(null!=e){var i=t+e;return this._axesMap[i]}for(var n=this._axesList,r=0;r<n[se];r++)if(n[r].dim===t)return n[r]},p.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},p._initCartesian=function(t,i){function n(t){var e=s[t];return e[0]&&(e[0].type===E||!u(e[0]))||e[1]&&(e[1].type===E||!u(e[1]))}function r(n){return function(r,l){if(e(r,t,i)){var h=r.get(Se);"x"===n?("top"!==h&&h!==fe&&(h=fe),a[h]&&(h="top"===h?fe:"top")):("left"!==h&&"right"!==h&&(h="left"),a[h]&&(h="left"===h?"right":"left")),a[h]=!0;var u=new c(n,o.createScaleByModel(r),[0,0],r.get("type"),h),d=u.type===E;u.onBand=d&&r.get("boundaryGap"),u.inverse=r.get("inverse"),u.onZero=r.get("axisLine.onZero"),r.axis=u,u.model=r,u.index=l,this._axesList.push(u),this._axesMap[n+l]=u,s[n][l]=u,p[n]++}}}var a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},p={x:0,y:0};return i[me]("xAxis",r("x"),this),i[me]("yAxis",r("y"),this),p.x&&p.y?(h(s.x,function(t,e){h(s.y,function(i,n){var r="x"+e+"y"+n,a=new l(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this),this._updateCartesianFromSeries(i,t),h(s.x,function(t){n("y")&&(t.onZero=!1),d(t)&&t.scale.unionExtent([0,0]),f(t,t.model)},this),void h(s.y,function(t){n("x")&&(t.onZero=!1),d(t)&&t.scale.unionExtent([0,0]),f(t,t.model)},this)):(this._axesMap={},void(this._axesList=[]))},p._updateCartesianFromSeries=function(t,i){function n(t,e,i,n){h(n.getDimensionsOnAxis(i),function(i){e.scale.unionExtent(t[B](i,e.scale.type!==R))})}t[ae](function(r){if("cartesian2d"===r.get(Ve)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[V]("xAxis",a),l=t[V]("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var c=this.getCartesian(a,o),h=r[He]();"list"===h.type&&(n(h,c[Z]("x"),"x",r),n(h,c[Z]("y"),"y",r))}},this)},n[W]=function(t,e){var i=[];return t[me]("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[ge](r,e),r[Ve]=o,i.push(o)}),t[ae](function(e){if("cartesian2d"===e.get(Ve)){var n=e.get("xAxisIndex"),r=t[V]("xAxis",n),a=i[r.get("gridIndex")];e[Ve]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},t("../../CoordinateSystem").register("grid",n),n}),e("echarts/chart/bar/BarSeries",[qe,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[ce]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})}),e("echarts/chart/bar/BarView",[qe,We,O,"../../model/Model","./barItemStyle",P],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[ze]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[ze])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[ze]-=n*e}var i=t(We),n=t(O);return i[ce](t("../../model/Model")[xe],t("./barItemStyle")),t(P).extendChartView({type:"bar",render:function(t,e,i){var n=t.get(Ve);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t){function r(r,a){var s=o[z](r),l=o[A](r).get(d)||0;e(s,l);var c=new n.Rect({shape:i[ce]({},s)});if(u){var f=c.shape,p=h?ze:"width",m={};f[p]=0,m[p]=s[p],n[a?k:"initProps"](c,{shape:m},t)}return c}var a=this.group,o=t[He](),s=this._data,l=t[Ve],c=l[I](),h=c.isHorizontal(),u=t.get(D),d=["itemStyle",L,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[de](function(i,l){var c=s[T](l);if(!o.hasValue(i))return void a[he](c);c||(c=r(i,!0));var h=o[z](i),u=o[A](i).get(d)||0;e(h,u),n[k](c,{shape:h},t),o.setItemGraphicEl(i,c),a.add(c)})[he](function(e){var i=s[T](e);i&&(i.style.text="",n[k](i,{shape:{width:0}},t,function(){a[he](i)}))}).execute(),this._updateStyle(t,o,h),this._data=o},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(o,s){var l=e[A](s),c=l[Re]("label.normal"),h=e[C](s,"color"),u=e[z](s),d=l[Re]("itemStyle.emphasis")[Ee]();o[Me](i[Ze]({fill:h},l[Re]("itemStyle.normal").getBarItemStyle()));var f=r?u[ze]>0?fe:"top":u.width>0?"left":"right",c=l[Re]("label.normal"),p=l[Re]("label.emphasis"),m=o.style;c.get("show")?a(m,c,h,t.getFormattedLabel(s,L)||t.getRawValue(s),f):m.text="",p.get("show")?a(d,p,h,t.getFormattedLabel(s,S)||t.getRawValue(s),f):d.text="",n.setHoverStyle(o,d)})},remove:function(t){var e=this.group;t.get(D)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n[k](i,{shape:{width:0}},t,function(){e[he](i)})}):e[Ne]()}})}),e("echarts/layout/barGrid",[qe,We,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[J]}function i(t){var i={};r.each(t,function(t){var n=t[Ve],r=n[I](),a=i[r.index]||{remainedWidth:r.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:r,stacks:{}},o=a.stacks;i[r.index]=a;var s=e(t);o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.get("barWidth"),c=t.get("barMaxWidth"),h=t.get("barGap"),u=t.get("barCategoryGap");l&&!o[s].width&&(l=Math.min(a.remainedWidth,l),o[s].width=l,a.remainedWidth-=l),c&&(o[s].maxWidth=c),null!=h&&(a.gap=h),null!=u&&(a.categoryGap=u)});var n={};return r.each(i,function(t,e){n[e]={};var i=t.stacks,a=t.axis,s=a.getBandWidth(),l=o(t.categoryGap,s),c=o(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,d=(h-l)/(u+(u-1)*c);d=Math.max(d,0),r.each(i,function(t){var e=t.maxWidth;!t.width&&e&&d>e&&(e=Math.min(e,h),h-=e,t.width=e,u--)}),d=(h-l)/(u+(u-1)*c),d=Math.max(d,0);var f,p=0;r.each(i,function(t){t.width||(t.width=d),f=t,p+=t.width*(1+c)}),f&&(p-=f.width*c);var m=-p/2;r.each(i,function(t,i){n[e][i]=n[e][i]||{offset:m,width:t.width},m+=t.width*(1+c)})}),n}function n(t,n){var a=i(r[Fe](n.getSeriesByType(t),function(t){return!n.isSeriesFiltered(t)&&t[Ve]&&"cartesian2d"===t[Ve].type})),o={};
n.eachSeriesByType(t,function(t){var i=t[He](),n=t[Ve],r=n[I](),s=e(t),l=a[r.index][s],c=l.offset,h=l.width,u=n.getOtherAxis(r),d=t.get("barMinHeight")||0,f=r.onZero?u.toGlobalCoord(u.dataToCoord(0)):u.getGlobalExtent()[0],p=n.dataToPoints(i,!0);o[s]=o[s]||[],i.each(u.dim,function(t,e){if(!isNaN(t)){o[s][e]||(o[s][e]={p:f,n:f});var n,r,a,l,m=t>=0?"p":"n",v=p[e],g=o[s][e][m];u.isHorizontal()?(n=g,r=v[1]+c,a=v[0]-g,l=h,Math.abs(a)<d&&(a=(0>a?-1:1)*d),o[s][e][m]+=a):(n=v[0]+c,r=g,a=h,l=v[1]-g,Math.abs(l)<d&&(l=(0>=l?-1:1)*d),o[s][e][m]+=l),i.setItemLayout(e,{x:n,y:r,width:a,height:l})}},!0)},this)}var r=t(We),a=t("../util/number"),o=a[M];return n}),e("echarts/chart/line/LineSeries",[qe,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[ce]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"},emphasis:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})}),e("echarts/chart/line/LineView",[qe,We,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",O,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[se]===e[se]){for(var i=0;i<t[se];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return"number"==typeof t?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t[I](),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[F]()[0],o=n.dim,s="x"===o||o===w?1:0;return e[b]([o],function(n,l){for(var c,h=e.stackedOn;h&&r(h.get(o,l))===r(n);){c=h;break}var u=[];return u[s]=e.get(i.dim,l),u[1-s]=c?c.get(o,l,!0):a,t[_](u)},!0)}function o(t,e){return null!=e.dataIndex?e.dataIndex:null!=e.name?t.indexOfName(e.name):void 0}function s(t,e,i){var r=n(t[Z]("x")),a=n(t[Z]("y")),o=t[I]().isHorizontal(),s=r[0],l=a[0],c=r[1]-s,h=a[1]-l;i.get("clipOverflow")||(o?(l-=h,h*=3):(s-=c,c*=3));var u=new p.Rect({shape:{x:s,y:l,width:c,height:h}});return e&&(u.shape[o?"width":ze]=0,p.initProps(u,{shape:{width:c,height:h}},i)),u}function l(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[F](),o=n[F](),s=Math.PI/180,l=new p.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,p.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function c(t,e,i){return"polar"===t.type?l(t,e,i):s(t,e,i)}var h=t(We),u=t("../helper/SymbolDraw"),d=t("../helper/Symbol"),f=t("./lineAnimationDiff"),p=t(O),m=t("./poly"),v=t("../../view/Chart");return v[ce]({type:"line",init:function(){var t=new p.Group,e=new u;this.group.add(e.group),this.group.add(t),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var o=t[Ve],s=this.group,l=t[He](),u=t[Re]("lineStyle.normal"),d=t[Re]("areaStyle.normal"),f=l[b](l[z],!0),p="polar"===o.type,m=this._coordSys,v=this._symbolDraw,g=this._polyline,y=this._polygon,x=this._lineGroup,_=t.get(D),w=!d.isEmpty(),M=a(o,l),S=t.get("showSymbol"),C=S&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(s[he](t),T.setItemGraphicEl(e,null))}),S||v[he](),g&&m.type===o.type?(_&&x.setClipPath(c(o,!1,t)),S&&v.updateData(l,C),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,M)&&e(this._points,f)||(_?this._updateAnimation(l,M,o,r):(g.setShape({points:f}),y&&y.setShape({points:f,stackedOnPoints:M}))),s.add(x)):(S&&v.updateData(l,C),g=this._newPolyline(s,f,o,_),w&&(y=this._newPolygon(s,f,M,o,_)),x.setClipPath(c(o,!0,t))),g[Me](h[Ze](u.getLineStyle(),{stroke:l.getVisual("color"),lineJoin:"bevel"}));var k=t.get("smooth");if(k=i(t.get("smooth")),g.shape.smooth=k,y){var A=y.shape,L=l.stackedOn,I=0;if(y.style[we]=.7,y[Me](h[Ze](d.getAreaStyle(),{fill:l.getVisual("color"),lineJoin:"bevel"})),A.smooth=k,L){var P=L[te];I=i(P.get("smooth"))}A.stackedOnSmooth=I}this._data=l,this._coordSys=o,this._stackedOnPoints=M,this._points=f},highlight:function(t,e,i,n){var r=t[He](),a=o(r,n);if(null!=a&&a>=0){var s=r[T](a);if(!s){var l=r[z](a);s=new d(r,a,i),s[Se]=l,s.setZ(t.get(Q),t.get("z")),s[pe]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else v[xe].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[He](),a=o(r,n);if(null!=a&&a>=0){var s=r[T](a);s&&(s.__temp?(r.setItemGraphicEl(a,null),this.group[he](s)):s.downplay())}else v[xe].downplay.call(this,t,e,i,n)},_newPolyline:function(t,e){var i=this._polyline;return i&&t[he](i),i=new m.Polyline({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(i),this._polyline=i,i},_newPolygon:function(t,e,i){var n=this._polygon;return n&&t[he](n),n=new m.Polygon({shape:{points:e,stackedOnPoints:i},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(R)[0];return i&&i.isLabelIgnored?h.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i){var n=this._polyline,r=this._polygon,a=t[te],o=f(this._data,t,this._stackedOnPoints,e,this._coordSys,i);n.shape.points=o.current,p[k](n,{shape:{points:o.next}},a),r&&(r.setShape({points:o.current,stackedOnPoints:o.stackedOnCurrent}),p[k](r,{shape:{points:o.next,stackedOnPoints:o.stackedOnNext}},a));for(var s=[],l=o.status,c=0;c<l[se];c++){var h=l[c].cmd;if("="===h){var u=t[T](l[c].idx1);u&&s.push({el:u,ptIdx:c})}}n.animators&&n.animators[se]&&n.animators[0].during(function(){for(var t=0;t<s[se];t++){var e=s[t].el;e.attr(Se,n.shape.points[s[t].ptIdx])}})},remove:function(){var t=this.group;t[he](this._lineGroup),this._symbolDraw[he](!0)}})}),e("echarts/visual/symbol",[qe],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[He](),a=t.get("symbol")||e,o=t.get("symbolSize");r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===U&&r.each(function(e){var i=t.getRawValue(e),n=t[K](e);r.setItemVisual(e,"symbolSize",o(i,n))}),r.each(function(t){var e=r[A](t),i=e.get("symbol",!0),n=e.get("symbolSize",!0);null!=i&&r.setItemVisual(t,"symbol",i),null!=n&&r.setItemVisual(t,"symbolSize",n)}))})}}),e("echarts/layout/points",[qe],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[He](),i=t[Ve],n=i[x];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[0/0,0/0]:i[_]([t,n]),e.setItemLayout(r,a)},!0)})}}),e("echarts/chart/pie/PieSeries",[qe,"../../data/List",We,"../../util/model","../../data/helper/completeDimensions","../helper/dataSelectableMixin",P],function(t){var e=t("../../data/List"),i=t(We),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../helper/dataSelectableMixin"),o=t(P).extendSeriesModel({type:"series.pie",init:function(t){this.$superApply("init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){this.$superCall("mergeOption",t),this.updateSelectedMap()},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=this.$superCall(K,t);return i.percent=+(e.get("value",t)/e.getSum("value")*100)[y](2),i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[L],i=t.labelLine[S];e.show=e.show&&t.label[L].show,i.show=i.show&&t.label[S].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:20,length2:5,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});return i.mixin(o,a),o}),e("echarts/chart/pie/PieView",[qe,O,We,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[He](),o=this.dataIndex,s=a[g](o),l=e.get("selectedOffset");r[le]({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[T](t),a[z](t),e.isSelected(a[g](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,c=[o*l,s*l];r?t.animate().when(200,{position:c}).start("bounceOut"):t.attr(Se,c)}function n(t,e){function i(){o[pe]=o.hoverIgnore,s[pe]=s.hoverIgnore}function n(){o[pe]=o.normalIgnore,s[pe]=s.normalIgnore}a.Group.call(this);var r=new a.Sector({z2:2}),o=new a.Polyline,s=new a.Text;this.add(r),this.add(o),this.add(s),this.updateData(t,e,!0),this.on(S,i).on(L,n).on(ie,i).on(ee,n)}function r(t,e,i,n){var r=n[Re](Oe),a=n.get(Se),o=a===v||"inner"===a;return{fill:r[De]()||(o?"#fff":t[C](e,"color")),textFont:r[Ie](),text:t[te].getFormattedLabel(e,i)||t[g](e)}}var a=t(O),o=t(We),s=n[xe];s.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:u.r+10}},300,"elasticOut")}function s(){l.stopAnimation(!0),l.animateTo({shape:{r:u.r}},300,"elasticOut")}var l=this.childAt(0),c=t[te],h=t[A](e),u=t[z](e),d=o[ce]({},u);d.label=null,n?(l.setShape(d),l.shape.endAngle=u.startAngle,a[k](l,{shape:{endAngle:u.endAngle}},c)):a[k](l,{shape:d},c);var f=h[Re]("itemStyle"),p=t[C](e,"color");l[Me](o[Ze]({fill:p},f[Re](L)[Ee]())),l.hoverStyle=f[Re](S)[Ee](),i(this,t[z](e),h.get("selected"),c.get("selectedOffset"),c.get(D)),l.off(ie).off(ee).off(S).off(L),h.get("hoverAnimation")&&l.on(ie,r).on(ee,s).on(S,r).on(L,s),this._updateLabel(t,e),a.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t[te],s=t[A](e),l=t[z](e),c=l.label,h=t[C](e,"color");a[k](i,{shape:{points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]}},o),a[k](n,{style:{x:c.x,y:c.y}},o),n.attr({style:{textAlign:c[Pe],textBaseline:c[m],textFont:c.font},rotation:c.rotation,origin:[c.x,c.y],z2:10});var u=s[Re]("label.normal"),d=s[Re]("label.emphasis"),f=s[Re]("labelLine.normal"),p=s[Re]("labelLine.emphasis");n[Me](r(t,e,L,u)),n[pe]=n.normalIgnore=!u.get("show"),n.hoverIgnore=!d.get("show"),i[pe]=i.normalIgnore=!f.get("show"),i.hoverIgnore=!p.get("show"),i[Me]({stroke:h}),i[Me](f[Re]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,S,d),i.hoverStyle=p[Re]("lineStyle").getLineStyle();var v=f.get("smooth");v&&v===!0&&(v=.4),i.setShape({smooth:v})},o[j](n,a.Group);var l=t("../../view/Chart")[ce]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var s=t[He](),l=this._data,c=this.group,h=i.get(D),u=!l,d=o.curry(e,this.uid,t,h,r),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new n(s,t);u&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",d),s.setItemGraphicEl(t,e),c.add(e)})[de](function(t,e){var i=l[T](e);i.updateData(s,t),i.off("click"),f&&i.on("click",d),c.add(i),s.setItemGraphicEl(t,i)})[he](function(t){var e=l[T](t);c[he](e)}).execute(),h&&u&&s.count()>0){var p=s[z](0),m=Math.max(r[ke](),r[Te]())/2,v=o.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(p.cx,p.cy,m,p.startAngle,p.clockwise,v,t))}this._data=s}},_createClipPath:function(t,e,i,n,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l}});return l}),e("echarts/action/createDataSelectAction",[qe,"../echarts",We],function(t){var e=t("../echarts"),i=t(We);return function(t,n){i.each(n,function(i){i[de]="updateView",e.registerAction(i,function(e,n){var r={};return n[me]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[He]();n.each(function(e){var i=n[g](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[qe],function(){return function(t,e){var i=e.get("color"),n=0;e.eachRawSeriesByType(t,function(t){var r=t.get("color",!0),a=t.getRawData();if(!e.isSeriesFiltered(t)){var o=t[He]();o.each(function(t){var e=o[A](t),s=o.getRawIndex(t),l=o[C](t,"color",!0);if(l)a.setItemVisual(s,"color",l);else{var c=r?r[s%r[se]]:i[(s+n)%i[se]],h=e.get("itemStyle.normal.color")||c;a.setItemVisual(s,"color",h),o.setItemVisual(t,"color",h)}})}n+=a.count()})}}),e("echarts/chart/pie/pieLayout",[qe,p,"./labelLayout",We],function(t){var e=t(p),i=e[M],n=t("./labelLayout"),r=t(We),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s.eachSeriesByType(t,function(t){var s=t.get(Ce),c=t.get(w);r[Y](c)||(c=[0,c]),r[Y](s)||(s=[s,s]);var h=l[ke](),u=l[Te](),d=Math.min(h,u),f=i(s[0],h),p=i(s[1],u),m=i(c[0],d/2),v=i(c[1],d/2),g=t[He](),y=-t.get("startAngle")*o,x=t.get("minAngle")*o,_=g.getSum("value"),b=Math.PI/(_||g.count())*2,M=t.get("clockwise"),S=t.get("roseType"),C=g[B]("value");C[0]=0;var T=a,k=0,A=y,L=M?1:-1;if(g.each("value",function(t,i){var n;n="area"!==S?0===_?b:t*b:a/(g.count()||1),x>n?(n=x,T-=x):k+=t;var r=A+L*n;g.setItemLayout(i,{angle:n,startAngle:A,endAngle:r,clockwise:M,cx:f,cy:p,r0:m,r:S?e.linearMap(t,C,[m,v]):v}),A=r},!0),a>T)if(.001>=T){var D=a/g.count();g.each(function(t){var e=g[z](t);e.startAngle=y+L*t*D,e.endAngle=y+L*(t+1)*D})}else b=T/k,A=y,g.each("value",function(t,e){var i=g[z](e),n=i.angle===x?x:t*b;i.startAngle=A,i.endAngle=A+L*n,A+=n});n(t,v,h,u)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[se]&&e.eachSeriesByType(t,function(t){var e=t[He]();e.filterSelf(function(t){for(var n=e[g](t),r=0;r<i[se];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/chart/candlestick/CandlestickSeries",[qe,We,"../../model/Series","../helper/whiskerBoxCommon","../../util/format"],function(t){var e=t(We),i=t("../../model/Series"),n=t("../helper/whiskerBoxCommon"),r=t("../../util/format"),a=r.encodeHTML,o=r.addCommas,s=i[ce]({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(t){var i=e.map(this.valueDimensions,function(e){return e+": "+o(this._data.get(e,t))},this);return a(this.name)+"<br />"+i.join("<br />")}});return e.mixin(s,n.seriesModelMixin,!0),s}),e("echarts/chart/candlestick/CandlestickView",[qe,We,"../../view/Chart",O,"../helper/whiskerBoxCommon"],function(t){function e(t,e,i){var n=e[A](i),a=n[Re](s),o=e[C](i,"color"),c=e[C](i,"borderColor"),h=a[Ee](["color","color0","borderColor","borderColor0"]),u=t.childAt(t.whiskerIndex);u.style.set(h),u.style[f]=c,u.dirty();var d=t.childAt(t.bodyIndex);d.style.set(h),d.style.fill=o,d.style[f]=c,d.dirty();var p=n[Re](l)[Ee]();r.setHoverStyle(t,p)}var i=t(We),n=t("../../view/Chart"),r=t(O),a=t("../helper/whiskerBoxCommon"),o=n[ce]({type:"candlestick",getStyleUpdater:function(){return e}});i.mixin(o,a.viewMixin,!0);var s=["itemStyle",L],l=["itemStyle",S];return o}),e("echarts/chart/candlestick/preprocessor",[qe,We],function(t){var e=t(We);return function(t){t&&e[Y](t[re])&&e.each(t[re],function(t){e[ue](t)&&"k"===t.type&&(t.type="candlestick")})}}),e("echarts/chart/candlestick/candlestickVisual",[qe],function(){var t=["itemStyle",L,"borderColor"],e=["itemStyle",L,"borderColor0"],i=["itemStyle",L,"color"],n=["itemStyle",L,"color0"];return function(r){r.eachRawSeriesByType("candlestick",function(a){var o=a[He]();o.setVisual({legendSymbol:"roundRect"}),r.isSeriesFiltered(a)||o.each(function(r){var a=o[A](r),s=o[z](r).sign;o.setItemVisual(r,{color:a.get(s>0?i:n),borderColor:a.get(s>0?t:e)})})})}}),e("echarts/chart/candlestick/candlestickLayout",[qe],function(){function t(t,r){var a,o=t.getBaseAxisModel().axis,s=o.type===E?o.getBandWidth():(a=o[F](),Math.abs(a[1]-a[0])/r.count());return s/2-2>i?s/2-2:s-i>n?i:Math.max(s-n,e)}var e=2,i=5,n=4;return function(e){e.eachSeriesByType("candlestick",function(e){var i=e[Ve],n=e[He](),r=e[x],a=e.get("layout"),o=t(e,n);n.each(r,function(){function t(t){var e=[];return e[u]=c,e[f]=t,isNaN(c)||isNaN(t)?[0/0,0/0]:i[_](e)}function e(t,e){var i=t.slice(),n=t.slice();i[u]+=o/2,n[u]-=o/2,e?T.push(i,n):T.push(n,i)}var s=arguments,l=r[se],c=s[0],h=s[l],u=a===d?0:1,f=1-u,p=s[1],m=s[2],v=s[3],g=s[4],y=Math.min(p,m),x=Math.max(p,m),b=t(y),w=t(x),M=t(v),S=t(g),C=[[S,w],[M,b]],T=[];e(w,0),e(b,1),n.setItemLayout(h,{chartLayout:a,sign:p>m?-1:m>p?1:0,initBaseline:p>m?w[f]:b[f],bodyEnds:T,whiskerEnds:C})},!0)})}}),e("echarts/component/axis",[qe,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/util/graphic",[qe,We,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix","zrender/core/vector","zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient"],function(t){function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[f],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof M?i:_.lift(i,-.1)),n[f]=n[f]||(e instanceof M?e:_.lift(e,-.1));var r={};for(var a in n)n.hasOwnProperty(a)&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}t[Me](t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t[Me](e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t.hoverStyle||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function l(){this.__isEmphasis=!0,n(this)}function d(){this.__isEmphasis=!1,r(this)}function p(t,e,i,n,r){var a=t?"Update":"",o=n&&n.getShallow("animationDuration"+a),s=n&&n.getShallow("animationEasing"+a);n&&n.getShallow(D)?e.animateTo(i,o,s,r):(e.attr(i),r&&r())}var m=t(We),g=t("zrender/tool/path"),y=Math.round,x=t("zrender/graphic/Path"),_=t("zrender/tool/color"),b=t("zrender/core/matrix"),w=t("zrender/core/vector"),M=t("zrender/graphic/Gradient"),C={};return C.Group=t("zrender/container/Group"),C.Image=t("zrender/graphic/Image"),C.Text=t("zrender/graphic/Text"),C.Circle=t("zrender/graphic/shape/Circle"),C.Sector=t("zrender/graphic/shape/Sector"),C.Polygon=t("zrender/graphic/shape/Polygon"),C.Polyline=t("zrender/graphic/shape/Polyline"),C.Rect=t("zrender/graphic/shape/Rect"),C.Line=t("zrender/graphic/shape/Line"),C.BezierCurve=t("zrender/graphic/shape/BezierCurve"),C.Arc=t("zrender/graphic/shape/Arc"),C.LinearGradient=t("zrender/graphic/LinearGradient"),C.RadialGradient=t("zrender/graphic/RadialGradient"),C.extendShape=function(t){return x[ce](t)},C.extendPath=function(t,e){return g.extendFromString(t,e)},C.makePath=function(t,e,i,n){var r=g.createFromString(t,e),a=r[Le]();if(i){var o=a.width/a[ze];if(n===Ce){var s,l=i[ze]*o;l<=i.width?s=i[ze]:(l=i.width,s=l/o);var c=i.x+i.width/2,h=i.y+i[ze]/2;i.x=c-l/2,i.y=h-s/2,i.width=l,i[ze]=s}this.resizePath(r,i)}return r},C.mergePath=g.mergePath,C.resizePath=function(t,e){if(t[u]){var i=t[Le](),n=i.calculateTransform(e);t[u](n)}},C.subPixelOptimizeLine=function(t){var e=C.subPixelOptimize,i=t.shape,n=t.style[h];return y(2*i.x1)===y(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),y(2*i.y1)===y(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},C.subPixelOptimizeRect=function(t){var e=C.subPixelOptimize,i=t.shape,n=t.style[h],r=i.x,a=i.y,o=i.width,s=i[ze];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[ze]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},C.subPixelOptimize=function(t,e,i){var n=y(2*t);return(n+y(e))%2===0?n/2:(n+(i?1:-1))/2},C.setHoverStyle=function(t,e){e=e||{},"group"===t.type?t.traverse(function(t){"group"!==t.type&&a(t,e)}):a(t,e),t.on(ie,o).on(ee,s),t.on(S,l).on(L,d)},C.setText=function(t,e,i){var n=e.getShallow(Se)||v,r=n[X](v)>=0?"white":i,a=e[Re](Oe);m[ce](t,{textDistance:e.getShallow("distance")||5,textFont:a[Ie](),textPosition:n,textFill:a[De]()||r})},C[k]=m.curry(p,!0),C.initProps=m.curry(p,!1),C.getTransform=function(t,e){for(var i=b.identity([]);t&&t!==e;)b.mul(i,t.getLocalTransform(),i),t=t[c];return i},C[u]=function(t,e,i){return i&&(e=b.invert([],e)),w[u]([],t,e)},C.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===fe?r:0];return a=C[u](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?fe:"top"},C}),e("echarts/component/legend/LegendModel",[qe,We,"../../model/Model",P],function(t){var e=t(We),i=t("../../model/Model");return t(P)[Be]({type:"legend",dependencies:[re],layoutMode:{type:"box",ignoreSize:!0},init:function(t,n,r){this.mergeDefaultAndTheme(t,r),t.selected=t.selected||{};var a=e.map(t.data||[],function(t){return typeof t===ye&&(t={name:t}),new i(t,this,this[l])},this);this._data=a,this._updateAvailableNames(r);var o=this[ve].selected;if(a[0]&&"single"===this.get("selectedMode")){var s=!1;for(var c in o)o[c]&&(this.select(c),s=!0);!s&&this.select(a[0].get("name"))}},mergeOption:function(t){this.$superCall("mergeOption",t),this._updateAvailableNames(this[l])},_updateAvailableNames:function(t){var i=e.map(t.getSeries(),function(t){return t.name});t[ae](function(t){if(t.legendDataProvider){var e=t.legendDataProvider();i=i[N](e[b](e[g]))}}),this._availableNames=i},getData:function(){return this._data},select:function(t){var i=this[ve].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[ve].selected[t]=!1)},toggleSelected:function(t){var e=this[ve].selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[ve].selected;return!(t in i&&!i[t])&&e[X](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,textStyle:{color:"#333"},selectedMode:!0}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[se]&&t.filterSeries(function(t){for(var i=0;i<e[se];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/legend/legendAction",[qe,P,We],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[me]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[He]();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(P),n=t(We);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",[qe,We,"../../util/symbol",O,"../helper/listComponent",P],function(t){function e(t,e){e[le]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[le]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[le]({type:"downplay",seriesName:t.name,name:e})}var r=t(We),a=t("../../util/symbol"),o=t(O),s=t("../helper/listComponent"),l=r.curry,c="#ccc";return t(P)[Ge]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,h){var u=this.group;if(u[Ne](),t.get("show")){var d=t.get("selectedMode"),f=t.get("itemWidth"),p=t.get("itemHeight"),m=t.get("align");"auto"===m&&(m="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var v={},y={};r.each(t[He](),function(r){var s=r.get("name");(""===s||"\n"===s)&&u.add(new o.Group({newline:!0}));var g=a.getSeriesByName(s)[0];if(v[s]=r,g&&!y[s]){var x=g[He](),_=x.getVisual("color");t.isSelected(s)||(_=c),typeof _===U&&(_=_(g[K](0)));var b=x.getVisual("legendSymbol")||"roundRect",w=x.getVisual("symbol"),M=this._createItem(s,r,t,b,w,f,p,m,_,d);M.on("click",l(e,s,h)).on(ie,l(i,g,"",h)).on(ee,l(n,g,"",h)),y[s]=!0}},this),a.eachRawSeries(function(r){if(r.legendDataProvider){var a=r.legendDataProvider();a.each(function(o){var s=a[g](o);if(v[s]&&!y[s]){var u=a[C](o,"color");t.isSelected(s)||(u=c);var x="roundRect",_=this._createItem(s,v[s],t,x,null,f,p,m,u,d);_.on("click",l(e,s,h)).on(ie,l(i,r,s,h)).on(ee,l(n,r,s,h)),y[s]=!0}},!1,this)}},this),s.layout(u,t,h),s.addBackground(u,t)}},_createItem:function(t,e,i,n,r,s,l,c,h,u){var d=new o.Group,f=e[Re](Oe),p=e.get("icon");if(n=p||n,d.add(a.createSymbol(n,0,0,s,l,h)),!p&&r&&r!==n&&"none"!=r){var m=.8*l;d.add(a.createSymbol(r,(s-m)/2,(l-m)/2,m,m,h))}var v="left"===c?s+5:-5,g=c,y=i.get("formatter");typeof y===ye&&y?t=y[$]("{name}",t):typeof y===U&&(t=y(t));var x=new o.Text({style:{text:t,x:v,y:l/2,fill:f[De](),textFont:f[Ie](),textAlign:g,textBaseline:"middle"}});return d.add(x),d.add(new o.Rect({shape:d[Le](),invisible:!0})),d.eachChild(function(t){t.silent=!u}),this.group.add(d),d}})}),e("echarts/util/layout",[qe,We,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,c){var h,u,f=l[Se],p=l[Le](),m=e.childAt(c+1),v=m&&m[Le]();if(t===d){var g=p.width+(v?-v.x+p.x:0);h=a+g,h>n||l.newline?(a=0,h=g,o+=s+i,s=0):s=Math.max(s,p[ze])}else{var y=p[ze]+(v?-v.y+p.y:0);u=o+y,u>r||l.newline?(a+=s+i,o=0,u=y,s=0):s=Math.max(s,p.width)}l.newline||(f[0]=a,f[1]=o,t===d?a=h+i:o=u+i)})}var i=t(We),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r[M],l=i.each,c={};return c.box=e,c.vbox=i.curry(e,"vertical"),c.hbox=i.curry(e,d),c.getAvailableSize=function(t,e,i){var n=e.width,r=e[ze],s=o(t.x,n),l=o(t.y,r),c=o(t.x2,n),h=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-s-i[1]-i[3],0),height:Math.max(h-l-i[0]-i[2],0)}},c.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,l=e[ze],c=o(t.left,r),h=o(t.top,l),u=o(t.right,r),d=o(t[fe],l),f=o(t.width,r),p=o(t[ze],l),m=i[2]+i[0],v=i[1]+i[3],g=t.aspect;switch(isNaN(f)&&(f=r-u-v-c),isNaN(p)&&(p=l-d-m-h),isNaN(f)&&isNaN(p)&&(g>r/l?f=.8*r:p=.8*l),null!=g&&(isNaN(f)&&(f=g*p),isNaN(p)&&(p=f/g)),isNaN(c)&&(c=r-u-f-v),isNaN(h)&&(h=l-d-p-m),t.left||t.right){case Ce:c=r/2-f/2-i[3];break;case"right":c=r-f-v}switch(t.top||t[fe]){case s:case Ce:h=l/2-p/2-i[0];break;case fe:h=l-p-m}var y=new n(c+i[3],h+i[0],f,p);return y.margin=i,y},c.positionGroup=function(t,e,n,r){var a=t[Le]();e=i[ce](i.clone(e),{width:a.width,height:a[ze]}),e=c.getLayoutRect(e,n,r),t[Se]=[e.x-a.x,e.y-a.y]},c.mergeLayoutParam=function(t,e,i){function n(n){var o={},s=0,c={},h=0,u=i.ignoreSize?1:2;if(l(n,function(e){c[e]=t[e]}),l(n,function(t){r(e,t)&&(o[t]=c[t]=e[t]),a(o,t)&&s++,a(c,t)&&h++}),h!==u&&s){if(u>h){var d=0;return l(n,function(t){"auto"===c[t]&&(u-h>d?d++:c[t]=null)}),c}if(s>=u)return o;for(var f=0;f<n[se];f++){var p=n[f];if(!r(o,p)&&r(t,p)){o[p]=t[p];break}}return o}return c}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function o(t,e,i){l(t,function(t){e[t]=i[t]})}i=i||{};var s=["width","left","right"],c=[ze,"top",fe],h=n(s),u=n(c);o(s,t,h),o(c,t,u)},c.getLayoutParams=function(t){var e={};return t&&l(["left","right","top",fe,"width",ze],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e},c}),e("echarts/component/tooltip",[qe,"./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/ExtensionAPI",[qe,We],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(We),n=["getDom","getZr",ke,Te,le,"on","off","getDataURL","getConnectedDataURL"];return e}),e("echarts/model/Global",[qe,We,"./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)x.hasClass(i)||(t[i]="object"==typeof e[i]?t[i]?u.merge(t[i],e[i],!1):u.clone(e[i]):e[i])}function i(t){t=t,this[ve]={},this._componentsMap={},this._seriesIndices=null,e(t,this._theme[ve]),u.merge(t,_,!1),this.mergeOption(t)}function n(t,e){u[Y](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){t=(t||[]).slice();var i=[];return f(e,function(e,n){if(y(e)&&e.id)for(var r=0,a=t[se];a>r;r++)if(t[r].id===e.id)return void(i[n]=t[ne](r,1)[0])}),f(e,function(e,n){if(y(e)&&e.name&&!c(e))for(var r=0,a=t[se];a>r;r++)if(t[r].name===e.name)return void(i[n]=t[ne](r,1)[0])}),f(e,function(e,n){i[n]||!t[n]||c(e)||(i[n]=t[n])}),i}function a(t,e,i){function n(n){f(e,function(e,a){if(y(e)){var o=i[a],s=r[a],l=t+"."+s.subType;n(s,e,o,l)}})}var r=[],a="\x00",s={},l={};return f(e,function(e,n){if(y(e)){var a=i[n],s=o(t,e,a),l={mainType:t,subType:s};r[n]=l}}),n(function(t,e,i){t.name=i?i.name:null!=e.name?e.name:a+"-",l[t.name]=0}),n(function(t,e,i,n){var r=t.name;if(t.id=i?i.id:null!=e.id?e.id:a+[n,r,l[r]++].join("|"),s[t.id])throw new Error("id duplicates: "+t.id);s[t.id]=1}),r}function o(t,e,i){var n=e.type?e.type:i?i.subType:x.determineSubType(t,e);return n}function s(t){return m(t,function(t){return t.componentIndex})||[]}function l(t,e){return e.hasOwnProperty("subType")?p(t,function(t){return t.subType===e.subType}):t}function c(t){return t.id&&0===(t.id+"")[X]("\x00_ec_\x00")}function h(t){if(!t._seriesIndices)throw new Error("Series is not initialized. Please depends sereis.")}var u=t(We),d=t("./Model"),f=u.each,p=u[Fe],m=u.map,v=u[Y],g=u[X],y=u[ue],x=t("./Component"),_=t("./globalDefault"),b=d[ce]({constructor:b,init:function(t,e,i,n){i=i||{},this[ve]=null,this._theme=new d(i),this._optionManager=n},setOption:function(t,e){this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption();this[ve]&&"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[se]&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,n){var r=t[e];r?o.call(this,e,r,n):i.call(this,e),e===re&&(this._seriesIndices=s(c[re]))}function i(t){f(c[t],function(t){t.mergeOption({},this)},this)}function o(t,e,i){u[Y](e)||(e=[e]),c[t]||(c[t]=[]);var o=r(c[t],e),s=a(t,e,o),h=n(c,i);l[t]=[],f(e,function(e,i){if(y(e)){var n=o[i],r=x.getClass(t,s[i].subType,!0);n&&n instanceof r?n.mergeOption(e,this):(n=new r(e,this,this,u[ce]({dependentModels:h,componentIndex:i},s[i])),c[t][i]=n),l[t][i]=n[ve]}},this)}var l=this[ve],c=this._componentsMap,h=[];
f(t,function(t,e){null!=t&&(x.hasClass(e)?h.push(e):l[e]=null==l[e]?u.clone(t):u.merge(l[e],t,!0))}),x.topologicalTravel(h,x.getAllClassMainTypes(),e,this)},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[se])return[];var o;if(null!=i)v(i)||(i=[i]),o=p(m(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=v(n);o=p(a,function(t){return s&&g(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var c=v(r);o=p(a,function(t){return c&&g(r,t.name)>=0||!c&&t.name===r})}return l(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[Fe]?p(e,t[Fe]):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(l(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===U)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(u.isString(t))f(n[t],e,i);else if(y(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[re];return p(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[re][t]},getSeriesByType:function(t){var e=this._componentsMap[re];return p(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[re].slice()},eachSeries:function(t,e){h(this),f(this._seriesIndices,function(i){var n=this._componentsMap[re][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap[re],t,e)},eachSeriesByType:function(t,e,i){h(this),f(this._seriesIndices,function(n){var r=this._componentsMap[re][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return h(this),u[X](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){h(this);var i=p(this._componentsMap[re],t,e);this._seriesIndices=s(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t[re]);var e=[];f(t,function(t,i){e.push(i)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return b}),e("echarts/CoordinateSystem",[qe],function(){function t(){this._coordinateSystems={},this._coordinateSystemsList=[]}var e={};return t[xe]={constructor:t,update:function(t,i){var n={};for(var r in e)n[r]=e[r][W](t,i);this._coordinateSystems=n},get:function(t,e){var i=this._coordinateSystems[t];return i?i[e||0]:void 0}},t.register=function(t,i){e[t]=i},t}),e("echarts/model/OptionManager",[qe,We],function(t){function e(t){this._api=t,this._timelineOptions,this._mediaList,this._mediaDefault,this._currentMediaIndices=[],this._optionBackup}function i(t,e){var i,n,r=[],a=[],l=t.timeline;if(t.baseOption&&(n=t.baseOption),(l||t.options)&&(n=n||{},r=(t.options||[]).slice()),t.media){n=n||{};var c=t.media;s(c,function(t){t&&t[ve]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=l),s([n][N](r)[N](o.map(a,function(t){return t[ve]})),function(t){s(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return o.each(t,function(t,e){var i=e.match(h);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][_e]();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(",")}var o=t(We),s=o.each,l=o.clone,c=o.map,h=/^(min|max)?(.+)$/;return e[xe]={constructor:e,setOption:function(t,e){t=l(t,!0),this._optionBackup=i.call(this,t,e)},mountOption:function(){var t=this._optionBackup;return this._timelineOptions=c(t.timelineOptions,l),this._mediaList=c(t.mediaList,l),this._mediaDefault=l(t.mediaDefault),this._currentMediaIndices=[],l(t.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[se]){var n=t[V]("timeline");n&&(e=l(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[ke](),e=this._api[Te](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[se]&&!r)return s;for(var h=0,u=i[se];u>h;h++)n(i[h].query,t,e)&&o.push(h);return!o[se]&&r&&(o=[-1]),o[se]&&!a(o,this._currentMediaIndices)&&(s=c(o,function(t){return l(-1===t?r[ve]:i[t][ve])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[qe,"./Model",We,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(c.getClassesByMainType(t),function(t){r.apply(e,t[xe].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(We),r=Array[xe].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),c=i[ce]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this.mergeDefaultAndTheme(this[ve],this[l])},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[ve],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[ve],t,e)},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[xe].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[se]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(c,function(t,e,i,r){n[ce](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o.enableClassManagement(c,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(c),a.enableTopologicalTravel(c,e),n.mixin(c,t("./mixin/boxLayout")),c}),e("echarts/model/Series",[qe,We,"../util/format","../util/model","./Component"],function(t){var e=t(We),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i.addCommas,s=r[ce]({type:"series",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i){this[J]=this.componentIndex,this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,[Se,"show",Oe,"distance","formatter"])},mergeOption:function(t,i){t=e.merge(this[ve],t,!0);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this[ve].data},getDimensionsOnAxis:function(t){return[t]},formatTooltip:function(t,i){var n=this._data,r=this.getRawValue(t),s=e[Y](r)?e.map(r,o).join(", "):o(r),l=n[g](t);return i?a(this.name)+" : "+s:a(this.name)+"<br />"+(l?a(l)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(s,n.dataFormatMixin),s}),e("echarts/view/Component",[qe,"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[xe]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[xe];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[qe,"zrender/container/Group","../util/component","../util/clazz"],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[oe](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t.childAt(n),e)}function n(t,e,n){if(null!=e.dataIndex){var r=t[T](e.dataIndex);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t[T](a);i(r,n)}else t.eachItemGraphicEl(function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t("../util/clazz");e[xe]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[He](),r,S)},downplay:function(t,e,i,r){n(t[He](),r,L)},remove:function(){this.group[Ne]()},dispose:function(){}};var s=e[xe];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("zrender/zrender",[qe,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete c[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n.canvasSupported,l={canvas:t("./Painter")},c={},h={};h.version="3.0.1",h.init=function(t,e){var n=new u(i(),t,e);return c[n.id]=n,n},h.dispose=function(t){if(t)t.dispose();else{for(var e in c)c[e].dispose();c={}}return h},h.getInstance=function(t){return c[t]},h.registerPainter=function(t,e){l[t]=e};var u=function(t,e,i){i=i||{},this.dom=e,this.id=t;var c=this,h=new a,u=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");u="vml"}else u&&l[u]||(u="canvas");var d=new l[u](e,h,i);this.storage=h,this.painter=d,n.node||(this.handler=new r(d.getViewportRoot(),h,d)),this[D]=new o({stage:{update:function(){c._needsRefresh&&c.refreshImmediately()}}}),this[D].start(),this._needsRefresh;var f=h.delFromMap,p=h.addToMap;h.delFromMap=function(t){var e=h.get(t);f.call(h,t),e&&e.removeSelfFromZr(c)},h.addToMap=function(t){p.call(h,t),t.addSelfToZr(c)}};return u[xe]={constructor:u,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[ge](),this.handler&&this.handler[ge]()},clearAnimation:function(){this[D].clear()},getWidth:function(){return this.painter[ke]()},getHeight:function(){return this.painter[Te]()},toDataURL:function(t,e,i){return this.painter.toDataURL(t,e,i)},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler[oe](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[D].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this[D]=this.storage=this.painter=this.handler=null,e(this.id)}},h}),e("zrender/tool/color",[qe],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[se]&&"%"===e.charAt(e[se]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[se]&&"%"===t.charAt(t[se]-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[$](/ /g,"")[_e]();if(e in y)return y[e].slice();if("#"!==e.charAt(0)){var i=e[X]("("),a=e[X](")");if(-1!==i&&a+1===e[se]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),c=1;switch(o){case"rgba":if(4!==s[se])return;c=r(s.pop());case"rgb":if(3!==s[se])return;return[n(s[0]),n(s[1]),n(s[2]),c];case"hsla":if(4!==s[se])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[se])return;return l(s);default:return}}}else{if(4===e[se]){var h=parseInt(e.substr(1),16);if(!(h>=0&&4095>=h))return;return[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]}if(7===e[se]){var h=parseInt(e.substr(1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,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,c=[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[se]&&(c[3]=e[3]),c}function c(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,c=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>c?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-u:r===s?e=1/3+h-d:a===s&&(e=2/3+u-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,c];return null!=t[3]&&f.push(t[3]),f}}function h(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 g(i,4===i[se]?"rgba":"rgb")}}function u(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[se]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[se]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],c=i[s],h=r-a;return n[0]=t(o(l[0],c[0],h)),n[1]=t(o(l[1],c[1],h)),n[2]=t(o(l[2],c[2],h)),n[3]=t(o(l[3],c[3],h)),n}}function f(e,n,r){if(n&&n[se]&&e>=0&&1>=e){var a=e*(n[se]-1),l=Math.floor(a),c=Math.ceil(a),h=s(n[l]),u=s(n[c]),d=a-l,f=g([t(o(h[0],u[0],d)),t(o(h[1],u[1],d)),t(o(h[2],u[2],d)),i(o(h[3],u[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:c,value:a}:f}}function p(t,e){if(!(2!==t[se]||t[1]<t[0])){for(var i=f(t[0],e,!0),n=f(t[1],e,!0),r=[{color:i.color,offset:0}],a=n.value-i.value,o=Math.max(i.value,i.rightIndex),s=Math.min(n.value,n.leftIndex),l=o;a>0&&s>=l;l++)r.push({color:e[l],offset:(l-i.value)/a});return r.push({color:n.color,offset:1}),r}}function m(t,i,n,a){return t=s(t),t?(t=c(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),g(l(t),"rgba")):void 0}function v(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),g(t,"rgba")):void 0}function g(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var y={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:h,toHex:u,fastMapToColor:d,mapToColor:f,mapIntervalToColor:p,modifyHSL:m,modifyAlpha:v,stringify:g}}),e("zrender/core/env",[],function(){function t(t){var e=this.os={},i=this.browser={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),c=l&&t.match(/TouchPad/),h=t.match(/Kindle\/([\d.]+)/),u=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),m=t.match(/PlayBook/),v=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),y=t.match(/MSIE ([\d.]+)/),x=n&&t.match(/Mobile\//)&&!v,_=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!v,y=t.match(/MSIE\s([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2][$](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][$](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][$](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),c&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),f&&(e.bb10=!0,e.version=f[2]),p&&(e.rimtabletos=!0,e.version=p[2]),m&&(i.playbook=!0),h&&(e.kindle=!0,e.version=h[1]),u&&(i.silk=!0,i.version=u[1]),!u&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),v&&(i.chrome=!0,i.version=v[1]),g&&(i.firefox=!0,i.version=g[1]),y&&(i.ie=!0,i.version=y[1]),x&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),_&&(i.webview=!0),y&&(i.ie=!0,i.version=y[1]),e.tablet=!!(a||m||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||y&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||f||v&&t.match(/Android/)||v&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||y&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document[G]("canvas").getContext?!0:!1}}return typeof navigator===o?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/mixin/Eventful",[qe,a],function(t){var e=Array[xe].slice,i=t(a),n=i[X],r=function(){this._$handlers={}};return r[xe]={constructor:r,one:function(t,e,i){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),n(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][se]},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][se];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][se]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[se];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[se],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[ne](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[se];n>4&&(i=e.call(i,1,i[se]-1));for(var r=i[i[se]-1],a=this._$handlers[t],o=a[se],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[ne](s,1),o--):s++}}return this}},r}),e("echarts/loading/default",[qe,"../util/graphic",We],function(t){var e=t("../util/graphic"),i=t(We),n=Math.PI;return function(t,r){r=r||{},i[Ze](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[Q],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[Q],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[Q],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[ge]=function(){var e=t[ke]()/2,i=t[Te]()/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[ke](),height:t[Te]()})},l[ge](),l}}),e("echarts/visual/seriesColor",[qe,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,L,"color"],a=n.get("color"),o=t[He](),s=t.get(r)||a[t[J]%a[se]];o.setVisual("color",s),n.isSeriesFiltered(t)||(typeof s!==U||s instanceof e||o.each(function(e){o.setItemVisual(e,"color",s(t[K](e)))}),o.each(function(t){var e=o[A](t),i=e.get(r,!0);null!=i&&o.setItemVisual(t,"color",i)}))}t?n.eachSeriesByType(t,r):n[ae](r)}}),e("echarts/preprocessor/backwardCompat",[qe,We,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[se]&&(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[se]-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){c(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(We),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",fe]],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"],c=r.each;return function(t){c(t[re],function(t){if(r[ue](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 c=0;c<l[se];c++)if(l[c]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),c(s,function(e){var i=t[e];i&&(r[Y](i)||(i=[i]),c(i,function(t){n(t)}))})}}),e("echarts/util/number",[qe,We],function(t){function e(t){return t[$](/^\s+/,"")[$](/\s+$/,"")}var i=t(We),n={},r=1e-4;return n.linearMap=function(t,e,r,a){if(i[Y](t))return i.map(t,function(t){return n.linearMap(t,e,r,a)});var o=e[1]-e[0];if(0===o)return(r[0]+r[1])/2;var s=(t-e[0])/o;return a&&(s=Math.min(Math.max(s,0),1)),s*(r[1]-r[0])+r[0]},n[M]=function(t,i){switch(t){case Ce:case s:t="50%";break;case"left":case"top":t="0%";break;case"right":case fe:t="100%"}return typeof t===ye?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):null==t?0/0:+t},n.round=function(t){return+(+t)[y](12)},n.asc=function(t){return t.sort(function(t,e){return t-e}),t},n.getPrecision=function(t){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},n.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)},n.MAX_SAFE_INTEGER=9007199254740991,n.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},n.isRadianAroundZero=function(t){return t>-r&&r>t},n.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===ye?t[$](/-/g,"/"):t)},n}),e("echarts/util/format",[qe,We],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][$](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[se]>1?"."+t[1]:""))}function i(t){return t[_e]()[$](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[se];return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[$](/&/g,"&amp;")[$](/</g,"&lt;")[$](/>/g,"&gt;")[$](/"/g,"&quot;")[$](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){s[Y](e)||(e=[e]);var i=e[se];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[se];r++){var o=l[r];t=t[$](a(o),a(o,0))}for(var c=0;i>c;c++)for(var h=0;h<n[se];h++)t=t[$](a(l[h],c),e[c][n[h]]);return t}var s=t(We),l=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o}}),e("echarts/component/marker/MarkLineModel",[qe,"../../model/globalDefault","../../util/model",P],function(t){var e=t("../../model/globalDefault"),i=t("../../util/model");e.markLine={};var n=t(P)[Be]({type:"markLine",dependencies:[re,"grid","polar"],init:function(t,e,i,n,r){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,r,!0)},mergeOption:function(t,e,r){if(!e){var a=this[l];a[ae](function(t){var e=t.get("markLine"),o=t.markLineModel;if(!e||!e.data)return void(t.markLineModel=null);if(o)o.mergeOption(e,!0);else{r&&i.defaultEmphasis(e.label,[Se,"show",Oe,"distance","formatter"]);var s={seriesIndex:t[J],name:t.name};o=new n(e,this,a,s,!0)}t.markLineModel=o},this)}},defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});return n}),e("echarts/component/dataZoom/typeDefaulter",[qe,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter("dataZoom",function(){return"slider"})}),e("echarts/component/marker/MarkLineView",[qe,We,"../../data/List","../../util/format","../../util/model",p,"./markerHelper","../../chart/helper/LineDraw",P],function(t){function e(t,e){return h.dataFilter(t,e[0])&&h.dataFilter(t,e[1])}function i(t,i,a){var o=t[x],s=new r(o,a),l=new r(o,a),c=new r([],a);if(t){var u=t[I](),f=t.getOtherAxis(u),p=a.get("precision"),m=n[Fe](n.map(a.get("data"),n.curry(d,i,t,u,f,p)),n.curry(e,t));s.initData(n.map(m,function(t){return t[0]}),null,h.dimValueGetter),l.initData(n.map(m,function(t){return t[1]}),null,h.dimValueGetter),c.initData(n.map(m,function(t){return t[2]}))}return{from:s,to:l,line:c}}var n=t(We),r=t("../../data/List"),a=t("../../util/format"),o=t("../../util/model"),s=t(p),l=a.addCommas,c=a.encodeHTML,h=t("./markerHelper"),u=t("../../chart/helper/LineDraw"),d=function(t,e,i,r,a,o){var s=o.type;if(!n[Y](o)&&"min"===s||"max"===s||"average"===s){null!=o.valueIndex&&(i=e[Z](e[x][1-o.valueIndex]),r=e[Z](e[x][o.valueIndex]));var l=i.dim+"Axis",c=r.dim+"Axis",u=i.scale[F](),d=n[ce]({},o),f={};d.type=null,d[l]=u[0],f[l]=u[1];var p="average"===s?t.getSum(r.dim,!0)/t.count():t[B](r.dim)["max"===s?1:0];p=r.coordToData(r.dataToCoord(p)),d[c]=f[c]=p,o=[d,f,{type:s,value:+p[y](a)}]}return o=[h.dataTransform(t,e,o[0]),h.dataTransform(t,e,o[1]),n[ce]({},o[2])],n.merge(o[2],o[0]),n.merge(o[2],o[1]),o},f={formatTooltip:function(t){var e=this._data,i=this.getRawValue(t),r=n[Y](i)?n.map(i,l).join(", "):l(i),a=e[g](t);return this.name+"<br />"+((a?c(a)+" : ":"")+r)},getRawDataArray:function(){return this[ve].data},getData:function(){return this._data},setData:function(t){this._data=t}};n[Ze](f,o.dataFormatMixin),t(P)[Ge]({type:"markLine",init:function(){this._markLineMap={}},render:function(t,e,i){var n=this._markLineMap;for(var r in n)n[r].__keep=!1;e[ae](function(t){var n=t.markLineModel;n&&this._renderSeriesML(t,n,e,i)},this);for(var r in n)n[r].__keep||this.group[he](n[r].group)},_renderSeriesML:function(t,e,r,a){function o(t,e,i){var n,r=t[A](e),o=r.get("x"),c=r.get("y");if(null!=o&&null!=c)n=[s[M](o,a[ke]()),s[M](c,a[Te]())];else{var u=t.get(v[0],e),d=t.get(v[1],e);n=l[_]([u,d])}t.setItemLayout(e,n),t.setItemVisual(e,{symbolSize:r.get("symbolSize")||S[i?0:1],symbol:r.get("symbol",!0)||w[i?0:1],color:r.get("itemStyle.normal.color")||h.getVisual("color")})}var l=t[Ve],c=t.name,h=t[He](),d=this._markLineMap,p=d[c];p||(p=d[c]=new u),this.group.add(p.group);var m=i(l,h,e),v=l[x],g=m.from,y=m.to,b=m.line;n[ce](e,f),e.setData(b);var w=e.get("symbol"),S=e.get("symbolSize");n[Y](w)||(w=[w,w]),"number"==typeof S&&(S=[S,S]),m.from.each(function(t){o(g,t,!0),o(y,t)}),b.each(function(t){var e=b[A](t).get("lineStyle.normal.color");b.setItemVisual(t,{color:e||g[C](t,"color")}),b.setItemLayout(t,[g[z](t),y[z](t)])}),p.updateData(b,g,y),m.line.eachItemGraphicEl(function(t){t.traverse(function(t){t[te]=e})}),p.__keep=!0}})}),e("echarts/component/dataZoom/DataZoomModel",[qe,We,"zrender/core/env",P,"../../util/model","./AxisProxy"],function(t){var e=t(We),i=t("zrender/core/env"),n=t(P),r=t("../../util/model"),a=t("./AxisProxy"),o=e.each,s=r.eachAxisDim;return n[Be]({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",re],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,e,i){this._autoMode,this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this.mergeDefaultAndTheme(t,i),this.mergeOption({},!0)},mergeOption:function(t,n){var r=this[ve];t&&e.merge(r,t),i.canvasSupported||(r.realtime=!1),this.textStyleModel=this[Re](Oe),this._resetTarget(t,n),this._giveAxisProxies(),this._backup()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var o=this.dependentModels[e.axis][i],s=o.__dzAxisProxy||(o.__dzAxisProxy=new a(e.name,i,this,r));t[e.name+"_"+i]=s},this)},_resetTarget:function(t,e){this._resetAutoMode(t,e);var i=this[ve];s(function(t){var e=t.axisIndex;i[e]="axisIndex"===n?[]:r.normalizeToArray(i[e])},this);var n=this._autoMode;"axisIndex"===n?this._autoSetAxisIndex():"orient"===n&&this._autoSetOrient()},_resetAutoMode:function(t,e){var i=e?this[ve]:t,n=!1;s(function(t){null!=i[t.axisIndex]&&(n=!0)},this);var r=i.orient;null==r&&n?this._autoMode="orient":(null==r&&(this[ve].orient=d),n||(this._autoMode="axisIndex"))},_autoSetAxisIndex:function(){var t="axisIndex"===this._autoMode,i=this.get("orient"),n=this[ve];if(t){var r="vertical"===i?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[r.axis][se]&&(n[r.axisIndex]=[0],t=!1)}t&&s(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r[se]&&!i[se])for(var a=0,o=r[se];o>a;a++)r[a].get("type")===E&&i.push(a);n[e.axisIndex]=i,i[se]&&(t=!1)}},this),t&&this[l][ae](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&s(function(i){var r=n[i.axisIndex],a=t.get(i.axisIndex);
e[X](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[ve].orient="y"===t?"vertical":d},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return s(function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_backup:function(){this.eachTargetAxis(function(t,e,i,n){var r=n[V](t.axis,e);this.getAxisProxy(t.name,e).backup(this,{scale:r.get("scale",!0),min:r.get("min",!0),max:r.get("max",!0)})},this)},getFirstTargetAxisModel:function(){var t;return s(function(e){if(null==t){var i=this.get(e.axisIndex);i[se]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[l];s(function(n){o(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){o(["start","end","startValue","endValue"],function(e){this[ve][e]=t[e]},this)},getPercentRange:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e].getDataPercentWindow();for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e].getDataPercentWindow()}})}),e("echarts/component/dataZoom/DataZoomView",[qe,"../../view/Component"],function(t){var e=t("../../view/Component");return e[ce]({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this[l]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[se];a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this[l],n=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=i[V](e.axis,o);if(s){a.push(s);var l=s.get("gridIndex"),c=s.get("polarIndex");if(null!=l){var h=i[V]("grid",l);t(h,s,n,l)}else if(null!=c){var h=i[V]("polar",c);t(h,s,r,c)}}},this),{cartesians:n,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/SliderZoomModel",[qe,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[ce]({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,left:"auto",right:"auto",top:"auto",bottom:"auto",width:"auto",height:"auto",backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#ddd",fillerColor:"rgba(47,69,84,0.25)",handleColor:"rgba(47,69,84,0.65)",handleSize:10,labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}})}),e("echarts/component/dataZoom/SliderZoomView",[qe,We,O,"../../util/throttle","./DataZoomView",p,"../../util/layout","../helper/sliderMove"],function(t){function e(t){return"x"===t?"y":"x"}var i=t(We),n=t(O),r=t("../../util/throttle"),a=t("./DataZoomView"),o=n.Rect,c=t(p),h=c.linearMap,f=t("../../util/layout"),m=t("../helper/sliderMove"),v=c.asc,g=i.bind,x=Math.round,_=Math.max,b=i.each,w=7,M=1,S=30,C=d,T="vertical",k=5,A=["line","bar","candlestick","scatter"];return a[ce]({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return this.$superApply("render",arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this._halfHandleSize=x(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group[Ne]():(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){this.$superApply(he,arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){this.$superApply("dispose",arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t[Ne](),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new n.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),r={width:e[ke](),height:e[Te]()},a=this._orient===C?{left:n.x,top:r[ze]-S-w,width:n.width,height:S}:{right:w,top:n.y,width:S,height:n[ze]};i.each(f.getLayoutParams(t[ve]),function(t,e){"auto"!==t&&(a[e]=t)});var o=f.getLayoutRect(a,r,t.padding);this._location={x:o.x,y:o.y},this._size=[o.width,o[ze]],this._orient===T&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==C||r?i===C&&r?{scale:o?[-1,1]:[-1,-1]}:i!==T||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t[Le]([a]);t[Se][0]=e.x-s.x,t[Se][1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=_(this._size[0],4*t),i=[t,e-t];return i},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new o({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t[re],r=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim,o=r[B](a),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l=[0,e[1]],c=[0,e[0]],u=[[e[0],0],[0,0]],d=c[1]/r.count(),f=0,p=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(p>0&&e%p)return void(f+=d);var i=null==t||isNaN(t)||""===t?null:h(t,o,l,!0);null!=i&&u.push([f,i]),f+=d}),this._displayables.barGroup.add(new n.Polyline({shape:{points:u},style:{fill:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:0},silent:!0,z2:-20}))}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var r,a=this[l];return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o.name,s).getTargetSeriesModels();i.each(l,function(t){if(!(r||n!==!0&&i[X](A,t.get("type"))<0)){var l=e(o.name),c=a[V](o.axis,s).axis;r={thisAxis:c,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:t[Ve].getOtherAxis(c).inverse}}},this)},this),r}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],r=this._displayables.barGroup,a=this._size;r.add(t.filler=new o({draggable:!0,cursor:"move",drift:g(this._onDragMove,this,"all"),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),r.add(new o(n.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:M,fill:"rgba(0,0,0,0)"}}))),b([0,1],function(t){r.add(e[t]=new o({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:g(this._onDragMove,this,t),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)}));var a=this.dataZoomModel.textStyleModel;this.group.add(i[t]=new n.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textAlign:"center",fill:a[De](),textFont:a[Ie]()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange();this._handleEnds=h(t,[0,100],this._getViewExtent(),!0)},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();m(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=v(h(i,n,[0,100],!0))},_updateView:function(){var t=this._displayables,e=this._handleEnds,i=v(e.slice()),n=this._size,r=this._halfHandleSize;b([0,1],function(i){var a=t.handles[i];a.setShape({x:e[i]-r,y:-1,width:2*r,height:n[1]+2,r:1})},this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=n.getTransform(i.handles[t],this.group),l=n.transformDirection(0===t?"right":"left",e),c=this._halfHandleSize+k,h=n[u]([d[t]+(0===t?-c:c),this._size[1]/2],e);r[t][Me]({x:h[0],y:h[1],textBaseline:a===C?s:l,textAlign:a===C?l:Ce,text:o[t]})}var e=this.dataZoomModel,i=this._displayables,r=i.handleLabels,a=this._orient,o=["",""];if(e.get("showDetail")){var c,h;e.eachTargetAxis(function(t,i){c||(c=e.getAxisProxy(t.name,i).getDataValueWindow(),h=this[l][V](t.axis,i).axis)},this),c&&(o=[this._formatLabel(c[0],h),this._formatLabel(c[1],h)])}var d=v(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter");if(i.isFunction(r))return r(t);var a=n.get("labelPrecision");return(null==a||"auto"===a)&&(a=e.getPixelPrecision()),t=null==t&&isNaN(t)?"":e.type===E||"time"===e.type?e.scale[H](Math.round(t)):t[y](Math.min(a,20)),i.isString(r)&&(t=r[$]("{value}",t)),t},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._applyBarTransform([e,i],!0);this._updateInterval(t,n[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api[le]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup.getLocalTransform();return n[u](t,i,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians[se])t=e.cartesians[0].model[Ve].getRect();else{var i=this.api[ke](),n=this.api[Te]();t={x:.2*i,y:.2*n,width:.6*i,height:.6*n}}return t}})}),e("echarts/component/dataZoom/InsideZoomModel",[qe,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[ce]({type:"dataZoom.inside"})}),e("echarts/component/dataZoom/InsideZoomView",[qe,"./DataZoomView","../../util/throttle",We,"../helper/sliderMove","../../component/helper/RoamController"],function(t){function e(t,e,i,r){e=e.slice();var a=r.axisModels[0];if(a){var o=n(t,a,i),s=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return l(s,e,[0,100],"rigid"),e}}function i(t,e,i,a,o){i=i.slice();var s=o.axisModels[0];if(s){var l=n(e,s,a),c=l.pixel-l.pixelStart,h=c/l.pixelLength*(i[1]-i[0])+i[0];return t=Math.max(t,0),i[0]=(i[0]-h)*t+h,i[1]=(i[1]-h)*t+h,r(i)}}function n(t,e,i){var n=e.axis,r=i.rect,a={};return"x"===n.dim?(a.pixel=t[0],a.pixelLength=r.width,a.pixelStart=r.x,a.signal=n.inverse?1:-1):(a.pixel=t[1],a.pixelLength=r[ze],a.pixelStart=r.y,a.signal=n.inverse?-1:1),a}function r(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var a=t("./DataZoomView"),o=t("../../util/throttle"),s=t(We),l=t("../helper/sliderMove"),c=t("../../component/helper/RoamController"),h=s.bind;return a[ce]({type:"dataZoom.inside",init:function(){this._controllers={},this._range},render:function(t,e,i,n){this.$superApply("render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),n&&"dataZoom"===n.type&&n.from===this.uid||(this._range=t.getPercentRange()),this._resetController(i)},remove:function(){this.$superApply(he,arguments);var t=this._controllers;s.each(t,function(t){t.off("pan").off("zoom")}),t[se]=0,o.clear(this,"_dispatchZoomAction")},dispose:function(){this.$superApply("dispose",arguments),o.clear(this,"_dispatchZoomAction")},_resetController:function(t){var e=this._controllers,i=this.getTargetInfo();s.each(i.cartesians,function(i){var n="cartesian"+i.coordIndex,r=e[n];r||(r=e[n]=new c(t.getZr()),r.enable(),r.on("pan",h(this._onPan,this,r,i)),r.on("zoom",h(this._onZoom,this,r,i))),r.rect=i.model[Ve].getRect().clone()},this)},_onPan:function(t,i,n,r){var a=this._range=e([n,r],this._range,t,i);a&&this._dispatchZoomAction(a)},_onZoom:function(t,e,n,r,a){var o=this.dataZoomModel;n=1/n;var s=this._range=i(n,[r,a],this._range,t,e,o);this._dispatchZoomAction(s)},_dispatchZoomAction:function(t){this.api[le]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})}})}),e("echarts/component/dataZoom/dataZoomProcessor",[qe,P,p],function(t){function e(t,e,i,n){var a=t.name,o=i.getAxisProxy(a,e);o.reset(i);var s=o.getDataPercentWindow(),l=o.getDataValueWindow(),c=n[V](t.axis,e),h=0===s[0]&&100===s[1],u=o.getBackup(),d=r.getPixelPrecision(l,[0,500]),f=!(20>d&&d>=0);c.setNeedsCrossZero&&c.setNeedsCrossZero(h?!u.scale:!1),c.setMin&&c.setMin(h||f?u.min:+l[0][y](d)),c.setMax&&c.setMax(h||f?u.max:+l[1][y](d))}function i(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var n=t(P),r=t(p);n.registerProcessor(Fe,function(t){t[me]("dataZoom",function(t){t.eachTargetAxis(e)}),t[me]("dataZoom",function(t){t.eachTargetAxis(i)})})}),e("echarts/component/dataZoom/dataZoomAction",[qe,We,"../../util/model",P],function(t){var e=t(We),i=t("../../util/model"),n=t(P);n.registerAction("dataZoom",function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[me],n,"dataZoom"),i.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),a=[];n[me]({mainType:"dataZoom",query:t},function(t){a.push.apply(a,r(t).nodes)}),e.each(a,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/toolbox/ToolboxModel",[qe,"./featureManager",We,P],function(t){var e=t("./featureManager"),i=t(We);t(P)[Be]({type:"toolbox",mergeDefaultAndTheme:function(){this.$superApply("mergeDefaultAndTheme",arguments),i.each(this[ve].feature,function(t,n){var r=e.get(n);r&&i.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}})}),e("echarts/component/toolbox/ToolboxView",[qe,"./featureManager",We,O,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text",P],function(t){var e=t("./featureManager"),i=t(We),n=t(O),r=t("../../model/Model"),a=t("../../data/DataDiffer"),o=t("../helper/listComponent"),s=t("zrender/contain/text");return t(P)[Ge]({type:"toolbox",render:function(t,c,h){function u(i,n){var a,o=y[i],s=y[n],u=v[o],f=new r(u,t,t[l]);if(o&&!s){var p=e.get(o);if(!p)return;g[o]=a=new p(f)}else{if(a=g[s],!a)return;a.model=f}return!o&&s?void(a.dispose&&a.dispose(c,h)):f.get("show")?(d(f,a,o),f.setIconStatus=function(t,e){var i=this[ve],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][oe](e)},void(a.render&&a.render(f,c,h))):void(a[he]&&a[he](c,h))}function d(e,r,a){var o=e[Re]("iconStyle"),s=r.getIcons?r.getIcons():e.get("icon"),l=e.get("title")||{};if(typeof s===ye){var u=s,d=l;s={},l={},s[a]=u,l[a]=d}var v=e.iconPaths={};i.each(s,function(a,s){var u=o[Re](L)[Ee](),d=o[Re](S)[Ee](),g=n.makePath(a,{style:u,hoverStyle:d,rectHover:!0},{x:-m/2,y:-m/2,width:m,height:m},Ce);n.setHoverStyle(g),t.get("showTitle")&&(g.__title=l[s],g.on(ie,function(){g[Me]({text:l[s],textPosition:d.textPosition||fe,textFill:d.fill||d[f]||"#000",textAlign:d[Pe]||Ce})}).on(ee,function(){g[Me]({textFill:null})})),g[oe](e.get("iconStatus."+s)||L),p.add(g),g.on("click",i.bind(r.onclick,r,c,h,s)),v[s]=g})}var p=this.group;if(p[Ne](),t.get("show")){var m=+t.get("itemSize"),v=t.get("feature")||{},g=this._features||(this._features={}),y=[];i.each(v,function(t,e){y.push(e)}),new a(this._featureNames||[],y).add(u)[de](u)[he](i.curry(u,null)).execute(),this._featureNames=y,o.layout(p,t,h),o.addBackground(p,t),p.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=s[Le](e,i.font),r=t[Se][0]+p[Se][0],a=t[Se][1]+p[Se][1]+m,o=!1;a+n[ze]>h[Te]()&&(i.textPosition="top",o=!0);var l=o?-5-n[ze]:m+8;r+n.width/2>h[ke]()?(i.textPosition=["100%",l],i[Pe]="right"):r-n.width/2<0&&(i.textPosition=[0,l],i[Pe]="left")}})}},remove:function(t,e){i.each(this._features,function(i){i[he]&&i[he](t,e)}),this.group[Ne]()},dispose:function(t,e){i.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[qe,"../featureManager"],function(t){function e(t){this.model=t}e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6 M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1};var i=e[xe];return i.onclick=function(t,e){var i=this.model,n=t.get("title.0.text")||"echarts",r=document[G]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[Ae]="_blank",r.href=e.getConnectedDataURL({type:a,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),r.click()},t("../featureManager").register("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[qe,We,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(We);e.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=e[xe];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack")},r.get("option.line")):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack")},r.get("option.bar")):void 0},stack:function(t,e){return"line"===t||"bar"===t?{id:e,stack:"__ec_magicType_stack__"}:void 0},tiled:function(t,e){return"line"===t||"bar"===t?{id:e,stack:""}:void 0}},a=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var o=this.model,s=o.get("seriesIndex."+n);if(r[n]){var l={series:[]},c=function(t){var e=t.subType,a=t.id,s=r[n](e,a,t,o);s&&(i[Ze](s,t[ve]),l[re].push(s))};i.each(a,function(t){i[X](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,L)})}),o.setIconStatus(n,S),t[me]({mainType:"series",seriesIndex:s},c),e[le]({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),t("../featureManager").register("magicType",e),e}),e("echarts/component/toolbox/feature/Restore",[qe,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=e[xe];return n.onclick=function(t,e){i.clear(t),e[le]({type:"restore",from:this.uid})},t("../featureManager").register("restore",e),t("../../../echarts").registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/component/toolbox/feature/DataView",[qe,We,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[Ve];if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r[I]();if(a.type===E){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][re].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return d.each(t,function(t){var i=t.categoryAxis,n=t.valueAxis,r=n.dim,a=[" "][N](d.map(t[re],function(t){return t.name})),o=[i.model.getCategories()];d.each(t[re],function(t){o.push(t.getRawData()[b](r,function(t){return t}))});for(var s=[a.join(m)],l=0;l<o[0][se];l++){for(var c=[],h=0;h<o[se];h++)c.push(o[h][l]);s.push(c.join(m))}e.push(s.join("\n"))}),e.join("\n\n"+p+"\n\n")}function n(t){return d.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e[x],function(){for(var t=arguments[se],r=arguments[t-1],a=e[g](r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+m:"")+n.join(m))}),i.join("\n")}).join("\n\n"+p+"\n\n")}function r(t){var r=e(t);return{value:d[Fe]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[$](/[\n\t\s]/g,"")}).join("\n\n"+p+"\n\n"),meta:r.meta}}function a(t){return t[$](/^\s\s*/,"")[$](/\s\s*$/,"")}function o(t){var e=t.slice(0,t[X]("\n"));return e[X](m)>=0?!0:void 0}function s(t){for(var e=t.split(/\n+/g),i=a(e.shift()).split(v),n=[],r=d.map(i,function(t){return{name:t,data:[]}}),o=0;o<e[se];o++){var s=a(e[o]).split(v);n.push(s.shift());for(var l=0;l<s[se];l++)r[l]&&(r[l].data[o]=s[l])}return{series:r,categories:n}}function l(t){for(var e=t.split(/\n+/g),i=a(e.shift()),n=[],r=0;r<e[se];r++){var o,s=a(e[r]).split(v),l="",c=!1;isNaN(s[0])?(c=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},o=n[r].value):o=n[r]=[];for(var h=0;h<s[se];h++)o.push(+s[h]);1===o[se]&&(c?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function c(t,e){var i=t.split(new RegExp("\n*"+p+"\n*","g")),n={series:[]};return d.each(i,function(t,i){if(o(t)){var r=s(t),a=e[i],c=a.axisDim+"Axis";a&&(n[c]=n[c]||[],n[c][a.axisIndex]={data:r.categories},n[re]=n[re][N](r[re]))}else{var r=l(t);n[re].push(r)}}),n}function h(t){this._dom=null,this.model=t}function u(t,e){return d.map(t,function(t,i){var n=e&&e[i];return d[ue](n)&&!d[Y](n)?(d[ue](t)&&!d[Y](t)&&(t=t.value),d[Ze]({value:t},n)):t})}var d=t(We),f=t("zrender/core/event"),p=new Array(60).join("-"),m=" ",v=new RegExp("["+m+"]+","g");return h.defaultOption={show:!0,readOnly:!1,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h[xe].onclick=function(t,e){function i(){n.removeChild(o),x._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document[G]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document[G]("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=a.get("textColor");var h=document[G]("textarea");h.style.cssText="display:block;width:100%;font-size:14px;line-height:1.6rem;font-family:Monaco,Consolas,Courier new,monospace",h.readOnly=a.get("readOnly"),h.style.color=a.get("textColor"),h.style.borderColor=a.get("textareaBorderColor"),h.style.backgroundColor=a.get("textareaColor");var u=r(t);h.value=u.value;var d=u.meta,p=document[G]("div");p.style.cssText="position:absolute;bottom:0;left:0;right:0;";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document[G]("div"),y=document[G]("div");v+=";background-color:"+a.get("buttonColor"),v+=";color:"+a.get("buttonTextColor");var x=this;f.addEventListener(g,"click",i),f.addEventListener(y,"click",function(){var t;try{t=c(h.value,d)}catch(n){throw i(),new Error("Data view format error "+n)}e[le]({type:"changeDataView",newOption:t}),i()}),g.innerHTML=l[1],y.innerHTML=l[2],y.style.cssText=v,g.style.cssText=v,p.appendChild(y),p.appendChild(g),f.addEventListener(h,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+m+e.substring(n),this.selectionStart=this.selectionEnd=i+1,f.stop(t)}}),o.appendChild(s),o.appendChild(h),o.appendChild(p),h.style[ze]=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},h[xe][he]=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},h[xe].dispose=function(t,e){this[he](t,e)},t("../featureManager").register("dataView",h),t("../../../echarts").registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];d.each(t.newOption[re],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:u(t.data,r)})}else i.push(d[ce]({type:"scatter"},t))}),e.mergeOption(d[Ze]({series:i},t.newOption))}),h}),e("echarts/component/toolbox/feature/DataZoom",[qe,We,"../../../util/number","../../helper/SelectController","zrender/core/BoundingRect","zrender/container/Group","../../dataZoom/history","../../helper/interactionMutex","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t){this.model=t,this._controllerGroup,this._controller,this._isZoomActive}function i(t,e){var i=[{axisModel:t[Z]("x").model,axisIndex:0},{axisModel:t[Z]("y").model,axisIndex:0}];return i.grid=t,e[me]({mainType:"dataZoom",subType:"select"},function(t){n("xAxis",i[0].axisModel,t,e)&&(i[0].dataZoomModel=t),n("yAxis",i[1].axisModel,t,e)&&(i[1].dataZoomModel=t)}),i}function n(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n[V](t,r)===e}function r(t,e){var i=e.grid,n=new h(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n.intersect(i.getRect())){var r=i.getCartesian(e[0].axisIndex,e[1].axisIndex),a=r.pointToData([t[0][0],t[1][0]],!0),o=r.pointToData([t[0][1],t[1][1]],!0);return[m([a[0],o[0]]),m([a[1],o[1]])]}}function a(t,e,i){var n=e[i],r=n.dataZoomModel;return r?{dataZoomId:r.id,startValue:t[i][0],endValue:t[i][1]}:void 0}function o(t,e){t.setIconStatus("back",d.count(e)>1?S:L)}var s=t(We),l=t("../../../util/number"),c=t("../../helper/SelectController"),h=t("zrender/core/BoundingRect"),u=t("zrender/container/Group"),d=t("../../dataZoom/history"),f=t("../../helper/interactionMutex"),p=s.each,m=l.asc;t("../../dataZoomSelect");var v="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var g=e[xe];g.render=function(t,e){o(t,e)},g.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new u,e.getZr().add(n)),y[i].call(this,n,this.model,t,e)},g[he]=function(t,e){this._disposeController(),f.release("globalPan",e.getZr())},g.dispose=function(t,e){var i=e.getZr();f.release("globalPan",i),this._disposeController(),this._controllerGroup&&i[he](this._controllerGroup)};var y={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,a=n.getZr();f[r?"take":"release"]("globalPan",a),e.setIconStatus("zoom",r?S:L),r?(a.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(a.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(d.pop(i),n)}};return g._createController=function(t,e,i,n){var r=this._controller=new c("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",s.bind(this._onSelected,this,r,e,i,n)),r.enable(t,!1)},g._disposeController=function(){var t=this._controller;t&&(t.off("selected"),t.dispose())},g._onSelected=function(t,e,n,o,s){if(s[se]){var l=s[0];t[de]();var c={};n[me]("grid",function(t){var e=t[Ve],o=i(e,n),s=r(l,o);if(s){var h=a(s,o,0,"x"),u=a(s,o,1,"y");h&&(c[h.dataZoomId]=h),u&&(c[u.dataZoomId]=u)}},this),d.push(n,c),this._dispatchAction(c,o)}},g._dispatchAction=function(t,e){var i=[];p(t,function(t){i.push(t)}),i[se]&&e[le]({type:"dataZoom",from:this.uid,batch:s.clone(i,!0)})},t("../featureManager").register("dataZoom",e),t("../../../echarts").registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",a=e[r];null==a||s[Y](a)||(a=a===!1?[]:[a]),i(t,function(e,i){if(null==a||-1!==s[X](a,i)){var o={type:"select",$fromToolbox:!0,id:v+t+i};o[r]=i,n.push(o)}})}}function i(e,i){var n=t[e];s[Y](n)||(n=n?[n]:[]),p(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);s[Y](n)||(n=[n]);var r=t.toolbox;if(r&&(s[Y](r)&&(r=r[0]),r&&r.feature)){var a=r.feature.dataZoom;e("xAxis",a),e("yAxis",a)}}}),e}),e("zrender/vml/Painter",[qe,"../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[G]("div"),n=document[G]("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[ge]();var r=e.delFromMap,o=e.addToMap;e.delFromMap=function(t){var i=e.get(t);r.call(e,t),i&&i.onRemoveFromStorage&&i.onRemoveFromStorage(n)},e.addToMap=function(t){t.onAddToStorage&&t.onAddToStorage(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[xe]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[se];i++){var n=t[i];n.__dirty&&!n.invisible&&(n.beforeBrush&&n.beforeBrush(),n.brush(e),n.afterBrush&&n.afterBrush()),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[ze]=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_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[ze]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[se];s++){var l=o[s];i[xe][l]=n(l)}return i}),e("echarts/scale/Interval",[qe,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=n[ce]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),o[xe].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[se]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[se];i++)t.push(this[H](e[i]));return t},getLabel:function(t){return i.addCommas(t)},niceTicks:function(t){t=t||10;var i=this._extent,n=i[1]-i[0];if(!(1/0===n||0>=n)){var o=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),s=t/n*o;.15>=s?o*=10:.3>=s?o*=5:.5>=s?o*=3:.75>=s&&(o*=2);var l=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var s=o[0]/2;o[0]-=s,o[1]+=s}else o[1]=1;o[1]===-1/0&&1/0===o[0]&&(o[0]=0,o[1]=1),this.niceTicks(t,i,n);
var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return o[W]=function(){return new o},o}),e("zrender/graphic/Gradient",[qe],function(){var t=function(t){this.colorStops=t||[]};return t[xe]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("echarts/scale/Scale",[qe,"../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[xe];return n[q]=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[F]=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[se];i++)t.push(this[H](e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("zrender/tool/path",[qe,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,c,u){var m=l*(p/180),y=f(m)*(t-i)/2+d(m)*(e-n)/2,x=-1*d(m)*(t-i)/2+f(m)*(e-n)/2,_=y*y/(o*o)+x*x/(s*s);_>1&&(o*=h(_),s*=h(_));var b=(r===a?-1:1)*h((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,w=b*o*x/s,M=b*-s*y/o,S=(t+i)/2+f(m)*w-d(m)*M,C=(e+n)/2+d(m)*w+f(m)*M,T=g([1,0],[(y-w)/o,(x-M)/s]),k=[(y-w)/o,(x-M)/s],A=[(-1*y-w)/o,(-1*x-M)/s],z=g(k,A);v(k,A)<=-1&&(z=p),v(k,A)>=1&&(z=0),0===a&&z>0&&(z-=2*p),1===a&&0>z&&(z+=2*p),u.addData(c,S,C,o,s,T,z,m,a)}function i(t){if(!t)return[];var i,n=t[$](/-/g," -")[$](/ /g," ")[$](/ /g,",")[$](/,,/g,",");for(i=0;i<c[se];i++)n=n[$](new RegExp(c[i],"g"),"|"+c[i]);var r,a=n.split("|"),s=0,l=0,h=new o,u=o.CMD;for(i=1;i<a[se];i++){var d,f=a[i],p=f.charAt(0),m=0,v=f.slice(1)[$](/e,-/g,"e-").split(",");v[se]>0&&""===v[0]&&v.shift();for(var g=0;g<v[se];g++)v[g]=parseFloat(v[g]);for(;m<v[se]&&!isNaN(v[m])&&!isNaN(v[0]);){var y,x,_,b,w,M,S,C=s,T=l;switch(p){case"l":s+=v[m++],l+=v[m++],d=u.L,h.addData(d,s,l);break;case"L":s=v[m++],l=v[m++],d=u.L,h.addData(d,s,l);break;case"m":s+=v[m++],l+=v[m++],d=u.M,h.addData(d,s,l),p="l";break;case"M":s=v[m++],l=v[m++],d=u.M,h.addData(d,s,l),p="L";break;case"h":s+=v[m++],d=u.L,h.addData(d,s,l);break;case"H":s=v[m++],d=u.L,h.addData(d,s,l);break;case"v":l+=v[m++],d=u.L,h.addData(d,s,l);break;case"V":l=v[m++],d=u.L,h.addData(d,s,l);break;case"C":d=u.C,h.addData(d,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),s=v[m-2],l=v[m-1];break;case"c":d=u.C,h.addData(d,v[m++]+s,v[m++]+l,v[m++]+s,v[m++]+l,v[m++]+s,v[m++]+l),s+=v[m-2],l+=v[m-1];break;case"S":y=s,x=l;var k=h.len(),A=h.data;r===u.C&&(y+=s-A[k-4],x+=l-A[k-3]),d=u.C,C=v[m++],T=v[m++],s=v[m++],l=v[m++],h.addData(d,y,x,C,T,s,l);break;case"s":y=s,x=l;var k=h.len(),A=h.data;r===u.C&&(y+=s-A[k-4],x+=l-A[k-3]),d=u.C,C=s+v[m++],T=l+v[m++],s+=v[m++],l+=v[m++],h.addData(d,y,x,C,T,s,l);break;case"Q":C=v[m++],T=v[m++],s=v[m++],l=v[m++],d=u.Q,h.addData(d,C,T,s,l);break;case"q":C=v[m++]+s,T=v[m++]+l,s+=v[m++],l+=v[m++],d=u.Q,h.addData(d,C,T,s,l);break;case"T":y=s,x=l;var k=h.len(),A=h.data;r===u.Q&&(y+=s-A[k-4],x+=l-A[k-3]),s=v[m++],l=v[m++],d=u.Q,h.addData(d,y,x,s,l);break;case"t":y=s,x=l;var k=h.len(),A=h.data;r===u.Q&&(y+=s-A[k-4],x+=l-A[k-3]),s+=v[m++],l+=v[m++],d=u.Q,h.addData(d,y,x,s,l);break;case"A":_=v[m++],b=v[m++],w=v[m++],M=v[m++],S=v[m++],C=s,T=l,s=v[m++],l=v[m++],d=u.A,e(C,T,s,l,M,S,_,b,w,d,h);break;case"a":_=v[m++],b=v[m++],w=v[m++],M=v[m++],S=v[m++],C=s,T=l,s+=v[m++],l+=v[m++],d=u.A,e(C,T,s,l,M,S,_,b,w,d,h)}}("z"===p||"Z"===p)&&(d=u.Z,h.addData(d)),r=d}return h.toStatic(),h}function n(t,e){var n,a=i(t);return e=e||{},e[r]=function(t){t.setData(a.data),n&&s(t,n);var e=t.getContext();e&&t.rebuildPath(e)},e[u]=function(t){n||(n=l[W]()),l.mul(n,t,n)},e}var a=t("../graphic/Path"),o=t("../core/PathProxy"),s=t("./transformPath"),l=t("../core/matrix"),c=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],h=Math.sqrt,d=Math.sin,f=Math.cos,p=Math.PI,m=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},v=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(m(t)*m(e))},g=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(v(t,e))};return{createFromString:function(t,e){return new a(n(t,e))},extendFromString:function(t,e){return a[ce](n(t,e))},mergePath:function(t,e){var i,n,o=[],s=t[se];for(n=0;s>n;n++)i=t[n],i.__dirty&&i[r](i.path,i.shape),o.push(i.path);var l=new a(e);return l[r]=function(t){t.appendPath(o);var e=t.getContext();e&&t.rebuildPath(e)},l}}}),e("zrender/graphic/Path",[qe,"./Displayable",a,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[f];return null!=e&&"none"!==e&&t[h]>0}function n(t){o.call(this,t),this.path=new l}var o=t("./Displayable"),s=t(a),l=t("../core/PathProxy"),c=t("../contain/path"),u=t("./Gradient"),d=Math.abs;return n[xe]={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var n=this.style,a=this.path,o=i(n),s=e(n);this.__dirtyPath&&(s&&n.fill instanceof u&&n.fill.updateCanvasGradient(this,t),o&&n[f]instanceof u&&n[f].updateCanvasGradient(this,t)),n.bind(t,this),this.setTransform(t);var l=n.lineDash,c=n.lineDashOffset,h=!!t.setLineDash;this.__dirtyPath||l&&!h&&o?(a=this.path.beginPath(t),l&&!h&&(a.setLineDash(l),a.setLineDashOffset(c)),this[r](a,this.shape),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),s&&a.fill(t),l&&h&&(t.setLineDash(l),t.lineDashOffset=c),o&&a[f](t),null!=n.text&&this.drawRectText(t,this[Le]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style;if(!t){var n=this.path;this.__dirtyPath&&(n.beginPath(),this[r](n,this.shape)),t=n[Le]()}if(i(e)&&(this.__dirty||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=e[h],s=e.strokeNoScale?this.getLineScale():1;return o=Math.max(o,this.strokeContainThreshold),s>1e-10&&(a.width+=o/s,a[ze]+=o/s,a.x-=o/s/2,a.y-=o/s/2),a}return this._rect=t,t},contain:function(t,n){var r=this.transformCoordToLocal(t,n),a=this[Le](),o=this.style;if(t=r[0],n=r[1],a[q](t,n)){var s=this.path.data;if(i(o)){var l=o[h],u=o.strokeNoScale?this.getLineScale():1;if(1e-10>u)return!1;if(l=Math.max(l,this.strokeContainThreshold),c.containStroke(s,l/u,t,n))return!0}if(e(o))return c[q](s,t,n)}return!1},dirty:function(t){0===arguments[se]&&(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):o[xe].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(s[ue](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[be];return t&&d(t[0]-1)>1e-10&&d(t[3]-1)>1e-10?Math.sqrt(d(t[0]*t[3]-t[2]*t[1])):1}},n[ce]=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,e)};s[j](e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e[xe][i]=t[i]);return e},s[j](n,o),n}),e("zrender/core/vector",[],function(){var t=typeof Float32Array===o?Array:Float32Array,e={create:function(e,i){var n=new t(2);return n[0]=e||0,n[1]=i||0,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[se]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/container/Group",[qe,a,"../Element","../core/BoundingRect"],function(t){var e=t(a),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this.__dirty=!0};return r[xe]={constructor:r,type:"group",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[se];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[se]},add:function(t){return t&&t!==this&&t[c]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[c]!==this&&e&&e[c]===this){var i=this._children,n=i[X](e);n>=0&&(i[ne](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[c]&&t[c][he](t),t[c]=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[X](a,t);return 0>o?this:(a[ne](o,1),t[c]=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[se];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[c]=null;return i[se]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[se];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[se];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[se];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[se];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[se];o++){var s=r[o];if(!s[pe]&&!s.invisible){var l=s[Le](),c=s.getLocalTransform(a);c?(i.copy(l),i[u](c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[j](r,i),r}),e("zrender/graphic/Image",[qe,"./Displayable","../core/BoundingRect",a,"./helper/roundRect","../core/LRU"],function(t){var e=t("./Displayable"),i=t("../core/BoundingRect"),n=t(a),o=t("./helper/roundRect"),s=t("../core/LRU"),l=new s(50),c=function(t){e.call(this,t)};return c[xe]={constructor:c,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===ye?this._image:n,!e&&n){var a=l.get(n);if(!a)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<a.pending[se];t++)a.pending[t].dirty()},a={image:e,pending:[this]},e.src=n,l.put(n,a),void(this._image=e);if(e=a.image,this._image=e,!e.width||!e[ze])return void a.pending.push(this)}if(e){var s=i.width||e.width,c=i[ze]||e[ze],h=i.x||0,u=i.y||0;if(!e.width||!e[ze])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t.beginPath(),o[r](t,i),t.clip()),i.sWidth&&i.sHeight){var d=i.sx||0,f=i.sy||0;t.drawImage(e,d,f,i.sWidth,i.sHeight,h,u,s,c)}else if(i.sx&&i.sy){var d=i.sx,f=i.sy,p=s-d,m=c-f;t.drawImage(e,d,f,p,m,h,u,s,c)}else t.drawImage(e,h,u,s,c);null==i.width&&(i.width=s),null==i[ze]&&(i[ze]=c),null!=i.text&&this.drawRectText(t,this[Le]()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new i(t.x||0,t.y||0,t.width||0,t[ze]||0)),this._rect}},n[j](c,e),c}),e("zrender/graphic/shape/Circle",[qe,"../Path"],function(t){return t("../Path")[ce]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t[n](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/Text",[qe,"./Displayable",a,"../contain/text"],function(t){var e=t("./Displayable"),i=t(a),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[xe]={constructor:r,type:"text",brush:function(t){var e=this.style,i=e.x||0,r=e.y||0,a=e.text,o=e.fill,s=e[f];if(null!=a&&(a+=""),a){t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),s&&(t.strokeStyle=s),t.font=e.textFont||e.font,t[Pe]=e[Pe],t[m]=e[m];for(var l=n.measureText("国",t.font).width,c=a.split("\n"),h=0;h<c[se];h++)o&&t.fillText(c[h],i,r),s&&t.strokeText(c[h],i,r),r+=l;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=n[Le](t.text+"",t.textFont,t[Pe],t[m]);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},i[j](r,e),r}),e("zrender/graphic/shape/Polygon",[qe,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[ce]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e[r](t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[qe,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[ce]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e[r](t,i,!1)}})}),e("zrender/graphic/shape/Sector",[qe,"../Path"],function(t){return t("../Path")[ce]({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,r=e.cy,a=Math.max(e.r0||0,0),o=Math.max(e.r,0),s=e.startAngle,l=e.endAngle,c=e.clockwise,h=Math.cos(s),u=Math.sin(s);t[n](h*a+i,u*a+r),t.lineTo(h*o+i,u*o+r),t.arc(i,r,o,s,l,!c),t.lineTo(Math.cos(l)*a+i,Math.sin(l)*a+r),0!==a&&t.arc(i,r,a,l,s,c),t.closePath()}})}),e("zrender/graphic/shape/Rect",[qe,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[ce]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,a=i.y,o=i.width,s=i[ze];i.r?e[r](t,i):t.rect(n,a,o,s),t.closePath()}})}),e("zrender/graphic/shape/Line",[qe,"../Path"],function(t){return t("../Path")[ce]({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,r=e.y1,a=e.x2,o=e.y2,s=e.percent;0!==s&&(t[n](i,r),1>s&&(a=i*(1-s)+a*s,o=r*(1-s)+o*s),t.lineTo(a,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/Arc",[qe,"../Path"],function(t){return t("../Path")[ce]({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,r=e.cy,a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,c=Math.cos(o),h=Math.sin(o);t[n](c*a+i,h*a+r),t.arc(i,r,a,o,s,!l)}})}),e("zrender/graphic/shape/BezierCurve",[qe,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,r=e.cubicSubdivide,a=e.quadraticAt,o=e.cubicAt,s=[];return t("../Path")[ce]({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 a=e.x1,o=e.y1,l=e.x2,c=e.y2,h=e.cpx1,u=e.cpy1,d=e.cpx2,f=e.cpy2,p=e.percent;0!==p&&(t[n](a,o),null==d||null==f?(1>p&&(i(a,h,l,p,s),h=s[1],l=s[2],i(o,u,c,p,s),u=s[1],c=s[2]),t.quadraticCurveTo(h,u,l,c)):(1>p&&(r(a,h,d,l,p,s),h=s[1],d=s[2],l=s[3],r(o,u,f,c,p,s),u=s[1],f=s[2],c=s[3]),t.bezierCurveTo(h,u,d,f,l,c)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[a(e.x1,e.cpx1,e.x2,t),a(e.y1,e.cpy1,e.y2,t)]:[o(e.x1,e.cpx1,e.cpx1,e.x2,t),o(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})}),e("zrender/graphic/LinearGradient",[qe,a,"./Gradient"],function(t){var e=t(a),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[xe]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[Le](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[ze]+i.y,o=this.y2*i[ze]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,c=0;c<l[se];c++)s.addColorStop(l[c].offset,l[c].color);this.canvasGradient=s}},e[j](n,i),n}),e("zrender/graphic/RadialGradient",[qe,a,"./Gradient"],function(t){var e=t(a),i=t("./Gradient"),n=function(t,e,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return n[xe]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[Le](),n=i.width,r=i[ze],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,l=this.r*a,c=e.createRadialGradient(o,s,0,o,s,l),h=this.colorStops,u=0;u<h[se];u++)c.addColorStop(h[u].offset,h[u].color);this.canvasGradient=c}},e[j](n,i),n}),e("echarts/model/Model",[qe,We,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e||null,this[l]=i||null,this[ve]=t,this.init.apply(this,arguments)}var i=t(We),n=t("../util/clazz");e[xe]={constructor:e,init:function(){},mergeOption:function(t){i.merge(this[ve],t,!0)},get:function(t,e){if(!t)return this[ve];typeof t===ye&&(t=t.split("."));for(var i=this[ve],n=this.parentModel,r=0;r<t[se]&&(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[ve],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r.getShallow(t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[Re](t),this[l]);return a},isEmpty:function(){return null==this[ve]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[ve]))},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===o?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],c=Math.sin(i),h=Math.cos(i);return t[0]=n*h+o*c,t[1]=-n*c+o*h,t[2]=r*h+s*c,t[3]=-r*c+h*s,t[4]=h*a+c*l,t[5]=h*l-c*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("zrender/vml/graphic",[qe,"../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){function e(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=X+","+X,t.coordorigin="0,0"}function i(t){return String(t)[$](/&/g,"&amp;")[$](/"/g,"&quot;")}function n(t,e,i){return"rgb("+[t,e,i].join(",")+")"}function a(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)}function o(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function l(t,e,i){return(parseFloat(t)||0)*K+(parseFloat(e)||0)*J+i}function c(t,e,i){var r=A.parse(e);i=+i,isNaN(i)&&(i=1),r&&(t.color=n(r[0],r[1],r[2]),t[we]=i*r[3])}function d(t){var e=A.parse(t);return[n(e[0],e[1],e[2]),e[3]]}function p(t,e,i){var n=e.fill;if(null!=n)if(n instanceof B){var r,a=0,o=[0,0],s=0,l=1,h=i[Le](),u=h.width,f=h[ze];if("linear"===n.type){r="gradient";var p=i[be],m=[n.x*u,n.y*f],v=[n.x2*u,n.y2*f];p&&(q(m,m,p),q(v,v,p));var g=v[0]-m[0],y=v[1]-m[1];a=180*Math.atan2(g,y)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var m=[n.x*u,n.y*f],p=i[be],x=i.scale,_=u,b=f;o=[(m[0]-h.x)/_,(m[1]-h.y)/b],p&&q(m,m,p),_/=x[0]*X,b/=x[1]*X;var w=W(_,b);s=0/w,l=2*n.r/w-s}var M=n.colorStops.slice();M.sort(function(t,e){return t.offset-e.offset});for(var S=M[se],C=[],T=[],k=0;S>k;k++){var A=M[k],z=d(A.color);T.push(A.offset*l+s+" "+z[0]),(0===k||k===S-1)&&C.push(z)}if(S>=2){var L=C[0][0],D=C[1][0],I=C[0][1]*e[we],P=C[1][1]*e[we];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=L,t.color2=D,t.colors=T.join(","),t[we]=P,t.opacity2=I}"radial"===r&&(t.focusposition=o.join(","))}else c(t,n,e[we])}function v(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*X),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[f]||e[f]instanceof B||c(t,e[f],e[we])}function g(t,e,i,n){var r="fill"==e,s=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[h])?(t[r?"filled":"stroked"]="true",i[e]instanceof B&&o(t,s),s||(s=E.createNode(e)),r?p(s,i,n):v(s,i),a(t,s)):(t[r?"filled":"stroked"]="false",o(t,s))}function x(t,e){var i,n,r,a,o,s,l=k.M,c=k.C,h=k.L,u=k.A,d=k.Q,f=[];for(a=0;a<t[se];){switch(r=t[a++],n="",i=0,r){case l:n=" m ",i=1,o=t[a++],s=t[a++],te[0][0]=o,te[0][1]=s;break;case h:n=" l ",i=1,o=t[a++],s=t[a++],te[0][0]=o,te[0][1]=s;break;case d:case c:n=" c ",i=3;var p,m,v=t[a++],g=t[a++],y=t[a++],x=t[a++];r===d?(p=y,m=x,y=(y+2*v)/3,x=(x+2*g)/3,v=(o+2*v)/3,g=(s+2*g)/3):(p=t[a++],m=t[a++]),te[0][0]=v,te[0][1]=g,te[1][0]=y,te[1][1]=x,te[2][0]=p,te[2][1]=m,o=p,s=m;break;case u:var _=0,b=0,w=1,M=1,S=0;e&&(_=e[4],b=e[5],w=V(e[0]*e[0]+e[1]*e[1]),M=V(e[2]*e[2]+e[3]*e[3]),S=Math.atan2(-e[1]/M,e[0]/w));var C=t[a++],T=t[a++],A=t[a++],z=t[a++],L=t[a++]+S,D=t[a++]+L+S;a++;var I=t[a++],P=C+F(L)*A,O=T+H(L)*z,v=C+F(D)*A,g=T+H(D)*z,R=I?" wa ":" at ";f.push(R,Z(((C-A)*w+_)*X-Y),j,Z(((T-z)*M+b)*X-Y),j,Z(((C+A)*w+_)*X-Y),j,Z(((T+z)*M+b)*X-Y),j,Z((P*w+_)*X-Y),j,Z((O*M+b)*X-Y),j,Z((v*w+_)*X-Y),j,Z((g*M+b)*X-Y)),o=v,s=g;break;case k.R:var B=te[0],E=te[1];B[0]=t[a++],B[1]=t[a++],E[0]=B[0]+t[a++],E[1]=B[1]+t[a++],e&&(q(B,B,e),q(E,E,e)),B[0]=Z(B[0]*X-Y),E[0]=Z(E[0]*X-Y),B[1]=Z(B[1]*X-Y),E[1]=Z(E[1]*X-Y),f.push(" m ",B[0],j,B[1]," l ",E[0],j,B[1]," l ",E[0],j,E[1]," l ",B[0],j,E[1]);break;case k.Z:f.push(" x ")}if(i>0){f.push(n);for(var N=0;i>N;N++){var G=te[N];e&&q(G,G,e),f.push(Z(G[0]*X-Y),j,Z(G[1]*X-Y),i-1>N?j:"")}}}return f.join("")}function _(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()}function b(t){var e=ne[t];if(!e){re>ae&&(re=0,ne={});var i,n=oe.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||ie,variant:n.fontVariant||ie,weight:n.fontWeight||ie,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},ne[t]=e,re++}return e}function w(t,n,r,o){var c=this.style,h=c.text;if(h){var d,p,v=c[Pe],x=b(c.textFont),_=x.style+" "+x.variant+" "+x.weight+" "+x.size+'px "'+x.family+'"',w=c[m];r=r||z[Le](h,_,v,w);var M=this[be];if(M&&!o&&(le.copy(n),le[u](M),n=le),o)d=n.x,p=n.y;else{var S=c.textPosition,C=c.textDistance;if(S instanceof Array)d=n.x+S[0],p=n.y+S[1],v=v||"left",w=w||"top";else{var T=z.adjustTextPositionOnRect(S,n,r,C);d=T.x,p=T.y,v=v||T[Pe],w=w||T[m]}}var k=x.size;switch(w){case"hanging":case"top":p+=k/1.75;break;case s:break;default:p-=k/2.25}switch(v){case"left":break;case Ce:d-=r.width/2;break;case"right":d-=r.width}var A,L,D,I=E.createNode,P=this._textVmlEl;P?(D=P.firstChild,A=D.nextSibling,L=A.nextSibling):(P=I("line"),A=I("path"),L=I("textpath"),D=I("skew"),L.style["v-text-align"]="left",e(P),A.textpathok=!0,L.on=!0,P.from="0 0",P.to="1000 0.05",a(P,D),a(P,A),a(P,L),this._textVmlEl=P);var O=[d,p],R=P.style;M&&o?(q(O,O,M),D.on=!0,D.matrix=M[0][y](3)+j+M[2][y](3)+j+M[1][y](3)+j+M[3][y](3)+",0,0",D.offset=(Z(O[0])||0)+","+(Z(O[1])||0),D.origin="0 0",R.left="0px",R.top="0px"):(D.on=!1,R.left=Z(d)+"px",R.top=Z(p)+"px"),L[ye]=i(h);try{L.style.font=_}catch(B){}g(P,"fill",{fill:o?c.fill:c.textFill,opacity:c[we]},this),g(P,f,{stroke:o?c[f]:c.textStroke,opacity:c[we],lineDash:c.lineDash},this),P.style.zIndex=l(this[Q],this.z,this.z2),a(t,P)}}function M(t){o(t,this._textVmlEl),this._textVmlEl=null}function S(t){a(t,this._textVmlEl)}if(!t("../core/env").canvasSupported){var C=t("../core/vector"),T=t("../core/BoundingRect"),k=t("../core/PathProxy").CMD,A=t("../tool/color"),z=t("../contain/text"),D=t("../graphic/mixin/RectText"),I=t("../graphic/Displayable"),P=t("../graphic/Image"),O=t("../graphic/Text"),R=t("../graphic/Path"),B=t("../graphic/Gradient"),E=t("./core"),Z=Math.round,V=Math.sqrt,N=Math.abs,F=Math.cos,H=Math.sin,W=Math.max,q=C[u],j=",",U="progid:DXImageTransform.Microsoft",X=21600,Y=X/2,K=1e5,J=1e3,te=[[],[],[]];R[xe].brush=function(t){var i=this.style,n=this._vmlEl;n||(n=E.createNode("shape"),e(n),this._vmlEl=n),g(n,"fill",i,this),g(n,f,i,this);var o=this[be],s=null!=o,c=n.getElementsByTagName(f)[0];if(c){var u=i[h];if(s&&!i.strokeNoScale){var d=o[0]*o[3]-o[1]*o[2];u*=V(N(d))}c.weight=u+"px"}var p=this.path;this.__dirtyPath&&(p.beginPath(),this[r](p,this.shape),this.__dirtyPath=!1),n.path=x(p.data,this[be]),n.style.zIndex=l(this[Q],this.z,this.z2),a(t,n),i.text&&this.drawRectText(t,this[Le]())},R[xe].onRemoveFromStorage=function(t){o(t,this._vmlEl),this.removeRectText(t)},R[xe].onAddToStorage=function(t){a(t,this._vmlEl),this.appendRectText(t)},P[xe].brush=function(t){var i,n,r=this.style,o=r.image;if(_(o)){var s=o.src;if(s===this._imageSrc)i=this._imageWidth,n=this._imageHeight;else{var c=o.runtimeStyle,h=c.width,u=c[ze];c.width="auto",c[ze]="auto",i=o.width,n=o[ze],c.width=h,c[ze]=u,this._imageSrc=s,this._imageWidth=i,this._imageHeight=n}o=s}else o===this._imageSrc&&(i=this._imageWidth,n=this._imageHeight);if(o){var d=r.x||0,f=r.y||0,p=r.width,m=r[ze],v=r.sWidth,g=r.sHeight,y=r.sx||0,x=r.sy||0,b=v&&g,w=this._vmlEl;w||(w=E.doc[G]("div"),e(w),this._vmlEl=w);var M,S=w.style,C=!1,T=1,k=1;if(this[be]&&(M=this[be],T=V(M[0]*M[0]+M[1]*M[1]),k=V(M[2]*M[2]+M[3]*M[3]),C=M[1]||M[2]),C){var A=[d,f],z=[d+p,f],L=[d,f+m],D=[d+p,f+m];q(A,A,M),q(z,z,M),q(L,L,M),q(D,D,M);var I=W(A[0],z[0],L[0],D[0]),P=W(A[1],z[1],L[1],D[1]),O=[];O.push("M11=",M[0]/T,j,"M12=",M[2]/k,j,"M21=",M[1]/T,j,"M22=",M[3]/k,j,"Dx=",Z(d*T+M[4]),j,"Dy=",Z(f*k+M[5])),S.padding="0 "+Z(I)+"px "+Z(P)+"px 0",S[Fe]=U+".Matrix("+O.join("")+", SizingMethod=clip)"}else M&&(d=d*T+M[4],f=f*k+M[5]),S[Fe]="",S.left=Z(d)+"px",S.top=Z(f)+"px";var R=this._imageEl,B=this._cropEl;R||(R=E.doc[G]("div"),this._imageEl=R);var N=R.style;if(b){if(i&&n)N.width=Z(T*i*p/v)+"px",N[ze]=Z(k*n*m/g)+"px";else{var F=new Image,H=this;F.onload=function(){F.onload=null,i=F.width,n=F[ze],N.width=Z(T*i*p/v)+"px",N[ze]=Z(k*n*m/g)+"px",H._imageWidth=i,H._imageHeight=n,H._imageSrc=o},F.src=o}B||(B=E.doc[G]("div"),B.style.overflow="hidden",this._cropEl=B);var X=B.style;X.width=Z((p+y*p/v)*T),X[ze]=Z((m+x*m/g)*k),X[Fe]=U+".Matrix(Dx="+-y*p/v*T+",Dy="+-x*m/g*k+")",B.parentNode||w.appendChild(B),R.parentNode!=B&&B.appendChild(R)}else N.width=Z(T*p)+"px",N[ze]=Z(k*m)+"px",w.appendChild(R),B&&B.parentNode&&(w.removeChild(B),this._cropEl=null);var Y="",$=r[we];1>$&&(Y+=".Alpha(opacity="+Z(100*$)+") "),Y+=U+".AlphaImageLoader(src="+o+", SizingMethod=scale)",N[Fe]=Y,w.style.zIndex=l(this[Q],this.z,this.z2),a(t,w),r.text&&this.drawRectText(t,this[Le]())}},P[xe].onRemoveFromStorage=function(t){o(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},P[xe].onAddToStorage=function(t){a(t,this._vmlEl),this.appendRectText(t)};var ee,ie=L,ne={},re=0,ae=100,oe=document[G]("div");z.measureText=function(t,e){var i=E.doc;ee||(ee=i[G]("div"),ee.style.cssText="position:absolute;top:-20000px;left:0; padding:0;margin:0;border:none;white-space:pre;",E.doc.body.appendChild(ee));try{ee.style.font=e}catch(n){}return ee.innerHTML="",ee.appendChild(i.createTextNode(t)),{width:ee.offsetWidth}};for(var le=new T,ce=[D,I,P,R,O],he=0;he<ce[se];he++){var ue=ce[he][xe];ue.drawRectText=w,ue.removeRectText=M,ue.appendRectText=S}O[xe].brush=function(t){var e=this.style;e.text&&this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[Le](),!0)},O[xe].onRemoveFromStorage=function(t){this.removeRectText(t)},O[xe].onAddToStorage=function(t){this.appendRectText(t)}}}),e("echarts/component/tooltip/TooltipModel",[qe,P],function(t){t(P)[Be]({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,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/model/globalDefault",[],function(){var t="";return typeof navigator!==o&&(t=navigator.platform||""),{color:["#c23531","#314656","#61a0a8","#dd8668","#91c7ae","#6e7074","#61a0a8","#bda29a","#44525d","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}}),e("echarts/util/model",[qe,"./format","./number",We,"../model/Model"],function(t){var e=t("./format"),i=t("./number"),n=t(We),r=t("../model/Model"),a=["x","y","z",w,"angle"],o={};return o.createNameEach=function(t,e){t=t.slice();var i=n.map(t,o.capitalFirst);e=(e||[]).slice();var r=n.map(e,o.capitalFirst);return function(a,o){n.each(t,function(t,n){for(var s={name:t,capital:i[n]},l=0;l<e[se];l++)s[e[l]]=t+r[l];a.call(o,s)})}},o.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},o.eachAxisDim=o.createNameEach(a,["axisIndex","axis","index"]),o.normalizeToArray=function(t){return n[Y](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){function r(t,e){return n[X](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(i){function n(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(n);while(l);return s}},o.defaultEmphasis=function(t,e){if(t){var i=t[S]=t[S]||{},r=t[L]=t[L]||{};n.each(e,function(t){var e=n.retrieve(i[t],r[t]);null!=e&&(i[t]=e)})}},o.createDataFormatModel=function(t,e,i){var a=new r;return n.mixin(a,o.dataFormatMixin),a[J]=t[J],a.name=t.name||"",a[He]=function(){return e},a.getRawDataArray=function(){return i},a},o.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},o.converDataValue=function(t,e){var n=e&&e.type;return n===R?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?0/0:+t)
},o.dataFormatMixin={getDataParams:function(t){var e=this[He](),i=this[J],n=this.name,r=this.getRawValue(t),a=e.getRawIndex(t),o=e[g](t,!0),s=this.getRawDataArray(),l=s&&s[a];return{seriesIndex:i,seriesName:n,name:o,dataIndex:a,data:l,value:r,$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n){i=i||L;var r=this[He](),a=r[A](t),o=this[K](t);return n||(n=a.get(["label",i,"formatter"])),typeof n===U?(o.status=i,n(o)):typeof n===ye?e.formatTpl(n,o):void 0},getRawValue:function(t){var e=this[He]()[A](t);if(e&&e[ve]){var i=e[ve];return n[ue](i)&&!n[Y](i)?i.value:i}}},o}),e("echarts/util/component",[qe,We,"./clazz"],function(t){var e=t(We),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),c=l.originalDeps=i(s),h=a(c,t);l.entryCount=h[se],0===l.entryCount&&o.push(s),e.each(h,function(t){e[X](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[X](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[X](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){c[t].entryCount--,0===c[t].entryCount&&h.push(t)}function s(t){u[t]=!0,o(t)}if(t[se]){var l=n(i),c=l.graph,h=l.noEntryList,u={};for(e.each(t,function(t){u[t]=!0});h[se];){var d=h.pop(),f=c[d],p=!!u[d];p&&(r.call(a,d,f.originalDeps.slice()),delete u[d]),e.each(f.successor,p?s:o)}e.each(u,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxLayout",[qe],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(fe),width:this.get("width"),height:this.get(ze)}}}}),e("echarts/util/clazz",[qe,We],function(t){function e(t,e){for(var i,n=t.constructor,r=t[e];(n=n.$superClass)&&(i=n[xe][e])&&i===r;);return i}var i=t(We),n={},r=".",a="___EC__COMPONENT__CONTAINER___",o=n.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(r),e.main=t[0]||"",e.sub=t[1]||""),e};return n.enableClassExtend=function(t,n){t[ce]=function(r){var a=function(){n&&n.apply(this,arguments),t.apply(this,arguments)};return i[ce](a[xe],i[ce]({$superCall:function(t){var n=i.slice(arguments,1);return e(this,t).apply(this,n)},$superApply:function(t,i){return e(this,t).apply(this,i)}},r)),a[ce]=this[ce],i[j](a,this),a.$superClass=this,a}},n.enableClassManagement=function(t,e){function n(t){var e=r[t.main];return e&&e[a]||(e=r[t.main]={},e[a]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=o(e),e.sub){if(e.sub!==a){var i=n(e);i[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists");r[e.main]=t}return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[a]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists");return n},t.getClassesByMainType=function(t){t=o(t);var e=[],n=r[t.main];return n&&n[a]?i.each(n,function(t,i){i!==a&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=o(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=o(t);var e=r[t.main];return e&&e[a]},t.parseClassType=o,e.registerWhenExtend){var s=t[ce];s&&(t[ce]=function(e){var i=s.call(this,e);return t.registerClass(i,e.type)})}return t},n.setReadOnly=function(t,e){i[Y](e)||(e=null!=e?[e]:[]),i.each(e,function(e){var n=t[e];Object.defineProperty&&Object.defineProperty(t,e,{value:n,writable:!1}),i[Y](t[e])&&Object.freeze&&Object.freeze(t[e])})},n}),e("echarts/component/toolbox/featureManager",[qe],function(){var t={};return{register:function(e,i){t[e]=i},get:function(e){return t[e]}}}),e("echarts/coord/axisHelper",[qe,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",We,"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"),r=t("../util/number"),a=t(We),o=t("zrender/contain/text"),s={};return s.niceScaleExtent=function(t,e){var i=t.scale;if(i.type!==R){var n=e.get("min"),o=e.get("max"),s=e.get("boundaryGap");a[Y](s)||(s=[s||0,s||0]),s[0]=r[M](s[0],1),s[1]=r[M](s[1],1);var l=i[F](),c=l[1]-l[0],h=!0,u=!0;null==n&&(n=l[0]-s[0]*c,h=!1),null==o&&(o=l[1]+s[1]*c,u=!1),"dataMin"===n&&(n=l[0]),"dataMax"===o&&(o=l[1]),i.setExtent(n,o),i.niceExtent(e.get("splitNumber"),h,u);var d=e.get("interval");null!=d&&i.setInterval&&i.setInterval(d)}},s.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case E:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[W](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[F](),i=e[0],n=e[1],r=t.model.get("min"),a=t.model.get("max");return isNaN(r)||(i=Math.min(r,i)),isNaN(a)||(n=Math.max(a,n)),!(i>0&&n>0||0>i&&0>n)||s.ifAxisNeedsCrossZero(t)},s.ifAxisNeedsCrossZero=function(t){return!t.model.get("scale")},s.getAxisLabelInterval=function(t,e,i,n){for(var r,a=0,s=0,l=0;l<t[se];l++){var c=t[l],h=o[Le](e[l],i,Ce,"top");h[n?"x":"y"]+=c,h[n?"width":ze]*=1.5,r?r.intersect(h)?(s++,a=Math.max(a,s)):(r.union(h),s=0):r=h.clone()}return a},s.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===ye?(e=function(t){return function(e){return t[$]("{value}",e)}}(e),a.map(n,e)):typeof e===U?a.map(r,function(n,r){return e(t.type===E?i[H](n):n,r)},this):n},s}),e("echarts/coord/cartesian/Cartesian2D",[qe,We,"./Cartesian"],function(t){function e(t){n.call(this,t),this[x]=["x","y"]}var i=t(We),n=t("./Cartesian");return e[xe]={constructor:e,type:"cartesian2d",getBaseAxis:function(){return this.getAxesByScale(R)[0]||this.getAxesByScale("time")[0]||this[Z]("x")},containPoint:function(t){var e=this[Z]("x"),i=this[Z]("y");return e[q](e.toLocalCoord(t[0]))&&i[q](i.toLocalCoord(t[1]))},containData:function(t){return this[Z]("x").containData(t[0])&&this[Z]("y").containData(t[1])},dataToPoints:function(t,e){return t[b](["x","y"],function(t,e){return this[_]([t,e])},e,this)},dataToPoint:function(t,e){var i=this[Z]("x"),n=this[Z]("y");return[i.toGlobalCoord(i.dataToCoord(t[0],e)),n.toGlobalCoord(n.dataToCoord(t[1],e))]},pointToData:function(t,e){var i=this[Z]("x"),n=this[Z]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[Z]("x"===t.dim?"y":"x")}},i[j](e,n),e}),e("echarts/coord/cartesian/GridModel",[qe,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[ce]({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/coord/cartesian/Axis2D",[qe,We,"../Axis","./axisLabelInterval"],function(t){var e=t(We),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[Se]=a||fe};return r[xe]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[Se];return"top"===t||t===fe},getGlobalExtent:function(){var t=this[F]();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===E){var e=this.getLabelInterval();return typeof e===U&&!e(t,this.scale[H](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[j](r,i),r}),e("zrender/core/BoundingRect",[qe,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[ze]=n}var i=t("./vector"),n=t("./matrix"),r=i[u],a=Math.min,o=Math.abs,s=Math.max;return e[xe]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[ze]=s(t.y+t[ze],this.y+this[ze])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[ze],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[ze]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[ze]/e[ze],a=n[W]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[ze],o=t.x,s=t.x+t.width,l=t.y,c=t.y+t[ze];return!(o>n||i>s||l>a||r>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[ze]},clone:function(){return new e(this.x,this.y,this.width,this[ze])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[ze]=t[ze]}},e}),e("zrender/core/PathProxy",[qe,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),i=t("./vector"),r=t("./bbox"),a=t("./BoundingRect"),s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],h=[],u=[],d=Math.min,p=Math.max,m=Math.cos,v=Math.sin,g=Math.sqrt,y=typeof Float32Array!=o,x=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return x[xe]={constructor:x,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(s.M,t,e),this._ctx&&this._ctx[n](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(s.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,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=m(r)*i+t,this._xi=v(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(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[f](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[se];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[se];this.data&&this.data[se]==e||!y||(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[se],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();y&&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[se];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[se]>e[se]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[se];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,r,a=this._dashSum,o=this._dashOffset,s=this._lineDash,l=this._ctx,c=this._xi,h=this._yi,u=t-c,f=e-h,m=g(u*u+f*f),v=c,y=h,x=s[se];for(u/=m,f/=m,0>o&&(o=a+o),o%=a,v-=o*u,y-=o*f;u>=0&&t>=v||0>u&&v>t;)r=this._dashIdx,i=s[r],v+=u*i,y+=f*i,this._dashIdx=(r+1)%x,u>0&&c>v||0>u&&v>c||l[r%2?n:"lineTo"](u>=0?d(v,t):p(v,t),f>=0?d(y,e):p(y,e));u=v-t,f=y-e,this._dashOffset=-g(u*u+f*f)},_dashedBezierTo:function(t,i,r,a,o,s){var l,c,h,u,d,f=this._dashSum,p=this._dashOffset,m=this._lineDash,v=this._ctx,y=this._xi,x=this._yi,_=e.cubicAt,b=0,w=this._dashIdx,M=m[se],S=0;for(0>p&&(p=f+p),p%=f,l=0;1>l;l+=.1)c=_(y,t,r,o,l+.1)-_(y,t,r,o,l),h=_(x,i,a,s,l+.1)-_(x,i,a,s,l),b+=g(c*c+h*h);for(;M>w&&(S+=m[w],!(S>p));w++);for(l=(S-p)/b;1>=l;)u=_(y,t,r,o,l),d=_(x,i,a,s,l),w%2?v[n](u,d):v.lineTo(u,d),l+=m[w]/b,w=(w+1)%M;w%2!==0&&v.lineTo(o,s),c=o-u,h=s-d,this._dashOffset=-g(c*c+h*h)},_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(){this.data[se]=this._len,y&&this.data instanceof Array&&(this.data=new Float32Array(this.data))},getBoundingRect:function(){l[0]=l[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=u[0]=u[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,o=0,d=0,f=0;f<t[se];){var p=t[f++];switch(1==f&&(e=t[f],n=t[f+1],o=e,d=n),p){case s.M:o=t[f++],d=t[f++],e=o,n=d,h[0]=o,h[1]=d,u[0]=o,u[1]=d;break;case s.L:r.fromLine(e,n,t[f],t[f+1],h,u),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,u),e=t[f++],n=t[f++];break;case s.Q:r.fromQuadratic(e,n,t[f++],t[f++],t[f],t[f+1],h,u),e=t[f++],n=t[f++];break;case s.A:var g=t[f++],y=t[f++],x=t[f++],_=t[f++],b=t[f++],w=t[f++]+b,M=(t[f++],1-t[f++]);1==f&&(o=m(b)*x+g,d=v(b)*_+y),r.fromArc(g,y,x,_,b,w,M,h,u),e=m(w)*x+g,n=v(w)*_+y;break;case s.R:o=e=t[f++],d=n=t[f++];var S=t[f++],C=t[f++];r.fromLine(o,d,o+S,d+C,h,u);break;case s.Z:e=o,n=d}i.min(l,l,h),i.max(c,c,u)}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=this.data,i=0;i<this._len;){var r=e[i++];switch(r){case s.M:t[n](e[i++],e[i++]);break;case s.L:t.lineTo(e[i++],e[i++]);break;case s.C:t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case s.Q:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case s.A:var a=e[i++],o=e[i++],l=e[i++],c=e[i++],h=e[i++],u=e[i++],d=e[i++],f=e[i++],p=l>c?l:c,m=l>c?1:l/c,v=l>c?c/l:1,g=Math.abs(l-c)>.001;g?(t.translate(a,o),t.rotate(d),t.scale(m,v),t.arc(0,0,p,h,h+u,1-f),t.scale(1/m,1/v),t.rotate(-d),t.translate(-a,-o)):t.arc(a,o,p,h,h+u,1-f);break;case s.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case s.Z:t.closePath()}}}},x.CMD=s,x}),e("zrender/tool/transformPath",[qe,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,c,h,u,d=t.data,f=i.M,p=i.C,m=i.L,v=i.R,g=i.A,y=i.Q;for(c=0,h=0;c<d[se];){switch(n=d[c++],h=c,l=0,n){case f:l=1;break;case m:l=1;break;case p:l=3;break;case y:l=2;break;case g:{var x=e[4],_=e[5],b=o(e[0]*e[0]+e[1]*e[1]),w=o(e[2]*e[2]+e[3]*e[3]),M=s(-e[1]/w,e[0]/b);d[c+7]}d[c++]+=x,d[c++]+=_,d[c++]*=b,d[c++]*=w,d[c++]+=M,d[c++]+=M,c+=2,h=c;break;case v:S[0]=d[c++],S[1]=d[c++],r(S,S,e),d[h++]=S[0],d[h++]=S[1],S[0]+=d[c++],S[1]+=d[c++],r(S,S,e),d[h++]=S[0],d[h++]=S[1]}for(u=0;l>u;u++){var S=a[u];S[0]=d[c++],S[1]=d[c++],r(S,S,e),d[h++]=S[0],d[h++]=S[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[u],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/graphic/Displayable",[qe,a,"./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(a),n=t("./Style"),r=t("../Element"),o=t("./mixin/RectText");return e[xe]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[Le]();return n[q](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[xe].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[j](e,r),i.mixin(e,o),e}),e("zrender/contain/path",[qe,"../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=x[0];x[0]=x[1],x[1]=t}function n(t,e,n,r,a,o,s,l,c,h){if(h>e&&h>r&&h>o&&h>l||e>h&&r>h&&o>h&&l>h)return 0;var u=f.cubicRootAt(e,r,o,l,h,y);if(0===u)return 0;for(var d,p,m=0,v=-1,g=0;u>g;g++){var _=y[g],b=f.cubicAt(t,n,a,s,_);c>b||(0>v&&(v=f.cubicExtrema(e,r,o,l,x),x[1]<x[0]&&v>1&&i(),d=f.cubicAt(e,r,o,l,x[0]),v>1&&(p=f.cubicAt(e,r,o,l,x[1]))),m+=2==v?_<x[0]?e>d?1:-1:_<x[1]?d>p?1:-1:p>l?1:-1:_<x[0]?e>d?1:-1:d>l?1:-1)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var c=f.quadraticExtremum(e,n,a);if(c>=0&&1>=c){for(var h=0,u=f.quadraticAt(e,n,a,c),d=0;l>d;d++){var p=f.quadraticAt(t,i,r,y[d]);p>o||(h+=y[d]<c?e>u?1:-1:u>a?1:-1)}return h}var p=f.quadraticAt(t,i,r,y[0]);return p>o?0:e>a?1:-1}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var c=Math.abs(n-r);if(1e-4>c)return 0;if(1e-4>c%v){n=0,r=v;var h=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?h:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=v);for(var u=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var m=Math.atan2(s,p),h=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>Math.PI/2&&m<1.5*Math.PI&&(h=-h),u+=h)}}return u}function o(t,i,o,l,d){for(var f=0,v=0,g=0,y=0,x=0,_=0;_<t[se];){var b=t[_++];if(b===s.M&&_>1&&(o||(f+=p(v,g,y,x,l,d)),0!==f))return!0;switch(1==_&&(v=t[_],g=t[_+1],y=v,x=g),b){case s.M:y=t[_++],x=t[_++],v=y,g=x;break;case s.L:if(o){if(m(v,g,t[_],t[_+1],i,l,d))return!0}else f+=p(v,g,t[_],t[_+1],l,d)||0;v=t[_++],g=t[_++];break;case s.C:if(o){if(c.containStroke(v,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(v,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;v=t[_++],g=t[_++];break;case s.Q:if(o){if(h.containStroke(v,g,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(v,g,t[_++],t[_++],t[_],t[_+1],l,d)||0;v=t[_++],g=t[_++];break;case s.A:var w=t[_++],M=t[_++],S=t[_++],C=t[_++],T=t[_++],k=t[_++],A=(t[_++],1-t[_++]),z=Math.cos(T)*S+w,L=Math.sin(T)*C+M;_>1?f+=p(v,g,z,L,l,d):(y=z,x=L);var D=(l-w)*C/S+w;if(o){if(u.containStroke(w,M,C,T,T+k,A,i,D,d))return!0}else f+=a(w,M,C,T,T+k,A,D,d);v=Math.cos(T+k)*S+w,g=Math.sin(T+k)*C+M;break;case s.R:y=v=t[_++],x=g=t[_++];var I=t[_++],P=t[_++],z=y+I,L=x+P;if(o){if(m(y,x,z,x,i,l,d)||m(z,x,z,L,i,l,d)||m(z,L,y,L,i,l,d)||m(y,L,z,L,i,l,d))return!0}else f+=p(z,x,z,L,l,d),f+=p(y,L,y,x,l,d);break;case s.Z:if(o){if(m(v,g,y,x,i,l,d))return!0}else if(f+=p(v,g,y,x,l,d),0!==f)return!0;v=y,g=x}}return o||e(g,x)||(f+=p(v,g,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),c=t("./cubic"),h=t("./quadratic"),u=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),m=l.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("echarts/model/mixin/lineStyle",[qe,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[h,"width"],[f,"color"],[we],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[qe,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[we],["shadowColor"]])}}),e("echarts/model/mixin/itemStyle",[qe,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[f,"borderColor"],[h,"borderWidth"],[we],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[qe,"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[Re](Oe);return[this.getShallow("fontStyle")||e(i,"fontStyle"),this.getShallow("fontWeight")||e(i,"fontWeight"),(this.getShallow("fontSize")||e(i,"fontSize")||12)+"px",this.getShallow("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(Oe)||{};return i[Le](t,this[Ie](),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this[Ie](),e,n)}}}),e("echarts/component/tooltip/TooltipView",[qe,"./TooltipContent",O,We,"../../util/format",p,P],function(t){function e(t,e){if(!t||!e)return!1;var i=C.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function r(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function a(t,e,i,n){return{x:t,y:e,width:i,height:n}}function o(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function s(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 l(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,c=e[ze];switch(t){case v:o=e.x+l/2-n/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case fe:o=e.x+l/2-n/2,s=e.y+c+a;break;case"left":o=e.x-n-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2}return[o,s]}function c(t,e,i,r,a,o,c){var h=c[ke](),d=c[Te](),f=o&&o[Le]().clone();if(o&&f[u](o[be]),typeof t===U&&(t=t([e,i],a,f)),b[Y](t))e=z(t[0],h),i=z(t[1],d);else if(typeof t===ye&&o){var p=l(t,f,r.el);e=p[0],i=p[1]}else{var p=s(e,i,r.el,h,d);e=p[0],i=p[1]}r[n](e,i)}function h(t){var e=t[Ve],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type||"item"===i)}var d=t("./TooltipContent"),m=t(O),b=t(We),S=t("../../util/format"),C=t(p),z=C[M];t(P)[Ge]({type:"tooltip",_axisPointers:{},init:function(t,e){var i=new d(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._hide,this)},render:function(t,e,n){this.group[Ne](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastHover={};var r=this._tooltipContent;r[de](),r.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var a=this._crossText;a&&this.group.add(a);var o=this._api.getZr(),s=this._tryShow;o.off("click",s),o.off(i,s),o.off(ee,this._hide),"click"===t.get("triggerOn")?o.on("click",s,this):(o.on(i,s,this),o.on(ee,this._hide,this))},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,n=t[J],r=t.dataIndex,a=e.getSeriesByIndex(n),o=this._api;if(null==t.x||null==t.y){if(a||e[ae](function(t){h(t)&&!a&&(a=t)}),a){var s=a[He]();null==r&&(r=s.indexOfName(t.name));var l=s[T](r);if(l){var c=l[Le]().clone();c[u](l[be]);var d=c.x+c.width/2,f=c.y+c[ze]/2;this._tryShow({offsetX:d,offsetY:f,target:l,event:{}})}}}else o.getZr().handler.dispatch(i,{zrX:t.x,zrY:t.y})}},_prepareAxisTriggerData:function(t,e){var i={};return e[ae](function(t){if(h(t)){var e,n,r=t[Ve];"cartesian2d"===r.type?(e=r[I](),n=e.dim+e.index):(e=r[I](),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][re].push(t)}},this),i},_tryShow:function(t){var e=t[Ae],i=this._tooltipModel,n=i.get(oe),r=this._ecModel,a=this._api;if(i)if(e&&null!=e.dataIndex){var o=e[te]||r.getSeriesByIndex(e[J]),s=e.dataIndex,l=o[He]()[A](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,t)),a[le]({type:"showTip",from:this.uid,dataIndex:e.dataIndex,seriesIndex:e[J]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),a[le]({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){var r=t[Re]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Ae];if(o&&null!=o.dataIndex){var s=i.getSeriesByIndex(o[J]),l=o.dataIndex;this._showItemTooltipContent(s,l,n)}}this._showAxisPointer();var c=!0;b.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n.offsetX,n.offsetY];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);c=!1;var l=o[x],h=o.pointToData(s,!0);s=o[_](h);var u=o[I](),d=r.get("axis");"auto"===d&&(d=u.dim);var f=!1,p=this._lastHover;if("cross"===a)e(p.data,h)&&(f=!0),p.data=h;else{var m=b[X](l,d);p.data===h[m]&&(f=!0),p.data=h[m]}"cartesian2d"!==o.type||f?"polar"!==o.type||f||this._showPolarPointer(r,o,d,s):this._showCartesianPointer(r,o,d,s),"cross"!==a&&this._showSeriesTooltipContent(o,t[re],s,h,f)},this),c&&this._hide()},_showCartesianPointer:function(t,e,i,n){function o(i,n,a){var o="x"===i?r(n[0],a[0],n[0],a[1]):r(a[0],n[1],a[1],n[1]),s=l._getPointerElement(e,t,i,o);h?m[k](s,{shape:o},t):s.attr({shape:o})}function s(i,n,r){var o=e[Z](i),s=o.getBandWidth(),c=r[1]-r[0],u="x"===i?a(n[0]-s/2,r[0],s,c):a(r[0],n[1]-s/2,c,s),d=l._getPointerElement(e,t,i,u);h?m[k](d,{shape:u},t):d.attr({shape:u})}var l=this,c=t.get("type"),h="cross"!==c;if("cross"===c)o("x",n,e[Z]("y").getGlobalExtent()),o("y",n,e[Z]("x").getGlobalExtent()),this._updateCrossText(e,n,t);else{var u=e[Z]("x"===i?"y":"x"),d=u.getGlobalExtent();"cartesian2d"===e.type&&("line"===c?o:s)(i,n,d)}},_showPolarPointer:function(t,e,i,n){function a(i,n,a){var o,s=e.pointToCoord(n);if("angle"===i){var c=e.coordToPoint([a[0],s[1]]),h=e.coordToPoint([a[1],s[1]]);o=r(c[0],c[1],h[0],h[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var u=l._getPointerElement(e,t,i,o);d?m[k](u,{shape:o},t):u.attr({shape:o})}function s(i,n,r){var a,s=e[Z](i),c=s.getBandWidth(),h=e.pointToCoord(n),u=Math.PI/180;a="angle"===i?o(e.cx,e.cy,r[0],r[1],(-h[1]-c/2)*u,(-h[1]+c/2)*u):o(e.cx,e.cy,h[0]-c/2,h[0]+c/2,0,2*Math.PI);var f=l._getPointerElement(e,t,i,a);d?m[k](f,{shape:a},t):f.attr({shape:a})}var l=this,c=t.get("type"),h=e.getAngleAxis(),u=e.getRadiusAxis(),d="cross"!==c;if("cross"===c)a("angle",n,u[F]()),a(w,n,h[F]()),this._updateCrossText(e,n,t);else{var f=e[Z](i===w?"angle":w),p=f[F]();("line"===c?a:s)(i,n,p)}},_updateCrossText:function(t,e,i){var n=i[Re]("crossStyle"),r=n[Re](Oe),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new m.Text({style:{textAlign:"left",textBaseline:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[x];s=b.map(s,function(e,i){var n=t[Z](l[i]);return e=n.type===E||"time"===n.type?n.scale[H](e):S.addCommas(e[y](n.getPixelPrecision()))}),o[Me]({fill:r[De]()||n.get("color"),textFont:r[Ie](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[Q]=a.get(Q)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(Q),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[Re](c+"Style"),u="shadow"===c,d=h[u?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?u?"Sector":i===w?"Circle":"Line":u?"Rect":"Line";u?d[f]=null:d.fill=null;var v=s[l][i]=new m[p]({style:d,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_showSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,s=t[I](),l=n["x"===s.dim||s.dim===w?0:1],h=b.map(e,function(t){return{seriesIndex:t[J],dataIndex:t[He]().indexOfNearest(t.getDimensionsOnAxis(s.dim),l)}}),u=this._api,d=this._lastHover;if(d.payloadBatch&&!r&&this._api[le]({type:"downplay",batch:b.clone(d.payloadBatch)}),r||(this._api[le]({type:"highlight",batch:b.clone(h)}),d.payloadBatch=h),s&&a.get("showContent")){var f,p=a.get("formatter"),m=a.get(Se),v=b.map(e,function(t,e){return t[K](h[e].dataIndex)});o.show(a);var y=h[0].dataIndex;if(!r){if(this._ticket="",p){if(typeof p===ye)f=S.formatTpl(p,v);else if(typeof p===U){var x=this,_="axis_"+t.name+"_"+y,M=function(t,e){t===x._ticket&&(o.setContent(e),c(m,i[0],i[1],o,v,null,u))};x._ticket=_,f=p(v,_,M)}}else f=e[0][He]()[g](y)+"<br />"+b.map(e,function(t,e){return t.formatTooltip(h[e].dataIndex,!0)}).join("<br />");o.setContent(f)}c(m,i[0],i[1],o,v,null,u)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t[He](),a=r[A](e),o=this._tooltipModel,s=this._tooltipContent,l=a[Re]("tooltip");if(l.parentModel?l.parentModel.parentModel=o:l.parentModel=this._tooltipModel,l.get("showContent")){var h,u=l.get("formatter"),d=l.get(Se),f=t[K](e);if(u){if(typeof u===ye)h=S.formatTpl(u,f);else if(typeof u===U){var p=this,m="item_"+t.name+"_"+e,v=function(t,e){t===p._ticket&&(s.setContent(e),c(d,i.offsetX,i.offsetY,s,f,i[Ae],n))};p._ticket=m,h=u(f,m,v)}}else h=t.formatTooltip(e);s.show(l),s.setContent(h),c(d,i.offsetX,i.offsetY,s,f,i[Ae],n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&b.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[le]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&b.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay"))},dispose:function(t,e){var n=e.getZr();this._tooltipContent.hide(),n.off("click",this._tryShow),n.off(i,this._tryShow),n.off(ee,this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._hide)}})}),e("zrender/contain/text",[qe,a,"../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(c[i])return c[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[se];o>a;a++)r=Math.max(p.measureText(n[a],e).width,r);return h>u&&(h=0,c={}),h++,c[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[se],o=e(t,i),l=e("国",i),c=a*l,h=new f(0,0,o,c);switch(h.lineHeight=l,r){case fe:case"alphabetic":h.y-=l;break;case s:h.y-=l/2}switch(n){case"end":case"right":h.x-=h.width;break;case Ce:h.x-=h.width/2}return h}function n(t,e,i,n){var r=e.x,a=e.y,o=e[ze],s=e.width,l=i[ze],c=o/2-l/2,h="left";switch(t){case"left":r-=n,a+=c,h="right";break;case"right":r+=n+s,a+=c,h="left";break;case"top":r+=s/2,a-=n+l,h=Ce;break;case fe:r+=s/2,a+=o+n,h=Ce;break;case v:r+=s/2,a+=c,h=Ce;break;case"insideLeft":r+=n,a+=c,h="left";break;case"insideRight":r+=s-n,a+=c,h="right";break;case"insideTop":r+=s/2,a+=n,h=Ce;break;case"insideBottom":r+=s/2,a+=o-l-n,h=Ce;break;case"insideTopLeft":r+=n,a+=n,h="left";break;case"insideTopRight":r+=s-n,a+=n,h="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,h="right"}return{x:r,y:a,textAlign:h,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=d[Ze]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var a=(t+"").split("\n"),s=0,l=a[se];l>s;s++)a[s]=o(a[s],i,n,r);return a.join("\n")}function o(t,i,n,r){for(var a=0;;a++){var o=e(t,i);if(n>o||a>=r.maxIterations){t+=r.ellipsis;break}var s=0===a?l(t,n,r):Math.floor(t[se]*n/o);if(s<r.minCharacters){t="";break}t=t.substr(0,s)}return t}function l(t,e,i){for(var n=0,r=0,a=t[se];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var c={},h=0,u=5e3,d=t(a),f=t("../core/BoundingRect"),p={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=d.getContext();return i.font=e,i.measureText(t)
}};return p}),e("zrender/graphic/mixin/RectText",[qe,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===ye?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[be](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[xe]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){var c,h,d=s.textPosition,f=s.textDistance,p=s[Pe],v=s.textFont||s.font,g=s[m];o=o||n[Le](l,v,p,g);var y=this[be],x=this.invTransform;if(y&&(a.copy(r),a[u](y),r=a,i(t,x)),d instanceof Array)c=r.x+e(d[0],r.width),h=r.y+e(d[1],r[ze]),p=p||"left",g=g||"top";else{var _=n.adjustTextPositionOnRect(d,r,o,f);c=_.x,h=_.y,p=p||_[Pe],g=g||_[m]}t[Pe]=p,t[m]=g;var b=s.textFill,w=s.textStroke;b&&(t.fillStyle=b),w&&(t.strokeStyle=w),t.font=v,t.shadowColor=s.textShadowColor,t.shadowBlur=s.textShadowBlur,t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var M=l.split("\n"),S=0;S<M[se];S++)b&&t.fillText(M[S],c,h),w&&t.strokeText(M[S],c,h),h+=o.lineHeight;y&&i(t,y)}}},o}),e("zrender/vml/core",[qe,"../core/env"],function(t){function e(){if(!o){o=!0;var t=a.styleSheets;t[se]<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}if(!t("../core/env").canvasSupported){var i,n="urn:schemas-microsoft-com:vml",r=window,a=r.document,o=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",n),i=function(t){return a[G]("<zrvml:"+t+' class="zrvml">')}}catch(s){i=function(t){return a[G]("<"+t+' xmlns="'+n+'" class="zrvml">')}}return{doc:a,initVML:e,createNode:i}}}),e("zrender/core/curve",[qe,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>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),c=3*(i-t),h=t-a,u=l*l-3*s*c,d=l*c-9*s*h,f=c*c-3*l*h,p=0;if(e(u)&&e(d))if(e(l))o[0]=0;else{var m=-c/l;m>=0&&1>=m&&(o[p++]=m)}else{var v=d*d-4*u*f;if(e(v)){var g=d/u,m=-l/s+g,_=-g/2;m>=0&&1>=m&&(o[p++]=m),_>=0&&1>=_&&(o[p++]=_)}else if(v>0){var M=x(v),S=u*l+1.5*s*(-d+M),C=u*l+1.5*s*(-d-M);S=0>S?-y(-S,w):y(S,w),C=0>C?-y(-C,w):y(C,w);var m=(-l-(S+C))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var T=(2*u*l-3*s*d)/(2*x(u*u*u)),k=Math.acos(T)/3,A=x(u),z=Math.cos(k),m=(-l-2*A*z)/(3*s),_=(-l+A*(z+b*Math.sin(k)))/(3*s),L=(-l+A*(z-b*Math.sin(k)))/(3*s);m>=0&&1>=m&&(o[p++]=m),_>=0&&1>=_&&(o[p++]=_),L>=0&&1>=L&&(o[p++]=L)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,c=3*n-3*t,h=0;if(e(l)){if(i(s)){var u=-c/s;u>=0&&1>=u&&(o[h++]=u)}}else{var d=s*s-4*l*c;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=x(d),u=(-s+f)/(2*l),p=(-s-f)/(2*l);u>=0&&1>=u&&(o[h++]=u),p>=0&&1>=p&&(o[h++]=p)}}return h}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-o)*r+o,h=(l-s)*r+s,u=(h-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=u,a[4]=u,a[5]=h,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,c,h,u){var d,f,p,m,v,y=.005,b=1/0;M[0]=c,M[1]=h;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,l,w),m=g(M,S),b>m&&(d=w,b=m);b=1/0;for(var T=0;32>T&&!(_>y);T++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),m=g(S,M),f>=0&&b>m?(d=f,b=m):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),v=g(C,M),1>=p&&b>v?(d=p,b=v):y*=.5);return u&&(u[0]=n(t,i,a,s,d),u[1]=n(e,r,o,l,d)),x(b)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function h(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function u(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),c=t-a,h=0;if(e(s)){if(i(l)){var u=-c/l;u>=0&&1>=u&&(o[h++]=u)}}else{var d=l*l-4*s*c;if(e(d)){var u=-l/(2*s);u>=0&&1>=u&&(o[h++]=u)}else if(d>0){var f=x(d),u=(-l+f)/(2*s),p=(-l-f)/(2*s);u>=0&&1>=u&&(o[h++]=u),p>=0&&1>=p&&(o[h++]=p)}}return h}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 h,u=.005,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){S[0]=c(t,i,r,f),S[1]=c(e,n,a,f);var p=g(M,S);d>p&&(h=f,d=p)}d=1/0;for(var m=0;32>m&&!(_>u);m++){var v=h-u,y=h+u;S[0]=c(t,i,r,v),S[1]=c(e,n,a,v);var p=g(S,M);if(v>=0&&d>p)h=v,d=p;else{C[0]=c(t,i,r,y),C[1]=c(e,n,a,y);var b=g(C,M);1>=y&&d>b?(h=y,d=b):u*=.5}}return l&&(l[0]=c(t,i,r,h),l[1]=c(e,n,a,h)),x(d)}var m=t("./vector"),v=m[W],g=m.distSquare,y=Math.pow,x=Math.sqrt,_=1e-4,b=x(3),w=1/3,M=v(),S=v(),C=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:c,quadraticDerivativeAt:h,quadraticRootAt:u,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[qe,"./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[W](),c=e[W](),h=e[W](),u=2*Math.PI;return n.fromPoints=function(t,e,i){if(0!==t[se]){var n,o=t[0],s=o[0],l=o[0],c=o[1],h=o[1];for(n=1;n<t[se];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),c=r(c,o[1]),h=a(h,o[1]);e[0]=s,e[1]=c,i[0]=l,i[1]=h}},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)},n.fromCubic=function(t,e,n,o,s,l,c,h,u,d){var f,p,m,v,g,y=[],x=[],_=i.cubicExtrema,b=i.cubicAt,w=_(t,n,s,c,y);for(g=0;w>g;g++)y[g]=b(t,n,s,c,y[g]);for(w=_(e,o,l,h,x),g=0;w>g;g++)x[g]=b(e,o,l,h,x[g]);y.push(t,c),x.push(e,h),f=r.apply(null,y),p=a.apply(null,y),m=r.apply(null,x),v=a.apply(null,x),u[0]=f,u[1]=m,d[0]=p,d[1]=v},n.fromQuadratic=function(t,e,n,o,s,l,c,h){var u=i.quadraticExtremum,d=i.quadraticAt,f=a(r(u(t,n,s),1),0),p=a(r(u(e,o,l),1),0),m=d(t,n,s,f),v=d(e,o,l,p);c[0]=r(t,s,m),c[1]=r(e,l,v),h[0]=a(t,s,m),h[1]=a(e,l,v)},n.fromArc=function(t,i,n,r,a,d,f,p,m){var v=e.min,g=e.max,y=Math.abs(a-d);if(1e-4>y%u&&y>1e-4)return p[0]=t-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,c[0]=s(d)*n+t,c[1]=o(d)*r+i,v(p,l,c),g(m,l,c),a%=u,0>a&&(a+=u),d%=u,0>d&&(d+=u),a>d&&!f?d+=u:d>a&&f&&(a+=u),f){var x=d;d=a,a=x}for(var _=0;d>_;_+=Math.PI/2)_>a&&(h[0]=s(_)*n+t,h[1]=o(_)*r+i,v(p,h,p),g(m,h,m))},n}),e("zrender/graphic/Style",[qe],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[xe]={constructor:e,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(e,i){for(var n=this.fill,r=this[f],a=0;a<t[se];a++){var o=t[a];null!=this[o]&&(e[o]=this[o])}if(null!=r){var s=this[h];e[h]=s/(this.strokeNoScale&&i&&i.getLineScale?i.getLineScale():1)}null!=n&&(e.fillStyle=n.canvasGradient?n.canvasGradient:n),null!=r&&(e.strokeStyle=r.canvasGradient?r.canvasGradient:r),null!=this[we]&&(e.globalAlpha=this[we])},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===ye?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};var i,n,r=e[xe];for(n=0;n<t[se];n++)i=t[n],i in r||(r[i]=null);return e}),e("zrender/Element",[qe,"./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[xe]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case d:e=0;break;case"vertical":t=0}var i=this[be];i||(i=this[be]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if(t===Se||"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[pe]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[pe]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===ye)this.attrKV(t,e);else if(a[ue](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[se];i++)t[D].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[se];i++)t[D].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(o,r),a.mixin(o,n),a.mixin(o,i),o}),e("echarts/model/mixin/makeStyleMapper",[qe,We],function(t){var e=t(We);return function(t){for(var i=0;i<t[se];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[se];r++){var a=t[r][1];if(!(i&&e[X](i,a)>=0)){var o=this.getShallow(a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Transformable",[qe,"../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[Se]||(this[Se]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[xe];s[be]=null,s.needLocalTransform=function(){return e(this.rotation)||e(this[Se][0])||e(this[Se][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this[c],e=t&&t[be],n=this.needLocalTransform(),a=this[be];return n||e?(a=a||i[W](),n?this.getLocalTransform(a):r(a),e&&(n?i.mul(a,t[be],a):i.copy(a,t[be])),this[be]=a,this.invTransform=this.invTransform||i[W](),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[Se];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[be];e&&t[be](e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return s.decomposeTransform=function(){if(this[be]){var t=this[c],n=this[be];t&&t[be]&&(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[Se],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.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[u](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[be];return r&&n[u](i,i,r),i},o}),e("zrender/mixin/Animatable",[qe,"../animation/Animator",a,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(a),n=i.isString,r=i.isFunction,o=i[ue],s=t("../core/log"),l=function(){this.animators=[]};return l[xe]={constructor:l,animate:function(t,n){var r,a=!1,o=this,l=this.__zr;if(t){var c=t.split("."),h=o;a="shape"===c[0];for(var u=0,d=c[se];d>u;u++)h&&(h=h[c[u]]);h&&(r=h)}else r=o;if(!r)return void s('Property "'+t+'" is not existed in element '+o.id);var f=o.animators,p=new e(r,n);return p.during(function(){o.dirty(a)}).done(function(){f[ne](i[X](f,p),1)}),f.push(p),l&&l[D].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[se],n=0;i>n;n++)e[n].stop(t);return e[se]=0,this},animateTo:function(t,e,i,a,o){function s(){c--,c||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(),c=l[se];c||o&&o();for(var h=0;h<l[se];h++)l[h].done(s).start(a)},_animateToShallow:function(t,e,n,r,a){var s={},l=0;for(var c in n)if(null!=e[c])o(n[c])&&!i.isArrayLike(n[c])?this._animateToShallow(t?t+"."+c:c,e[c],n[c],r,a):(s[c]=n[c],l++);else if(null!=n[c])if(t){var h={};h[t]={},h[t][c]=n[c],this.attr(h)}else this.attr(c,n[c]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(a||0),this}},l}),e("echarts/component/dataZoom/AxisProxy",[qe,We,p],function(t){function e(t,e){var i=[Number.MAX_VALUE,Number.MIN_VALUE];return o(e,function(e){var n=e[He]();n&&o(e.getDimensionsOnAxis(t),function(t){var e=n[B](t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){var r=[0,100],l=t[ve],c=[l.start,l.end],h=[l.startValue,l.endValue],u=["floor","ceil"];return o([0,1],function(t){var o,s=h[t],l=!0;n(s)&&(o=c[t],n(o)&&(o=r[t]),s=a.linearMap(o,r,e,!0),l=!1),i&&(s=Math[u[t]](s)),l&&(o=a.linearMap(s,e,r,!0)),h[t]=s,c[t]=o}),{valueWindow:s(h),percentWindow:s(c)}}function n(t){return isNaN(t)||null==t}var r=t(We),a=t(p),o=r.each,s=a.asc,c=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._backup,this._valueWindow,this._percentWindow,this._dataExtent,this[l]=n,this._model=i};return c[xe]={constructor:c,hostedBy:function(t){return this._model===t},backup:function(t,e){t===this._model&&(this._backup=e)},getBackup:function(){return r.clone(this._backup)},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[];return this[l][ae](function(e){this._axisIndex===e.get(this._dimName+"AxisIndex")&&t.push(e)},this),t},getAxisModel:function(){return this[l][V](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[l],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?w:"angle");var o;return n[me](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},reset:function(t){if(t===this._model){var n=this._dimName,r=this.getAxisModel(),a=r.get("type")===E,o=this.getTargetSeriesModels(),s=e(n,o),l=i(t,s,a);this._dataExtent=s.slice(),this._valueWindow=l.valueWindow.slice(),this._percentWindow=l.percentWindow.slice()}},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._model){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,s=this.getOtherAxisModel();t.get("$fromToolbox")&&s&&s.get("type")===E&&(r="empty"),o(n,function(t){var n=t[He]();n&&o(t.getDimensionsOnAxis(i),function(i){"empty"===r?t.setData(n.map(i,function(t){return e(t)?t:0/0})):n.filterSelf(i,e)})})}}},c}),e("echarts/scale/Ordinal",[qe,We,"./Scale"],function(t){var e=t(We),i=t("./Scale"),n=i[xe],r=i[ce]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[se]-1]},contain:function(t){return n[q].call(this,t)&&null!=this._data[t]},normalize:function(t){return typeof t===ye&&(t=e[X](this._data,t)),n.normalize.call(this,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[W]=function(){return new r},r}),e("zrender/core/log",[qe,"../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",[qe,"./Clip","../tool/color",a],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 o(t,e,i,r,a){var o=t[se];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][se],s=0;o>s;s++)for(var c=0;l>c;c++)r[s][c]=n(t[s][c],e[s][c],i)}function s(t,e,i){var n=t[se],r=e[se];if(n!==r){var a=n>r;if(a)t[se]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o]))}}function l(t,e,i){if(t===e)return!0;var n=t[se];if(n!==e[se])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][se],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function c(t,e,i,n,r,a,o,s,l){var c=t[se];if(1==l)for(var u=0;c>u;u++)s[u]=h(t[u],e[u],i[u],n[u],r,a,o);else for(var d=t[0][se],u=0;c>u;u++)for(var f=0;d>f;f++)s[u][f]=h(t[u][f],e[u][f],i[u][f],n[u][f],r,a,o)}function h(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 u(t){if(g(t)){var e=t[se];if(g(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function d(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t,e,i,a,u){var f=t._getter,v=t._setter,y="spline"===e,x=a[se];if(x){var _,b=a[0].value,w=g(b),M=!1,S=!1,C=w&&g(b[0])?2:1;a.sort(function(t,e){return t.time-e.time}),_=a[x-1].time;for(var T=[],k=[],A=a[0].value,z=!0,L=0;x>L;L++){T.push(a[L].time/_);var D=a[L].value;if(w&&l(D,A,C)||!w&&D===A||(z=!1),A=D,typeof D==ye){var I=m.parse(D);I?(D=I,M=!0):S=!0}k.push(D)}if(!z){if(w){for(var P=k[x-1],L=0;x-1>L;L++)s(k[L],P,C);s(f(t._target,u),P,C)}var O,R,B,E,Z,V,N=0,G=0;if(M)var F=[0,0,0,0];var H=function(t,e){var i;if(G>e){for(O=Math.min(N+1,x-1),i=O;i>=0&&!(T[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=N;x>i&&!(T[i]>e);i++);i=Math.min(i-1,x-2)}N=i,G=e;var a=T[i+1]-T[i];if(0!==a)if(R=(e-T[i])/a,y)if(E=k[i],B=k[0===i?i:i-1],Z=k[i>x-2?x-1:i+1],V=k[i>x-3?x-1:i+2],w)c(B,E,Z,V,R,R*R,R*R*R,f(t,u),C);else{var s;if(M)s=c(B,E,Z,V,R,R*R,R*R*R,F,1),s=d(F);else{if(S)return r(E,Z,R);s=h(B,E,Z,V,R,R*R,R*R*R)}v(t,u,s)}else if(w)o(k[i],k[i+1],R,f(t,u),C);else{var s;if(M)o(k[i],k[i+1],R,F,1),s=d(F);else{if(S)return r(k[i],k[i+1],R);s=n(k[i],k[i+1],R)}v(t,u,s)}},W=new p({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:H,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var p=t("./Clip"),m=t("../tool/color"),v=t(a),g=v.isArrayLike,y=Array[xe].slice,x=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 x[xe]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:u(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[se]=0;for(var t=this._doneList,e=t[se],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=f(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[D]&&this[D].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[se];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[D],n=0;n<e[se];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[se]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},x}),e("echarts/coord/cartesian/Cartesian",[qe,We],function(t){function e(t){return this._axes[t]}var i=t(We),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[xe]={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[_e](),i[Fe](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[se];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("zrender/animation/Clip",[qe,"./easing"],function(t){function e(t){this._target=t[Ae],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[xe]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==ye?i[n]:n,a=typeof r===U?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/cartesian/axisLabelInterval",[qe,We,"../axisHelper"],function(t){var e=t(We),i=t("../axisHelper");return function(t){var n=t.model,r=n[Re]("axisLabel"),a=r.get("interval");return t.type!==E||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t.dataToCoord,t),n.getFormattedLabels(),r[Re](Oe)[Ie](),t.isHorizontal())}}),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/coord/Axis",[qe,"../util/number",We],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(We),a=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return a[xe]={constructor:a,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[q](this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[F](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){t=this.scale.normalize(t);var r=this[F](),a=this.scale;return this.onBand&&a.type===R&&e(r,a.count()),n(t,[0,1],r,i)},coordToData:function(t,i){var r=this[F]();this.onBand&&e(r,this.scale.count());var a=n(t,r,[0,1],i);return this.scale.scale(a)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t[se];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[se];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this[F](),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[F](),i=e[1]-e[0]+(this.onBand?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},a}),e("zrender/config",[],function(){var t=1;typeof window!==o&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,c=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),c=(t*n-i*e)/(t-i);var h=l*a-o+c,u=h*h/(l*l+1);return s/2*s/2>=u}}}),e("zrender/contain/util",[qe],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/cubic",[qe,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c,h,u){if(0===c)return!1;var d=c;if(u>i+d&&u>r+d&&u>o+d&&u>l+d||i-d>u&&r-d>u&&o-d>u&&l-d>u||h>t+d&&h>n+d&&h>a+d&&h>s+d||t-d>h&&n-d>h&&a-d>h&&s-d>h)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,h,u,null);return d/2>=f}}}),e("zrender/contain/quadratic",[qe,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c){if(0===s)return!1;var h=s;if(c>i+h&&c>r+h&&c>o+h||i-h>c&&r-h>c&&o-h>c||l>t+h&&l>n+h&&l>a+h||t-h>l&&n-h>l&&a-h>l)return!1;var u=e.quadraticProjectPoint(t,i,n,r,a,o,l,c,null);return h/2>=u}}}),e("zrender/contain/arc",[qe,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,c,h){if(0===l)return!1;var u=l;c-=t,h-=n;var d=Math.sqrt(c*c+h*h);if(d-u>r||r>d+u)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(h,c);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e),l=s*(i-t)+t;return l>r?o:0}}),e("echarts/coord/cartesian/AxisModel",[qe,"../../model/Component",We,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?E:"value")}var i=t("../../model/Component"),n=t(We),r=t("../axisModelCreator"),a=i[ce]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[ve].scale=!t},setMin:function(t){this[ve].min=t},setMax:function(t){this[ve].max=t}});n.merge(a[xe],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("zrender/graphic/helper/roundRect",[qe],function(){return{buildPath:function(t,e){var i,r,a,o,s=e.x,l=e.y,c=e.width,h=e[ze],u=e.r;"number"==typeof u?i=r=a=o=u:u instanceof Array?1===u[se]?i=r=a=o=u[0]:2===u[se]?(i=a=u[0],r=o=u[1]):3===u[se]?(i=u[0],r=o=u[1],a=u[2]):(i=u[0],r=u[1],a=u[2],o=u[3]):i=r=a=o=0;var d;i+r>c&&(d=i+r,i*=c/d,r*=c/d),a+o>c&&(d=a+o,a*=c/d,o*=c/d),r+a>h&&(d=r+a,r*=h/d,a*=h/d),i+o>h&&(d=i+o,i*=h/d,o*=h/d),t[n](s+i,l),t.lineTo(s+c-r,l),0!==r&&t.quadraticCurveTo(s+c,l,s+c,l+r),t.lineTo(s+c,l+h-a),0!==a&&t.quadraticCurveTo(s+c,l+h,s+c-a,l+h),t.lineTo(s+o,l+h),0!==o&&t.quadraticCurveTo(s,l+h,s,l+h-o),t.lineTo(s,l+i),0!==i&&t.quadraticCurveTo(s,l,s+i,l)}}}),e("zrender/core/LRU",[qe],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[xe];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[he]=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[xe];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[he](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[he](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/poly",[qe,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,r,a){var o=r.points,s=r.smooth;if(o&&o[se]>=2){if(s&&"spline"!==s){var l=i(o,s,a,r.smoothConstraint);t[n](o[0][0],o[0][1]);for(var c=o[se],h=0;(a?c:c-1)>h;h++){var u=l[2*h],d=l[2*h+1],f=o[(h+1)%c];t.bezierCurveTo(u[0],u[1],d[0],d[1],f[0],f[1])}}else{"spline"===s&&(o=e(o,a)),t[n](o[0][0],o[0][1]);for(var h=1,p=o[se];p>h;h++)t.lineTo(o[h][0],o[h][1])}a&&t.closePath()}}}}),e("zrender/Handler",[qe,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t){return"_"+t+"Handler"}function n(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function r(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t._findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[Ae],a,r.event)}}function a(t){for(var i=p[N](m),n=i[se];n--;){var r=i[n];t[e(r)]=h.bind(_[r],t)}}function o(t,e,i){if(t[t.rectHover?"rectContain":q](e,i)){for(var n=t[c];n;){if(n.clipPath&&!n.clipPath[q](e,i))return!1;n=n[c]}return!0}return!1}var s=t("./core/env"),l=t("./core/event"),h=t("./core/util"),u=t("./mixin/Draggable"),d=t("./core/GestureMgr"),f=t("./mixin/Eventful"),p=["click","dblclick","mousewheel",i,ee,"mouseup","mousedown"],m=["touchstart","touchend","touchmove"],v=300,g=l.addEventListener,y=l.removeEventListener,x=l.normalizeEvent,_={mousemove:function(t){t=x(this.root,t);var e=t.zrX,n=t.zrY,r=this._findHover(e,n,null),a=this._hovered;this._hovered=r,this.root.style.cursor=r?r.cursor:this._defaultCursorStyle,a&&r!==a&&a.__zr&&this._dispatchProxy(a,ee,t),this._dispatchProxy(r,i,t),r&&r!==a&&this._dispatchProxy(r,ie,t)},mouseout:function(t){t=x(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e.parentNode}this._dispatchProxy(this._hovered,ee,t),this[oe]("globalout",{event:t})},touchstart:function(t){t=x(this.root,t),this._lastTouchMoment=new Date,r(this,t,"start"),this._mousemoveHandler(t),this._mousedownHandler(t)},touchmove:function(t){t=x(this.root,t),r(this,t,"change"),this._mousemoveHandler(t)},touchend:function(t){t=x(this.root,t),r(this,t,"end"),this._mouseupHandler(t),+new Date-this._lastTouchMoment<v&&this._clickHandler(t)
}};h.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){_[t]=function(e){e=x(this.root,e);var i=this._findHover(e.zrX,e.zrY,null);this._dispatchProxy(i,t,e)}});var b=function(t,i,n){f.call(this),this.root=t,this.storage=i,this.painter=n,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new d,a(this),s.os.tablet||s.os.phone?(h.each(m,function(i){g(t,i,this[e(i)])},this),g(t,ee,this._mouseoutHandler)):(h.each(p,function(i){g(t,i,this[e(i)])},this),g(t,"DOMMouseScroll",this._mousewheelHandler)),u.call(this)};return b[xe]={constructor:b,resize:function(){this._hovered=null},dispatch:function(t,i){var n=this[e(t)];n&&n(i)},dispose:function(){for(var t=this.root,i=p[N](m),n=0;n<i[se];n++){var r=i[n];y(t,r,this[e(r)])}y(t,"DOMMouseScroll",this._mousewheelHandler),this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,e,i){for(var r="on"+e,a=n(e,t,i),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[oe](e,a),o=o[c],!a.cancelBubble););a.cancelBubble||(this[oe](e,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==U&&t[r].call(t,a),t[oe]&&t[oe](e,a)}))},_findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r=n[se]-1;r>=0;r--)if(!n[r].silent&&n[r]!==i&&o(n[r],t,e))return n[r]}},h.mixin(b,f),h.mixin(b,u),b}),e("zrender/Storage",[qe,"./core/util","./container/Group"],function(t){function e(t,e){return t[Q]===e[Q]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[Q]-e[Q]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[xe]={constructor:r,getDisplayList:function(t){return t&&this.updateDisplayList(),this._displayList},updateDisplayList:function(){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t[se];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[se]=this._displayListLen;for(var n=0,r=i[se];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[pe]){t.beforeUpdate(),t[de](),t.afterUpdate();var i=t.clipPath;if(i&&(i[c]=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;r<n[se];r++){var a=n[r];a.__dirty=t.__dirty||a.__dirty,this._updateAndAddDisplayable(a,e)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof n&&t.addChildrenToStorage(this),this.addToMap(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[se];e++){var r=this._roots[e];r instanceof n&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[se];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==ye?this._elements[t]:t;var s=i[X](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[ne](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/animation/Animation",[qe,a,"../core/event","./Animator"],function(t){var e=t(a),i=t("../core/event").Dispatcher,n=typeof window!==o&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return s[xe]={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[D]=this;for(var e=t.getClips(),i=0;i<e[se];i++)this.addClip(e[i])},removeClip:function(t){var i=e[X](this._clips,t);i>=0&&this._clips[ne](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[se];i++)this.removeClip(e[i]);t[D]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[se],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[se];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[oe]("frame",e),this.stage[de]&&this.stage[de]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!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(s,i),s}),e("zrender/Painter",[qe,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[ge]!==U||typeof t.refresh!==U?!1:!0:!1}function n(t){t.__unusedCount++}function a(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function o(t,e,i){return m.copy(t[Le]()),t[be]&&m[u](t[be]),v.width=e,v[ze]=i,!m.intersect(v)}function s(t,e){if(!t||!e||t[se]!==e[se])return!0;for(var i=0;i<t[se];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var i=0;i<t[se];i++){var n,a=t[i];a[be]&&(n=a[be],e[be](n[0],n[1],n[2],n[3],n[4],n[5]));var o=a.path;o.beginPath(e),a[r](o,a.shape),e.clip(),a[be]&&(n=a.invTransform,e[be](n[0],n[1],n[2],n[3],n[4],n[5]))}}var c=t("./config"),h=t("./core/util"),d=t("./core/log"),f=t("./core/BoundingRect"),p=t("./Layer"),m=new f(0,0,0,0),v=new f(0,0,0,0),g=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||c.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,n){var a=t.width,o=t[ze];this._width=a,this._height=o;var s=new p(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var a=this._getWidth(),o=this._getHeight();this._width=a,this._height=o;var l=document[G]("div");this._domRoot=l;var h=l.style;h[Se]="relative",h.overflow="hidden",h.width=this._width+"px",h[ze]=this._height+"px",t.appendChild(l),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return g[xe]={constructor:g,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[se];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a.refresh&&a.refresh()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,r,c,h=this._width,u=this._height;this.eachBuildinLayer(n);for(var f=null,p=0,m=t[se];m>p;p++){var v=t[p],g=this._singleCanvas?0:v[Q];if(r!==g&&(r=g,i=this.getLayer(r),i.isBuildin||d("ZLevel "+r+" has been used by unkown layer "+i.id),c=i.ctx,i.__unusedCount=0,(i.__dirty||e)&&i.clear()),(i.__dirty||e)&&!v.invisible&&0!==v.style[we]&&v.scale[0]&&v.scale[1]&&(!v.culling||!o(v,h,u))){var y=v.__clipPaths;s(y,f)&&(f&&c.restore(),y&&(c.save(),l(y,c)),f=y),v.beforeBrush&&v.beforeBrush(c),v.brush(c,!1),v.afterBrush&&v.afterBrush(c)}v.__dirty=!1}f&&c.restore(),this.eachBuildinLayer(a)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new p("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&h.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[se],o=null,s=-1,l=this._domRoot;if(n[t])return void d("ZLevel "+t+" has been used already");if(!i(e))return void d("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[ne](s+1,0,t),o){var c=o.dom;c.nextSibling?l.insertBefore(e.dom,c.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[se];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[se];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[se];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t[se];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[Q],s=e[o];if(s){if(s.elCount++,s.__dirty)continue;s.__dirty=a.__dirty}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?h.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&h.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[ne](h[X](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[ze]=e+"px";for(var n in this._layers)this._layers[n][ge](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 p("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t.backgroundColor,e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n[se];r++){var a=n[r];a.invisible||(a.beforeBrush&&a.beforeBrush(i),a.brush(i,!1),a.afterBrush&&a.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientHeight||e(i[ze])||e(t.style[ze]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[G]("canvas"),s=o.getContext("2d");o.width=n*a,o[ze]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[Se],rotation:i.rotation,scale:i.scale};i[Se]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s);var c=t("./graphic/Image"),h=new c({id:e,style:{x:0,y:0,image:o}});return null!=l[Se]&&(h[Se]=i[Se]=l[Se]),null!=l.rotation&&(h.rotation=i.rotation=l.rotation),null!=l.scale&&(h.scale=i.scale=l.scale),h},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},g}),e("zrender/graphic/helper/smoothSpline",[qe,"../../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[se],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 c,h,u,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,m=t[f%r];n?(c=t[(f-1+r)%r],h=t[(f+1)%r],u=t[(f+2)%r]):(c=t[0===f?f:f-1],h=t[f>r-2?r-1:f+1],u=t[f>r-3?r-1:f+2]);var v=p*p,g=p*v;a.push([e(c[0],m[0],h[0],u[0],p,v,g),e(c[1],m[1],h[1],u[1],p,v,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[qe,"../../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,c){var h,u,d,f,p=[],m=[],v=[],g=[];if(c){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,x=t[se];x>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,c[0]),n(f,f,c[1])}for(var y=0,x=t[se];x>y;y++){var _=t[y];if(l)h=t[y?y-1:x-1],u=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}h=t[y-1],u=t[y+1]}e.sub(m,u,h),r(m,m,s);var b=a(_,h),w=a(_,u),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var S=o([],_,v),C=o([],_,g);c&&(n(S,S,d),i(S,S,f),n(C,C,d),i(C,C,f)),p.push(S),p.push(C)}return l&&p.push(p.shift()),p}}),e("zrender/core/event",[qe,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[X]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=0,l=0;i.pageX||i.pageY?(s=i.pageX,l=i.pageY):(s=i.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,l=i.clientY+document.body.scrollTop+document.documentElement.scrollTop);var c=e(t),h=c.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),u=c.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);i.zrX=s-u,i.zrY=l-h,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){s?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){s?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),s=typeof window!==o&&!!window.addEventListener,l=s?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:r,stop:l,Dispatcher:a}}),e("zrender/mixin/Draggable",[qe],function(){function t(){this.on("mousedown",this._dragStart,this),this.on(i,this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[xe]={constructor:t,_dragStart:function(t){var e=t[Ae];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this._findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("zrender/core/GestureMgr",[qe],function(){function t(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var i=function(){this._track=[]};i[xe]={constructor:i,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[se]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[se];a>r;r++){var o=i[r];n.points.push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in n)if(n.hasOwnProperty(e)){var i=n[e](this._track,t);if(i)return i}}};var n={pinch:function(i,n){var r=i[se];if(r){var a=(i[r-1]||{}).points,o=(i[r-2]||{}).points||a;if(o&&o[se]>1&&a&&a[se]>1){var s=t(a)/t(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=e(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:i[0][Ae],event:n}}}}};return i}),e("zrender/Layer",[qe,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[G](e),a=i[ke](),o=i[Te](),s=r.style;return s[Se]="absolute",s.left=0,s.top=0,s.width=a+"px",s[ze]=o+"px",r.width=a*n,r[ze]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===ye?s=i(t,"canvas",a,o):n[ue](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return a[xe]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("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[ze]=e+"px",n.width=t*i,n[ze]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[ze]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[ze],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i.restore()),o){var c=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(c,0,0,n/l,r/l),i.restore()}}},a}),e("echarts/preprocessor/helper/compatStyle",[qe,We],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[L],a=e[S];r&&r[n]&&(t[n]=t[n]||{},t[n][L]?i.merge(t[n][L],r[n]):t[n][L]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][S]?i.merge(t[n][S],a[n]):t[n][S]=a[n],a[n]=null)})}var i=t(We),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){e(t);var n=t.data;if(n){for(var r=0;r<n[se];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[se];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[se];r++)i[Y](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}),e("echarts/chart/helper/createListFromArray",[qe,"../../data/List","../../data/helper/completeDimensions",We,"../../util/model"],function(t){function e(t){for(var e=0;e<t[se]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!l[Y](h(i))}function n(t,e,n){t=t||[];var r=d[e.get(Ve)](t,e,n),s=r[x],l=r.categoryAxisModel,c=s[0].type===R?0:s[1].type===R?1:-1,f=new o(s,e),p=a(r,t),m=l&&i(t)?function(t,e,i,n){return n===c?i:u(h(t),s[n])}:function(t,e,i,n){var r=h(t);return u(r&&r[n],s[n])};return f.initData(t,p,m),f}function r(t){return t!==E&&"time"!==t}function a(t,e){var i=[];if(t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[se];if(l[Y](e[0])&&e[0][se]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][0]]}else i=n.slice(0)}}return i}var o=t("../../data/List"),s=t("../../data/helper/completeDimensions"),l=t(We),c=t("../../util/model"),h=c.getDataItemValue,u=c.converDataValue,d={cartesian2d:function(t,e,i){var n=i[V]("xAxis",e.get("xAxisIndex")),a=i[V]("yAxis",e.get("yAxisIndex")),o=n.get("type"),l=a.get("type"),c=l===E,h=o===E,u=[{name:"x",type:h?R:"float",stackable:r(o)},{name:"y",type:c?R:"float",stackable:r(l)}];return s(u,t,["x","y","z"]),{dimensions:u,categoryAxisModel:h?n:c?a:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,a=function(t){return t.get("polarIndex")===n},o=i.findComponents({mainType:"angleAxis",filter:a})[0],l=i.findComponents({mainType:"radiusAxis",filter:a})[0],c=l.get("type")===E,h=o.get("type")===E,u=[{name:"radius",type:c?R:"float",stackable:r(l.get("type"))},{name:"angle",type:h?R:"float",stackable:r(o.get("type"))}];return s(u,t,[w,"angle","value"]),{dimensions:u,categoryAxisModel:h?o:c?l:null}},geo:function(t){return{dimensions:s([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/data/List",[qe,"../model/Model","./DataDiffer",We,"../util/model"],function(t){function e(t){return u[Y](t)||(t=[t]),t}var i=o,n=typeof window===o?global:window,r=typeof n.Float64Array===i?Array:n.Float64Array,a=typeof n.Int32Array===i?Array:n.Int32Array,s={"float":r,"int":a,ordinal:Array,number:Array,time:Array},c=t("../model/Model"),h=t("./DataDiffer"),u=t(We),d=t("../util/model"),f=u[ue],p=["stackedOn","_nameList","_idList","_rawData"],m=function(t,e,i){u.each(p[N](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},v=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[se];r++){var a,o={};typeof t[r]===ye?(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[x]=n,this._dimensionInfos=i,this[te]=e,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData},y=v[xe];y.type="list",y.getDimension=function(t){return isNaN(t)||(t=this[x][t]||t),t},y.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},y.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[x],o=t[se],l=this._dimensionInfos,c=[],h={};e=e||[];for(var f=0;f<a[se];f++){var p=l[a[f]],m=s[p.type];n[a[f]]=new m(o)}i=i||function(t,e,i,n){var r=d.getDataItemValue(t);return d.converDataValue(u[Y](r)?r[n]:r,l[e])};for(var v=0;v<t[se];v++){for(var g=t[v],y=0;y<a[se];y++){var _=a[y],b=n[_];b[v]=i(g,_,v,y)}r.push(v)}for(var f=0;f<t[se];f++){var w="";e[f]||(e[f]=t[f].name,w=t[f].id);var M=e[f]||"";!w&&M&&(h[M]=h[M]||0,w=M,h[M]>0&&(w+="__ec__"+h[M]),h[M]++),w&&(c[f]=w)}this._nameList=e,this._idList=c},y.count=function(){return this.indices[se]},y.get=function(t,e,i){var n=this._storage,r=this.indices[e],a=n[t]&&n[t][r],o=this._dimensionInfos[t];if(i&&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},y.getValues=function(t,e,i){var n=[];u[Y](t)||(i=e,e=t,t=this[x]);for(var r=0,a=t[se];a>r;r++)n.push(this.get(t[r],e,i));return n},y.hasValue=function(t){for(var e=this[x],i=this._dimensionInfos,n=0,r=e[se];r>n;n++)if(i[e[n]].type!==R&&isNaN(this.get(e[n],t)))return!1;return!0},y[B]=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,c=this.count();c>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]},y.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},y[X]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[se];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},y.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[se];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},y.indexOfNearest=function(t,e,i){u[Y](t)||(t=t?[t]:[]);var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=t[se];l>s;s++)for(var c=0,h=this.count();h>c;c++){var d=Math.abs(this.get(t[s],c,i)-e);a>=d&&(a=d,o=c)}return o}return-1},y.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},y[g]=function(t){return this._nameList[this.indices[t]]||""},y.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},y.each=function(t,i,n,r){typeof t===U&&(r=n,n=i,i=t,t=[]),t=u.map(e(t),this.getDimension,this);var a=[],o=t[se],s=this.indices;r=r||this;for(var l=0;l<s[se];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var c=0;o>c;c++)a[c]=this.get(t[c],l,n);a[c]=l,i.apply(r,a)}},y.filterSelf=function(t,i,n,r){typeof t===U&&(r=n,n=i,i=t,t=[]),t=u.map(e(t),this.getDimension,this);var a=[],o=[],s=t[se],l=this.indices;r=r||this;for(var c=0;c<l[se];c++){var h;if(1===s)h=i.call(r,this.get(t[0],c,n),c);else{for(var d=0;s>d;d++)o[d]=this.get(t[d],c,n);o[d]=c,h=i.apply(r,o)}h&&a.push(l[c])}return this.indices=a,this._extent={},this},y[b]=function(t,e,i,n){typeof t===U&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},y.map=function(t,i){t=u.map(e(t),this.getDimension,this);var n=this[x],r=new v(u.map(n,this.getDimensionInfo,this),this[te]),a=r.indices=this.indices;m(r,this,this._wrappedMethods);for(var o=r._storage={},s=this._storage,l=0;l<n[se];l++){var c=n[l],h=s[c];o[c]=u[X](t,c)>=0?new h.constructor(s[c][se]):s[c]}var d=[];return this.each(t,function(){var e=arguments[arguments[se]-1],n=i&&i.apply(this,arguments);if(null!=n){"number"==typeof n&&(d[0]=n,n=d);for(var r=0;r<n[se];r++){var s=t[r],l=o[s],c=a[e];l&&(l[c]=n[r])}}}),r};var _=new c(null);y[A]=function(t,e){var i,n=this[te];return t=this.indices[t],i=e?new c(null,n):_,i[ve]=this._rawData[t],i.parentModel=n,i[l]=n[l],i},y.diff=function(t){var e=this._idList,i=t&&t._idList;return new h(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},y.getVisual=function(t){var e=this._visual;return e&&e[t]},y.setVisual=function(t,e){if(f(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},y[z]=function(t){return this._itemLayouts[t]},y.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?u[ce](this._itemLayouts[t]||{},e):e},y[C]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},y.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,f(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var w=function(t){t[J]=this[J],t.dataIndex=this.dataIndex};return y.setItemGraphicEl=function(t,e){var i=this[te];e&&(e.dataIndex=t,e[J]=i&&i[J],"group"===e.type&&e.traverse(w,e)),this._graphicEls[t]=e},y[T]=function(t){return this._graphicEls[t]},y.eachItemGraphicEl=function(t,e){u.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},y.cloneShallow=function(){var t=u.map(this[x],this.getDimensionInfo,this),e=new v(t,this[te]);return e._storage=this._storage,m(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},y.wrapMethod=function(t,e){var i=this[t];typeof i===U&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},v}),e("echarts/data/helper/completeDimensions",[qe,We],function(t){function e(t,e,a){if(!e)return t;var o=n(e[0]),s=r[Y](o)&&o[se]||1;a=a||[];for(var l=0;s>l;l++)if(!t[l]){var c=a[l]||"extra"+(l-a[se]);t[l]=i(e,l)?{type:"ordinal",name:c}:c}return t}function i(t,e){for(var i=0,a=t[se];a>i;i++){var o=n(t[i]);if(!r[Y](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r.isString(o)&&"-"!==o)return!0}return!1}function n(t){return r[Y](t)?t:r[ue](t)?t.value:t}var r=t(We);return e}),e("echarts/chart/helper/dataSelectableMixin",[qe,We],function(t){var e=t(We);return{updateSelectedMap:function(){var t=this[ve];this._dataOptMap=e.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._dataOptMap,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._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}}),e("echarts/chart/helper/whiskerBoxCommon",[qe,"../../data/List","../../data/helper/completeDimensions","../helper/WhiskerBoxDraw"],function(t){function e(t){return null==t.value?t:t.value}var i=t("../../data/List"),n=t("../../data/helper/completeDimensions"),r=t("../helper/WhiskerBoxDraw"),a={_baseAxisDim:null,getInitialData:function(t,r){var a,o,s=r[V]("xAxis",this.get("xAxisIndex")),l=r[V]("yAxis",this.get("yAxisIndex")),c=s.get("type"),h=l.get("type");c===E?(t.layout=d,a=s.getCategories(),o=!0):h===E?(t.layout="vertical",a=l.getCategories(),o=!0):t.layout=t.layout||d,this._baseAxisDim=t.layout===d?"x":"y";var u=t.data,f=this[x]=["base"][N](this.valueDimensions);n(f,u);var p=new i(f,this);return p.initData(u,a?a.slice():null,function(t,i,n,r){var a=e(t);return o?"base"===i?n:a[r-1]:a[r]}),p},getDimensionsOnAxis:function(t){var e=this.valueDimensions.slice(),i=["base"],n={horizontal:{x:i,y:e},vertical:{x:e,y:i}};return n[this.get("layout")][t]},getBaseAxisModel:function(){var t=this._baseAxisDim;return this[l][V](t+"Axis",this.get(t+"AxisIndex"))}},o={init:function(){var t=this._whiskerBoxDraw=new r(this.getStyleUpdater());this.group.add(t.group)},render:function(t){this._whiskerBoxDraw.updateData(t[He]())},remove:function(){this._whiskerBoxDraw[he]()}};return{seriesModelMixin:a,viewMixin:o}}),e("echarts/util/symbol",[qe,"./graphic","zrender/core/BoundingRect"],function(t){var e=t("./graphic"),i=t("zrender/core/BoundingRect"),a=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,r=e.cy,a=e.width/2,o=e[ze]/2;t[n](i,r-o),t.lineTo(i+a,r+o),t.lineTo(i-a,r+o),t.closePath()}}),o=e.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,r=e.cy,a=e.width/2,o=e[ze]/2;t[n](i,r-o),t.lineTo(i+a,r),t.lineTo(i,r+o),t.lineTo(i-a,r),t.closePath()}}),l=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[ze]),o=r/2,s=o*o/(a-o),l=n-a+o+s,c=Math.asin(s/o),h=Math.cos(c)*o,u=Math.sin(c),d=Math.cos(c);t.arc(i,l,o,Math.PI-c,2*Math.PI+c);var f=.6*o,p=.7*o;t.bezierCurveTo(i+h-u*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-h+u*f,l+s+d*f,i-h,l+s),t.closePath()}}),c=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[ze],r=e.width,a=e.x,o=e.y,s=r/3*2;t[n](a,o),t.lineTo(a+s,o+i),t.lineTo(a,o+i/4*3),t.lineTo(a-s,o+i),t.lineTo(a,o),t.closePath()}}),h={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:o,pin:l,arrow:c,triangle:a},u={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[ze]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[ze]=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[ze]=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[ze]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ze]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ze]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[ze]=n}},d={};for(var p in h)d[p]=new h[p];var g=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&&t.textPosition===v&&(t.textPosition=["50%","40%"],t[Pe]=Ce,t[m]=s)},buildPath:function(t,e){var i=e.symbolType,n=d[i];"none"!==e.symbolType&&(n||(i="rect",n=d[i]),u[i](e.x,e.y,e.width,e[ze],n.shape),n[r](t,n.shape))}}),y=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[f]=t:this.__isEmptyBrush?(e[f]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[f]&&(e[f]=t)),this.dirty()}},x={createSymbol:function(t,n,r,a,o,s){var l=0===t[X]("empty");l&&(t=t.substr(5,1)[_e]()+t.substr(6));var c;return c=0===t[X]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[X]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new g({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),c.__isEmptyBrush=l,c.setColor=y,c.setColor(s),c}};return x}),e("echarts/component/helper/listComponent",[qe,"../../util/layout","../../util/format",O],function(t){function e(t,e,n){i.positionGroup(t,e.getBoxLayoutParams(),{width:n[ke](),height:n[Te]()},e.get("padding"))}var i=t("../../util/layout"),n=t("../../util/format"),r=t(O);return{layout:function(t,n,r){i.box(n.get("orient"),t,n.get("itemGap"),r[ke](),r[Te]()),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get("padding")),a=t[Le](),o=e[Ee](["color",we]);
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[ze]+i[0]+i[2]},style:o,silent:!0});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/component/tooltip/TooltipContent",[qe,We,"zrender/tool/color","zrender/core/event","../../util/format"],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(f,function(t){return t+"transition:"+i}).join(";")}function n(t){var e=[],i=t.get("fontSize"),n=t[De]();return n&&e.push("color:"+n),e.push("font:"+t[Ie]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),u(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function r(t){t=t;var i=[],r=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t[Re](Oe),s=t.get("padding");return r&&i.push(e(r)),a&&(i.push("background-Color:"+l.toHex(a)),i.push("filter:alpha(opacity=70)"),i.push("background-Color:"+a)),u(["width","color",w],function(e){var n="border-"+e,r=d(n),a=t.get(r);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))}),i.push(n(o)),null!=s&&i.push("padding:"+h.normalizeCssArray(s).join("px ")+"px"),i.join(";")+";"}function a(t,e){var n=document[G]("div"),r=e.getZr();this.el=n,this._x=e[ke]()/2,this._y=e[Te]()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var a=this;n.onmouseenter=function(){a.enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(!a.enterable){var n=r.handler;c.normalizeEvent(t,e),n.dispatch(i,e)}},n.onmouseleave=function(){a.enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1},o(n,t)}function o(t,e){function i(t){n(t[Ae])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i.parentNode}}c.addEventListener(e,"touchstart",i),c.addEventListener(e,"touchmove",i),c.addEventListener(e,"touchend",i)}var s=t(We),l=t("zrender/tool/color"),c=t("zrender/core/event"),h=t("../../util/format"),u=s.each,d=h.toCamelCase,f=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;";return a[xe]={constructor:a,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[Se]&&"absolute"!==e[Se]&&(i[Se]="relative"),this.hide()},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=p+r(t)+";left:"+this._x+"px;top:"+this._y+"px;",this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},a}),e("echarts/component/marker/markerHelper",[qe,We,p],function(t){function e(t,e,i){var n=-1;do n=Math.max(r.getPrecision(t.get(e,i)),n),t=t.stackedOn;while(t);return n}function i(t,i,n,r,a){var o=[],s="average"===t?i.getSum(r,!0)/i.count():i[B](r)["max"===t?1:0],l=i.indexOfNearest(r,s);o[1-a]=i.get(n,l),o[a]=i.get(r,l,!0);var c=e(i,r,l);return c>=0&&(o[a]=+o[a][y](c)),o}var n=t(We),r=t(p),a=n.curry,o={min:a(i,"min"),max:a(i,"max"),average:a(i,"average")},s=function(t,e,i){if((isNaN(i.x)||isNaN(i.y))&&!n[Y](i.coord)&&e){var r,a,s,l;null!=i.valueIndex?(r=e[x][i.valueIndex],a=e[x][1-i.valueIndex],s=e[Z](r),l=e[Z](a)):(l=e[I](),s=e.getOtherAxis(l),a=l.dim,r=s.dim);var c=null!=i.valueIndex?i.valueIndex:"angle"===r||"x"===r?0:1;i=n[ce]({},i),i.type&&o[i.type]&&l&&s?(i.coord=o[i.type](t,l.dim,r,c),i.value=i.coord[c]):i.coord=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis]}return i},l=function(t,e){return t&&e.coord&&(null==e.x||null==e.y)?t.containData(e.coord):!0},c=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:void t.value};return{dataTransform:s,dataFilter:l,dimValueGetter:c}}),e("echarts/chart/helper/LineDraw",[qe,O,"./Line"],function(t){function e(t){this._ctor=t||n,this.group=new i.Group}var i=t(O),n=t("./Line"),r=e[xe];return r.updateData=function(t,e,i){var n=this._lineData,r=this.group,a=this._ctor;t.diff(n).add(function(n){var o=new a(t,e,i,n);t.setItemGraphicEl(n,o),r.add(o)})[de](function(a,o){var s=n[T](o);s.updateData(t,e,i,a),t.setItemGraphicEl(a,s),r.add(s)})[he](function(t){r[he](n[T](t))}).execute(),this._lineData=t,this._fromData=e,this._toData=i},r.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl(function(e,i){e.updateLayout(t,this._fromData,this._toData,i)},this)},r[he]=function(){this.group[Ne]()},e}),e("echarts/util/throttle",[],function(){var t={},e="\x00__throttleOriginMethod",i="\x00__throttleRate";return t.throttle=function(t,e,i,n){function r(r){function f(){h=(new Date).getTime(),u=null,(d?t:t[r]).apply(o,s||[])}var p=function(){l=(new Date).getTime(),o=this,s=arguments,a=l-(n?c:h)-e,clearTimeout(u),n?i?u=setTimeout(f,e):a>=0&&f():a>=0?f():i&&(u=setTimeout(f,-a)),c=l};return p.clear=function(){u&&(clearTimeout(u),u=null)},p}var a,o,s,l=(new Date).getTime(),c=0,h=0,u=null,d=typeof t===U;if(e=e||0,d)return r();for(var f=[],p=0;p<t[se];p++)f[p]=r(p);return f},t.fixRate=function(e,i){return null!=i?t.throttle(e,i,!0,!1):e},t.debounce=function(e,i){return null!=i?t.throttle(e,i,!0,!0):e},t.createOrUpdate=function(n,r,a,o){var s=n[r];if(s&&null!=a&&o){var l=s[e]||s,c=s[i];c!==a&&(s=n[r]=t[o](l,a),s[e]=l,s[i]=a)}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/component/helper/sliderMove",[qe],function(){return function(t,e,i,n,r){function a(t,e,i){var n=e[se]?e.slice():[e,e];return e[0]>e[1]&&n.reverse(),0>t&&n[0]+t<i[0]&&(t=i[0]-n[0]),t>0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=a(t,e,i),e[0]+=t,e[1]+=t):(t=a(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}}),e("echarts/data/DataDiffer",[qe],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i){for(var n=0;n<t[se];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[se]||(e[r]=a=[a]),a.push(n))}}return e[xe]={constructor:e,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={};for(i(e,o,r),i(n,s,a),t=0;t<e[se];t++){var l=r(e[t]),c=s[l];if(null!=c){var h=c[se];h?(1===h&&(s[l]=null),c=c.unshift()):s[l]=null,this._update&&this._update(c,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var c=s[l];if(null==c)continue;if(c[se])for(var t=0,h=c[se];h>t;t++)this._add&&this._add(c[t]);else this._add&&this._add(c)}}},e}),e("echarts/chart/helper/WhiskerBoxDraw",[qe,We,O,"zrender/graphic/Path"],function(t){function e(t,e,i,n){s.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this.updateData(t,e,n),this._seriesModel}function i(t,e,i){return o.map(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function r(t){var e={};return o.each(t,function(t,i){e["ends"+i]=t}),e}function a(t){this.group=new s.Group,this.styleUpdater=t}var o=t(We),s=t(O),l=t("zrender/graphic/Path"),c=l[ce]({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(0===i[X]("ends")){var r=e[i];t[n](r[0][0],r[0][1]),t.lineTo(r[1][0],r[1][1])}}}),h=e[xe];h._createContent=function(t,e,n){var a=t[z](e),l=a.chartLayout===d?1:0,h=0;this.add(new s.Polygon({shape:{points:n?i(a.bodyEnds,l,a):a.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=h++;var u=o.map(a.whiskerEnds,function(t){return n?i(t,l,a):t});this.add(new c({shape:r(u),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=h++},h.updateData=function(t,e,i){var n=this._seriesModel=t[te],a=t[z](e),o=s[i?"initProps":k];o(this.childAt(this.bodyIndex),{shape:{points:a.bodyEnds}},n),o(this.childAt(this.whiskerIndex),{shape:r(a.whiskerEnds)},n),this.styleUpdater.call(null,this,t,e)},o[j](e,s.Group);var u=a[xe];return u.updateData=function(t){var i=this.group,n=this._data,r=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var a=new e(t,n,r,!0);t.setItemGraphicEl(n,a),i.add(a)}})[de](function(a,o){var s=n[T](o);return t.hasValue(a)?(s?s.updateData(t,a):s=new e(t,a,r),i.add(s),void t.setItemGraphicEl(a,s)):void i[he](s)})[he](function(t){var e=n[T](t);e&&i[he](e)}).execute(),this._data=t},u[he]=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t[he](e)})},a}),e("echarts/component/helper/RoamController",[qe,"zrender/mixin/Eventful",We,"zrender/core/event","./interactionMutex"],function(t){function e(t){if(!t[Ae]||!t[Ae].draggable){var e=t.offsetX,i=t.offsetY,n=this.rect;n&&n[q](e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function n(t){if(this._dragging&&(u.stop(t.event),"pinch"!==t.gestureEvent)){if(d.isTaken("globalPan",this._zr))return;var e=t.offsetX,i=t.offsetY,n=e-this._x,r=i-this._y;this._x=e,this._y=i;var a=this[Ae];if(a){var o=a[Se];o[0]+=n,o[1]+=r,a.dirty()}u.stop(t.event),this[oe]("pan",n,r)}}function r(){this._dragging=!1}function a(t){u.stop(t.event);var e=t.wheelDelta>0?1.1:1/1.1;s.call(this,t,e,t.offsetX,t.offsetY)}function o(t){if(!d.isTaken("globalPan",this._zr)){u.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;s.call(this,t,e,t.pinchX,t.pinchY)}}function s(t,e,i,n){var r=this.rect;if(r&&r[q](i,n)){var a=this[Ae];if(a){var o=a[Se],s=a.scale,l=this._zoom=this._zoom||1;l*=e;var c=l/this._zoom;this._zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}this[oe]("zoom",e,i,n)}}function l(t,s,l){this[Ae]=s,this.rect=l,this._zr=t;var u=h.bind,d=u(e,this),f=u(n,this),p=u(r,this),m=u(a,this),v=u(o,this);c.call(this),this.enable=function(e){this.disable(),null==e&&(e=!0),e&&"scale"!==e&&(t.on("mousedown",d),t.on(i,f),t.on("mouseup",p)),e&&"move"!==e&&(t.on("mousewheel",m),t.on("pinch",v))},this.disable=function(){t.off("mousedown",d),t.off(i,f),t.off("mouseup",p),t.off("mousewheel",m),t.off("pinch",v)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var c=t("zrender/mixin/Eventful"),h=t(We),u=t("zrender/core/event"),d=t("./interactionMutex");return h.mixin(l,c),l}),e("echarts/chart/helper/SymbolDraw",[qe,O,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[z](e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t[C](e,"symbol"))}var n=t(O),r=t("./Symbol"),a=e[xe];return a.updateData=function(t,e){var r=this.group,a=t[te],o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t[z](n);if(i(t,n,e)){var o=new s(t,n);o.attr(Se,a),t.setItemGraphicEl(n,o),r.add(o)}})[de](function(l,c){var h=o[T](c),u=t[z](l);return i(t,l,e)?(h?(h.updateData(t,l),n[k](h,{position:u},a)):(h=new s(t,l),h.attr(Se,u)),r.add(h),void t.setItemGraphicEl(l,h)):void r[he](h)})[he](function(t){var e=o[T](t);e&&e.fadeOut(function(){r[he](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){e.attr(Se,t[z](i))})},a[he]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[he](t)})}):e[Ne]())},e}),e("echarts/chart/helper/Symbol",[qe,We,"../../util/symbol",O,p],function(t){function e(t){return r[Y](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this.updateData(t,e)}function n(t,e){this[c].drift(t,e)}var r=t(We),a=t("../../util/symbol"),o=t(O),s=t(p),l=i[xe];l._createSymbol=function(t,i,r){this[Ne]();var s=i[te],l=i[C](r,"color"),c=a.createSymbol(t,-.5,-.5,1,1,l);c.attr({style:{strokeNoScale:!0},z2:100,scale:[0,0]}),c.drift=n;var h=e(i[C](r,"symbolSize"));o.initProps(c,{scale:h},s),this._symbolType=t,this.add(c)},l.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},l.getScale=function(){return this.childAt(0).scale},l.highlight=function(){this.childAt(0)[oe](S)},l.downplay=function(){this.childAt(0)[oe](L)},l.setZ=function(t,e){var i=this.childAt(0);i[Q]=t,i.z=e},l.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},l.updateData=function(t,i){var n=t[C](i,"symbol")||"circle",r=t[te],a=e(t[C](i,"symbolSize"));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this.childAt(0);o[k](s,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var h=["itemStyle",L],u=["itemStyle",S],d=["label",L],f=["label",S];return l._updateCommon=function(t,i,n){var a=this.childAt(0),l=t[te],c=t[A](i),p=c[Re](h),m=t[C](i,"color"),v=c[Re](u)[Ee]();a.rotation=c.getShallow("symbolRotate")*Math.PI/180||0;var g=c.getShallow("symbolOffset");if(g){var y=a[Se];y[0]=s[M](g[0],n[0]),y[1]=s[M](g[1],n[1])}a.setColor(m),r[ce](a.style,p[Ee](["color"]));var _=c[Re](d),b=c[Re](f),w=t[x][t[x][se]-1],T=l.getFormattedLabel(i,L)||t.get(w,i),k=a.style;_.get("show")?(o.setText(k,_,m),k.text=T):k.text="",b.getShallow("show")?(o.setText(v,b,m),v.text=T):v.text="",o.setHoverStyle(a,v);var z=e(t[C](i,"symbolSize"));if(a.off(ie).off(ee).off(S).off(L),c.getShallow("hoverAnimation")){var D=function(){var t=z[1]/z[0];this.animateTo({scale:[Math.max(1.1*z[0],z[0]+3),Math.max(1.1*z[1],z[1]+3*t)]},400,"elasticOut")},I=function(){this.animateTo({scale:z},400,"elasticOut")};a.on(ie,D).on(ee,I).on(S,D).on(L,I)}},l.fadeOut=function(t){var e=this.childAt(0);e.style.text="",o[k](e,{scale:[0,0]},this._seriesModel,t)},r[j](i,o.Group),i}),e("echarts/chart/line/lineAnimationDiff",[qe,"zrender/core/arrayDiff"],function(t){function e(t){return t>=0?1:-1}function i(t,i,n){for(var r,a=t[I](),o=t.getOtherAxis(a),s=a.onZero?0:o.scale[F]()[0],l=o.dim,c="x"===l||l===w?1:0,h=i.stackedOn,u=i.get(l,n);h&&e(h.get(l,n))===e(u);){r=h;break}var d=[];return d[c]=i.get(a.dim,n),d[1-c]=r?r.get(l,n,!0):s,t[_](d)}var n=t("zrender/core/arrayDiff");return function(t,e,r,a,o,s){for(var l=e[b](e.getId),c=t[b](t.getId),h=[],u=[],d=[],f=[],p=[],m=[],v=[],g=n(c,l),y=s[x],w=0;w<g[se];w++){var M=g[w],S=!0;switch(M.cmd){case"=":var C=t[z](M.idx),T=e[z](M.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=T.slice()),h.push(C),u.push(T),d.push(r[M.idx]),f.push(a[M.idx1]),v.push(e.getRawIndex(M.idx1));break;case"+":var k=M.idx;h.push(o[_]([e.get(y[0],k,!0),e.get(y[1],k,!0)])),u.push(e[z](k).slice()),d.push(i(o,e,k)),f.push(a[k]),v.push(e.getRawIndex(k));break;case"-":var k=M.idx,A=t.getRawIndex(k);A!==k?(h.push(t[z](k)),u.push(s[_]([t.get(y[0],k,!0),t.get(y[1],k,!0)])),d.push(r[k]),f.push(i(s,t,k)),v.push(A)):S=!1}S&&(p.push(M),m.push(m[se]))}m.sort(function(t,e){return v[t]-v[e]});for(var L=[],D=[],I=[],P=[],O=[],w=0;w<m[se];w++){var k=m[w];L[w]=h[k],D[w]=u[k],I[w]=d[k],P[w]=f[k],O[w]=p[k]}return{current:L,next:D,stackedOnCurrent:I,stackedOnNext:P,status:O}}}),e("echarts/chart/line/poly",[qe,"zrender/graphic/Path","zrender/core/vector"],function(t){function e(t,e,i,r,m,v,g,y,x){for(var _=i,b=0;m>b;b++){var w=e[_];if(_>=r||0>_||isNaN(w[0])||isNaN(w[1]))break;if(_===i)t[v>0?n:"lineTo"](w[0],w[1]),u(f,w);else if(x>0){var M=_-v,S=_+v;v>0?(M=s(M,i),S=o(S,r-1)):(S=s(S,0),M=o(M,i));var C=e[M],T=e[S];(isNaN(T[0])||isNaN(T[1]))&&(T=w),a.sub(d,T,C),h(p,w,d,-x/2),l(f,f,y),c(f,f,g),l(p,p,y),c(p,p,g),t.bezierCurveTo(f[0],f[1],p[0],p[1],w[0],w[1]),h(f,w,d,x/2)}else t.lineTo(w[0],w[1]);_+=v}return b}function i(t){for(var e=[1/0,1/0],i=[-1/0,-1/0],n=0;n<t[se];n++){var r=t[n];r[0]<e[0]&&(e[0]=r[0]),r[1]<e[1]&&(e[1]=r[1]),r[0]>i[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:e,max:i}}var r=t("zrender/graphic/Path"),a=t("zrender/core/vector"),o=Math.min,s=Math.max,l=a.min,c=a.max,h=a.scaleAndAdd,u=a.copy,d=[],f=[],p=[];return{Polyline:r[ce]({type:"ec-polyline",shape:{points:[],smooth:0},style:{fill:null,stroke:"#000",smooth:0},buildPath:function(t,n){for(var r=n.points,a=0,o=r[se],s=i(r);o>a;)a+=e(t,r,a,o,o,1,s.min,s.max,n.smooth)+1}}),Polygon:r[ce]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0},buildPath:function(t,n){for(var r=n.points,a=n.stackedOnPoints,o=0,s=r[se],l=i(r),c=i(a);s>o;){var h=e(t,r,o,s,s,1,l.min,l.max,n.smooth);e(t,a,o+h-1,s,h,-1,c.min,c.max,n.stackedOnSmooth),o+=h+1,t.closePath()}}})}}),e("echarts/chart/pie/labelLayout",[qe,"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][ze])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][ze]));n--);}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,u=t[se],d=[],f=[],p=0;u>p;p++)c=t[p].y-h,0>c&&s(p,u,-c,r),h=t[p].y+t[p][ze];0>o-h&&l(u-1,h-o);for(var p=0;u>p;p++)t[p].y>=i?f.push(t[p]):d.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;c<t[se];c++)t[c].x<i?s.push(t[c]):l.push(t[c]);e(s,i,n,r,-1,a,o),e(l,i,n,r,1,a,o);for(var c=0;c<t[se];c++){var h=t[c].linePoints;h&&(h[2][0]=t[c].x<i?t[c].x+3:t[c].x-3,h[1][1]=h[2][1]=t[c].y)}}var n=t("zrender/contain/text");return function(t,e,r,a){var o,l,c=t[He](),h=[],u=!1;c.each(function(i){var r,a,d,f,p=c[z](i),m=c[A](i),y=m[Re]("label.normal"),x=y.get(Se),_=m[Re]("labelLine.normal"),b=_.get(se),w=_.get("length2"),M=(p.startAngle+p.endAngle)/2,S=Math.cos(M),C=Math.sin(M);if(o=p.cx,l=p.cy,x===Ce)r=p.cx,a=p.cy,f=Ce;else{var T=x===v||"inner"===x,k=(T?p.r/2*S:p.r*S)+o,D=(T?p.r/2*C:p.r*C)+l;if(b+=e-p.r,r=k+3*S,a=D+3*C,!T){var I=k+S*b,P=D+C*b,O=I+(0>S?-1:1)*w,R=P;r=O+(0>S?-5:5),a=R,d=[[k,D],[I,P],[O,R]]}f=T?Ce:S>0?"left":"right"}var B=s,E=y[Re](Oe)[Ie](),Z=y.get("rotate")?0>S?-M+Math.PI:-M:0,V=t.getFormattedLabel(i,L)||c[g](i),N=n[Le](V,E,f,B);u=!!Z,p.label={x:r,y:a,height:N[ze],length:b,length2:w,linePoints:d,textAlign:f,textBaseline:B,font:E,rotation:Z},h.push(p.label)}),!u&&t.get("avoidLabelOverlap")&&i(h,o,l,e,r,a)}}),e("echarts/chart/helper/Line",[qe,"../../util/symbol","zrender/core/vector","./LinePath",O,We,p],function(t){function e(t,e,i){var n=e[C](i,"color"),r=e[C](i,"symbol"),a=e[C](i,"symbolSize");if("none"!==r){f[Y](a)||(a=[a,a]);var o=c.createSymbol(r,-a[0]/2,-a[1]/2,a[0],a[1],n);return o.name=t,o}}function i(t){var e=new u({name:"line",style:{strokeNoScale:!0}});return n(e.shape,t),e}function n(t,e){var i=e[0],n=e[1],r=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,r&&(t.cpx1=r[0],t.cpy1=r[1])}function r(t){return"symbol"===t.type&&"arrow"===t.shape.symbolType}function a(){var t=this,e=t.childOfName("line");if(this.__dirty||e.__dirty){var i=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),a=t.childOfName("label"),l=e.pointAt(0),c=e.pointAt(e.shape.percent),u=h.sub([],c,l);h.normalize(u,u),i&&(i.attr(Se,l),r(n)&&n.attr("rotation",o(l,c))),n&&(n.attr(Se,c),r(i)&&i.attr("rotation",o(c,l))),a.attr(Se,c);var d,f,p;"end"===a.__position?(d=[5*u[0]+c[0],5*u[1]+c[1]],f=u[0]>.8?"left":u[0]<-.8?"right":Ce,p=u[1]>.8?"top":u[1]<-.8?fe:s):(d=[5*-u[0]+l[0],5*-u[1]+l[1]],f=u[0]>.8?"right":u[0]<-.8?"left":Ce,p=u[1]>.8?fe:u[1]<-.8?"top":s),a.attr({style:{textBaseline:a.__textBaseline||p,textAlign:a.__textAlign||f},position:d})}}function o(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function l(t,e,i,n){d.Group.call(this),this._createLine(t,e,i,n)}var c=t("../../util/symbol"),h=t("zrender/core/vector"),u=t("./LinePath"),d=t(O),f=t(We),m=t(p),v=l[xe];return v.beforeUpdate=a,v._createLine=function(t,n,r,a){var o=t[te],s=t[z](a),l=i(s);l.shape.percent=0,d.initProps(l,{shape:{percent:1}},o),this.add(l);var c=new d.Text({name:"label"});if(this.add(c),n){var h=e("fromSymbol",n,a);this.add(h),this._fromSymbolType=n[C](a,"symbol")}if(r){var u=e("toSymbol",r,a);this.add(u),this._toSymbolType=r[C](a,"symbol")}this._updateCommonStl(t,n,r,a)},v.updateData=function(t,i,r,a){var o=t[te],s=this.childOfName("line"),l=t[z](a),c={shape:{}};if(n(c.shape,l),d[k](s,c,o),i){var h=i[C](a,"symbol");if(this._fromSymbolType!==h){var u=e("fromSymbol",i,a);this[he](s.childOfName("fromSymbol")),this.add(u)}this._fromSymbolType=h}if(r){var f=r[C](a,"symbol");if(f!==this._toSymbolType){var p=e("toSymbol",r,a);this[he](s.childOfName("toSymbol")),this.add(p)}this._toSymbolType=f}this._updateCommonStl(t,i,r,a)},v._updateCommonStl=function(t,e,i,n){var r=t[te],a=this.childOfName("line"),o=t[A](n),s=o[Re]("label.normal"),l=s[Re](Oe),c=o[Re]("label.emphasis"),h=c[Re](Oe),u=m.round(r.getRawValue(n));isNaN(u)&&(u=t[g](n)),a[Me](f[ce]({stroke:t[C](n,"color")},o[Re]("lineStyle.normal").getLineStyle()));var p=this.childOfName("label");p[Me]({text:s.get("show")?r.getFormattedLabel(n,L)||u:"",textFont:l[Ie](),fill:l[De]()||t[C](n,"color")}),p.hoverStyle={text:c.get("show")?r.getFormattedLabel(n,S)||u:"",textFont:l[Ie](),fill:h[De]()},p.__textAlign=l.get("align"),p.__textBaseline=l.get("baseline"),p.__position=s.get(Se),d.setHoverStyle(this,o[Re]("lineStyle.emphasis").getLineStyle())},v.updateLayout=function(t,e,i,r){var a=t[z](r),o=this.childOfName("line");n(o.shape,a),o.dirty(!0),e&&e[T](r).attr(Se,a[0]),i&&i[T](r).attr(Se,a[1])},f[j](l,d.Group),l}),e("echarts/component/helper/SelectController",[qe,"zrender/mixin/Eventful",We,O],function(t){function e(t,e,i){y.call(this),this.type=t,this.zr=e,this.opt=x.clone(i),this.group=new _.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:b(a,this),mousemove:b(o,this),mouseup:b(s,this)},w(k,function(t){this.zr.on(t,this._handlers[t])},this)}function n(t,e){var i=this.group.transformCoordToLocal(t,e);return!this._containerRect||this._containerRect[q](i[0],i[1])}function r(t){var e=t.event;e.preventDefault&&e.preventDefault()}function a(t){if(!(this._disabled||t[Ae]&&t[Ae].draggable)){r(t);var e=t.offsetX,i=t.offsetY;n.call(this,e,i)&&(this._dragging=!0,this._track=[[e,i]])}}function o(t){this._dragging&&!this._disabled&&(r(t),l.call(this,t))}function s(t){this._dragging&&!this._disabled&&(r(t),l.call(this,t,!0),this._dragging=!1,this._track=[])}function l(t,e){var i=t.offsetX,r=t.offsetY;if(n.call(this,i,r)){this._track.push([i,r]);var a=u.call(this)?A[this.type].getRanges.call(this):[];d.call(this,a),this[oe]("selected",x.clone(a)),e&&this[oe]("selectEnd",x.clone(a))}}function u(){var t=this._track;if(!t[se])return!1;var e=t[t[se]-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],a=C(n*n+r*r,.5);return a>T}function d(t){var e=A[this.type];t&&t[se]?(this._cover||(this._cover=e[W].call(this),this.group.add(this._cover)),e[de].call(this,t)):(this.group[he](this._cover),this._cover=null)}function p(){var t=this.group,e=t[c];e&&e[he](t)}function m(){var t=this.opt;return new _.Rect({style:{stroke:t[f],fill:t.fill,lineWidth:t[h],opacity:t[we]}})}function v(){return x.map(this._track,function(t){return this.group.transformCoordToLocal(t[0],t[1])},this)}function g(){var t=v.call(this),e=t[se]-1;return 0>e&&(e=0),[t[0],t[e]]}var y=t("zrender/mixin/Eventful"),x=t(We),_=t(O),b=x.bind,w=x.each,M=Math.min,S=Math.max,C=Math.pow,T=2,k=["mousedown",i,"mouseup"];e[xe]={constructor:e,enable:function(t,e){this._disabled=!1,p.call(this),this._containerRect=e!==!1?e||t[Le]():null,t.add(this.group)},update:function(t){d.call(this,t&&x.clone(t))},disable:function(){this._disabled=!0,p.call(this)},dispose:function(){this.disable(),w(k,function(t){this.zr.off(t,this._handlers[t])},this)}},x.mixin(e,y);var A={line:{create:m,getRanges:function(){var t=g.call(this),e=M(t[0][0],t[1][0]),i=S(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover.setShape({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:m,getRanges:function(){var t=g.call(this),e=[M(t[1][0],t[0][0]),M(t[1][1],t[0][1])],i=[S(t[1][0],t[0][0]),S(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover.setShape({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};return e}),e("echarts/component/helper/interactionMutex",[qe],function(){function t(t){return t[e]||(t[e]={})}var e="\x00_ec_interaction_mutex",i={take:function(e,i){t(i)[e]=!0},release:function(e,i){t(i)[e]=!1},isTaken:function(e,i){return!!t(i)[e]}};return i}),e("echarts/component/dataZoom/history",[qe,We],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(We),n=i.each,r="\x00_ec_hist_store",a={push:function(t,i){var r=e(t);n(i,function(e,i){for(var n=r[se]-1;n>=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[se]-1];i[se]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[se]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[se]}};return a}),e("echarts/component/dataZoomSelect",[qe,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("zrender/core/arrayDiff",[qe],function(){function t(t,e){return t===e}function e(t,e,i){var n={cmd:t,idx:e};return"="===t&&(n.idx1=i),n}function i(t,i,n,r){t.push(e(i,n,r))}function n(t,e,i,n,r,a,s,l){var c,h,u,d=i>n,f=r>a,p=o(n-i),m=o(a-r);for(h=0;p>=h;h++)for(u=0;m>=u;u++)if(0===h)l[u]=u;else if(0===u)c=l[u],l[u]=h;else{var v=t[d?i-h:h-1+i],g=e[f?r-u:u-1+r],y=c+(s(v,g)?0:2),x=l[u]+1,_=l[u-1]+1;c=l[u],l[u]=x>y?y:x,_<l[u]&&(l[u]=_)}return l}function r(t,e,a,o,s,l,c,h,u){var d,f,p=[],m=o-a,v=l-s;if(m)if(v)if(1===m){var g=t[a],y=!1;for(f=0;v>f;f++)c(g,e[f+s])&&!y?(y=!0,i(p,"=",a,f+s)):i(p,"+",f+s);y||i(p,"-",a)}else if(1===v){var x=e[s],y=!1;for(d=0;m>d;d++)c(x,t[d+a])&&!y?(y=!0,i(p,"=",d+a,s)):i(p,"-",d+a);y||i(p,"+",s)}else{var _=(m/2|0)+a;n(t,e,a,_,s,l,c,h),n(t,e,o,_+1,l,s,c,u);var b,w=1/0,M=0;for(f=0;v>=f;f++)b=h[f]+u[v-f],w>b&&(w=b,M=f);M+=s,p=r(t,e,a,_,s,M,c,h,u);var S=r(t,e,_,o,M,l,c,h,u);for(d=0;d<S[se];d++)p.push(S[d])}else for(d=0;m>d;d++)i(p,"-",d+a);else for(f=0;v>f;f++)i(p,"+",f+s);return p}function a(e,n,a){a=a||t;var o,s,l=e[se],c=n[se],h=Math.min(l,c),u=[];for(o=0;h>o&&a(e[o],n[o]);o++)i(u,"=",o,o);for(s=0;h>s&&a(e[l-s-1],n[c-s-1]);s++);if(l-s>=o||c-s>=o){var d=r(e,n,o,l-s,o,c-s,a,[],[]);for(o=0;o<d[se];o++)u.push(d[o]);for(o=0;s>o;o++)i(u,"=",l-s+o,c-s+o)}return u}var o=Math.abs;return a}),e("echarts/chart/helper/LinePath",[qe,O],function(t){var e=t(O),i=e.Line[xe],n=e.BezierCurve[xe];return e.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(null==e.cpx1||null==e.cpy1?i:n)[r](t,e)},pointAt:function(t){var e=this.shape;return null==e.cpx1||null==e.cpy1?i.pointAt.call(this,t):n.pointAt.call(this,t)}})}),e("echarts/component/dataZoom/SelectZoomModel",[qe,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[ce]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/SelectZoomView",[qe,"./DataZoomView"],function(t){return t("./DataZoomView")[ce]({type:"dataZoom.select"})}),e("echarts/coord/axisModelCreator",[qe,"./axisDefault",We,"../model/Component"],function(t){var e=t("./axisDefault"),i=t(We),n=t("../model/Component"),r=["value",E,"time","log"];return function(t,a,o,s){i.each(r,function(n){a[ce]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,r){var a=r.getTheme();i.merge(e,a.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=o(t,e)},defaultOption:i.mergeAll([{},e[n+"Axis"],s],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(o,t))}}),e("echarts/coord/axisModelCommonMixin",[qe,We,"./axisHelper"],function(t){function e(t){return r[ue](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===E&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(We),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/axisDefault",[qe,We],function(t){var e=t(We),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[Ze]({boundaryGap:[0,0],splitNumber:5},i),a=e[Ze]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[Ze]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/chart/bar/barItemStyle",[qe,"../../model/mixin/makeStyleMapper"],function(t){return{getBarItemStyle:t("../../model/mixin/makeStyleMapper")([["fill","color"],[f,"barBorderColor"],[h,"barBorderWidth"],[we],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/component/axis/AxisView",[qe,We,O,"./AxisBuilder",P],function(t){function e(t,e){function i(t){var e=n[Z](t);return e.toGlobalCoord(e.dataToCoord(0))}var n=t[Ve],r=e.axis,a={},o=r[Se],s=r.onZero?"onZero":o,l=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[ze]],u={x:{top:h[2],bottom:h[3]},y:{left:h[0],right:h[1]}};u.x.onZero=Math.max(Math.min(i("y"),u.x[fe]),u.x.top),u.y.onZero=Math.max(Math.min(i("x"),u.y.right),u.y.left),a[Se]=["y"===l?u.y[s]:h[0],"x"===l?u.x[s]:h[3]];var d={x:0,y:1};a.rotation=Math.PI/2*d[l];var f={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=f[o],r.onZero&&(a.labelOffset=u[l][o]-u[l].onZero),e[Re]("axisTick").get(v)&&(a.tickDirection=-a.tickDirection),e[Re]("axisLabel").get(v)&&(a.labelDirection=-a.labelDirection);var p=e[Re]("axisLabel").get("rotate");return a.labelRotation="top"===s?-p:p,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(We),n=t(O),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,o=r.getInterval,s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"],c=t(P)[Ge]({type:"axis",render:function(t,n){if(this.group[Ne](),t.get("show")){var a=n[V]("grid",t.get("gridIndex")),o=e(a,t),c=new r(t,o);i.each(s,c.add,c),this.group.add(c.getGroup()),i.each(l,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,i){var r=t.axis,s=t[Re]("splitLine"),l=s[Re]("lineStyle"),c=l.get("width"),h=l.get("color"),u=o(s,i);h=h instanceof Array?h:[h];for(var d=e[Ve].getRect(),f=r.isHorizontal(),p=[],m=0,v=r.getTicksCoords(),g=[],y=[],x=0;x<v[se];x++)if(!a(r,x,u)){var _=r.toGlobalCoord(v[x]);f?(g[0]=_,g[1]=d.y,y[0]=_,y[1]=d.y+d[ze]):(g[0]=d.x,g[1]=_,y[0]=d.x+d.width,y[1]=_);var b=m++%h[se];p[b]=p[b]||[],p[b].push(new n.Line(n.subPixelOptimizeLine({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:{lineWidth:c},silent:!0})))}for(var x=0;x<p[se];x++)this.group.add(n.mergePath(p[x],{style:{stroke:h[x%h[se]],lineDash:l.getLineDash(),lineWidth:c},silent:!0}))},_splitArea:function(t,e,i){var r=t.axis,s=t[Re]("splitArea"),l=s.get("areaStyle.color"),c=e[Ve].getRect(),h=r.getTicksCoords(),u=r.toGlobalCoord(h[0]),d=r.toGlobalCoord(h[0]),f=[],p=0,m=o(s,i);l=l instanceof Array?l:[l];for(var v=1;v<h[se];v++)if(!a(r,v,m)){var g,y,x,_,b=r.toGlobalCoord(h[v]);r.isHorizontal()?(g=u,y=c.y,x=b-g,_=c[ze]):(g=c.x,y=d,x=c.width,_=b-y);var w=p++%l[se];f[w]=f[w]||[],f[w].push(new n.Rect({shape:{x:g,y:y,width:x,height:_},silent:!0})),u=g+x,d=y+_}for(var v=0;v<f[se];v++)this.group.add(n.mergePath(f[v],{style:{fill:l[v%l[se]]},silent:!0}))}});c[ce]({type:"xAxis"}),c[ce]({type:"yAxis"})}),e("echarts/component/axis/AxisBuilder",[qe,We,O,"../../model/Model",p],function(t){function e(t,e,i){var n,r,a=c(e-t.rotation);return h(a)?(r=i>0?"top":fe,n=Ce):h(a-d)?(r=i>0?fe:"top",n=Ce):(r=s,n=a>0&&d>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}
}function i(t,e,i){var n,r,a=c(-t.rotation),o=i[0]>i[1],l="start"===e&&!o||"start"!==e&&o;return h(a-d/2)?(r=l?fe:"top",n=Ce):h(a-1.5*d)?(r=l?"top":fe,n=Ce):(r=s,n=1.5*d>a&&a>d/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var n=t(We),r=t(O),a=t("../../model/Model"),o=t(p),c=o.remRadian,h=o.isRadianAroundZero,d=Math.PI,f=function(t,e){this.opt=e,this.axisModel=t,n[Ze](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new r.Group({position:e[Se].slice(),rotation:e.rotation})};f[xe]={constructor:f,hasBuilder:function(t){return!!v[t]},add:function(t){v[t].call(this)},getGroup:function(){return this.group}};var v={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[F]();this.group.add(new r.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n[ce]({lineCap:"round"},e[Re]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.silent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[Re]("axisTick"),n=this.opt,a=i[Re]("lineStyle"),o=i.get(se),s=y(i,n.labelInterval),l=e.getTicksCoords(),c=[],h=0;h<l[se];h++)if(!g(e,h,s)){var u=l[h];c.push(new r.Line(r.subPixelOptimizeLine({shape:{x1:u,y1:0,x2:u,y2:n.tickDirection*o},style:{lineWidth:a.get("width")},silent:!0})))}this.group.add(r.mergePath(c,{style:a.getLineStyle(),silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[Le]().clone(),n=e&&e[Le]().clone();return i&&n?(i[u](t.getLocalTransform()),n[u](e.getLocalTransform()),i.intersect(n)):void 0}var i=this.axisModel;if(i.get("axisLabel.show")){var n=this.opt,o=i.axis,s=i[Re]("axisLabel"),c=s[Re](Oe),h=s.get("margin"),f=o.scale.getTicks(),p=i.getFormattedLabels(),v=n.labelRotation;null==v&&(v=s.get("rotate")||0),v=v*d/180;for(var y=e(n,v,n.labelDirection),x=i.get("data"),_=[],b=0;b<f[se];b++)if(!g(o,b,n.labelInterval)){var w=c;x&&x[b]&&x[b][Oe]&&(w=new a(x[b][Oe],c,i[l]));var M=o.dataToCoord(f[b]),S=[M,n.labelOffset+n.labelDirection*h],C=new r.Text({style:{text:p[b],textAlign:w.get("align",!0)||y[Pe],textBaseline:w.get("baseline",!0)||y[m],textFont:w[Ie](),fill:w[De]()},position:S,rotation:y.rotation,silent:!0,z2:10});_.push(C),this.group.add(C)}if(o.type!==E){if(i.get("min")){var T=_[0],k=_[1];t(T,k)&&(T[pe]=!0)}if(i.get("max")){var A=_[_[se]-1],z=_[_[se]-2];t(z,A)&&(A[pe]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,a=this.opt.axisName;if(null==a&&(a=n.get("name")),a){var o,l=n.get("nameLocation"),c=t.nameDirection,h=n[Re]("nameTextStyle"),u=n.get("nameGap")||0,d=this.axisModel.axis[F](),f=d[0]>d[1]?-1:1,p=["start"===l?d[0]-f*u:"end"===l?d[1]+f*u:(d[0]+d[1])/2,l===s?t.labelOffset+c*u:0];o=l===s?e(t,t.rotation,c):i(t,l,d),this.group.add(new r.Text({style:{text:a,textFont:h[Ie](),fill:h[De]()||n.get("axisLine.lineStyle.color"),textAlign:o[Pe],textBaseline:o[m]},position:p,rotation:o.rotation,silent:!0,z2:1}))}}},g=f.ifIgnoreOnTick=function(t,e,i){return t.scale.type===R&&typeof i===U&&!i(e,t.scale[H](e))||e%(i+1)},y=f.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return f}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var je=t("echarts");return je.graphic=t("echarts/util/graphic"),je.number=t("echarts/util/number"),je.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/chart/candlestick"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/markLine"),t("echarts/component/dataZoom"),t("echarts/component/toolbox"),t("zrender/vml/vml"),je});