qcminecraft/Carbon-Forum-F

View on GitHub
static/echarts/echarts.js

Summary

Maintainability
A
0 mins
Test Coverage
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],u=0,c=Math.min(e.length,n.length);c>u;u++){var h,d=i(e[u],r);switch(d){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(d)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="buildPath",n="$superApply",r="../../model/Component",a="moveTo",o="dataToCoord",s="../../util/model",l="getFormattedLabels",u="getItemVisual",c="orient",h="vertical",d="horizontal",f="../../util/layout",p="../../util/number",m="category",v="offsetY",g="offsetX",y="../../echarts",_="zrender/core/BoundingRect",x="reverse",b="parentNode",w="toFixed",M="middle",S="linearMap",T="../core/util",C="undefined",L="parent",z="getLocalTransform",A="getShallow",P="stroke",I="lineWidth",k="applyTransform",D="normal",V="emphasis",R="getName",O="formatter",E="ecModel",B="mergeDefaultAndTheme",Z="getComponent",N="mergeOption",G="option",F="dimensions",H="getItemModel",W="setItemVisual",q="getRawValue",j="symbolSize",U="symbol",X="ordinal",Y="getItemGraphicEl",$="setShape",K="updateData",Q="animation",J="inverse",te="getAxis",ee="mapArray",ie="radius",ne="getOtherAxis",re="../../util/graphic",ae="concat",oe="getContext",se="createElement",le="getExtent",ue="getLabel",ce="getTicks",he="create",de="contain",fe="coordinateSystem",pe="opacity",me="setStyle",ve="position",ge="center",ye="padding",_e="getLayoutRect",xe="getBoxLayoutParams",be="getBoundingRect",we="getTextColor",Me="getFont",Se="textAlign",Te="textStyle",Ce="removeAll",Le="isString",ze="inherits",Ae="number",Pe="extendComponentModel",Ie="function",ke="registerAction",De="indexOf",Ve="isArray",Re="replace",Oe="traverse",Ee="zlevel",Be="getDataParams",Ze="seriesIndex",Ne="hostModel",Ge="dataIndex",Fe="target",He="mouseout",We="mouseover",qe="getData",je="splice",Ue="series",Xe="eachSeries",Ye="trigger",$e="length",Ke="defaults",Qe="dispatchAction",Je="extend",ti="remove",ei="isObject",ii="update",ni="height",ri="bottom",ai="ignore",oi="eachComponent",si="backgroundColor",li="canvasSupported",ui="getHeight",ci="getWidth",hi="getModel",di="resize",fi="string",pi="prototype",mi="toLowerCase",vi="filter",gi="transform",yi="zrender/core/util",_i="require";e("echarts/chart/line",[_i,yi,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points"],function(t){var e=t(yi),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/echarts",[_i,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",yi,"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,e,i){t=t&&t[mi](),C[pi].on.call(this,t,e,i)}function i(){C.call(this)}function n(t,e,n){n=n||{},e&&L(B,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=w.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio}),typeof e===fi&&(e=N[e]),this._theme=M.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new p(this),this._coordinateSystem=new m,C.call(this),this._messageCenter=new i,this._initEvents(),this[di]=M.bind(this[di],this)}function r(t,e){var i=this._model;i&&i[oi]({mainType:"series",query:e},function(n){var r=this._chartsMap[n.__viewId];r&&r[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;L(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e[Xe](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[$e];o++)n[o].__keepAlive=!1;e[i?oi:Xe](function(t,o){if(i){if(t===Ue)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var u=g.parseClassType(o.type),c=i?_.getClass(u.main,u.sub):x.getClass(u.sub);if(!c)return;l=new c,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__keepAlive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[$e];){var s=n[o];s.__keepAlive?o++:(a[ti](s.group),s.dispose(e,this._api),n[je](o,1),delete r[s.__id])}}function s(t){L(A,function(e){L(E[e]||[],function(e){e(t)})})}function l(t){var e={};t[Xe](function(t){var i=t.get("stack"),n=t[qe]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function u(t,e){var i=this._api;L(O,function(n){n(t,i,e)})}function c(t,e){L(z,function(i){L(Z[i]||[],function(i){i(t,e)})})}function h(t,e){var i=this._api;L(this._componentsViews,function(n){var r=n.__model;n.render(r,t,i,e),d(r,n)},this),L(this._chartsViews,function(t){t.__keepAlive=!1},this),t[Xe](function(n){var r=this._chartsMap[n.__viewId];r.__keepAlive=!0,r.render(n,t,i,e),d(n,r)},this),L(this._chartsViews,function(e){e.__keepAlive||e[ti](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(Ee);e.group[Oe](function(t){null!=i&&(t.z=i),null!=n&&(t[Ee]=n)})}var f=t("./model/Global"),p=t("./ExtensionAPI"),m=t("./CoordinateSystem"),v=t("./model/OptionManager"),g=t("./model/Component"),y=t("./model/Series"),_=t("./view/Component"),x=t("./view/Chart"),b=t("./util/graphic"),w=t("zrender"),M=t(yi),S=t("zrender/tool/color"),T=t("zrender/core/env"),C=t("zrender/mixin/Eventful"),L=M.each,z=["echarts","chart","component"],A=[gi,vi,"statistic"];i[pi].on=e,M.mixin(i,C);var P=n[pi];P.getDom=function(){return this._dom},P.getZr=function(){return this._zr},P.setOption=function(t,e,i){(!this._model||e)&&(this._model=new f(null,null,this._theme,new v(this._api))),this._model.setOption(t,B),I.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},P.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},P[hi]=function(){return this._model},P[ci]=function(){return this._zr[ci]()},P[ui]=function(){return this._zr[ui]()},P.getRenderedCanvas=function(t){if(T[li]){t=t||{},t.pixelRatio=t.pixelRatio||1,t[si]=t[si]||this._model.get(si);var e=this._zr,i=e.storage.getDisplayList();return M.each(i,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},P.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;L(e,function(t){i[oi]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[ai]||(n.push(e),e.group[ai]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return L(n,function(t){t.group[ai]=!1}),a},P.getConnectedDataURL=function(t){if(T[li]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(F[e]){var a=r,o=r,s=-r,l=-r,u=[],c=t&&t.pixelRatio||1;for(var h in G){var d=G[h];if(d.group===e){var f=d.getRenderedCanvas(M.clone(t)),p=d.getDom().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[ri],l),u.push({dom:f,left:p.left,top:p.top})}}a*=c,o*=c,s*=c,l*=c;var m=s-a,v=l-o,g=M.createCanvas();g.width=m,g[ni]=v;var y=w.init(g);return L(u,function(t){var e=new b.Image({style:{x:t.left*c-a,y:t.top*c-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var I={update:function(t){var e=this._model;if(e){e.restoreData(),s.call(this,e),l.call(this,e),this._coordinateSystem[ii](e,this._api),u.call(this,e,t),c.call(this,e,t),h.call(this,e,t);var i=e.get(si);if(!T[li]){var n=S.parse(i);i=S.stringify(n,"rgb"),0===n[3]&&(i="transparent")}var r=this._zr.painter;r.isSingleCanvas&&r.isSingleCanvas()?this._zr.configLayer(0,{clearColor:i}):(i=i||"transparent",this._dom.style[si]=i)}},updateView:function(t){var e=this._model;e&&(u.call(this,e,t),c.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),a.call(this,"updateLayout",e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),I[ii].call(this,t)}};P[di]=function(){this._zr[di]();var t=this._model&&this._model.resetOption("media");I[t?"prepareAndUpdate":ii].call(this),this._loadingFX&&this._loadingFX[di]()};var k=t("./loading/default");P.showLoading=function(t,e){M[ei](t)&&(e=t,t="default");var i=k(this._api,e),n=this._zr;this._loadingFX=i,n.painter.clear(),n.add(i)},P.hideLoading=function(){this._loadingFX&&this._zr[ti](this._loadingFX),this._loadingFX=null},P.makeActionFromEvent=function(t){var e=M[Je]({},t);return e.type=R[t.type],e},P[Qe]=function(t,e){var i=V[t.type];if(i){var n=i.actionInfo,r=n[ii]||ii,a=[t],o=!1;t.batch&&(o=!0,a=M.map(t.batch,function(e){return e=M[Ke](M[Je]({},e),t),e.batch=null,e}));for(var s,l=[],u="highlight"===t.type||"downplay"===t.type,c=0;c<a[$e];c++){var h=a[c];s=i.action(h,this._model),s=s||M[Je]({},h),s.type=n.event||s.type,l.push(s),u&&I[r].call(this,h)}"none"!==r&&!u&&I[r].call(this,t),e||(s=o?{type:l[0].type,batch:l}:l[0],this._messageCenter[Ye](s.type,s))}},P.on=e;var D=["click","dblclick",We,He,"globalout"];P._initEvents=function(){var t=this._zr;L(D,function(e){t.on(e,function(t){var i=this[hi](),n=t[Fe];if(n&&null!=n[Ge]){var r=n[Ne]||i.getSeriesByIndex(n[Ze]),a=r&&r[Be](n[Ge])||{};a.event=t,a.type=e,this[Ye](e,a)}},this)},this),L(R,function(t,e){this._messageCenter.on(e,function(t){this[Ye](e,t)},this)},this)},P.isDisposed=function(){return this._disposed},P.dispose=function(){this._disposed=!0;var t=this._api,e=this._model;L(this._componentsViews,function(i){i.dispose(e,t)}),L(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),G[this.id]=null},M.mixin(n,C);var V=[],R={},O=[],E={},B=[],Z={},N={},G={},F={},H=new Date-0,W=new Date-0,q="_echarts_instance_",j={version:"3.0.0",dependencies:{zrender:"3.0.0"}};return j.init=function(t,e,i){if(w.version[Re](".","")-0<j.dependencies.zrender[Re](".","")-0)throw new Error("ZRender "+w.version+" is too old for ECharts "+j.version+". Current version need ZRender "+j.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id=H++,G[r.id]=r,t.setAttribute&&t.setAttribute(q,r.id),M.each(R,function(t,e){r._messageCenter.on(e,function(t){if(F[r.group]){r.__connectedActionDispatching=!0;for(var e in G){var i=r.makeActionFromEvent(t),n=G[e];n!==r&&n.group===r.group&&(n.__connectedActionDispatching||n[Qe](i))}r.__connectedActionDispatching=!1}})}),r},j.connect=function(t){if(M[Ve](t)){var e=t;t=null,M.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||W++,M.each(e,function(e){e.group=t})}return F[t]=!0,t},j.disConnect=function(t){F[t]=!1},j.dispose=function(t){M.isDom(t)?t=j.getInstanceByDom(t):typeof t===fi&&(t=G[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},j.getInstanceByDom=function(t){var e=t.getAttribute(q);return G[e]},j.getInstanceById=function(t){return G[t]},j.registerTheme=function(t,e){N[t]=e},j.registerPreprocessor=function(t){B.push(t)},j.registerProcessor=function(t,e){if(M[De](A,t)<0)throw new Error("stage should be one of "+A);var i=E[t]||(E[t]=[]);i.push(e)},j[ke]=function(t,e,i){typeof e===Ie&&(i=e,e="");var n=M[ei](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[mi](),e=t.event,V[n]||(V[n]={action:i,actionInfo:t}),R[e]=n},j.registerCoordinateSystem=function(t,e){m.register(t,e)},j.registerLayout=function(t){M[De](O,t)<0&&O.push(t)},j.registerVisualCoding=function(t,e){if(M[De](z,t)<0)throw new Error("stage should be one of "+z);var i=Z[t]||(Z[t]=[]);i.push(e)},j.extendChartView=function(t){return x[Je](t)},j[Pe]=function(t){return g[Je](t)},j.extendSeriesModel=function(t){return y[Je](t)},j.extendComponentView=function(t){return _[Je](t)},j.setCanvasCreator=function(t){M.createCanvas=t},j.registerVisualCoding("echarts",M.curry(t("./visual/seriesColor"),"","itemStyle")),j.registerPreprocessor(t("./preprocessor/backwardCompat")),j[ke]({type:"highlight",event:"highlight",update:"highlight"},M.noop),j[ke]({type:"downplay",event:"downplay",update:"downplay"},M.noop),j.graphic=t("echarts/util/graphic"),j[Ae]=t("echarts/util/number"),j.format=t("echarts/util/format"),j.util={},L(["map","each",vi,De,ze,"reduce",vi,"bind","curry",Ve,Le,ei,"isFunction",Je],function(t){j.util[t]=M[t]}),j}),e("echarts/chart/treemap",[_i,"../echarts","./treemap/TreemapSeries","./treemap/TreemapView","./treemap/treemapAction","./treemap/treemapVisual","./treemap/treemapLayout"],function(t){var e=t("../echarts");t("./treemap/TreemapSeries"),t("./treemap/TreemapView"),t("./treemap/treemapAction"),e.registerVisualCoding("chart",t("./treemap/treemapVisual")),e.registerLayout(t("./treemap/treemapLayout"))}),e("echarts/component/title",[_i,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=t("../util/layout");e[Pe]({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.extendComponentView({type:"title",render:function(t,e,r){if(this.group[Ce](),t.get("show")){var a=this.group,o=t[hi](Te),s=t[hi]("subtextStyle"),l=t.get(Se),u=new i.Text({style:{text:t.get("text"),textFont:o[Me](),fill:o[we](),textBaseline:"top"},z2:10}),c=u[be](),h=t.get("subtext"),d=new i.Text({style:{text:h,textFont:s[Me](),fill:s[we](),y:c[ni]+t.get("itemGap"),textBaseline:"top"},z2:10}),f=t.get("link"),p=t.get("sublink");u.silent=!f,d.silent=!p,f&&u.on("click",function(){window.open(f,t.get(Fe))}),p&&d.on("click",function(){window.open(p,t.get("subtarget"))}),a.add(u),h&&a.add(d);var m=a[be](),v=t[xe]();v.width=m.width,v[ni]=m[ni];var g=n[_e](v,{width:r[ci](),height:r[ui]()},t.get(ye));if(!l){var y=g.x/r[ci](),_=(g.x+g.width)/r[ci]();.2>y?l="left":_>.8?(g.x+=g.width,l="right"):(g.x+=g.width/2,l=ge)}a[ve]=[g.x,g.y],u[me](Se,l),d[me](Se,l),m=a[be]();var x=g.margin,b=t.getItemStyle(["color",pe]);b.fill=t.get(si);var w=new i.Rect({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m[ni]+x[0]+x[2]},style:b,silent:!0});i.subPixelOptimizeRect(w),a.add(w)}}})}),e("echarts/component/legend",[_i,"./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(vi,t("./legend/legendFilter"))}),e("echarts/component/grid",[_i,"../util/graphic",yi,"../coord/cartesian/Grid","./axis","../echarts"],function(t){var e=t("../util/graphic"),i=t(yi);t("../coord/cartesian/Grid"),t("./axis"),t("../echarts").extendComponentView({type:"grid",render:function(t){this.group[Ce](),t.get("show")&&this.group.add(new e.Rect({shape:t[fe].getRect(),style:i[Ke]({fill:t.get(si)},t.getItemStyle()),silent:!0}))}})}),e("echarts/component/tooltip",[_i,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts")[ke]({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts")[ke]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/component/markPoint",[_i,"./marker/MarkPointModel","./marker/MarkPointView"],function(t){t("./marker/MarkPointModel"),t("./marker/MarkPointView")}),e("echarts/component/markLine",[_i,"./marker/MarkLineModel","./marker/MarkLineView"],function(t){t("./marker/MarkLineModel"),t("./marker/MarkLineView")}),e("echarts/component/dataZoom",[_i,"./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/timeline",[_i,"../echarts","./timeline/preprocessor","./timeline/typeDefaulter","./timeline/timelineAction","./timeline/SliderTimelineModel","./timeline/SliderTimelineView"],function(t){var e=t("../echarts");e.registerPreprocessor(t("./timeline/preprocessor")),t("./timeline/typeDefaulter"),t("./timeline/timelineAction"),t("./timeline/SliderTimelineModel"),t("./timeline/SliderTimelineView")}),e("echarts/component/visualMap",[_i,"./visualMapContinuous","./visualMapPiecewise"],function(t){t("./visualMapContinuous"),t("./visualMapPiecewise")}),e("echarts/component/toolbox",[_i,"./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",[_i,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/scale/Time",[_i,yi,"../util/number","./Interval"],function(t){var e=t(yi),i=t("../util/number"),n=t("./Interval"),r=n[pi],a=Math.ceil,o=Math.floor,s=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},l=function(t){return 10>t?"0"+t:t},u=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(),u=n.getMinutes(),c=n.getSeconds();return t=t[Re]("MM",l(a))[mi]()[Re]("yyyy",r)[Re]("yy",r%100)[Re]("dd",l(o))[Re]("d",o)[Re]("hh",l(s))[Re]("h",s)[Re]("mm",l(u))[Re]("m",u)[Re]("ss",l(c))[Re]("s",c)},c=n[Je]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return u(e[0],i)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=h[$e],l=s(h,n,0,r),u=h[Math.min(l,r-1)],c=u[2],d=[a(e[0]/c)*c,o(e[1]/c)*c];this._stepLvl=u,this._interval=c,this._niceExtent=d}});e.each([de,"normalize"],function(t){c[pi][t]=function(e){return e=+i.parseDate(e),r[t].call(this,e)}});var h=[["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,864e5],["week",7,6048e5],["month",1,26784e5],["quarter",3,8208e6],["half-year",6,16416e6],["year",1,32832e6]];return c[he]=function(){return new c},c}),e("echarts/scale/Log",[_i,yi,"./Scale","../util/number","./Interval"],function(t){var e=t(yi),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[pi],o=r[pi],s=Math.floor,l=Math.ceil,u=Math.pow,c=10,h=Math.log,d=i[Je]({type:"log",getTicks:function(){return e.map(o[ce].call(this),function(t){return n.round(u(c,t))})},getLabel:o[ue],scale:function(t){return t=a.scale.call(this,t),u(c,t)},setExtent:function(t,e){t=h(t)/h(c),e=h(e)/h(c),o.setExtent.call(this,t,e)},getExtent:function(){var t=a[le].call(this);return t[0]=u(c,t[0]),t[1]=u(c,t[1]),t},unionExtent:function(t){t[0]=h(t[0])/h(c),t[1]=h(t[1])/h(c),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var r=u(10,s(h(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(l(e[0]/r)*r),n.round(s(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:o.niceExtent});return e.each([de,"normalize"],function(t){d[pi][t]=function(e){return e=h(e)/h(c),a[t].call(this,e)}}),d[he]=function(){return new d},d}),e(yi,[_i,"../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[$e];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(t){if(!n)return t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!w(s)||!w(o)||_(s)||_(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[$e];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[se]("canvas")}function s(){return z||(z=B.createCanvas()[oe]("2d")),z}function l(t,e){if(t){if(t[De])return t[De](e);for(var i=0,n=t[$e];n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t[pi];i[pi]=e[pi],t[pi]=new i;for(var r in n)t[pi][r]=n[r];t[pi].constructor=t,t.superClass=e}function c(t,e,i){t=pi in t?t[pi]:t,e=pi in e?e[pi]:e,a(t,e,i)}function h(t){return t?typeof t==fi?!1:typeof t[$e]==Ae:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===D)t.forEach(e,i);else if(t[$e]===+t[$e])for(var n=0,r=t[$e];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===O)return t.map(e,i);for(var n=[],r=0,a=t[$e];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[$e];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(t&&e){if(t[vi]&&t[vi]===V)return t[vi](e,i);for(var n=[],r=0,a=t[$e];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[$e];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[ae](R.call(arguments)))}}function y(t){var e=R.call(arguments,1);return function(){return t.apply(this,e[ae](R.call(arguments)))}}function _(t){return"[object Array]"===I.call(t)}function x(t){return typeof t===Ie}function b(t){return"[object String]"===I.call(t)}function w(t){var e=typeof t;return e===Ie||!!t&&"object"==e}function M(t){return!!P[I.call(t)]||t instanceof A}function S(t){return t&&1===t.nodeType&&typeof t.nodeName==fi}function T(){for(var t=0,e=arguments[$e];e>t;t++)if(null!=arguments[t])return arguments[t]}function C(){return Function.call.apply(R,arguments)}function L(t,e){if(!t)throw new Error(e)}var z,A=t("../graphic/Gradient"),P={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},I=Object[pi].toString,k=Array[pi],D=k.forEach,V=k[vi],R=k.slice,O=k.map,E=k.reduce,B={inherits:u,mixin:c,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:C,find:v,isArrayLike:h,each:d,map:f,reduce:p,filter:m,bind:g,curry:y,isArray:_,isString:b,isObject:w,isFunction:x,isBuildInObject:M,isDom:S,retrieve:T,assert:L,noop:function(){}};return B}),e("echarts/chart/line/LineSeries",[_i,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[Je]({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",[_i,yi,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",re,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[$e]===e[$e]){for(var i=0;i<t[$e];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return typeof t===Ae?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t.getBaseAxis(),n=t[ne](i),a=i.onZero?0:n.scale[le]()[0],o=n.dim,s="x"===o||o===ie?1:0;return e[ee]([o],function(n,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t.dataToPoint(h)},!0)}function o(t,e){return null!=e[Ge]?e[Ge]:null!=e.name?t.indexOfName(e.name):void 0}function s(t,e,i){var r=n(t[te]("x")),a=n(t[te]("y")),o=t.getBaseAxis().isHorizontal(),s=r[0],l=a[0],u=r[1]-s,c=a[1]-l;i.get("clipOverflow")||(o?(l-=c,c*=3):(s-=u,u*=3));var h=new p.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(h.shape[o?"width":ni]=0,p.initProps(h,{shape:{width:u,height:c}},i)),h}function l(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[le](),o=n[le](),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[J]}});return e&&(l.shape.endAngle=-o[0]*s,p.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function u(t,e,i){return"polar"===t.type?l(t,e,i):s(t,e,i)}var c=t(yi),h=t("../helper/SymbolDraw"),d=t("../helper/Symbol"),f=t("./lineAnimationDiff"),p=t(re),m=t("./poly"),v=t("../../view/Chart");return v[Je]({type:"line",init:function(){var t=new p.Group,e=new h;this.group.add(e.group),this.group.add(t),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var o=t[fe],s=this.group,l=t[qe](),h=t[hi]("lineStyle.normal"),d=t[hi]("areaStyle.normal"),f=l[ee](l.getItemLayout,!0),p="polar"===o.type,m=this._coordSys,v=this._symbolDraw,g=this._polyline,y=this._polygon,_=this._lineGroup,x=t.get(Q),b=!d.isEmpty(),w=a(o,l),M=t.get("showSymbol"),S=M&&!p&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(s[ti](t),T.setItemGraphicEl(e,null))}),M||v[ti](),g&&m.type===o.type?(x&&_.setClipPath(u(o,!1,t)),M&&v[K](l,S),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,w)&&e(this._points,f)||(x?this._updateAnimation(l,w,o,r):(g[$]({points:f}),y&&y[$]({points:f,stackedOnPoints:w}))),s.add(_)):(M&&v[K](l,S),g=this._newPolyline(s,f,o,x),b&&(y=this._newPolygon(s,f,w,o,x)),_.setClipPath(u(o,!0,t))),g[me](c[Ke](h.getLineStyle(),{stroke:l.getVisual("color"),lineJoin:"bevel"}));var C=t.get("smooth");if(C=i(t.get("smooth")),g.shape.smooth=C,y){var L=y.shape,z=l.stackedOn,A=0;if(y.style[pe]=.7,y[me](c[Ke](d.getAreaStyle(),{fill:l.getVisual("color"),lineJoin:"bevel"})),L.smooth=C,z){var P=z[Ne];A=i(P.get("smooth"))}L.stackedOnSmooth=A}this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=f},highlight:function(t,e,i,n){var r=t[qe](),a=o(r,n);if(null!=a&&a>=0){var s=r[Y](a);if(!s){var l=r.getItemLayout(a);s=new d(r,a,i),s[ve]=l,s.setZ(t.get(Ee),t.get("z")),s[ai]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else v[pi].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[qe](),a=o(r,n);if(null!=a&&a>=0){var s=r[Y](a);s&&(s.__temp?(r.setItemGraphicEl(a,null),this.group[ti](s)):s.downplay())}else v[pi].downplay.call(this,t,e,i,n)},_newPolyline:function(t,e){var i=this._polyline;return i&&t[ti](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[ti](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(X)[0];return i&&i.isLabelIgnored?c.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i){var n=this._polyline,r=this._polygon,a=t[Ne],o=f(this._data,t,this._stackedOnPoints,e,this._coordSys,i);n.shape.points=o.current,p.updateProps(n,{shape:{points:o.next}},a),r&&(r[$]({points:o.current,stackedOnPoints:o.stackedOnCurrent}),p.updateProps(r,{shape:{points:o.next,stackedOnPoints:o.stackedOnNext}},a));for(var s=[],l=o.status,u=0;u<l[$e];u++){var c=l[u].cmd;if("="===c){var h=t[Y](l[u].idx1);h&&s.push({el:h,ptIdx:u})}}n.animators&&n.animators[$e]&&n.animators[0].during(function(){for(var t=0;t<s[$e];t++){var e=s[t].el;e.attr(ve,n.shape.points[s[t].ptIdx])}})},remove:function(){var t=this.group;t[ti](this._lineGroup),this._symbolDraw[ti](!0)}})}),e("echarts/visual/symbol",[_i],function(){return function(t,e,i,n){n.eachRawSeriesByType(t,function(t){var r=t[qe](),a=t.get(U)||e,o=t.get(j);r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===Ie&&r.each(function(e){var i=t[q](e),n=t[Be](e);r[W](e,j,o(i,n))}),r.each(function(t){var e=r[H](t),i=e.get(U,!0),n=e.get(j,!0);null!=i&&r[W](t,U,i),null!=n&&r[W](t,j,n)}))})}}),e("echarts/layout/points",[_i],function(){return function(t,e){e.eachSeriesByType(t,function(t){var e=t[qe](),i=t[fe],n=i[F];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[0/0,0/0]:i.dataToPoint([t,n]),e.setItemLayout(r,a)},!0)})}}),e("echarts/ExtensionAPI",[_i,yi],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(yi),n=["getDom","getZr",ci,ui,Qe,"on","off","getDataURL","getConnectedDataURL"];return e}),e("echarts/model/Global",[_i,yi,"./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)_.hasClass(i)||(t[i]="object"==typeof e[i]?t[i]?h.merge(t[i],e[i],!1):h.clone(e[i]):e[i])}function i(t){t=t,this[G]={},this._componentsMap={},this._seriesIndices=null,e(t,this._theme[G]),h.merge(t,x,!1),this[N](t)}function n(t,e){h[Ve](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[$e];a>r;r++)if(t[r].id===e.id)return void(i[n]=t[je](r,1)[0])}),f(e,function(e,n){if(y(e)&&e.name&&!u(e))for(var r=0,a=t[$e];a>r;r++)if(t[r].name===e.name)return void(i[n]=t[je](r,1)[0])}),f(e,function(e,n){i[n]||!t[n]||u(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:_.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 u(t){return t.id&&0===(t.id+"")[De]("\x00_ec_\x00")}function c(t){if(!t._seriesIndices)throw new Error("Series is not initialized. Please depends sereis.")}var h=t(yi),d=t("./Model"),f=h.each,p=h[vi],m=h.map,v=h[Ve],g=h[De],y=h[ei],_=t("./Component"),x=t("./globalDefault"),b=d[Je]({constructor:b,init:function(t,e,i,n){i=i||{},this[G]=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[G]&&"recreate"!==t?(this.restoreData(),this[N](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[N](a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[$e]&&f(o,function(t){this[N](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===Ue&&(this._seriesIndices=s(u[Ue]))}function i(t){f(u[t],function(t){t[N]({},this)},this)}function o(t,e,i){h[Ve](e)||(e=[e]),u[t]||(u[t]=[]);var o=r(u[t],e),s=a(t,e,o),c=n(u,i);l[t]=[],f(e,function(e,i){if(y(e)){var n=o[i],r=_.getClass(t,s[i].subType,!0);n&&n instanceof r?n[N](e,this):(n=new r(e,this,this,h[Je]({dependentModels:c,componentIndex:i},s[i])),u[t][i]=n),l[t][i]=n[G]}},this)}var l=this[G],u=this._componentsMap,c=[];f(t,function(t,e){null!=t&&(_.hasClass(e)?c.push(e):l[e]=null==l[e]?h.clone(t):h.merge(l[e],t,!0))}),_.topologicalTravel(c,_.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[$e])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 u=v(r);o=p(a,function(t){return u&&g(r,t.name)>=0||!u&&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[vi]?p(e,t[vi]):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===Ie)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(h[Le](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[Ue];return p(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[Ue][t]},getSeriesByType:function(t){var e=this._componentsMap[Ue];return p(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[Ue].slice()},eachSeries:function(t,e){c(this),f(this._seriesIndices,function(i){var n=this._componentsMap[Ue][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap[Ue],t,e)},eachSeriesByType:function(t,e,i){c(this),f(this._seriesIndices,function(n){var r=this._componentsMap[Ue][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 c(this),h[De](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){c(this);var i=p(this._componentsMap[Ue],t,e);this._seriesIndices=s(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t[Ue]);var e=[];f(t,function(t,i){e.push(i)}),_.topologicalTravel(e,_.getAllClassMainTypes(),function(e){f(t[e],function(t){t.restoreData()})})}});return b}),e("echarts/CoordinateSystem",[_i],function(){function t(){this._coordinateSystems={},this._coordinateSystemsList=[]}var e={};return t[pi]={constructor:t,update:function(t,i){var n={};for(var r in e)n[r]=e[r][he](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",[_i,yi],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((l||t.options)&&(n=t.baseOption||{},r=(t.options||[]).slice()),t.media){n=t.baseOption||{};var u=t.media;s(u,function(t){t&&t[G]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=l),s([n][ae](r)[ae](o.map(a,function(t){return t[G]})),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(c);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][mi]();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(yi),s=o.each,l=o.clone,u=o.map,c=/^(min|max)?(.+)$/;return e[pi]={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=u(t.timelineOptions,l),this._mediaList=u(t.mediaList,l),this._mediaDefault=l(t.mediaDefault),this._currentMediaIndices=[],l(t.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[$e]){var n=t[Z]("timeline");n&&(e=l(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[ci](),e=this._api[ui](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[$e]&&!r)return s;for(var c=0,h=i[$e];h>c;c++)n(i[c].query,t,e)&&o.push(c);return!o[$e]&&r&&(o=[-1]),o[$e]&&!a(o,this._currentMediaIndices)&&(s=u(o,function(t){return l(-1===t?r[G]:i[t][G])})),this._currentMediaIndices=o,s}},e}),e("echarts/model/Component",[_i,"./Model",yi,"../util/component","../util/clazz","../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[pi].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(yi),r=Array[pi].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[Je]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this[B](this[G],this[E])},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[G],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[G],t,e)},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[pi].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[$e]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o.enableClassExtend(l,function(t,e,i,r){n[Je](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/Series",[_i,yi,"../util/format","../util/model","./Component"],function(t){var e=t(yi),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i.addCommas,s=r[Je]({type:"series",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i){this[Ze]=this.componentIndex,this[B](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,[ve,"show",Te,"distance",O])},mergeOption:function(t,i){t=e.merge(this[G],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[G].data},getDimensionsOnAxis:function(t){return[t]},formatTooltip:function(t,i){var n=this._data,r=this[q](t),s=e[Ve](r)?e.map(r,o).join(", "):o(r),l=n[R](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",[_i,"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[pi]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[pi];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[_i,"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[Ye](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[Ge]){var r=t[Y](e[Ge]);i(r,n)}else if(e.name){var a=t.indexOfName(e.name),r=t[Y](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[pi]={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,r){n(t[qe](),r,V)},downplay:function(t,e,i,r){n(t[qe](),r,D)},remove:function(){this.group[Ce]()},dispose:function(){}};var s=e[pi];return s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},o.enableClassExtend(e),o.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("echarts/util/graphic",[_i,yi,"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[P],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof y?i:m.lift(i,-.1)),n[P]=n[P]||(e instanceof y?e:m.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[Oe](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[Oe](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 u(){this.__isEmphasis=!1,r(this)}function c(t,e,i,n,r){var a=t?"Update":"",o=n&&n[A]("animationDuration"+a),s=n&&n[A]("animationEasing"+a);n&&n[A](Q)?e.animateTo(i,o,s,r):(e.attr(i),r&&r())}var h=t(yi),d=t("zrender/tool/path"),f=Math.round,p=t("zrender/graphic/Path"),m=t("zrender/tool/color"),v=t("zrender/core/matrix"),g=t("zrender/core/vector"),y=t("zrender/graphic/Gradient"),_={};return _.Group=t("zrender/container/Group"),_.Image=t("zrender/graphic/Image"),_.Text=t("zrender/graphic/Text"),_.Circle=t("zrender/graphic/shape/Circle"),_.Sector=t("zrender/graphic/shape/Sector"),_.Polygon=t("zrender/graphic/shape/Polygon"),_.Polyline=t("zrender/graphic/shape/Polyline"),_.Rect=t("zrender/graphic/shape/Rect"),_.Line=t("zrender/graphic/shape/Line"),_.BezierCurve=t("zrender/graphic/shape/BezierCurve"),_.Arc=t("zrender/graphic/shape/Arc"),_.LinearGradient=t("zrender/graphic/LinearGradient"),_.RadialGradient=t("zrender/graphic/RadialGradient"),_.extendShape=function(t){return p[Je](t)},_.extendPath=function(t,e){return d.extendFromString(t,e)},_.makePath=function(t,e,i,n){var r=d.createFromString(t,e),a=r[be]();if(i){var o=a.width/a[ni];if(n===ge){var s,l=i[ni]*o;l<=i.width?s=i[ni]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[ni]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[ni]=s}this.resizePath(r,i)}return r},_.mergePath=d.mergePath,_.resizePath=function(t,e){if(t[k]){var i=t[be](),n=i.calculateTransform(e);t[k](n)}},_.subPixelOptimizeLine=function(t){var e=_.subPixelOptimize,i=t.shape,n=t.style[I];return f(2*i.x1)===f(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),f(2*i.y1)===f(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},_.subPixelOptimizeRect=function(t){var e=_.subPixelOptimize,i=t.shape,n=t.style[I],r=i.x,a=i.y,o=i.width,s=i[ni];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[ni]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},_.subPixelOptimize=function(t,e,i){var n=f(2*t);return(n+f(e))%2===0?n/2:(n+(i?1:-1))/2},_.setHoverStyle=function(t,e){e=e||{},"group"===t.type?t[Oe](function(t){"group"!==t.type&&a(t,e)}):a(t,e),t.on(We,o).on(He,s),t.on(V,l).on(D,u)},_.setText=function(t,e,i){var n=e[A](ve)||"inside",r=n[De]("inside")>=0?"white":i,a=e[hi](Te);h[Je](t,{textDistance:e[A]("distance")||5,textFont:a[Me](),textPosition:n,textFill:a[we]()||r})},_.updateProps=h.curry(c,!0),_.initProps=h.curry(c,!1),_.getTransform=function(t,e){for(var i=v.identity([]);t&&t!==e;)v.mul(i,t[z](),i),t=t[L];return i},_[k]=function(t,e,i){return i&&(e=v.invert([],e)),g[k]([],t,e)},_.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===ri?r:0];return a=_[k](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?ri:"top"},_}),e("zrender/zrender",[_i,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete u[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n[li],l={canvas:t("./Painter")},u={},c={};c.version="3.0.0",c.init=function(t,e){var n=new h(i(),t,e);return u[n.id]=n,n},c.dispose=function(t){if(t)t.dispose();else{for(var e in u)u[e].dispose();u={}}return c},c.getInstance=function(t){return u[t]},c.registerPainter=function(t,e){l[t]=e};var h=function(t,e,i){i=i||{},this.dom=e,this.id=t;var u=this,c=new a,h=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&l[h]||(h="canvas");var d=new l[h](e,c,i);this.storage=c,this.painter=d,n.node||(this.handler=new r(d.getViewportRoot(),c,d)),this[Q]=new o({stage:{update:function(){u._needsRefresh&&u.refreshImmediately()}}}),this[Q].start(),this._needsRefresh;var f=c.delFromMap,p=c.addToMap;c.delFromMap=function(t){var e=c.get(t);f.call(c,t),e&&e.removeSelfFromZr(u)},c.addToMap=function(t){p.call(c,t),t.addSelfToZr(u)}};return h[pi]={constructor:h,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[di](),this.handler&&this.handler[di]()},clearAnimation:function(){this[Q].clear()},getWidth:function(){return this.painter[ci]()},getHeight:function(){return this.painter[ui]()},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[Ye](t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[Q].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this[Q]=this.storage=this.painter=this.handler=null,e(this.id)}},c}),e("zrender/tool/color",[_i],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[$e]&&"%"===e.charAt(e[$e]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[$e]&&"%"===t.charAt(t[$e]-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[Re](/ /g,"")[mi]();if(e in y)return y[e].slice();if("#"!==e.charAt(0)){var i=e[De]("("),a=e[De](")");if(-1!==i&&a+1===e[$e]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[$e])return;u=r(s.pop());case"rgb":if(3!==s[$e])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[$e])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[$e])return;return l(s);default:return}}}else{if(4===e[$e]){var c=parseInt(e.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===e[$e]){var c=parseInt(e.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function l(e){var i=(parseFloat(e[0])%360+360)%360/360,n=r(e[1]),o=r(e[2]),s=.5>=o?o*(n+1):o+n-o*n,l=2*o-s,u=[t(255*a(l,s,i+1/3)),t(255*a(l,s,i)),t(255*a(l,s,i-1/3))];return 4===e[$e]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function c(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return g(i,4===i[$e]?"rgba":"rgb")}}function h(t){var e=s(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function d(e,i,n){if(i&&i[$e]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[$e]-1),a=Math.floor(r),s=Math.ceil(r),l=i[a],u=i[s],c=r-a;return n[0]=t(o(l[0],u[0],c)),n[1]=t(o(l[1],u[1],c)),n[2]=t(o(l[2],u[2],c)),n[3]=t(o(l[3],u[3],c)),n}}function f(e,n,r){if(n&&n[$e]&&e>=0&&1>=e){var a=e*(n[$e]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),d=a-l,f=g([t(o(c[0],h[0],d)),t(o(c[1],h[1],d)),t(o(c[2],h[2],d)),i(o(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:u,value:a}:f}}function p(t,e){if(!(2!==t[$e]||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=u(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:c,toHex:h,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.]+)/),u=l&&t.match(/TouchPad/),c=t.match(/Kindle\/([\d.]+)/),h=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.]+)/),_=n&&t.match(/Mobile\//)&&!v,x=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][Re](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][Re](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][Re](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),u&&(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),c&&(e.kindle=!0,e.version=c[1]),h&&(i.silk=!0,i.version=h[1]),!h&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),v&&(i.chrome=!0,i.version=v[1]),g&&(i.firefox=!0,i.version=g[1]),y&&(i.ie=!0,i.version=y[1]),_&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(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[se]("canvas")[oe]?!0:!1}}return typeof navigator===C?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("zrender/mixin/Eventful",[_i,T],function(t){var e=Array[pi].slice,i=t(T),n=i[De],r=function(){this._$handlers={}};return r[pi]={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][$e]},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][$e];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][$e]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[$e];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[$e],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[je](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[$e];n>4&&(i=e.call(i,1,i[$e]-1));for(var r=i[i[$e]-1],a=this._$handlers[t],o=a[$e],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[je](s,1),o--):s++}}return this}},r}),e("echarts/loading/default",[_i,"../util/graphic",yi],function(t){var e=t("../util/graphic"),i=t(yi),n=Math.PI;return function(t,r){r=r||{},i[Ke](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[Ee],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[Ee],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[Ee],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[di]=function(){var e=t[ci]()/2,i=t[ui]()/2;o[$]({cx:e,cy:i});var n=o.shape.r;s[$]({x:e-n,y:i-n,width:2*n,height:2*n}),a[$]({x:0,y:0,width:t[ci](),height:t[ui]()})},l[di](),l}}),e("echarts/visual/seriesColor",[_i,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,D,"color"],a=n.get("color"),o=t[qe](),s=t.get(r)||a[t[Ze]%a[$e]];o.setVisual("color",s),n.isSeriesFiltered(t)||(typeof s!==Ie||s instanceof e||o.each(function(e){o[W](e,"color",s(t[Be](e)))}),o.each(function(t){var e=o[H](t),i=e.get(r,!0);null!=i&&o[W](t,"color",i)}))}t?n.eachSeriesByType(t,r):n[Xe](r)}}),e("echarts/preprocessor/backwardCompat",[_i,yi,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[$e]&&(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[$e]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){u(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(yi),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",ri]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],u=r.each;return function(t){u(t[Ue],function(t){if(r[ei](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var u=0;u<l[$e];u++)if(l[u]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),u(s,function(e){var i=t[e];i&&(r[Ve](i)||(i=[i]),u(i,function(t){n(t)}))})}}),e("echarts/util/format",[_i,yi],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][Re](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[$e]>1?"."+t[1]:""))}function i(t){return t[mi]()[Re](/-(.)/g,function(t,e){return e.toUpperCase()})}function n(t){var e=t[$e];return typeof t===Ae?[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)[Re](/&/g,"&amp;")[Re](/</g,"&lt;")[Re](/>/g,"&gt;")[Re](/"/g,"&quot;")[Re](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){s[Ve](e)||(e=[e]);var i=e[$e];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[$e];r++){var o=l[r];t=t[Re](a(o),a(o,0))}for(var u=0;i>u;u++)for(var c=0;c<n[$e];c++)t=t[Re](a(l[c],u),e[u][n[c]]);return t}var s=t(yi),l=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o}}),e("echarts/util/number",[_i,yi],function(t){function e(t){return t[Re](/^\s+/,"")[Re](/\s+$/,"")}var i=t(yi),n={},r=1e-4;return n[S]=function(t,e,r,a){if(i[Ve](t))return i.map(t,function(t){return n[S](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.parsePercent=function(t,i){switch(t){case ge:case M:t="50%";break;case"left":case"top":t="0%";break;case"right":case ri:t="100%"}return typeof t===fi?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):null==t?0/0:+t},n.round=function(t){return+(+t)[w](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===fi?t[Re](/-/g,"/"):t)},n}),e("echarts/chart/treemap/TreemapSeries",[_i,"../../model/Series","../../data/Tree",yi,"../../model/Model","../../util/format"],function(t){function e(t,i){var n=0;a.each(t.children,function(t){e(t,i);var r=t.value;a[Ve](r)&&(r=r[0]),n+=r});var r=t.value;i>=0&&(a[Ve](r)?r=r[0]:t.value=new Array(i)),(null==r||isNaN(r))&&(r=n),0>r&&(r=0),i>=0?t.value[0]=r:t.value=r}function i(t,e){var i=e.get("color");if(i){t=t||[];var n;if(a.each(t,function(t){var e=new o(t),i=e.get("color");(e.get("itemStyle.normal.color")||i&&"none"!==i)&&(n=!0)}),!n){var r=t[0]||(t[0]={});r.color=i.slice()}return t}}var n=t("../../model/Series"),r=t("../../data/Tree"),a=t(yi),o=t("../../model/Model"),s=t("../../util/format"),l=s.encodeHTML,u=s.addCommas;return n[Je]({type:"series.treemap",dependencies:["grid","polar"],defaultOption:{left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),root:null,visualDimension:0,zoomToNodeRatio:.1024,roam:!0,animation:!0,animationDurationUpdate:1500,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:["50%","50%"],textStyle:{align:"center",baseline:"middle",color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},color:"none",colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,n){var o=t.data||[],s=t.name;
null==s&&(s=t.name);var l={name:s,children:t.data},u=(o[0]||{}).value;e(l,a[Ve](u)?u[$e]:-1);var c=t.levels||[];return c=t.levels=i(c,n),r.createTree(l,this,c).data},getViewRoot:function(){var t=this[G].root,e=this[qe]().tree.root;return t&&e.getNodeById(t)||e},formatTooltip:function(t){var e=this[qe](),i=this[q](t),n=u(a[Ve](i)?i[0]:i),r=e[R](t);return l(r)+": "+n},getDataParams:function(t){for(var e=n[pi][Be].apply(this,arguments),i=this[qe](),r=i.tree.getNodeByDataIndex(t),a=e.treePathInfo=[];r;){var o=r[Ge];a.push({name:r.name,dataIndex:o,value:this[q](o)}),r=r[b]}return a[x](),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},a[Je](this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap={},this._idIndexMapCount=0);var i=e[t];return null==i&&(e[t]=i=this._idIndexMapCount++),i}})}),e("echarts/chart/treemap/TreemapView",[_i,yi,re,"../../data/DataDiffer","./helper","./Breadcrumb","../../component/helper/RoamController",_,"zrender/core/matrix","../../util/animation",y],function(t){function e(){return{nodeGroup:[],background:[],content:[]}}var i=t(yi),n=t(re),r=t("../../data/DataDiffer"),a=t("./helper"),o=t("./Breadcrumb"),s=t("../../component/helper/RoamController"),l=t(_),u=t("zrender/core/matrix"),c=t("../../util/animation"),h=i.bind,d=n.Group,f=n.Rect,p=i.each,m=3;return t(y).extendChartView({type:"treemap",init:function(){this._containerGroup,this._storage=e(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(t,e,n,r){var o=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(i[De](o,t)<0)){this.seriesModel=t,this.api=n,this[E]=e;var s=r&&r.type,l=t.layoutInfo,u=!this._oldTree,c=this._giveContainerGroup(l),h=this._doRender(c,t);u||s&&"treemapZoomToNode"!==s?h.renderFinally():this._doAnimation(c,h,t),this._resetController(n);var d=a.retrieveTargetInfo(r,t);this._renderBreadcrumb(t,n,d)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new d,this._initEvents(e),this.group.add(e)),e[ve]=[t.x,t.y],e},_doRender:function(t,n){function a(t,e,n,o,s){function l(t){return t.getId()}function u(i,r){var l=null!=i?t[i]:null,u=null!=r?e[r]:null,c=s||l===_;c||(l=null);var h=y(l,u,n);h&&a(l&&l.viewChildren||[],u&&u.viewChildren||[],h,o,c)}o?(e=t,p(t,function(t,e){!t.isRemoved()&&u(e,e)})):new r(e,t,l,l).add(u)[ii](u)[ti](i.curry(u,null)).execute()}function o(t){var i=e();return t&&p(t,function(t,e){var n=i[e];p(t,function(t){t&&(n.push(t),t.__tmWillDelete=e)})}),i}function s(){p(g,function(t){p(t,function(t){t[L]&&t[L][ti](t)})}),p(m,function(t){t.invisible=!0}),p(v,function(t){t.invisible=!1,t.__tmWillVisible=!1,t.dirty()})}var l=n[qe]().tree,u=this._oldTree,c=e(),d=e(),f=this._storage,m=[],v=[],g=[],y=h(this._renderNode,this,d,f,c,m,v),_=n.getViewRoot();a(l.root?[l.root]:[],u&&u.root?[u.root]:[],t,l===u||!u,_===l.root);var g=o(f);return this._oldTree=l,this._storage=d,{lastsForAnimation:c,willDeleteEls:g,renderFinally:s}},_renderNode:function(t,e,n,r,a,o,s,l){function u(i,r){var a=null!=v&&e[i][v],o=n[i];return a?(e[i][v]=null,c(o,a,i)):x||(a=new r,h(o,a,i)),t[i][m]=a}function c(t,e,n){var r=t[m]={};r.old="nodeGroup"===n?e[ve].slice():i[Je]({},e.shape)}function h(t,e,i){if("background"===i)e.invisible=!0,e.__tmWillVisible=!0,a.push(e);else{var r,s=o[b],l=0,u=0;s&&(r=n.background[s.getRawIndex()])&&(l=r.old.width,u=r.old[ni]);var c=t[m]={};c.old="nodeGroup"===i?[l,u]:{x:l,y:u,width:0,height:0},c.fadein="nodeGroup"!==i}}function p(t,e){x?!t.invisible&&r.push(t):(t[me](e),t.__tmWillVisible||(t.invisible=!1))}var m=o&&o.getRawIndex(),v=s&&s.getRawIndex();if(o){var g=o.getLayout(),y=g.width,_=g[ni],x=g.invisible,w=u("nodeGroup",d);if(w){l.add(w),w[ve]=[g.x,g.y],w.__tmNodeWidth=y,w.__tmNodeHeight=_;var M=u("background",f);M&&(M[$]({x:0,y:0,width:y,height:_}),p(M,{fill:o.getVisual("borderColor",!0)}),w.add(M));var S=o.viewChildren;if(!S||!S[$e]){var T=g.borderWidth,C=u("content",f);if(C){var L=Math.max(y-2*T,0),z=Math.max(_-2*T,0),A=o[hi]("label.normal"),P=o[hi]("label.normal.textStyle"),I=o[hi]().get("name"),k=P.getTextRect(I),D=A.get("show");!D||k[ni]>z?I="":k.width>L&&(I=P.get("ellipsis")?P.ellipsis(I,L):""),C[Ge]=o[Ge],C[Ze]=this.seriesModel[Ze],C.culling=!0,C[$]({x:T,y:T,width:L,height:z}),p(C,{fill:o.getVisual("color",!0),text:I,textPosition:A.get(ve),textFill:P[we](),textAlign:P.get("align"),textBaseline:P.get("baseline"),textFont:P[Me]()}),w.add(C)}}return w}}},_doAnimation:function(t,e,n){if(n.get(Q)){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=c.createWrap(),s=this.seriesModel.getViewRoot(),l=this._storage.nodeGroup[s.getRawIndex()];l&&l[Oe](function(t){var e;if(!t.invisible&&(e=t.__tmWillDelete)){var i=0,n=0,s=t[L];s.__tmWillDelete||(i=s.__tmNodeWidth,n=s.__tmNodeHeight);var l="nodeGroup"===e?{position:[i,n],style:{opacity:0}}:{shape:{x:i,y:n,width:0,height:0},style:{opacity:0}};o.add(t,l,r,a)}}),p(this._storage,function(t,n){p(t,function(t,s){var l,u=e.lastsForAnimation[n][s];u&&("nodeGroup"===n?(l={position:t[ve].slice()},t[ve]=u.old):(l={shape:i[Je]({},t.shape)},t[$](u.old),u.fadein?(t[me](pe,0),l.style={opacity:1}):1!==t.style[pe]&&(l.style={opacity:1})),o.add(t,l,r,a))})},this),this._state="animating",o.done(h(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){function e(t){return this._mayClick=!1,t.apply(this,Array[pi].slice.call(arguments,1))}var i=this._controller;return i||(i=this._controller=new s(t.getZr()),i.enable(),i.on("pan",h(e,this,this._onPan)),i.on("zoom",h(e,this,this._onZoom))),i.rect=new l(0,0,t[ci](),t[ui]()),this.seriesModel.get("roam")?void 0:(i.off("pan").off("zoom"),void(this._controller=null))},_onPan:function(t,e){if("animating"!==this._state&&(Math.abs(t)>m||Math.abs(e)>m)){var i=this.seriesModel.getViewRoot();if(!i)return;var n=i.getLayout();if(!n)return;this.api[Qe]({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n[ni]}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getViewRoot();if(!n)return;var r=n.getLayout();if(!r)return;var a=new l(r.x,r.y,r.width,r[ni]),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=u[he]();u.translate(s,s,[-e,-i]),u.scale(s,s,[t,t]),u.translate(s,s,[e,i]),a[k](s),this.api[Qe]({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a[ni]}})}},_initEvents:function(t){function e(t){var e=this.findTarget(t[g],t[v]);e&&this._zoomToNode(e)}t.on("mousedown",function(){"ready"===this._state&&(this._mayClick=!0)},this),t.on("mouseup",function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,i){function n(t){this._zoomToNode({node:t})}i||(i=this.findTarget(e[ci]()/2,e[ui]()/2),i||(i={node:t[qe]().tree.root})),(this._breadcrumb||(this._breadcrumb=new o(this.group,h(n,this)))).render(t,e,i.node)},remove:function(){this._containerGroup&&this._containerGroup[Ce](),this._storage=e(),this._state="ready",this._breadcrumb&&this._breadcrumb[ti]()},_zoomToNode:function(t){this.api[Qe]({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(n){var r=this._storage.background[n.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o[ni]))return!1;i={node:n,offsetX:a[0],offsetY:a[1]}}},this),i}})}),e("echarts/chart/treemap/treemapAction",[_i,y],function(t){var e=t(y),i=function(){};e[ke]({type:"treemapZoomToNode",update:"updateView"},i),e[ke]({type:"treemapRender",update:"updateView"},i),e[ke]({type:"treemapMove",update:"updateView"},i)}),e("echarts/chart/treemap/treemapVisual",[_i,"../../visual/VisualMapping","zrender/tool/color",yi],function(t){function e(t,a,s,u,c,d){var p=t[hi](),m=t.getLayout();if(!m.invisible){var v,g=t[hi](f),y=s[t.depth],_=i(g,a,y,u),x=g.get("borderColor"),b=g.get("borderColorSaturation");null!=b&&(v=n(_,t),x=r(b,v)),t.setVisual("borderColor",x);var w=t.viewChildren;if(w&&w[$e]){var M=o(t,p,m,g,_,w);h.each(w,function(t,i){if(t.depth>=c[$e]||t===c[t.depth]){var n=l(p,_,t,i,M,d);e(t,n,s,u,c,d)}})}else v=n(_,t),t.setVisual("color",v)}}function i(t,e,i,n){var r=h[Je]({},e);return h.each(["color","colorAlpha","colorSaturation"],function(a){var o=t.get(a,!0);null==o&&i&&(o=i[a]),null==o&&(o=e[a]),null==o&&(o=n.get(a)),null!=o&&(r[a]=o)}),r}function n(t){var e=a(t,"color");if(e){var i=a(t,"colorAlpha"),n=a(t,"colorSaturation");return n&&(e=c.modifyHSL(e,null,null,n)),i&&(e=c.modifyAlpha(e,i)),e}}function r(t,e){return null!=e?c.modifyHSL(e,null,null,t):null}function a(t,e){var i=t[e];return null!=i&&"none"!==i?i:void 0}function o(t,e,i,n,r,a){if(a&&a[$e]){var o=s(e,"color")||null!=r.color&&"none"!==r.color&&(s(e,"colorAlpha")||s(e,"colorSaturation"));if(o){var l=e.get("colorMappingBy"),c={type:o.name,dataExtent:i.dataExtent,visual:o.range};"color"!==c.type||"index"!==l&&"id"!==l?c.mappingMethod="linear":(c.mappingMethod=m,c.loop=!0);var h=new u(c);return h.__drColorMappingBy=l,h}}}function s(t,e){var i=t.get(e);return d(i)&&i[$e]?{name:e,range:i}:null}function l(t,e,i,n,r,a){var o=h[Je]({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?n:"id"===l?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}var u=t("../../visual/VisualMapping"),c=t("zrender/tool/color"),h=t(yi),d=h[Ve],f="itemStyle.normal";return function(t,i){var n={mainType:"series",subType:"treemap",query:i};t[oi](n,function(t){var i=t[qe]().tree,n=i.root,r=t[hi](f);if(!n.isRemoved()){var a=h.map(i.levelModels,function(t){return t?t.get(f):null});e(n,{},a,r,t.getViewRoot().getAncestors(),t)}})}}),e("echarts/chart/treemap/treemapLayout",[_i,yi,p,f,_,"./helper"],function(t){function e(t,e,n){var r={mainType:"series",subType:"treemap",query:n};t[oi](r,function(t){var r=e[ci](),a=e[ui](),o=t.get("size")||[],s=w(M(t.get("width"),o[0]),r),l=w(M(t.get(ni),o[1]),a),d=y[_e](t[xe](),{width:e[ci](),height:e[ui]()}),f=n&&n.type,p=T.retrieveTargetInfo(n,t),m="treemapRender"===f||"treemapMove"===f?n.rootRect:null,v=t.getViewRoot();if("treemapMove"!==f){var g="treemapZoomToNode"===f?u(t,p,s,l):m?[m.width,m[ni]]:[s,l],_=t.get("sort");_&&"asc"!==_&&"desc"!==_&&(_="desc");var x={squareRatio:t.get("squareRatio"),sort:_};v.setLayout({x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]}),i(v,x)}v.setLayout(c(d,m,p),!0),t.setLayoutInfo(d),h(v,new S(-d.x,-d.y,r,a))})}function i(t,e){var r,a;if(!t.isRemoved()){var o=t.getLayout();r=o.width,a=o[ni];var u=t[hi]("itemStyle.normal"),c=u.get("borderWidth"),h=u.get("gapWidth")/2,f=c-h,p=t[hi]();t.setLayout({borderWidth:c},!0),r=d(r-2*f,0),a=d(a-2*f,0);var g=r*a,y=n(t,p,g,e);if(y[$e]){var _={x:f,y:f,width:r,height:a},x=m(r,a),b=1/0,w=[];w.area=0;for(var M=0,S=y[$e];S>M;){var T=y[M];w.push(T),w.area+=T.getLayout().area;var C=s(w,x,e.squareRatio);b>=C?(M++,b=C):(w.area-=w.pop().getLayout().area,l(w,x,_,h,!1),x=m(_.width,_[ni]),w[$e]=w.area=0,b=1/0)}w[$e]&&l(w,x,_,h,!0);var L;if(!e.hideChildren){var z=p.get("childrenVisibleMin");null!=z&&z>g&&(L=!0)}for(var M=0,S=y[$e];S>M;M++){var A=v[Je]({hideChildren:L},e);i(y[M],A)}}}}function n(t,e,i,n){var s=t.children||[],l=n.sort;if("asc"!==l&&"desc"!==l&&(l=null),n.hideChildren)return t.viewChildren=[];s=v[vi](s,function(t){return!t.isRemoved()}),a(s,l);var u=o(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=r(e,i,u.sum,l,s),0===u.sum)return t.viewChildren=[];for(var c=0,h=s[$e];h>c;c++){var d=s[c].getValue()/u.sum*i;s[c].setLayout({area:d})}return t.viewChildren=s,t.setLayout({dataExtent:u.dataExtent},!0),s}function r(t,e,i,n,r){if(!n)return i;for(var a=t.get("visibleMin"),o=r[$e],s=o,l=o-1;l>=0;l--){var u=r["asc"===n?o-l-1:l].getValue();a>u/i*e&&(s=l,i-=u)}return"asc"===n?r[je](0,o-s):r[je](s,o-s),i}function a(t,e){return e&&t.sort(function(t,i){return"asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue()}),t}function o(t,e,i){for(var n=0,r=0,a=e[$e];a>r;r++)n+=e[r].getValue();var o,s=t.get("visualDimension");if(e&&e[$e])if("value"===s&&i)o=[e[e[$e]-1].getValue(),e[0].getValue()],"asc"===i&&o[x]();else{var o=[1/0,-1/0];v.each(e,function(t){var e=t.getValue(s);e<o[0]&&(o[0]=e),e>o[1]&&(o[1]=e)})}else o=[0/0,0/0];return{sum:n,dataExtent:o}}function s(t,e,i){for(var n,r=0,a=1/0,o=0,s=t[$e];s>o;o++)n=t[o].getLayout().area,n&&(a>n&&(a=n),n>r&&(r=n));var l=t.area*t.area,u=e*e*i;return l?d(u*r/l,l/(u*a)):1/0}function l(t,e,i,n,r){var a=e===i.width?0:1,o=1-a,s=["x","y"],l=["width",ni],u=i[s[a]],c=e?t.area/e:0;(r||c>i[l[o]])&&(c=i[l[o]]);for(var h=0,f=t[$e];f>h;h++){var p=t[h],v={},g=c?p.getLayout().area/c:0,y=v[l[o]]=d(c-2*n,0),_=i[s[a]]+i[l[a]]-u,x=h===f-1||g>_?_:g,b=v[l[a]]=d(x-2*n,0);v[s[o]]=i[s[o]]+m(n,y/2),v[s[a]]=u+m(n,b/2),u+=x,p.setLayout(v,!0)}i[s[o]]+=c,i[l[o]]-=c}function u(t,e,i,n){var r=(e||{}).node,a=[i,n];if(!r||r===t.getViewRoot())return a;for(var o,s=i*n,l=s*t.get("zoomToNodeRatio");o=r[b];){for(var u=0,c=o.children,h=0,d=c[$e];d>h;h++)u+=c[h].getValue();var f=r.getValue();if(0===f)return a;l*=u/f;var p=o[hi]("itemStyle.normal").get("borderWidth");isFinite(p)&&(l+=4*p*p+4*p*Math.pow(l,.5)),l>g.MAX_SAFE_INTEGER&&(l=g.MAX_SAFE_INTEGER),r=o}s>l&&(l=s);var m=Math.pow(l/s,.5);return[i*m,n*m]}function c(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var r=i.node,a=r.getLayout();if(!a)return n;for(var o=[a.width/2,a[ni]/2],s=r;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s[b]}return{x:t.width/2-o[0],y:t[ni]/2-o[1]}}function h(t,e){var i=t.getLayout();t.setLayout({invisible:!e.intersect(i)},!0);for(var n=t.viewChildren||[],r=0,a=n[$e];a>r;r++){var o=new S(e.x-i.x,e.y-i.y,e.width,e[ni]);h(n[r],o)}}var d=Math.max,m=Math.min,v=t(yi),g=t(p),y=t(f),w=g.parsePercent,M=v.retrieve,S=t(_),T=t("./helper");return e}),e("echarts/util/layout",[_i,yi,_,"./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,f=l[ve],p=l[be](),m=e.childAt(u+1),v=m&&m[be]();if(t===d){var g=p.width+(v?-v.x+p.x:0);c=a+g,c>n||l.newline?(a=0,c=g,o+=s+i,s=0):s=Math.max(s,p[ni])}else{var y=p[ni]+(v?-v.y+p.y:0);h=o+y,h>r||l.newline?(a+=s+i,o=0,h=y,s=0):s=Math.max(s,p.width)}l.newline||(f[0]=a,f[1]=o,t===d?a=c+i:o=h+i)})}var i=t(yi),n=t(_),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,l={};return l.box=e,l.vbox=i.curry(e,h),l.hbox=i.curry(e,d),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[ni],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=a.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},l[_e]=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[ni],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[ri],s),d=o(t.width,r),f=o(t[ni],s),p=i[2]+i[0],m=i[1]+i[3],v=t.aspect;switch(isNaN(d)&&(d=r-c-m-l),isNaN(f)&&(f=s-h-p-u),isNaN(d)&&isNaN(f)&&(v>r/s?d=.8*r:f=.8*s),null!=v&&(isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=r-c-d-m),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case ge:l=r/2-d/2-i[3];break;case"right":l=r-d-m}switch(t.top||t[ri]){case M:case ge:u=s/2-f/2-i[0];break;case ri:u=s-f-p}var g=new n(l+i[3],u+i[0],d,f);return g.margin=i,g},l.positionGroup=function(t,e,n,r){var a=t[be]();e=i[Je](i.clone(e),{width:a.width,height:a[ni]}),e=l[_e](e,n,r),t[ve]=[e.x-a.x,e.y-a.y]},l.mergeLayoutParam=function(t,e,i){function n(n){var o={},l=0,u={},c=0,h=i.ignoreSize?1:2;if(s(n,function(e){u[e]=t[e]}),s(n,function(t){r(e,t)&&(o[t]=u[t]=e[t]),a(o,t)&&l++,a(u,t)&&c++}),c!==h&&l){if(h>c){var d=0;return s(n,function(t){"auto"===u[t]&&(h-c>d?d++:u[t]=null)}),u}if(l>=h)return o;for(var f=0;f<n[$e];f++){var p=n[f];if(!r(o,p)&&r(t,p)){o[p]=t[p];break}}return o}return u}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function o(t,e,i){s(t,function(t){e[t]=i[t]})}i=i||{};var l=["width","left","right"],u=[ni,"top",ri],c=n(l),h=n(u);o(l,t,c),o(u,t,h)},l.getLayoutParams=function(t){var e={};return t&&s(["left","right","top",ri,"width",ni],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e},l}),e("echarts/component/legend/legendAction",[_i,y,yi],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[oi]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[qe]();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(y),n=t(yi);i[ke]("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i[ke]("legendSelect","legendselected",n.curry(e,"select")),i[ke]("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/LegendModel",[_i,yi,"../../model/Model",y],function(t){var e=t(yi),i=t("../../model/Model");return t(y)[Pe]({type:"legend",dependencies:[Ue],layoutMode:{type:"box",ignoreSize:!0},init:function(t,n,r){this[B](t,r),t.selected=t.selected||{};var a=e.map(t.data||[],function(t){return typeof t===fi&&(t={name:t}),new i(t,this,this[E])},this);this._data=a,this._updateAvailableNames(r);var o=this[G].selected;if(a[0]&&"single"===this.get("selectedMode")){var s=!1;for(var l in o)o[l]&&(this.select(l),s=!0);!s&&this.select(a[0].get("name"))}},mergeOption:function(t){this.$superCall(N,t),this._updateAvailableNames(this[E])},_updateAvailableNames:function(t){var i=e.map(t.getSeries(),function(t){return t.name});t[Xe](function(t){if(t.legendDataProvider){var e=t.legendDataProvider();i=i[ae](e[ee](e[R]))}}),this._availableNames=i},getData:function(){return this._data},select:function(t){var i=this[G].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[G].selected[t]=!1)},toggleSelected:function(t){var e=this[G].selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[G].selected;return!(t in i&&!i[t])&&e[De](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/LegendView",[_i,yi,"../../util/symbol",re,"../helper/listComponent",y],function(t){function e(t,e){e[Qe]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[Qe]({type:"highlight",seriesName:t.name,name:e})}function n(t,e,i){t.get("legendHoverLink")&&i[Qe]({type:"downplay",seriesName:t.name,name:e})}var r=t(yi),a=t("../../util/symbol"),o=t(re),s=t("../helper/listComponent"),l=r.curry,d="#ccc";return t(y).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,a,f){var p=t.get("selectedMode"),m=t.get("itemWidth"),v=t.get("itemHeight"),g=t.get("align"),y=this.group;y[Ce](),"auto"===g&&(g="right"===t.get("left")&&t.get(c)===h?"right":"left");var _={},x={};r.each(t[qe](),function(r){var s=r.get("name");(""===s||"\n"===s)&&y.add(new o.Group({newline:!0}));var u=a.getSeriesByName(s)[0];if(_[s]=r,u&&!x[s]){var c=u[qe](),h=c.getVisual("color");t.isSelected(s)||(h=d),typeof h===Ie&&(h=h(u[Be](0)));var b=c.getVisual("legendSymbol")||"roundRect",w=c.getVisual(U),M=this._createItem(s,r,t,b,w,m,v,g,h,p);M.on("click",l(e,s,f)).on(We,l(i,u,"",f)).on(He,l(n,u,"",f)),x[s]=!0}},this),a.eachRawSeries(function(r){if(r.legendDataProvider){var a=r.legendDataProvider();a.each(function(o){var s=a[R](o);if(_[s]&&!x[s]){var c=a[u](o,"color");t.isSelected(s)||(c=d);var h="roundRect",y=this._createItem(s,_[s],t,h,null,m,v,g,c,p);y.on("click",l(e,s,f)).on(We,l(i,r,s,f)).on(He,l(n,r,s,f)),x[s]=!0}},!1,this)}},this),s.layout(y,t,f),s.addBackground(y,t)},_createItem:function(t,e,i,n,r,s,l,u,c,h){var d=new o.Group,f=e[hi](Te),p=e.get("icon");if(n=p||n,d.add(a.createSymbol(n,0,0,s,l,c)),!p&&r&&r!==n&&"none"!=r){var m=.8*l;d.add(a.createSymbol(r,(s-m)/2,(l-m)/2,m,m,c))}var v="left"===u?s+5:-5,g=u,y=i.get(O);typeof y===fi&&y?t=y[Re]("{name}",t):typeof y===Ie&&(t=y(t));var _=new o.Text({style:{text:t,x:v,y:l/2,fill:f[we](),textFont:f[Me](),textAlign:g,textBaseline:"middle"}});return d.add(_),d.add(new o.Rect({shape:d[be](),invisible:!0})),d.eachChild(function(t){t.silent=!h}),this.group.add(d),d}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[$e]&&t.filterSeries(function(t){for(var i=0;i<e[$e];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/coord/cartesian/Grid",[_i,"exports",f,"../../coord/axisHelper",yi,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e,i){return i[Z]("grid",t.get("gridIndex"))===e}function i(t){for(var e,i=t.model,n=i[l](),r=0;r<n[$e];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[le](),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(f),o=t("../../coord/axisHelper"),s=t(yi),u=t("./Cartesian2D"),c=t("./Axis2D"),h=s.each,d=o.ifAxisCrossZero,p=o.ifAxisNeedsCrossZero,v=o.niceScaleExtent;t("./GridModel");var g=n[pi];return g.type="grid",g.getRect=function(){return this._rect},g[di]=function(t,e){function n(){h(s,function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o[ni]],n=t[J]?1:0;t.setExtent(i[n],i[1-n]),r(t,e?o.x:o.y)})}var o=a[_e](t[xe](),{width:e[ci](),height:e[ui]()});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()?ni:"width",r=t.model.get("axisLabel.margin");o[n]-=e[n]+r,"top"===t[ve]?o.y+=e[ni]+r:"left"===t[ve]&&(o.x+=e.width+r)}}}),n())},g[te]=function(t,e){if(null!=e){var i=t+e;return this._axesMap[i]}for(var n=this._axesList,r=0;r<n[$e];r++)if(n[r].dim===t)return n[r]},g.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},g._initCartesian=function(t,i){function n(t){var e=s[t];return e[0]&&(e[0].type===m||!d(e[0]))||e[1]&&(e[1].type===m||!d(e[1]))}function r(n){return function(r,u){if(e(r,t,i)){var h=r.get(ve);"x"===n?("top"!==h&&h!==ri&&(h=ri),a[h]&&(h="top"===h?ri:"top")):("left"!==h&&"right"!==h&&(h="left"),a[h]&&(h="left"===h?"right":"left")),a[h]=!0;var d=new c(n,o.createScaleByModel(r),[0,0],r.get("type"),h),f=d.type===m;d.onBand=f&&r.get("boundaryGap"),d[J]=r.get(J),d.onZero=r.get("axisLine.onZero"),r.axis=d,d.model=r,d.index=u,this._axesList.push(d),this._axesMap[n+u]=d,s[n][u]=d,l[n]++}}}var a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};return i[oi]("xAxis",r("x"),this),i[oi]("yAxis",r("y"),this),l.x&&l.y?(h(s.x,function(t,e){h(s.y,function(i,n){var r="x"+e+"y"+n,a=new u(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this),this._updateCartesianFromSeries(i,t),h(s.x,function(t){n("y")&&(t.onZero=!1),p(t)&&t.scale.unionExtent([0,0]),v(t,t.model)},this),void h(s.y,function(t){n("x")&&(t.onZero=!1),p(t)&&t.scale.unionExtent([0,0]),v(t,t.model)},this)):(this._axesMap={},void(this._axesList=[]))},g._updateCartesianFromSeries=function(t,i){function n(t,e,i,n){h(n.getDimensionsOnAxis(i),function(i){e.scale.unionExtent(t.getDataExtent(i,e.scale.type!==X))})}t[Xe](function(r){if("cartesian2d"===r.get(fe)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[Z]("xAxis",a),l=t[Z]("yAxis",o);if(!e(s,i,t)||!e(l,i,t))return;var u=this.getCartesian(a,o),c=r[qe]();"list"===c.type&&(n(c,u[te]("x"),"x",r),n(c,u[te]("y"),"y",r))}},this)},n[he]=function(t,e){var i=[];return t[oi]("grid",function(r,a){var o=new n(r,t,e);o.name="grid_"+a,o[di](r,e),r[fe]=o,i.push(o)}),t[Xe](function(e){if("cartesian2d"===e.get(fe)){var n=e.get("xAxisIndex"),r=t[Z]("xAxis",n),a=i[r.get("gridIndex")];e[fe]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},t("../../CoordinateSystem").register("grid",n),n}),e("echarts/component/axis",[_i,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/tooltip/TooltipModel",[_i,y],function(t){t(y)[Pe]({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/component/marker/MarkPointModel",[_i,"../../model/globalDefault",s,y],function(t){var e=t("../../model/globalDefault"),i=t(s);e.markPoint={};var n=t(y)[Pe]({type:"markPoint",dependencies:[Ue,"grid","polar"],init:function(t,e,i,n,r){this[B](t,i),this[N](t,r,!0)},mergeOption:function(t,e,r){if(!e){var a=this[E];a[Xe](function(t){var e=t.get("markPoint"),o=t.markPointModel;if(!e||!e.data)return void(t.markPointModel=null);if(o)o[N](e,!0);else{r&&i.defaultEmphasis(e.label,[ve,"show",Te,"distance",O]);var s={seriesIndex:t[Ze],name:t.name};o=new n(e,this,a,s,!0)}t.markPointModel=o},this)}},defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});return n}),e("echarts/component/marker/MarkPointView",[_i,"../../chart/helper/SymbolDraw",yi,"../../util/format",s,p,"../../data/List","./markerHelper",y],function(t){function e(t,e,i){var r=e[F],a=new c(n.map(r,e.getDimensionInfo,e),i);return t&&a.initData(n[vi](n.map(i.get("data"),n.curry(h.dataTransform,e,t)),n.curry(h.dataFilter,t)),null,h.dimValueGetter),a}var i=t("../../chart/helper/SymbolDraw"),n=t(yi),r=t("../../util/format"),a=t(s),o=t(p),l=r.addCommas,u=r.encodeHTML,c=t("../../data/List"),h=t("./markerHelper"),d={getRawDataArray:function(){return this[G].data},formatTooltip:function(t){var e=this[qe](),i=this[q](t),r=n[Ve](i)?n.map(i,l).join(", "):l(i),a=e[R](t);return this.name+"<br />"+((a?u(a)+" : ":"")+r)},getData:function(){return this._data},setData:function(t){this._data=t}};n[Ke](d,a.dataFormatMixin),t(y).extendComponentView({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,i){var n=this._symbolDrawMap;for(var r in n)n[r].__keep=!1;e[Xe](function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,i)},this);for(var r in n)n[r].__keep||(n[r][ti](),this.group[ti](n[r].group))},_renderSeriesMP:function(t,r,a){var s=t[fe],l=t.name,u=t[qe](),c=this._symbolDrawMap,h=c[l];h||(h=c[l]=new i);var f=e(s,u,r),p=s&&s[F];n.mixin(r,d),r.setData(f),f.each(function(t){var e,i=f[H](t),n=i[A]("x"),l=i[A]("y");if(null!=n&&null!=l)e=[o.parsePercent(n,a[ci]()),o.parsePercent(l,a[ui]())];else if(s){var c=f.get(p[0],t),h=f.get(p[1],t);e=s.dataToPoint([c,h])}f.setItemLayout(t,e);var d=i[A](j);typeof d===Ie&&(d=d(r[q](t),r[Be](t))),f[W](t,{symbolSize:d,color:i.get("itemStyle.normal.color")||u.getVisual("color"),symbol:i[A](U)})}),h[K](f),this.group.add(h.group),f.eachItemGraphicEl(function(t){t[Oe](function(t){t[Ne]=r})}),h.__keep=!0}})}),e("echarts/component/marker/MarkLineView",[_i,yi,"../../data/List","../../util/format",s,p,"./markerHelper","../../chart/helper/LineDraw",y],function(t){function e(t,e){return f.dataFilter(t,e[0])&&f.dataFilter(t,e[1])}function i(t,i,a){var o=t[F],s=new r(o,a),l=new r(o,a),u=new r([],a);if(t){var c=t.getBaseAxis(),h=t[ne](c),d=n[vi](n.map(a.get("data"),n.curry(v,i,t,c,h)),n.curry(e,t));s.initData(n.map(d,function(t){return t[0]}),null,f.dimValueGetter),l.initData(n.map(d,function(t){return t[1]}),null,f.dimValueGetter),u.initData(n.map(d,function(t){return t[2]}))}return{from:s,to:l,line:u}}var n=t(yi),r=t("../../data/List"),a=t("../../util/format"),l=t(s),c=t(p),h=a.addCommas,d=a.encodeHTML,f=t("./markerHelper"),m=t("../../chart/helper/LineDraw"),v=function(t,e,i,r,a){var s=a.type;if(!n[Ve](a)&&"min"===s||"max"===s||"average"===s){null!=a.valueIndex&&(i=e[te](e[F][1-a.valueIndex]),r=e[te](e[F][a.valueIndex]));var l=i.dim+"Axis",u=r.dim+"Axis",c=i.scale[le](),h=n[Je]({},a),d={},p=t.getDataExtent(r.dim,!0);h.type=null,h[l]=c[0],d[l]=c[1];var m="average"===s?.5:"max"===s?1:0,v=(p[1]-p[0])*m+p[0];v=r.coordToData(r[o](v)),h[u]=d[u]=v,a=[h,d,{type:s}]}return a=[f.dataTransform(t,e,a[0]),f.dataTransform(t,e,a[1]),{}],n.merge(a[2],a[0]),n.merge(a[2],a[1]),a},g={formatTooltip:function(t){var e=this._data,i=this[q](t),r=n[Ve](i)?n.map(i,h).join(", "):h(i),a=e[R](t);return this.name+"<br />"+((a?d(a)+" : ":"")+r)},getRawDataArray:function(){return this[G].data},getData:function(){return this._data},setData:function(t){this._data=t}};n[Ke](g,l.dataFormatMixin),t(y).extendComponentView({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[Xe](function(t){var n=t.markLineModel;n&&this._renderSeriesML(t,n,e,i)},this);for(var r in n)n[r].__keep||this.group[ti](n[r].group)},_renderSeriesML:function(t,e,r,a){function o(t,e,i){var n,r=t[H](e),o=r.get("x"),l=r.get("y");if(null!=o&&null!=l)n=[c.parsePercent(o,a[ci]()),c.parsePercent(l,a[ui]())];else{var u=t.get(v[0],e),d=t.get(v[1],e);n=s.dataToPoint([u,d])}t.setItemLayout(e,n),t[W](e,{symbolSize:r.get(j)||w[i?0:1],symbol:r.get(U,!0)||b[i?0:1],color:r.get("itemStyle.normal.color")||h.getVisual("color")})}var s=t[fe],l=t.name,h=t[qe](),d=this._markLineMap,f=d[l];f||(f=d[l]=new m),this.group.add(f.group);var p=i(s,h,e),v=s[F],y=p.from,_=p.to,x=p.line;n[Je](e,g),e.setData(x);var b=e.get(U),w=e.get(j);n[Ve](b)||(b=[b,b]),typeof w===Ae&&(w=[w,w]),p.from.each(function(t){o(y,t,!0),o(_,t)}),x.each(function(t){var e=x[H](t).get("lineStyle.normal.color");x[W](t,{color:e||y[u](t,"color")}),x.setItemLayout(t,[y.getItemLayout(t),_.getItemLayout(t)])}),f[K](x,y,_),p.line.eachItemGraphicEl(function(t){t[Oe](function(t){t[Ne]=e})}),f.__keep=!0}})}),e("echarts/component/marker/MarkLineModel",[_i,"../../model/globalDefault",s,y],function(t){var e=t("../../model/globalDefault"),i=t(s);e.markLine={};var n=t(y)[Pe]({type:"markLine",dependencies:[Ue,"grid","polar"],init:function(t,e,i,n,r){this[B](t,i),this[N](t,r,!0)},mergeOption:function(t,e,r){if(!e){var a=this[E];a[Xe](function(t){var e=t.get("markLine"),o=t.markLineModel;if(!e||!e.data)return void(t.markLineModel=null);if(o)o[N](e,!0);else{r&&i.defaultEmphasis(e.label,[ve,"show",Te,"distance",O]);var s={seriesIndex:t[Ze],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/tooltip/TooltipView",[_i,"./TooltipContent",re,yi,"../../util/format",p,y],function(t){function e(t,e){if(!t||!e)return!1;var i=_.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function n(t,e,i,n){return{x:t,y:e,width:i,height:n}}function r(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function o(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 s(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[ni];switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case ri:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function l(t,e,i,n,r,l,u){var c=u[ci](),h=u[ui](),f=l&&l[be]().clone();if(l&&f[k](l[gi]),typeof t===Ie&&(t=t([e,i],r,f)),d[Ve](t))e=x(t[0],c),i=x(t[1],h);else if(typeof t===fi&&l){var p=s(t,f,n.el);e=p[0],i=p[1]}else{var p=o(e,i,n.el,c,h);e=p[0],i=p[1]}n[a](e,i)}function u(t){var e=t[fe],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type||"item"===i)}var c=t("./TooltipContent"),h=t(re),d=t(yi),f=t("../../util/format"),_=t(p),x=_.parsePercent;t(y).extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){var i=new c(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._hide,this)},render:function(t,e,i){this.group[Ce](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[ii](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=this._api.getZr(),o=this._tryShow;a.off("click",o),a.off("mousemove",o),a.off(He,this._hide),"click"===t.get("triggerOn")?a.on("click",o,this):(a.on("mousemove",o,this),a.on(He,this._hide,this))},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[Ze],n=t[Ge],r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e[Xe](function(t){u(t)&&!r&&(r=t)}),r){var o=r[qe]();null==n&&(n=o.indexOfName(t.name));var s=o[Y](n);if(s){var l=s[be]().clone();l[k](s[gi]);var c=l.x+l.width/2,h=l.y+l[ni]/2;this._tryShow({offsetX:c,offsetY:h,target:s,event:{}})}}}else a.getZr().handler.dispatch("mousemove",{zrX:t.x,zrY:t.y})}},_prepareAxisTriggerData:function(t,e){var i={};return e[Xe](function(t){if(u(t)){var e,n,r=t[fe];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):(e=r.getBaseAxis(),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][Ue].push(t)}},this),i},_tryShow:function(t){var e=t[Fe],i=this._tooltipModel,n=i.get(Ye),r=this._ecModel,a=this._api;if(i)if(e&&null!=e[Ge]){var o=e[Ne]||r.getSeriesByIndex(e[Ze]),s=e[Ge],l=o[qe]()[H](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,t)),a[Qe]({type:"showTip",from:this.uid,dataIndex:e[Ge],seriesIndex:e[Ze]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),a[Qe]({type:"showTip",from:this.uid,x:t[g],y:t[v]})},_showAxisTooltip:function(t,i,n){var r=t[hi]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[Fe];if(o&&null!=o[Ge]){var s=i.getSeriesByIndex(o[Ze]),l=o[Ge];this._showItemTooltipContent(s,l,n)}}this._showAxisPointer();var u=!0;d.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n[g],n[v]];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);u=!1;var l=o[F],c=o.pointToData(s,!0);s=o.dataToPoint(c);var h=o.getBaseAxis(),f=r.get("axis");"auto"===f&&(f=h.dim);var p=!1,m=this._lastHover;if("cross"===a)e(m.data,c)&&(p=!0),m.data=c;else{var y=d[De](l,f);m.data===c[y]&&(p=!0),m.data=c[y]}"cartesian2d"!==o.type||p?"polar"!==o.type||p||this._showPolarPointer(r,o,f,s):this._showCartesianPointer(r,o,f,s),"cross"!==a&&this._showSeriesTooltipContent(o,t[Ue],s,c,p)},this),u&&this._hide()},_showCartesianPointer:function(t,e,r,a){function o(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);c?h.updateProps(s,{shape:o},t):s.attr({shape:o})}function s(i,r,a){var o=e[te](i),s=o.getBandWidth(),u=a[1]-a[0],d="x"===i?n(r[0]-s/2,a[0],s,u):n(a[0],r[1]-s/2,u,s),f=l._getPointerElement(e,t,i,d);c?h.updateProps(f,{shape:d},t):f.attr({shape:d})}var l=this,u=t.get("type"),c="cross"!==u;if("cross"===u)o("x",a,e[te]("y").getGlobalExtent()),o("y",a,e[te]("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var d=e[te]("x"===r?"y":"x"),f=d.getGlobalExtent();"cartesian2d"===e.type&&("line"===u?o:s)(r,a,f)}},_showPolarPointer:function(t,e,n,a){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var u=e.coordToPoint([a[0],s[1]]),c=e.coordToPoint([a[1],s[1]]);o=i(u[0],u[1],c[0],c[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var d=l._getPointerElement(e,t,n,o);f?h.updateProps(d,{shape:o},t):d.attr({shape:o})}function s(i,n,a){var o,s=e[te](i),u=s.getBandWidth(),c=e.pointToCoord(n),d=Math.PI/180;o="angle"===i?r(e.cx,e.cy,a[0],a[1],(-c[1]-u/2)*d,(-c[1]+u/2)*d):r(e.cx,e.cy,c[0]-u/2,c[0]+u/2,0,2*Math.PI);var p=l._getPointerElement(e,t,i,o);f?h.updateProps(p,{shape:o},t):p.attr({shape:o})}var l=this,u=t.get("type"),c=e.getAngleAxis(),d=e.getRadiusAxis(),f="cross"!==u;if("cross"===u)o("angle",a,d[le]()),o(ie,a,c[le]()),this._updateCrossText(e,a,t);else{var p=e[te](n===ie?"angle":ie),m=p[le]();("line"===u?o:s)(n,a,m)}},_updateCrossText:function(t,e,i){var n=i[hi]("crossStyle"),r=n[hi](Te),a=this._tooltipModel,o=this._crossText;o||(o=this._crossText=new h.Text({style:{textAlign:"left",textBaseline:"bottom"}}),this.group.add(o));var s=t.pointToData(e),l=t[F];s=d.map(s,function(e,i){var n=t[te](l[i]);return e=n.type===m||"time"===n.type?n.scale[ue](e):f.addCommas(e[w](n.getPixelPrecision()))}),o[me]({fill:r[we]()||n.get("color"),textFont:r[Me](),text:s.join(", "),x:e[0]+5,y:e[1]-5}),o.z=a.get("z"),o[Ee]=a.get(Ee)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(Ee),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][i])return s[l][i];var u=e.get("type"),c=e[hi](u+"Style"),d="shadow"===u,f=c[d?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?d?"Sector":i===ie?"Circle":"Line":d?"Rect":"Line";d?f[P]=null:f.fill=null;var m=s[l][i]=new h[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(m),m},_showSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,s=t.getBaseAxis(),u=n["x"===s.dim||s.dim===ie?0:1],c=d.map(e,function(t){return{seriesIndex:t[Ze],dataIndex:t[qe]().indexOfNearest(t.getDimensionsOnAxis(s.dim),u)}}),h=this._api,p=this._lastHover;if(p.payloadBatch&&!r&&this._api[Qe]({type:"downplay",batch:d.clone(p.payloadBatch)}),r||(this._api[Qe]({type:"highlight",batch:d.clone(c)}),p.payloadBatch=c),s&&a.get("showContent")){var m,v=a.get(O),g=a.get(ve),y=d.map(e,function(t,e){return t[Be](c[e][Ge])});o.show(a);var _=c[0][Ge];if(!r){if(this._ticket="",v){if(typeof v===fi)m=f.formatTpl(v,y);else if(typeof v===Ie){var x=this,b="axis_"+t.name+"_"+_,w=function(t,e){t===x._ticket&&(o.setContent(e),l(g,i[0],i[1],o,y,null,h))};x._ticket=b,m=v(y,b,w)}}else m=e[0][qe]()[R](_)+"<br />"+d.map(e,function(t,e){return t.formatTooltip(c[e][Ge],!0)}).join("<br />");o.setContent(m)}l(g,i[0],i[1],o,y,null,h)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t[qe](),a=r[H](e),o=this._tooltipModel,s=this._tooltipContent,u=a[hi]("tooltip");if(u.parentModel?u.parentModel.parentModel=o:u.parentModel=this._tooltipModel,u.get("showContent")){var c,h=u.get(O),d=u.get(ve),p=t[Be](e);if(h){if(typeof h===fi)c=f.formatTpl(h,p);else if(typeof h===Ie){var m=this,y="item_"+t.name+"_"+e,_=function(t,e){t===m._ticket&&(s.setContent(e),l(d,i[g],i[v],s,p,i[Fe],n))};m._ticket=y,c=h(p,y,_)}}else c=t.formatTooltip(e);s.show(u),s.setContent(c),l(d,i[g],i[v],s,p,i[Fe],n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&d.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[Qe]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&d.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 i=e.getZr();i.off("click",this._tryShow),i.off("mousemove",this._tryShow),i.off(He,this._hide),e.off("showTip")}})}),e("echarts/component/dataZoom/typeDefaulter",[_i,r],function(t){t(r).registerSubTypeDefaulter("dataZoom",function(){return"slider"})}),e("echarts/component/dataZoom/DataZoomModel",[_i,yi,"zrender/core/env",y,s,"./AxisProxy"],function(t){var e=t(yi),i=t("zrender/core/env"),n=t(y),r=t(s),a=t("./AxisProxy"),o=e.each,l=r.eachAxisDim;return n[Pe]({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",Ue],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[B](t,i),this[N]({},!0)},mergeOption:function(t,n){var r=this[G];t&&e.merge(r,t),i[li]||(r.realtime=!1),this.textStyleModel=this[hi](Te),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[G];l(function(t){var e=t.axisIndex;i[e]="axisIndex"===n?[]:r.normalizeToArray(i[e])},this);var n=this._autoMode;"axisIndex"===n?this._autoSetAxisIndex():n===c&&this._autoSetOrient()},_resetAutoMode:function(t,e){var i=e?this[G]:t,n=!1;l(function(t){null!=i[t.axisIndex]&&(n=!0)},this);var r=i[c];null==r&&n?this._autoMode=c:(null==r&&(this[G][c]=d),n||(this._autoMode="axisIndex"))},_autoSetAxisIndex:function(){var t="axisIndex"===this._autoMode,i=this.get(c),n=this[G];if(t){var r=i===h?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[r.axis][$e]&&(n[r.axisIndex]=[0],t=!1)}t&&l(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r[$e]&&!i[$e])for(var a=0,o=r[$e];o>a;a++)r[a].get("type")===m&&i.push(a);n[e.axisIndex]=i,i[$e]&&(t=!1)}},this),t&&this[E][Xe](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&l(function(i){var r=n[i.axisIndex],a=t.get(i.axisIndex);e[De](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[G][c]="y"===t?h:d},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return l(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[Z](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 l(function(e){if(null==t){var i=this.get(e.axisIndex);i[$e]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[E];l(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[G][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",[_i,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Je]({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this[E]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[$e];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[E],n=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=i[Z](e.axis,o);if(s){a.push(s);var l=s.get("gridIndex"),u=s.get("polarIndex");if(null!=l){var c=i[Z]("grid",l);t(c,s,n,l)}else if(null!=u){var c=i[Z]("polar",u);t(c,s,r,u)}}},this),{cartesians:n,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/SliderZoomModel",[_i,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Je]({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/InsideZoomModel",[_i,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Je]({type:"dataZoom.inside"})}),e("echarts/component/dataZoom/SliderZoomView",[_i,yi,re,"../../util/throttle","./DataZoomView",p,f,"../helper/sliderMove"],function(t){function e(t){return"x"===t?"y":"x"}var i=t(yi),r=t(re),a=t("../../util/throttle"),o=t("./DataZoomView"),s=r.Rect,l=t(p),u=l[S],v=t(f),g=t("../helper/sliderMove"),y=l.asc,_=i.bind,b=Math.round,T=Math.max,C=i.each,L=7,A=1,P=30,I=d,D=h,V=5,R=["line","bar","candlestick","scatter"];return o[Je]({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,r){return this[n]("render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get(c),this._halfHandleSize=b(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group[Ce]():(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),void this._updateView())},remove:function(){this[n](ti,arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){this[n]("dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t[Ce](),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new r.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[ci](),height:e[ui]()},a=this._orient===I?{left:n.x,top:r[ni]-P-L,width:n.width,height:P}:{right:L,top:n.y,width:P,height:n[ni]};i.each(v.getLayoutParams(t[G]),function(t,e){"auto"!==t&&(a[e]=t)});var o=v[_e](a,r,t[ye]);this._location={x:o.x,y:o.y},this._size=[o.width,o[ni]],this._orient===D&&this._size[x]()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get(J),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==I||r?i===I&&r?{scale:o?[-1,1]:[-1,-1]}:i!==D||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[be]([a]);t[ve][0]=e.x-s.x,t[ve][1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=T(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 s({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(si)}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t[Ue],n=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim,o=n.getDataExtent(a),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l=[0,e[1]],c=[0,e[0]],h=[[e[0],0],[0,0]],d=c[1]/n.count(),f=0,p=Math.round(n.count()/e[0]);n.each([a],function(t,e){if(p>0&&e%p)return void(f+=d);var i=null==t||isNaN(t)||""===t?null:u(t,o,l,!0);null!=i&&h.push([f,i]),f+=d}),this._displayables.barGroup.add(new r.Polyline({shape:{points:h},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[E];return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o.name,s).getTargetSeriesModels();i.each(l,function(t){if(!(r||n!==!0&&i[De](R,t.get("type"))<0)){var l=e(o.name),u=a[Z](o.axis,s).axis;r={thisAxis:u,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:t[fe][ne](u)[J]}}},this)},this),r}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size;n.add(t.filler=new s({draggable:!0,cursor:"move",drift:_(this._onDragMove,this,"all"),ondragend:_(this._onDragEnd,this),onmouseover:_(this._showDataInfo,this,!0),onmouseout:_(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),n.add(new s(r.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:A,fill:"rgba(0,0,0,0)"}}))),C([0,1],function(t){n.add(e[t]=new s({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:_(this._onDragMove,this,t),ondragend:_(this._onDragEnd,this),onmouseover:_(this._showDataInfo,this,!0),onmouseout:_(this._showDataInfo,this,!1)}));var a=this.dataZoomModel.textStyleModel;this.group.add(i[t]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textAlign:"center",fill:a[we](),textFont:a[Me]()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange();this._handleEnds=u(t,[0,100],this._getViewExtent(),!0)},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();g(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=y(u(i,n,[0,100],!0))},_updateView:function(){var t=this._displayables,e=this._handleEnds,i=y(e.slice()),n=this._size,r=this._halfHandleSize;C([0,1],function(i){var a=t.handles[i];a[$]({x:e[i]-r,y:-1,width:2*r,height:n[1]+2,r:1})},this),t.filler[$]({x:i[0],y:0,width:i[1]-i[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=r.getTransform(i.handles[t],this.group),s=r.transformDirection(0===t?"right":"left",e),l=this._halfHandleSize+V,c=r[k]([u[t]+(0===t?-l:l),this._size[1]/2],e);n[t][me]({x:c[0],y:c[1],textBaseline:a===I?M:s,textAlign:a===I?s:ge,text:o[t]})}var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,o=["",""];if(e.get("showDetail")){var s,l;e.eachTargetAxis(function(t,i){s||(s=e.getAxisProxy(t.name,i).getDataValueWindow(),l=this[E][Z](t.axis,i).axis)},this),s&&(o=[this._formatLabel(s[0],l),this._formatLabel(s[1],l)])}var u=y(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===m||"time"===e.type?e.scale[ue](Math.round(t)):t[w](Math.min(a,20)),i[Le](r)&&(t=r[Re]("{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[Qe]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup[z]();return r[k](t,i,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians[$e])t=e.cartesians[0].model[fe].getRect();else{var i=this.api[ci](),n=this.api[ui]();t={x:.2*i,y:.2*n,width:.6*i,height:.6*n}}return t}})}),e("echarts/component/dataZoom/InsideZoomView",[_i,"./DataZoomView","../../util/throttle",yi,"../helper/sliderMove","../../component/helper/RoamController"],function(t){function e(t,e,i,n){e=e.slice();var a=n.axisModels[0];if(a){var o=r(t,a,i),s=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return u(s,e,[0,100],"rigid"),e}}function i(t,e,i,n,o){i=i.slice();var s=o.axisModels[0];if(s){var l=r(e,s,n),u=l.pixel-l.pixelStart,c=u/l.pixelLength*(i[1]-i[0])+i[0];return t=Math.max(t,0),i[0]=(i[0]-c)*t+c,i[1]=(i[1]-c)*t+c,a(i)}}function r(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[J]?1:-1):(a.pixel=t[1],a.pixelLength=r[ni],a.pixelStart=r.y,a.signal=n[J]?-1:1),a}function a(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 o=t("./DataZoomView"),s=t("../../util/throttle"),l=t(yi),u=t("../helper/sliderMove"),c=t("../../component/helper/RoamController"),h=l.bind;return o[Je]({type:"dataZoom.inside",init:function(){this._controllers={},this._range},render:function(t,e,i,r){this[n]("render",arguments),s.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),r&&"dataZoom"===r.type&&r.from===this.uid||(this._range=t.getPercentRange()),this._resetController(i)},remove:function(){this[n](ti,arguments);var t=this._controllers;l.each(t,function(t){t.off("pan").off("zoom")}),t[$e]=0,s.clear(this,"_dispatchZoomAction")},dispose:function(){this[n]("dispose",arguments),s.clear(this,"_dispatchZoomAction")},_resetController:function(t){var e=this._controllers,i=this.getTargetInfo();l.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[fe].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[Qe]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})}})}),e("echarts/component/dataZoom/dataZoomProcessor",[_i,y,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(),u=n[Z](t.axis,e),c=0===s[0]&&100===s[1],h=o.getBackup(),d=r.getPixelPrecision(l,[0,500]),f=!(20>d&&d>=0);u.setNeedsCrossZero&&u.setNeedsCrossZero(c?!h.scale:!1),u.setMin&&u.setMin(c||f?h.min:+l[0][w](d)),u.setMax&&u.setMax(c||f?h.max:+l[1][w](d))}function i(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var n=t(y),r=t(p);n.registerProcessor(vi,function(t){t[oi]("dataZoom",function(t){t.eachTargetAxis(e)}),t[oi]("dataZoom",function(t){t.eachTargetAxis(i)})})}),e("echarts/component/dataZoom/dataZoomAction",[_i,yi,s,y],function(t){var e=t(yi),i=t(s),n=t(y);n[ke]("dataZoom",function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[oi],n,"dataZoom"),i.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),a=[];n[oi]({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/timeline/preprocessor",[_i,yi],function(t){function e(t){var e=t.type,a={number:"value",time:"time"};if(a[e]&&(t.axisType=a[e],delete t.type),i(t),n(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});n(o,ve)||(o[ve]=t.controlPosition),"none"!==o[ve]||n(o,"show")||(o.show=!1,delete o[ve]),delete t.controlPosition}r.each(t.data||[],function(t){r[ei](t)&&!r[Ve](t)&&(!n(t,"value")&&n(t,"name")&&(t.value=t.name),i(t))})}function i(t){var e=t.itemStyle||(t.itemStyle={}),i=e[V]||(e[V]={}),a=(e[D]||(e[D]={}),t.label||t.label||{}),o=a[D]||(a[D]={}),s={normal:1,emphasis:1};r.each(a,function(t,e){s[e]||n(o,e)||(o[e]=t)}),i.label&&!n(a,V)&&(a[V]=i.label,delete i.label)}function n(t,e){return t.hasOwnProperty(e)}var r=t(yi);return function(t){var i=t&&t.timeline;r[Ve](i)||(i=i?[i]:[]),r.each(i,function(t){t&&e(t)})}}),e("echarts/component/timeline/typeDefaulter",[_i,r],function(t){t(r).registerSubTypeDefaulter("timeline",function(){return"slider"})}),e("echarts/component/timeline/timelineAction",[_i,y],function(t){var e=t(y);e[ke]({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e[Z]("timeline");i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline")}),e[ke]({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e[Z]("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)})}),e("echarts/component/timeline/SliderTimelineModel",[_i,"./TimelineModel"],function(t){var e=t("./TimelineModel");return e[Je]({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:!1,symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#304654"}},emphasis:{show:!0,textStyle:{color:"#c23531"}}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}})}),e("echarts/component/timeline/SliderTimelineView",[_i,yi,re,f,"./TimelineView","./TimelineAxis","../../util/symbol","../../coord/axisHelper",_,"zrender/core/matrix",p,s,"../../util/format"],function(t){function e(t,e){return m[_e](t[xe](),{width:e[ci](),height:e[ui]()},t.get(ye))}function i(t,e,i,n){var r=u.makePath(t.get(e)[Re](/^path:\/\//,""),a.clone(n||{}),new S(i[0],i[1],i[2],i[3]),ge);return r}function n(t,e,i,n,r,o){var s=t.get(U),l=e.get("color"),u=t.get(j),c=u/2,h=e.getItemStyle(["color",U,j]);return r?(r[me](h),r.setColor(l),i.add(r),o&&o.onUpdate(r)):(r=w.createSymbol(s,-c,-c,u,u,l),i.add(r),o&&o.onCreate(r)),n=a.merge({rectHover:!0,style:h,z2:100},n,!0),r.attr(n),r}function r(t,e,i,n,r){if(!t.dragging){var a=n[hi]("checkpointStyle"),s=i[o](n[qe]().get(["value"],e));r||!a.get(Q,!0)?t.attr({position:[s,0]}):(t.stopAnimation(!0),t.animateTo({position:[s,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}var a=t(yi),u=t(re),m=t(f),y=t("./TimelineView"),b=t("./TimelineAxis"),w=t("../../util/symbol"),M=t("../../coord/axisHelper"),S=t(_),T=t("zrender/core/matrix"),C=t(p),L=t(s),A=t("../../util/format"),P=A.encodeHTML,I=a.bind,D=a.each,V=Math.PI;return y[Je]({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i){this.model=t,this.api=i,this[E]=e,this.group[Ce]();var n=this._layout(t,i),r=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),o=this._axis=this._createAxis(n,t);D(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](n,r,o,t)},this),this._renderAxisLabel(n,a,o,t),this._position(n,t),this._doPlayStop()},remove:function(){this._clearTimer(),this.group[Ce]()},dispose:function(){this._clearTimer()},_layout:function(t,i){var n=t.get("label.normal.position"),r=t.get(c),a=e(t,i);null==n||"auto"===n?n=r===d?a.y+a[ni]/2<i[ui]()/2?"-":"+":a.x+a.width/2<i[ci]()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var o={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":ri,vertical:"middle"},l={horizontal:0,vertical:V/2},u=r===h?a[ni]:a.width,f=t[hi]("controlStyle"),p=f.get("show"),m=p?f.get("itemSize"):0,v=p?f.get("itemGap"):0,g=m+v,y=t.get("label.normal.rotate")||0;y=y*V/180;var _,b,w,M,S=f.get(ve,!0),p=f.get("show",!0),T=p&&f.get("showPlayBtn",!0),C=p&&f.get("showPrevBtn",!0),L=p&&f.get("showNextBtn",!0),z=0,A=u;return"left"===S||S===ri?(T&&(_=[0,0],z+=g),C&&(b=[z,0],z+=g),L&&(w=[A-m,0],A-=g)):(T&&(_=[A-m,0],A-=g),C&&(b=[0,0],z+=g),L&&(w=[A-m,0],A-=g)),M=[z,A],t.get(J)&&M[x](),{viewRect:a,mainLength:u,orient:r,rotation:l[r],labelRotation:y,labelPosOpt:n,labelAlign:o[r],labelBaseline:s[r],playPosition:_,prevBtnPosition:b,nextBtnPosition:w,axisExtent:M,controlSize:m,controlGap:v}},_position:function(t){function e(t){var e=t[ve];t.origin=[d[0][0]-e[0],d[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t[ni]]]}function n(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var r=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t[c]===h){var s=T[he](),l=o.x,u=o.y+o[ni];T.translate(s,s,[-l,-u]),T.rotate(s,s,-V/2),T.translate(s,s,[l,u]),o=o.clone(),o[k](s)}var d=i(o),f=i(r[be]()),p=i(a[be]()),m=r[ve],v=a[ve];v[0]=m[0]=d[0][0];var g=t.labelPosOpt;if(isNaN(g)){var y="+"===g?0:1;n(m,f,d,1,y),n(v,p,d,1,1-y)}else{var y=g>=0?0:1;n(m,f,d,1,y),v[1]=m[1]+g}r[ve]=m,a[ve]=v,r.rotation=a.rotation=t.rotation,e(r),e(a)},_createAxis:function(t,e){var i=e[qe](),n=e.get("axisType"),r=M.createScaleByModel(e,n),a=i.getDataExtent("value");r.setExtent(a[0],a[1]),this._customizeScale(r,i),r.niceTicks();var o=new b("value",r,t.axisExtent,n);return o.model=e,o},_customizeScale:function(t,e){t[ce]=function(){return e[ee](["value"],function(t){return t})},t.getTicksLabels=function(){return a.map(this[ce](),t[ue],t)}},_createGroup:function(t){var e=this["_"+t]=new u.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i[le]();n.get("lineStyle.show")&&e.add(new u.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:a[Je]({lineCap:"round"},n[hi]("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,r){var a=r[qe](),s=i.scale[ce](),l=this._prepareTooltipHostModel(a,r);D(s,function(t,r){var s=i[o](t),c=a[H](r),h=c[hi]("itemStyle.normal"),d=c[hi]("itemStyle.emphasis"),f={position:[s,0],onclick:I(this._changeTimeline,this,r)},p=n(c,h,e,f);u.setHoverStyle(p,d.getItemStyle()),c.get("tooltip")?(p[Ge]=r,p[Ne]=l):p[Ge]=p[Ne]=null},this)},_prepareTooltipHostModel:function(t,e){var i=L.createDataFormatModel({},t,e.get("data")),n=this;
return i.formatTooltip=function(t){return P(n._axis.scale[ue](t))},i},_renderAxisLabel:function(t,e,i,n){var r=n[hi]("label.normal");if(r.get("show")){var a=n[qe](),s=i.scale[ce](),c=M[l](i,r.get(O)),h=i.getLabelInterval();D(s,function(n,r){if(!i.isLabelIgnored(r,h)){var s=a[H](r),l=s[hi]("label.normal.textStyle"),d=s[hi]("label.emphasis.textStyle"),f=i[o](n),p=new u.Text({style:{text:c[r],textAlign:t.labelAlign,textBaseline:t.labelBaseline,textFont:l[Me](),fill:l[we]()},position:[f,0],rotation:t.labelRotation-t.rotation,onclick:I(this._changeTimeline,this,r),silent:!1});e.add(p),u.setHoverStyle(p,d.getItemStyle())}},this)}},_renderControl:function(t,e,n,r){function a(t,n,a,d){if(t){var f={position:t,origin:[o/2,0],rotation:d?-s:0,rectHover:!0,style:l,onclick:a},p=i(r,n,h,f);e.add(p),u.setHoverStyle(p,c)}}var o=t.controlSize,s=t.rotation,l=r[hi]("controlStyle.normal").getItemStyle(),c=r[hi]("controlStyle.emphasis").getItemStyle(),h=[0,-o/2,o,o],d=r.getPlayState(),f=r.get(J,!0);a(t.nextBtnPosition,"controlStyle.nextIcon",I(this._changeTimeline,this,f?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",I(this._changeTimeline,this,f?"+":"-")),a(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),I(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,i,a){var o=a[qe](),s=a.getCurrentIndex(),l=o[H](s)[hi]("checkpointStyle"),u=this,c={onCreate:function(t){t.draggable=!0,t.drift=I(u._handlePointerDrag,u),t.ondragend=I(u._handlePointerDragend,u),r(t,s,i,a,!0)},onUpdate:function(t){r(t,s,i,a)}};this._currentPointer=n(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api[Qe]({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i[g],i[v]])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t[g],t[v]],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=C.asc(n[le]().slice());i>r[1]&&(i=r[1]),i<r[0]&&(i=r[0]),this._currentPointer[ve][0]=i,this._currentPointer.dirty();var a=this._findNearestTick(i),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function t(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(I(t,this),this.model.get("playInterval")))},_toAxisCoord:function(t){var e=this._mainGroup[z]();return u[k](t,e,!0)},_findNearestTick:function(t){var e,i=this.model[qe](),n=1/0,r=this._axis;return i.each(["value"],function(i,a){var s=r[o](i),l=Math.abs(s-t);n>l&&(n=l,e=a)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api[Qe]({type:"timelineChange",currentIndex:t,from:this.uid})}})}),e("echarts/component/visualMapContinuous",[_i,"../echarts","./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/ContinuousModel","./visualMap/ContinuousView","./visualMap/visualMapAction"],function(t){t("../echarts").registerPreprocessor(t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/ContinuousModel"),t("./visualMap/ContinuousView"),t("./visualMap/visualMapAction")}),e("echarts/component/toolbox/ToolboxModel",[_i,"./featureManager",yi,y],function(t){var e=t("./featureManager"),i=t(yi);t(y)[Pe]({type:"toolbox",mergeDefaultAndTheme:function(){this[n](B,arguments),i.each(this[G].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",[_i,"./featureManager",yi,re,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text",y],function(t){var e=t("./featureManager"),i=t(yi),n=t(re),r=t("../../model/Model"),a=t("../../data/DataDiffer"),o=t("../helper/listComponent"),s=t("zrender/contain/text");return t(y).extendComponentView({type:"toolbox",render:function(t,l,u){function c(i,n){var a,o=v[i],s=v[n],c=p[o],d=new r(c,t,t[E]);if(o&&!s){var f=e.get(o);if(!f)return;m[o]=a=new f(d)}else{if(a=m[s],!a)return;a.model=d}return!o&&s?void(a.dispose&&a.dispose(l,u)):d.get("show")?(h(d,a,o),d.setIconStatus=function(t,e){var i=this[G],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][Ye](e)},void(a.render&&a.render(d,l,u))):void(a[ti]&&a[ti](l,u))}function h(e,r,a){var o=e[hi]("iconStyle"),s=r.getIcons?r.getIcons():e.get("icon"),c=e.get("title")||{};if(typeof s===fi){var h=s,p=c;s={},c={},s[a]=h,c[a]=p}var m=e.iconPaths={};i.each(s,function(a,s){var h=o[hi](D).getItemStyle(),p=o[hi](V).getItemStyle(),v=n.makePath(a,{style:h,hoverStyle:p,rectHover:!0},{x:-f/2,y:-f/2,width:f,height:f},ge);n.setHoverStyle(v),t.get("showTitle")&&(v.__title=c[s],v.on(We,function(){v[me]({text:c[s],textPosition:p.textPosition||ri,textFill:p.fill||p[P]||"#000",textAlign:p[Se]||ge})}).on(He,function(){v[me]({textFill:null})})),v[Ye](e.get("iconStatus."+s)||D),d.add(v),v.on("click",i.bind(r.onclick,r,l,u,s)),m[s]=v})}var d=this.group;if(d[Ce](),t.get("show")){var f=+t.get("itemSize"),p=t.get("feature")||{},m=this._features||(this._features={}),v=[];i.each(p,function(t,e){v.push(e)}),new a(this._featureNames||[],v).add(c)[ii](c)[ti](i.curry(c,null)).execute(),this._featureNames=v,o.layout(d,t,u),o.addBackground(d,t),d.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=s[be](e,i.font),r=t[ve][0]+d[ve][0],a=t[ve][1]+d[ve][1]+f,o=!1;a+n[ni]>u[ui]()&&(i.textPosition="top",o=!0);var l=o?-5-n[ni]:f+8;r+n.width/2>u[ci]()?(i.textPosition=["100%",l],i[Se]="right"):r-n.width/2<0&&(i.textPosition=[0,l],i[Se]="left")}})}},remove:function(t,e){i.each(this._features,function(i){i[ti]&&i[ti](t,e)}),this.group[Ce]()},dispose:function(t,e){i.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}),e("echarts/component/visualMapPiecewise",[_i,"../echarts","./visualMap/preprocessor","./visualMap/typeDefaulter","./visualMap/visualCoding","./visualMap/PiecewiseModel","./visualMap/PiecewiseView","./visualMap/visualMapAction"],function(t){t("../echarts").registerPreprocessor(t("./visualMap/preprocessor")),t("./visualMap/typeDefaulter"),t("./visualMap/visualCoding"),t("./visualMap/PiecewiseModel"),t("./visualMap/PiecewiseView"),t("./visualMap/visualMapAction")}),e("echarts/component/toolbox/feature/MagicType",[_i,yi,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(yi);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[pi];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:[]},u=function(t){var e=t.subType,a=t.id,s=r[n](e,a,t,o);s&&(i[Ke](s,t[G]),l[Ue].push(s))};i.each(a,function(t){i[De](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,D)})}),o.setIconStatus(n,V),t[oi]({mainType:"series",seriesIndex:s},u),e[Qe]({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o[ke]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[N](t.newOption)}),t("../featureManager").register("magicType",e),e}),e("echarts/component/toolbox/feature/SaveAsImage",[_i,"../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[pi];return i.onclick=function(t,e){var i=this.model,n=t.get("title.0.text")||"echarts",r=document[se]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[Fe]="_blank",r.href=e.getConnectedDataURL({type:a,backgroundColor:i.get(si,!0)||t.get(si)||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),r.click()},t("../featureManager").register("saveAsImage",e),e}),e("echarts/component/toolbox/feature/DataView",[_i,yi,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[fe];if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r.getBaseAxis();if(a.type===m){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r[ne](a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][Ue].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=[" "][ae](d.map(t[Ue],function(t){return t.name})),o=[i.model.getCategories()];d.each(t[Ue],function(t){o.push(t.getRawData()[ee](r,function(t){return t}))});for(var s=[a.join(v)],l=0;l<o[0][$e];l++){for(var u=[],c=0;c<o[$e];c++)u.push(o[c][l]);s.push(u.join(v))}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[F],function(){for(var t=arguments[$e],r=arguments[t-1],a=e[R](r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+v:"")+n.join(v))}),i.join("\n")}).join("\n\n"+p+"\n\n")}function r(t){var r=e(t);return{value:d[vi]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[Re](/[\n\t\s]/g,"")}).join("\n\n"+p+"\n\n"),meta:r.meta}}function a(t){return t[Re](/^\s\s*/,"")[Re](/\s\s*$/,"")}function o(t){var e=t.slice(0,t[De]("\n"));return e[De](v)>=0?!0:void 0}function s(t){for(var e=t.split(/\n+/g),i=a(e.shift()).split(g),n=[],r=d.map(i,function(t){return{name:t,data:[]}}),o=0;o<e[$e];o++){var s=a(e[o]).split(g);n.push(s.shift());for(var l=0;l<s[$e];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[$e];r++){var o,s=a(e[r]).split(g),l="",u=!1;isNaN(s[0])?(u=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},o=n[r].value):o=n[r]=[];for(var c=0;c<s[$e];c++)o.push(+s[c]);1===o[$e]&&(u?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function u(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],u=a.axisDim+"Axis";a&&(n[u]=n[u]||[],n[u][a.axisIndex]={data:r.categories},n[Ue]=n[Ue][ae](r[Ue]))}else{var r=l(t);n[Ue].push(r)}}),n}function c(t){this._dom=null,this.model=t}function h(t,e){return d.map(t,function(t,i){var n=e&&e[i];return d[ei](n)&&!d[Ve](n)?(d[ei](t)&&!d[Ve](t)&&(t=t.value),d[Ke]({value:t},n)):t})}var d=t(yi),f=t("zrender/core/event"),p=new Array(60).join("-"),v="    ",g=new RegExp("["+v+"| ]+","g");return c.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"},c[pi].onclick=function(t,e){function i(){n.removeChild(o),_._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document[se]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style[si]=a.get(si)||"#fff";var s=document[se]("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 c=document[se]("textarea");c.style.cssText="display:block;width:100%;font-size:14px;line-height:1.6rem;font-family:Monaco,Consolas,Courier new,monospace",c.readOnly=a.get("readOnly"),c.style.color=a.get("textColor"),c.style.borderColor=a.get("textareaBorderColor"),c.style[si]=a.get("textareaColor");var h=r(t);c.value=h.value;var d=h.meta,p=document[se]("div");p.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",g=document[se]("div"),y=document[se]("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var _=this;f.addEventListener(g,"click",i),f.addEventListener(y,"click",function(){var t;try{t=u(c.value,d)}catch(n){throw i(),new Error("Data view format error "+n)}e[Qe]({type:"changeDataView",newOption:t}),i()}),g.innerHTML=l[1],y.innerHTML=l[2],y.style.cssText=m,g.style.cssText=m,p.appendChild(y),p.appendChild(g),f.addEventListener(c,"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)+v+e.substring(n),this.selectionStart=this.selectionEnd=i+1,f.stop(t)}}),o.appendChild(s),o.appendChild(c),o.appendChild(p),c.style[ni]=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},c[pi][ti]=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},c[pi].dispose=function(t,e){this[ti](t,e)},t("../featureManager").register("dataView",c),t("../../../echarts")[ke]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];d.each(t.newOption[Ue],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:h(t.data,r)})}else i.push(d[Je]({type:"scatter"},t))}),e[N](d[Ke]({series:i},t.newOption))}),c}),e("echarts/component/toolbox/feature/DataZoom",[_i,yi,"../../../util/number","../../helper/SelectController",_,"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[te]("x").model,axisIndex:0},{axisModel:t[te]("y").model,axisIndex:0}];return i.grid=t,e[oi]({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[Z](t,r)===e}function r(t,e){var i=e.grid,n=new c(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{dataZoomId:r.id,startValue:t[i][0],endValue:t[i][1]}}function o(t,e){t.setIconStatus("back",d.count(e)>1?V:D)}var s=t(yi),l=t("../../../util/number"),u=t("../../helper/SelectController"),c=t(_),h=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[pi];g.render=function(t,e){o(t,e)},g.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new h,e.getZr().add(n)),y[i].call(this,n,this.model,t,e)},g[ti]=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[ti](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?V:D),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 u("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[$e]){var l=s[0];t[ii]();var u={};n[oi]("grid",function(t){var e=t[fe],o=i(e,n),s=r(l,o);if(s){var c=a(s,o,0,"x"),h=a(s,o,1,"y");c&&(u[c.dataZoomId]=c),h&&(u[h.dataZoomId]=h)}},this),d.push(n,u),this._dispatchAction(u,o)}},g._dispatchAction=function(t,e){var i=[];p(t,function(t){i.push(t)}),i[$e]&&e[Qe]({type:"dataZoom",from:this.uid,batch:s.clone(i,!0)})},t("../featureManager").register("dataZoom",e),t("../../../echarts").registerPreprocessor(function(t){function e(t){i(t,function(e,i){var r={type:"select",$fromToolbox:!0,id:v+t+i};r[t+"Index"]=i,n.push(r)})}function i(e,i){var n=t[e];s[Ve](n)||(n=n?[n]:[]),p(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);s[Ve](n)||(n=[n]);var r=t.toolbox;r&&(s[Ve](r)&&(r=r[0]),r&&r.feature&&r.feature.dataZoom&&(e("xAxis"),e("yAxis")))}}),e}),e("echarts/component/toolbox/feature/Restore",[_i,"../../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[pi];return n.onclick=function(t,e){i.clear(t),e[Qe]({type:"restore",from:this.uid})},t("../featureManager").register("restore",e),t("../../../echarts")[ke]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("zrender/vml/graphic",[_i,"../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=U+","+U,t.coordorigin="0,0"}function n(t){return String(t)[Re](/&/g,"&amp;")[Re](/"/g,"&quot;")}function r(t,e,i){return"rgb("+[t,e,i].join(",")+")"}function a(t,e){e&&t&&e[b]!==t&&t.appendChild(e)}function o(t,e){e&&t&&e[b]===t&&t.removeChild(e)}function s(t,e,i){return(parseFloat(t)||0)*Y+(parseFloat(e)||0)*$+i}function l(t,e,i){var n=T.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=r(n[0],n[1],n[2]),t[pe]=i*n[3])}function u(t){var e=T.parse(t);return[r(e[0],e[1],e[2]),e[3]]}function c(t,e,i){var n=e.fill;if(null!=n)if(n instanceof O){var r,a=0,o=[0,0],s=0,c=1,h=i[be](),d=h.width,f=h[ni];if("linear"===n.type){r="gradient";var p=i[gi],m=[n.x*d,n.y*f],v=[n.x2*d,n.y2*f];p&&(W(m,m,p),W(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*d,n.y*f],p=i[gi],_=i.scale,x=d,b=f;o=[(m[0]-h.x)/x,(m[1]-h.y)/b],p&&W(m,m,p),x/=_[0]*U,b/=_[1]*U;var w=H(x,b);s=0/w,c=2*n.r/w-s}var M=n.colorStops.slice();M.sort(function(t,e){return t.offset-e.offset});for(var S=M[$e],T=[],C=[],L=0;S>L;L++){var z=M[L],A=u(z.color);C.push(z.offset*c+s+" "+A[0]),(0===L||L===S-1)&&T.push(A)}if(S>=2){var P=T[0][0],I=T[1][0],k=T[0][1]*e[pe],D=T[1][1]*e[pe];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=P,t.color2=I,t.colors=C.join(","),t[pe]=D,t.opacity2=k}"radial"===r&&(t.focusposition=o.join(","))}else l(t,n,e[pe])}function h(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*U),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[P]||e[P]instanceof O||l(t,e[P],e[pe])}function d(t,e,i,n){var r="fill"==e,s=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[I])?(t[r?"filled":"stroked"]="true",i[e]instanceof O&&o(t,s),s||(s=E.createNode(e)),r?c(s,i,n):h(s,i),a(t,s)):(t[r?"filled":"stroked"]="false",o(t,s))}function f(t,e){var i,n,r,a,o,s,l=S.M,u=S.C,c=S.L,h=S.A,d=S.Q,f=[];for(a=0;a<t[$e];){switch(r=t[a++],n="",i=0,r){case l:n=" m ",i=1,o=t[a++],s=t[a++],K[0][0]=o,K[0][1]=s;break;case c:n=" l ",i=1,o=t[a++],s=t[a++],K[0][0]=o,K[0][1]=s;break;case d:case u:n=" c ",i=3;var p,m,v=t[a++],g=t[a++],y=t[a++],_=t[a++];r===d?(p=y,m=_,y=(y+2*v)/3,_=(_+2*g)/3,v=(o+2*v)/3,g=(s+2*g)/3):(p=t[a++],m=t[a++]),K[0][0]=v,K[0][1]=g,K[1][0]=y,K[1][1]=_,K[2][0]=p,K[2][1]=m,o=p,s=m;break;case h:var x=0,b=0,w=1,M=1,T=0;e&&(x=e[4],b=e[5],w=Z(e[0]*e[0]+e[1]*e[1]),M=Z(e[2]*e[2]+e[3]*e[3]),T=Math.atan2(-e[1]/M,e[0]/w));var C=t[a++],L=t[a++],z=t[a++],A=t[a++],P=t[a++]+T,I=t[a++]+P+T;a++;var k=t[a++],D=C+G(P)*z,V=L+F(P)*A,v=C+G(I)*z,g=L+F(I)*A,R=k?" wa ":" at ";f.push(R,B(((C-z)*w+x)*U-X),q,B(((L-A)*M+b)*U-X),q,B(((C+z)*w+x)*U-X),q,B(((L+A)*M+b)*U-X),q,B((D*w+x)*U-X),q,B((V*M+b)*U-X),q,B((v*w+x)*U-X),q,B((g*M+b)*U-X)),o=v,s=g;break;case S.R:var O=K[0],E=K[1];O[0]=t[a++],O[1]=t[a++],E[0]=O[0]+t[a++],E[1]=O[1]+t[a++],e&&(W(O,O,e),W(E,E,e)),O[0]=B(O[0]*U-X),E[0]=B(E[0]*U-X),O[1]=B(O[1]*U-X),E[1]=B(E[1]*U-X),f.push(" m ",O[0],q,O[1]," l ",E[0],q,O[1]," l ",E[0],q,E[1]," l ",O[0],q,E[1]);break;case S.Z:f.push(" x ")}if(i>0){f.push(n);for(var N=0;i>N;N++){var H=K[N];e&&W(H,H,e),f.push(B(H[0]*U-X),q,B(H[1]*U-X),i-1>N?q:"")}}}return f.join("")}function p(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()}function m(t){var e=te[t];if(!e){ee>ie&&(ee=0,te={});var i,n=ne.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||J,variant:n.fontVariant||J,weight:n.fontWeight||J,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},te[t]=e,ee++}return e}function v(t,i,r,o){var l=this.style,u=l.text;if(u){var c,h,f=l[Se],p=m(l.textFont),v=p.style+" "+p.variant+" "+p.weight+" "+p.size+'px "'+p.family+'"',g=l.textBaseline;r=r||C[be](u,v,f,g);var y=this[gi];if(y&&!o&&(re.copy(i),re[k](y),i=re),o)c=i.x,h=i.y;else{var _=l.textPosition,x=l.textDistance;if(_ instanceof Array)c=i.x+_[0],h=i.y+_[1],f=f||"left",g=g||"top";else{var b=C.adjustTextPositionOnRect(_,i,r,x);c=b.x,h=b.y,f=f||b[Se],g=g||b.textBaseline}}var S=p.size;switch(g){case"hanging":case"top":h+=S/1.75;break;case M:break;default:h-=S/2.25}switch(f){case"left":break;case ge:c-=r.width/2;break;case"right":c-=r.width}var T,L,z,A=E.createNode,I=this._textVmlEl;I?(z=I.firstChild,T=z.nextSibling,L=T.nextSibling):(I=A("line"),T=A("path"),L=A("textpath"),z=A("skew"),L.style["v-text-align"]="left",e(I),T.textpathok=!0,L.on=!0,I.from="0 0",I.to="1000 0.05",a(I,z),a(I,T),a(I,L),this._textVmlEl=I);var D=[c,h],V=I.style;y&&o?(W(D,D,y),z.on=!0,z.matrix=y[0][w](3)+q+y[2][w](3)+q+y[1][w](3)+q+y[3][w](3)+",0,0",z.offset=(B(D[0])||0)+","+(B(D[1])||0),z.origin="0 0",V.left="0px",V.top="0px"):(z.on=!1,V.left=B(c)+"px",V.top=B(h)+"px"),L[fi]=n(u);try{L.style.font=v}catch(R){}d(I,"fill",{fill:o?l.fill:l.textFill,opacity:l[pe]},this),d(I,P,{stroke:o?l[P]:l.textStroke,opacity:l[pe],lineDash:l.lineDash},this),I.style.zIndex=s(this[Ee],this.z,this.z2),a(t,I)}}function g(t){o(t,this._textVmlEl),this._textVmlEl=null}function y(t){a(t,this._textVmlEl)}if(!t("../core/env")[li]){var _=t("../core/vector"),x=t("../core/BoundingRect"),S=t("../core/PathProxy").CMD,T=t("../tool/color"),C=t("../contain/text"),L=t("../graphic/mixin/RectText"),z=t("../graphic/Displayable"),A=t("../graphic/Image"),V=t("../graphic/Text"),R=t("../graphic/Path"),O=t("../graphic/Gradient"),E=t("./core"),B=Math.round,Z=Math.sqrt,N=Math.abs,G=Math.cos,F=Math.sin,H=Math.max,W=_[k],q=",",j="progid:DXImageTransform.Microsoft",U=21600,X=U/2,Y=1e5,$=1e3,K=[[],[],[]];R[pi].brush=function(t){var n=this.style,r=this._vmlEl;r||(r=E.createNode("shape"),e(r),this._vmlEl=r),d(r,"fill",n,this),d(r,P,n,this);var o=this[gi],l=null!=o,u=r.getElementsByTagName(P)[0];if(u){var c=n[I];if(l&&!n.strokeNoScale){var h=o[0]*o[3]-o[1]*o[2];c*=Z(N(h))}u.weight=c+"px"}var p=this.path;this.__dirtyPath&&(p.beginPath(),this[i](p,this.shape),this.__dirtyPath=!1),r.path=f(p.data,this[gi]),r.style.zIndex=s(this[Ee],this.z,this.z2),a(t,r),n.text&&this.drawRectText(t,this[be]())},R[pi].onRemoveFromStorage=function(t){o(t,this._vmlEl),this.removeRectText(t)},R[pi].onAddToStorage=function(t){a(t,this._vmlEl),this.appendRectText(t)},A[pi].brush=function(t){var i,n,r=this.style,o=r.image;if(p(o)){var l=o.src;if(l===this._imageSrc)i=this._imageWidth,n=this._imageHeight;else{var u=o.runtimeStyle,c=u.width,h=u[ni];u.width="auto",u[ni]="auto",i=o.width,n=o[ni],u.width=c,u[ni]=h,this._imageSrc=l,this._imageWidth=i,this._imageHeight=n}o=l}else o===this._imageSrc&&(i=this._imageWidth,n=this._imageHeight);if(o){var d=r.x||0,f=r.y||0,m=r.width,v=r[ni],g=r.sWidth,y=r.sHeight,_=r.sx||0,x=r.sy||0,w=g&&y,M=this._vmlEl;M||(M=E.doc[se]("div"),e(M),this._vmlEl=M);var S,T=M.style,C=!1,L=1,z=1;if(this[gi]&&(S=this[gi],L=Z(S[0]*S[0]+S[1]*S[1]),z=Z(S[2]*S[2]+S[3]*S[3]),C=S[1]||S[2]),C){var A=[d,f],P=[d+m,f],I=[d,f+v],k=[d+m,f+v];W(A,A,S),W(P,P,S),W(I,I,S),W(k,k,S);var D=H(A[0],P[0],I[0],k[0]),V=H(A[1],P[1],I[1],k[1]),R=[];R.push("M11=",S[0]/L,q,"M12=",S[2]/z,q,"M21=",S[1]/L,q,"M22=",S[3]/z,q,"Dx=",B(d*L+S[4]),q,"Dy=",B(f*z+S[5])),T[ye]="0 "+B(D)+"px "+B(V)+"px 0",T[vi]=j+".Matrix("+R.join("")+", SizingMethod=clip)"}else S&&(d=d*L+S[4],f=f*z+S[5]),T[vi]="",T.left=B(d)+"px",T.top=B(f)+"px";var O=this._imageEl,N=this._cropEl;O||(O=E.doc[se]("div"),this._imageEl=O);var G=O.style;if(w){if(i&&n)G.width=B(L*i*m/g)+"px",G[ni]=B(z*n*v/y)+"px";else{var F=new Image,U=this;F.onload=function(){F.onload=null,i=F.width,n=F[ni],G.width=B(L*i*m/g)+"px",G[ni]=B(z*n*v/y)+"px",U._imageWidth=i,U._imageHeight=n,U._imageSrc=o},F.src=o}N||(N=E.doc[se]("div"),N.style.overflow="hidden",this._cropEl=N);var X=N.style;X.width=B((m+_*m/g)*L),X[ni]=B((v+x*v/y)*z),X[vi]=j+".Matrix(Dx="+-_*m/g*L+",Dy="+-x*v/y*z+")",N[b]||M.appendChild(N),O[b]!=N&&N.appendChild(O)}else G.width=B(L*m)+"px",G[ni]=B(z*v)+"px",M.appendChild(O),N&&N[b]&&(M.removeChild(N),this._cropEl=null);var Y="",$=r[pe];1>$&&(Y+=".Alpha(opacity="+B(100*$)+") "),Y+=j+".AlphaImageLoader(src="+o+", SizingMethod=scale)",G[vi]=Y,M.style.zIndex=s(this[Ee],this.z,this.z2),a(t,M),r.text&&this.drawRectText(t,this[be]())}},A[pi].onRemoveFromStorage=function(t){o(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},A[pi].onAddToStorage=function(t){a(t,this._vmlEl),this.appendRectText(t)};var Q,J=D,te={},ee=0,ie=100,ne=document[se]("div");C.measureText=function(t,e){var i=E.doc;Q||(Q=i[se]("div"),Q.style.cssText="position:absolute;top:-20000px;left:0;                padding:0;margin:0;border:none;white-space:pre;",E.doc.body.appendChild(Q));try{Q.style.font=e}catch(n){}return Q.innerHTML="",Q.appendChild(i.createTextNode(t)),{width:Q.offsetWidth}};for(var re=new x,ae=[L,z,A,R,V],oe=0;oe<ae[$e];oe++){var le=ae[oe][pi];le.drawRectText=v,le.removeRectText=g,le.appendRectText=y}V[pi].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[be](),!0)},V[pi].onRemoveFromStorage=function(t){this.removeRectText(t)},V[pi].onAddToStorage=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[_i,"../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[se]("div"),n=document[se]("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[di]();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[pi]={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[$e];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[ni]=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[ni]))-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[$e];s++){var l=o[s];i[pi][l]=n(l)}return i}),e("echarts/scale/Interval",[_i,"../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[Je]({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[pi].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[$e]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this[ce](),i=0;i<e[$e];i++)t.push(this[ue](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]){var s=o[0]/2||1;o[0]-=s,o[1]+=s}if(o[1]===-1/0&&1/0===o[0])return o[1]=1,o[0]=-1,this._niceExtent=[-1,1],void(this._interval=.5);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[he]=function(){return new o},o}),e("echarts/scale/Scale",[_i,"../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[pi];return n[de]=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[le]=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[ce](),i=0;i<e[$e];i++)t.push(this[ue](e[i]));return t},i.enableClassExtend(e),i.enableClassManagement(e,{registerWhenExtend:!0}),e}),e("zrender/graphic/Gradient",[_i],function(){var t=function(t){this.colorStops=t||[]};return t[pi]={constructor:t,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t}),e("echarts/model/Model",[_i,yi,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e||null,this[E]=i||null,this[G]=t,this.init.apply(this,arguments)}var i=t(yi),n=t("../util/clazz");e[pi]={constructor:e,init:function(){},mergeOption:function(t){i.merge(this[G],t,!0)},get:function(t,e){if(!t)return this[G];typeof t===fi&&(t=t.split("."));for(var i=this[G],n=this.parentModel,r=0;r<t[$e]&&(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[G],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[A](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[hi](t),this[E]);return a},isEmpty:function(){return null==this[G]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[G]))},setReadOnly:function(t){n.setReadOnly(this,t)}},n.enableClassExtend(e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==C&&(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("zrender/tool/path",[_i,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,u,p){var g=l*(f/180),y=d(g)*(t-i)/2+h(g)*(e-n)/2,_=-1*h(g)*(t-i)/2+d(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=c(x),s*=c(x));var b=(r===a?-1:1)*c((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,M=b*-s*y/o,S=(t+i)/2+d(g)*w-h(g)*M,T=(e+n)/2+h(g)*w+d(g)*M,C=v([1,0],[(y-w)/o,(_-M)/s]),L=[(y-w)/o,(_-M)/s],z=[(-1*y-w)/o,(-1*_-M)/s],A=v(L,z);m(L,z)<=-1&&(A=f),m(L,z)>=1&&(A=0),0===a&&A>0&&(A-=2*f),1===a&&0>A&&(A+=2*f),p.addData(u,S,T,o,s,C,A,g,a)}function n(t){if(!t)return[];var i,n=t[Re](/-/g," -")[Re](/  /g," ")[Re](/ /g,",")[Re](/,,/g,",");for(i=0;i<u[$e];i++)n=n[Re](new RegExp(u[i],"g"),"|"+u[i]);var r,a=n.split("|"),s=0,l=0,c=new o,h=o.CMD;for(i=1;i<a[$e];i++){var d,f=a[i],p=f.charAt(0),m=0,v=f.slice(1)[Re](/e,-/g,"e-").split(",");v[$e]>0&&""===v[0]&&v.shift();for(var g=0;g<v[$e];g++)v[g]=parseFloat(v[g]);for(;m<v[$e]&&!isNaN(v[m])&&!isNaN(v[0]);){var y,_,x,b,w,M,S,T=s,C=l;switch(p){case"l":s+=v[m++],l+=v[m++],d=h.L,c.addData(d,s,l);break;case"L":s=v[m++],l=v[m++],d=h.L,c.addData(d,s,l);break;case"m":s+=v[m++],l+=v[m++],d=h.M,c.addData(d,s,l),p="l";break;case"M":s=v[m++],l=v[m++],d=h.M,c.addData(d,s,l),p="L";break;case"h":s+=v[m++],d=h.L,c.addData(d,s,l);break;case"H":s=v[m++],d=h.L,c.addData(d,s,l);break;case"v":l+=v[m++],d=h.L,c.addData(d,s,l);break;case"V":l=v[m++],d=h.L,c.addData(d,s,l);break;case"C":d=h.C,c.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=h.C,c.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,_=l;var L=c.len(),z=c.data;r===h.C&&(y+=s-z[L-4],_+=l-z[L-3]),d=h.C,T=v[m++],C=v[m++],s=v[m++],l=v[m++],c.addData(d,y,_,T,C,s,l);break;case"s":y=s,_=l;var L=c.len(),z=c.data;r===h.C&&(y+=s-z[L-4],_+=l-z[L-3]),d=h.C,T=s+v[m++],C=l+v[m++],s+=v[m++],l+=v[m++],c.addData(d,y,_,T,C,s,l);break;case"Q":T=v[m++],C=v[m++],s=v[m++],l=v[m++],d=h.Q,c.addData(d,T,C,s,l);break;case"q":T=v[m++]+s,C=v[m++]+l,s+=v[m++],l+=v[m++],d=h.Q,c.addData(d,T,C,s,l);break;case"T":y=s,_=l;var L=c.len(),z=c.data;r===h.Q&&(y+=s-z[L-4],_+=l-z[L-3]),s=v[m++],l=v[m++],d=h.Q,c.addData(d,y,_,s,l);break;case"t":y=s,_=l;var L=c.len(),z=c.data;r===h.Q&&(y+=s-z[L-4],_+=l-z[L-3]),s+=v[m++],l+=v[m++],d=h.Q,c.addData(d,y,_,s,l);break;case"A":x=v[m++],b=v[m++],w=v[m++],M=v[m++],S=v[m++],T=s,C=l,s=v[m++],l=v[m++],d=h.A,e(T,C,s,l,M,S,x,b,w,d,c);break;case"a":x=v[m++],b=v[m++],w=v[m++],M=v[m++],S=v[m++],T=s,C=l,s+=v[m++],l+=v[m++],d=h.A,e(T,C,s,l,M,S,x,b,w,d,c)}}("z"===p||"Z"===p)&&(d=h.Z,c.addData(d)),r=d}return c.toStatic(),c}function r(t,e){var r,a=n(t);return e=e||{},e[i]=function(t){t.setData(a.data),r&&s(t,r);var e=t[oe]();e&&t.rebuildPath(e)},e[k]=function(t){r||(r=l[he]()),l.mul(r,t,r)},e}var a=t("../graphic/Path"),o=t("../core/PathProxy"),s=t("./transformPath"),l=t("../core/matrix"),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,d=Math.cos,f=Math.PI,p=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(p(t)*p(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))};return{createFromString:function(t,e){return new a(r(t,e))},extendFromString:function(t,e){return a[Je](r(t,e))},mergePath:function(t,e){var n,r,o=[],s=t[$e];for(r=0;s>r;r++)n=t[r],n.__dirty&&n[i](n.path,n.shape),o.push(n.path);var l=new a(e);return l[i]=function(t){t.appendPath(o);var e=t[oe]();e&&t.rebuildPath(e)},l}}}),e("zrender/graphic/Path",[_i,"./Displayable",T,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function n(t){var e=t[P];return null!=e&&"none"!==e&&t[I]>0}function r(t){a.call(this,t),this.path=new s}var a=t("./Displayable"),o=t(T),s=t("../core/PathProxy"),l=t("../contain/path"),u=t("./Gradient"),c=Math.abs;return r[pi]={constructor:r,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var r=this.style,a=this.path,o=n(r),s=e(r);this.__dirtyPath&&(s&&r.fill instanceof u&&r.fill.updateCanvasGradient(this,t),o&&r[P]instanceof u&&r[P].updateCanvasGradient(this,t)),r.bind(t,this),this.setTransform(t);var l=r.lineDash,c=r.lineDashOffset,h=!!t.setLineDash;this.__dirtyPath||l&&!h&&o?(a=this.path.beginPath(t),l&&!h&&(a.setLineDash(l),a.setLineDashOffset(c)),this[i](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[P](t),null!=r.text&&this.drawRectText(t,this[be]()),t.restore()},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style;if(!t){var r=this.path;this.__dirtyPath&&(r.beginPath(),this[i](r,this.shape)),t=r[be]()}if(n(e)&&(this.__dirty||!this._rect)){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());a.copy(t);var o=e[I],s=e.strokeNoScale?this.getLineScale():1;return o=Math.max(o,this.strokeContainThreshold),s>1e-10&&(a.width+=o/s,a[ni]+=o/s,a.x-=o/s/2,a.y-=o/s/2),a}return this._rect=t,t},contain:function(t,i){var r=this.transformCoordToLocal(t,i),a=this[be](),o=this.style;if(t=r[0],i=r[1],a[de](t,i)){var s=this.path.data;if(n(o)){var u=o[I],c=o.strokeNoScale?this.getLineScale():1;if(1e-10>c)return!1;if(u=Math.max(u,this.strokeContainThreshold),l.containStroke(s,u/c,t,i))return!0}if(e(o))return l[de](s,t,i)}return!1},dirty:function(t){0===arguments[$e]&&(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[$](e):a[pi].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(o[ei](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[gi];return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},r[Je]=function(t){var e=function(e){r.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};o[ze](e,r);for(var i in t)"style"!==i&&"shape"!==i&&(e[pi][i]=t[i]);return e},o[ze](r,a),r}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===C?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("zrender/container/Group",[_i,T,"../Element","../core/BoundingRect"],function(t){var e=t(T),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[pi]={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[$e];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[$e]},add:function(t){return t&&t!==this&&t[L]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[L]!==this&&e&&e[L]===this){var i=this._children,n=i[De](e);n>=0&&(i[je](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[L]&&t[L][ti](t),t[L]=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[De](a,t);return 0>o?this:(a[je](o,1),t[L]=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[$e];e++)t=i[e],n&&(n.delFromMap(t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[L]=null;return i[$e]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[$e];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[$e];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[Oe](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[$e];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[$e];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[$e];o++){var s=r[o];if(!s[ai]&&!s.invisible){var l=s[be](),u=s[z](a);u?(i.copy(l),i[k](u),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[ze](r,i),r}),e("zrender/core/vector",[],function(){var t=typeof Float32Array===C?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[$e]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("zrender/graphic/Image",[_i,"./Displayable","../core/BoundingRect",T,"./helper/roundRect","../core/LRU"],function(t){var e=t("./Displayable"),n=t("../core/BoundingRect"),r=t(T),a=t("./helper/roundRect"),o=t("../core/LRU"),s=new o(50),l=function(t){e.call(this,t)};return l[pi]={constructor:l,type:"image",brush:function(t){var e,n=this.style,r=n.image;if(e=typeof r===fi?this._image:r,!e&&r){var o=s.get(r);if(!o)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<o.pending[$e];t++)o.pending[t].dirty()},o={image:e,pending:[this]},e.src=r,s.put(r,o),void(this._image=e);if(e=o.image,this._image=e,!e.width||!e[ni])return void o.pending.push(this)}if(e){var l=n.width||e.width,u=n[ni]||e[ni],c=n.x||0,h=n.y||0;if(!e.width||!e[ni])return;if(t.save(),n.bind(t),this.setTransform(t),n.r&&(t.beginPath(),a[i](t,n),t.clip()),n.sWidth&&n.sHeight){var d=n.sx||0,f=n.sy||0;t.drawImage(e,d,f,n.sWidth,n.sHeight,c,h,l,u)}else if(n.sx&&n.sy){var d=n.sx,f=n.sy,p=l-d,m=u-f;t.drawImage(e,d,f,p,m,c,h,l,u)}else t.drawImage(e,c,h,l,u);null==n.width&&(n.width=l),null==n[ni]&&(n[ni]=u),null!=n.text&&this.drawRectText(t,this[be]()),t.restore()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new n(t.x||0,t.y||0,t.width||0,t[ni]||0)),this._rect}},r[ze](l,e),l}),e("zrender/graphic/Text",[_i,"./Displayable",T,"../contain/text"],function(t){var e=t("./Displayable"),i=t(T),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[pi]={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[P];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[Se]=e[Se],t.textBaseline=e.textBaseline;for(var l=n.measureText("国",t.font).width,u=a.split("\n"),c=0;c<u[$e];c++)o&&t.fillText(u[c],i,r),s&&t.strokeText(u[c],i,r),r+=l;t.restore()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=n[be](t.text+"",t.textFont,t[Se],t.textBaseline);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},i[ze](r,e),r}),e("zrender/graphic/shape/Polygon",[_i,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Je]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,n){e[i](t,n,!0)}})}),e("zrender/graphic/shape/Rect",[_i,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[Je]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,n){var r=n.x,a=n.y,o=n.width,s=n[ni];n.r?e[i](t,n):t.rect(r,a,o,s),t.closePath()}})}),e("zrender/graphic/shape/Sector",[_i,"../Path"],function(t){return t("../Path")[Je]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.r0||0,o=e.r,s=e.startAngle,l=e.endAngle,u=e.clockwise,c=Math.cos(s),h=Math.sin(s);t[a](c*r+i,h*r+n),t.lineTo(c*o+i,h*o+n),t.arc(i,n,o,s,l,!u),t.lineTo(Math.cos(l)*r+i,Math.sin(l)*r+n),0!==r&&t.arc(i,n,r,l,s,u),t.closePath()}})}),e("zrender/graphic/shape/Circle",[_i,"../Path"],function(t){return t("../Path")[Je]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t[a](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Polyline",[_i,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Je]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,n){e[i](t,n,!1)}})}),e("zrender/graphic/shape/Line",[_i,"../Path"],function(t){return t("../Path")[Je]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,s=e.percent;0!==s&&(t[a](i,n),1>s&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,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/BezierCurve",[_i,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,n=e.cubicSubdivide,r=e.quadraticAt,o=e.cubicAt,s=[];return t("../Path")[Je]({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 r=e.x1,o=e.y1,l=e.x2,u=e.y2,c=e.cpx1,h=e.cpy1,d=e.cpx2,f=e.cpy2,p=e.percent;0!==p&&(t[a](r,o),null==d||null==f?(1>p&&(i(r,c,l,p,s),c=s[1],l=s[2],i(o,h,u,p,s),h=s[1],u=s[2]),t.quadraticCurveTo(c,h,l,u)):(1>p&&(n(r,c,d,l,p,s),c=s[1],d=s[2],l=s[3],n(o,h,f,u,p,s),h=s[1],f=s[2],u=s[3]),t.bezierCurveTo(c,h,d,f,l,u)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[r(e.x1,e.cpx1,e.x2,t),r(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/shape/Arc",[_i,"../Path"],function(t){return t("../Path")[Je]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.r,o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),c=Math.sin(o);t[a](u*r+i,c*r+n),t.arc(i,n,r,o,s,!l)}})}),e("zrender/graphic/LinearGradient",[_i,T,"./Gradient"],function(t){var e=t(T),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[pi]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[be](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[ni]+i.y,o=this.y2*i[ni]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,u=0;u<l[$e];u++)s.addColorStop(l[u].offset,l[u].color);this.canvasGradient=s}},e[ze](n,i),n}),e("zrender/graphic/RadialGradient",[_i,T,"./Gradient"],function(t){var e=t(T),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[pi]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[be](),n=i.width,r=i[ni],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,l=this.r*a,u=e.createRadialGradient(o,s,0,o,s,l),c=this.colorStops,h=0;h<c[$e];h++)u.addColorStop(c[h].offset,c[h].color);this.canvasGradient=u}},e[ze](n,i),n}),e("echarts/util/model",[_i,"./format","./number",yi,"../model/Model"],function(t){var e=t("./format"),i=t("./number"),n=t(yi),r=t("../model/Model"),a=["x","y","z",ie,"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[$e];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[Ve](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){function r(t,e){return n[De](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[V]=t[V]||{},r=t[D]=t[D]||{};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[Ze]=t[Ze],a.name=t.name||"",a[qe]=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===X?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[qe](),i=this[Ze],n=this.name,r=this[q](t),a=e.getRawIndex(t),o=e[R](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||D;var r=this[qe](),a=r[H](t),o=this[Be](t);return n||(n=a.get(["label",i,O])),typeof n===Ie?(o.status=i,n(o)):typeof n===fi?e.formatTpl(n,o):void 0},getRawValue:function(t){var e=this[qe]()[H](t);if(e&&e[G]){var i=e[G];return n[ei](i)&&!n[Ve](i)?i.value:i}}},o}),e("echarts/util/component",[_i,yi,"./clazz"],function(t){var e=t(yi),i=t("./clazz"),n=i.parseClassType,r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),u=l.originalDeps=i(s),c=a(u,t);l.entryCount=c[$e],0===l.entryCount&&o.push(s),e.each(c,function(t){e[De](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[De](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[De](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[$e]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[$e];){var d=c.pop(),f=u[d],p=!!h[d];p&&(r.call(a,d,f.originalDeps.slice()),delete h[d]),e.each(f.successor,p?s:o)}e.each(h,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/util/clazz",[_i,yi],function(t){function e(t,e){for(var i,n=t.constructor,r=t[e];(n=n.$superClass)&&(i=n[pi][e])&&i===r;);return i}var i=t(yi),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[Je]=function(r){var a=function(){n&&n.apply(this,arguments),t.apply(this,arguments)};return i[Je](a[pi],i[Je]({$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[Je]=this[Je],i[ze](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[Je];s&&(t[Je]=function(e){var i=s.call(this,e);return t.registerClass(i,e.type)})}return t},n.setReadOnly=function(t,e){i[Ve](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[Ve](t[e])&&Object.freeze&&Object.freeze(t[e])})},n}),e("echarts/model/mixin/boxLayout",[_i],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(ri),width:this.get("width"),height:this.get(ni)}}}}),e("echarts/component/visualMap/preprocessor",[_i,yi],function(t){function e(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var i=t(yi),n=i.each;return function(t){var r=t&&t.visualMap;i[Ve](r)||(r=r?[r]:[]),n(r,function(t){if(t){e(t,"splitList")&&!e(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var r=t.pieces;r&&i[Ve](r)&&n(r,function(t){i[ei](t)&&(e(t,"start")&&!e(t,"min")&&(t.min=t.start),e(t,"end")&&!e(t,"max")&&(t.max=t.end))})}})}}),e("echarts/component/visualMap/typeDefaulter",[_i,r],function(t){t(r).registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces[$e]>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})}),e("echarts/component/visualMap/visualCoding",[_i,y,"../../visual/VisualMapping",yi],function(t){function e(t){var e=t.targetVisuals,i={};r.each(["inRange","outOfRange"],function(t){var r=n.prepareVisualTypes(e[t]);i[t]=r}),t.eachTargetSeries(function(n){function r(t){return s[u](o,t)}function a(t,e){s[W](o,t,e)}var o,s=n[qe](),l=t.getDataDimension(s);s.each([l],function(n,s){o=s;for(var l=t.getValueState(n),u=e[l],c=i[l],h=0,d=c[$e];d>h;h++){var f=c[h];u[f]&&u[f].applyVisual(n,r,a)}})})}var i=t(y),n=t("../../visual/VisualMapping"),r=t(yi);i.registerVisualCoding("component",function(t){t[oi]("visualMap",function(i){e(i,t)})})}),e("echarts/component/visualMap/ContinuousModel",[_i,"./VisualMapModel",yi,p],function(t){var e=t("./VisualMapModel"),i=t(yi),r=t(p),a=[20,140];return e[Je]({type:"visualMap.continuous",defaultOption:{handlePosition:"auto",calculable:!1,range:[-1/0,1/0],hoverLink:!0,realtime:!0,itemWidth:null,itemHeight:null},doMergeOption:function(t,e){this[n]("doMergeOption",arguments),this.resetTargetSeries(t,e),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear"}),this._resetRange()},resetItemSize:function(){e[pi].resetItemSize.apply(this,arguments);var t=this.itemSize;this._orient===d&&t[x](),(null==t[0]||isNaN(t[0]))&&(t[0]=a[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=a[1])},_resetRange:function(){var t=this[le](),e=this[G].range;e[0]>e[1]&&e[x](),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1])},completeVisualOption:function(){e[pi].completeVisualOption.apply(this,arguments),i.each(this.stateList,function(t){var e=this[G].controller[t][j];e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this[G].range=t.slice(),this._resetRange()},getSelected:function(){var t=this[le](),e=r.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this[G].range,i=this[le]();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"}})}),e("echarts/component/visualMap/ContinuousView",[_i,"./VisualMapView",re,yi,p,"../helper/sliderMove","zrender/graphic/LinearGradient","./helper"],function(t){function e(t,e,i){return new r.Polygon({shape:{points:t},draggable:!!e,cursor:i,drift:e})}function i(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}var n=t("./VisualMapView"),r=t(re),a=t(yi),o=t(p),s=t("../helper/sliderMove"),l=o[S],u=t("zrender/graphic/LinearGradient"),f=t("./helper"),m=a.each,v=n[Je]({type:"visualMap.continuous",init:function(){n[pi].init.apply(this,arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid?this._updateView():this._buildView()},_buildView:function(){this.group[Ce]();var t=this.visualMapModel,e=this.group;this._orient=t.get(c),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var a=this.visualMapModel,o=a.get("textGap"),s=a.itemSize,l=this._shapes.barGroup,u=this._applyTransform([s[0]/2,0===i?-o:s[1]+o],l),c=this._applyTransform(0===i?ri:"top",l),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new r.Text({style:{x:u[0],y:u[1],textBaseline:h===d?M:c,textAlign:h===d?c:ge,text:n,textFont:f[Me](),fill:f[we]()}}))}},_renderBar:function(t){var i=this.visualMapModel,n=this._shapes,r=i.itemSize,o=this._orient,s=this._useHandle,l=f.getItemAlign(i,this.api,r),u=n.barGroup=this._createBarGroup(l);u.add(n.outOfRange=e()),u.add(n.inRange=e(null,a.bind(this._modifyHandle,this,"all"),s?"move":null));var c=i.textStyleModel.getTextRect("国"),h=Math.max(c.width,c[ni]);s&&(n.handleGroups=[],n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(u,0,r,h,o,l),this._createHandle(u,1,r,h,o,l)),t.add(u)},_createHandle:function(t,n,o,s,l){var u=new r.Group({position:[o[0],0]}),c=e(i(n,s),a.bind(this._modifyHandle,this,n),"move");u.add(c);var h={x:l===d?s/2:1.5*s,y:l===d?0===n?-(1.5*s):1.5*s:0===n?-s/2:s/2},f=this.visualMapModel.textStyleModel,p=new r.Text({silent:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textFont:f[Me](),fill:f[we]()}});this.group.add(p);var m=this._shapes;m.handleThumbs[n]=c,m.handleGroups[n]=u,m.handleLabelPoints[n]=h,m.handleLabels[n]=p,t.add(u)},_modifyHandle:function(t,e,i){if(this._useHandle){var n=this._applyTransform([e,i],this._shapes.barGroup,!0);this._updateInterval(t,n[1]),this.api[Qe]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()})}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected();this._handleEnds=l(e,t[le](),[0,t.itemSize[1]],!0)},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds;s(e,n,[0,i.itemSize[1]],"all"===t?"rigid":"push",t),this._dataInterval=l(n,[0,i.itemSize[1]],i[le](),!0)},_updateView:function(t){var e=this.visualMapModel,i=e[le](),n=this._shapes,r=this._dataInterval,a=[0,e.itemSize[1]],o=t?a:this._handleEnds,s=this._createBarVisual(r,i,o,"inRange"),l=this._createBarVisual(i,i,a,"outOfRange");n.inRange[me]("fill",s.barColor)[$]("points",s.barPoints),n.outOfRange[me]("fill",l.barColor)[$]("points",l.barPoints),this._useHandle&&m([0,1],function(t){n.handleThumbs[t][me]("fill",s.handlesColor[t]),n.handleLabels[t][me]({text:e.formatValueText(r[t]),textAlign:this._applyTransform(this._orient===d?0===t?ri:"top":"left",n.barGroup)})},this),this._updateHandlePosition(o)},_createBarVisual:function(t,e,i,n){var r=this.getControllerVisual(t,n,"color").color,a=[this.getControllerVisual(t[0],n,j)[j],this.getControllerVisual(t[1],n,j)[j]],o=this._createBarPoints(i,a);
return{barColor:new u(0,0,1,1,r),barPoints:o,handlesColor:[r[0].color,r[r[$e]-1].color]}},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get(J);return new r.Group(e!==d||i?e===d&&i?{scale:t===ri?[-1,1]:[1,1],rotation:-Math.PI/2}:e!==h||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:t===ri?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandlePosition:function(t){if(this._useHandle){var e=this._shapes;m([0,1],function(i){var n=e.handleGroups[i];n[ve][1]=t[i];var a=e.handleLabelPoints[i],o=r[k]([a.x,a.y],r.getTransform(n,this.group));e.handleLabels[i][me]({x:o[0],y:o[1]})},this)}},_applyTransform:function(t,e,i){var n=r.getTransform(e,this.group);return r[a[Ve](t)?k:"transformDirection"](t,n,i)}});return v}),e("echarts/component/visualMap/visualMapAction",[_i,y],function(t){var e=t(y),i={type:"selectDataRange",event:"dataRangeSelected",update:"update"};e[ke](i,function(t,e){e[oi]({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})})}),e("echarts/component/toolbox/featureManager",[_i],function(){var t={};return{register:function(e,i){t[e]=i},get:function(e){return t[e]}}}),e(_,[_i,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[ni]=n}var i=t("./vector"),n=t("./matrix"),r=i[k],a=Math.min,o=Math.abs,s=Math.max;return e[pi]={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[ni]=s(t.y+t[ni],this.y+this[ni])-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[ni],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[ni]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[ni]/e[ni],a=n[he]();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[ni],o=t.x,s=t.x+t.width,l=t.y,u=t.y+t[ni];return!(o>n||i>s||l>a||r>u)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[ni]},clone:function(){return new e(this.x,this.y,this.width,this[ni])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[ni]=t[ni]}},e}),e("zrender/core/PathProxy",[_i,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),i=t("./vector"),n=t("./bbox"),r=t("./BoundingRect"),o={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},s=[],l=[],u=[],c=[],h=Math.min,d=Math.max,f=Math.cos,p=Math.sin,m=Math.sqrt,v=typeof Float32Array!=C,g=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return g[pi]={constructor:g,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(o.M,t,e),this._ctx&&this._ctx[a](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(o.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(o.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(o.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(o.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=f(r)*i+t,this._xi=p(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(o.R,t,e,i,n),this},closePath:function(){this.addData(o.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[P](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[$e];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[$e];this.data&&this.data[$e]==e||!v||(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[$e],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();v&&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[$e];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[$e]>e[$e]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[$e];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,o=this._dashOffset,s=this._lineDash,l=this._ctx,u=this._xi,c=this._yi,f=t-u,p=e-c,v=m(f*f+p*p),g=u,y=c,_=s[$e];for(f/=v,p/=v,0>o&&(o=r+o),o%=r,g-=o*f,y-=o*p;f>=0&&t>=g||0>f&&g>t;)n=this._dashIdx,i=s[n],g+=f*i,y+=p*i,this._dashIdx=(n+1)%_,f>0&&u>g||0>f&&g>u||l[n%2?a:"lineTo"](f>=0?h(g,t):d(g,t),p>=0?h(y,e):d(y,e));f=g-t,p=y-e,this._dashOffset=-m(f*f+p*p)},_dashedBezierTo:function(t,i,n,r,o,s){var l,u,c,h,d,f=this._dashSum,p=this._dashOffset,v=this._lineDash,g=this._ctx,y=this._xi,_=this._yi,x=e.cubicAt,b=0,w=this._dashIdx,M=v[$e],S=0;for(0>p&&(p=f+p),p%=f,l=0;1>l;l+=.1)u=x(y,t,n,o,l+.1)-x(y,t,n,o,l),c=x(_,i,r,s,l+.1)-x(_,i,r,s,l),b+=m(u*u+c*c);for(;M>w&&(S+=v[w],!(S>p));w++);for(l=(S-p)/b;1>=l;)h=x(y,t,n,o,l),d=x(_,i,r,s,l),w%2?g[a](h,d):g.lineTo(h,d),l+=v[w]/b,w=(w+1)%M;w%2!==0&&g.lineTo(o,s),u=o-h,c=s-d,this._dashOffset=-m(u*u+c*c)},_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[$e]=this._len,v&&this.data instanceof Array&&(this.data=new Float32Array(this.data))},getBoundingRect:function(){s[0]=s[1]=u[0]=u[1]=Number.MAX_VALUE,l[0]=l[1]=c[0]=c[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,a=0,h=0,d=0,m=0;m<t[$e];){var v=t[m++];switch(1==m&&(e=t[m],a=t[m+1],h=e,d=a),v){case o.M:h=t[m++],d=t[m++],e=h,a=d,u[0]=h,u[1]=d,c[0]=h,c[1]=d;break;case o.L:n.fromLine(e,a,t[m],t[m+1],u,c),e=t[m++],a=t[m++];break;case o.C:n.fromCubic(e,a,t[m++],t[m++],t[m++],t[m++],t[m],t[m+1],u,c),e=t[m++],a=t[m++];break;case o.Q:n.fromQuadratic(e,a,t[m++],t[m++],t[m],t[m+1],u,c),e=t[m++],a=t[m++];break;case o.A:var g=t[m++],y=t[m++],_=t[m++],x=t[m++],b=t[m++],w=t[m++]+b,M=(t[m++],1-t[m++]);1==m&&(h=f(b)*_+g,d=p(b)*x+y),n.fromArc(g,y,_,x,b,w,M,u,c),e=f(w)*_+g,a=p(w)*x+y;break;case o.R:h=e=t[m++],d=a=t[m++];var S=t[m++],T=t[m++];n.fromLine(h,d,h+S,d+T,u,c);break;case o.Z:e=h,a=d}i.min(s,s,u),i.max(l,l,c)}return 0===m&&(s[0]=s[1]=l[0]=l[1]=0),new r(s[0],s[1],l[0]-s[0],l[1]-s[1])},rebuildPath:function(t){for(var e=this.data,i=0;i<this._len;){var n=e[i++];switch(n){case o.M:t[a](e[i++],e[i++]);break;case o.L:t.lineTo(e[i++],e[i++]);break;case o.C:t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case o.Q:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case o.A:var r=e[i++],s=e[i++],l=e[i++],u=e[i++],c=e[i++],h=e[i++],d=e[i++],f=e[i++],p=l>u?l:u,m=l>u?1:l/u,v=l>u?u/l:1,g=Math.abs(l-u)>.001;g?(t.translate(r,s),t.rotate(d),t.scale(m,v),t.arc(0,0,p,c,c+h,1-f),t.scale(1/m,1/v),t.rotate(-d),t.translate(-r,-s)):t.arc(r,s,p,c,c+h,1-f);break;case o.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case o.Z:t.closePath()}}}},g.CMD=o,g}),e("zrender/contain/text",[_i,T,"../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[$e];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return l>u&&(l=0,s={}),l++,s[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[$e],o=e(t,i),s=e("国",i),l=a*s,u=new h(0,0,o,l);switch(u.lineHeight=s,r){case ri:case"alphabetic":u.y-=s;break;case M:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case ge:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[ni],s=e.width,l=i[ni],u=o/2-l/2,c="left";switch(t){case"left":r-=n,a+=u,c="right";break;case"right":r+=n+s,a+=u,c="left";break;case"top":r+=s/2,a-=n+l,c=ge;break;case ri:r+=s/2,a+=o+n,c=ge;break;case"inside":r+=s/2,a+=u,c=ge;break;case"insideLeft":r+=n,a+=u,c="left";break;case"insideRight":r+=s-n,a+=u,c="right";break;case"insideTop":r+=s/2,a+=n,c=ge;break;case"insideBottom":r+=s/2,a+=o-l-n,c=ge;break;case"insideTopLeft":r+=n,a+=n,c="left";break;case"insideTopRight":r+=s-n,a+=n,c="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,c="right"}return{x:r,y:a,textAlign:c,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=c[Ke]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var o=(t+"").split("\n"),s=0,l=o[$e];l>s;s++)o[s]=a(o[s],i,n,r);return o.join("\n")}function a(t,i,n,r){for(var a=0;;a++){var s=e(t,i);if(n>s||a>=r.maxIterations){t+=r.ellipsis;break}var l=0===a?o(t,n,r):Math.floor(t[$e]*n/s);if(l<r.minCharacters){t="";break}t=t.substr(0,l)}return t}function o(t,e,i){for(var n=0,r=0,a=t[$e];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var s={},l=0,u=5e3,c=t(T),h=t("../core/BoundingRect"),d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=c[oe]();return i.font=e,i.measureText(t)}};return d}),e("zrender/graphic/mixin/RectText",[_i,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===fi?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[gi](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[pi]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){var u,c,h=s.textPosition,d=s.textDistance,f=s[Se],p=s.textFont||s.font,m=s.textBaseline;o=o||n[be](l,p,f,m);var v=this[gi],g=this.invTransform;if(v&&(a.copy(r),a[k](v),r=a,i(t,g)),h instanceof Array)u=r.x+e(h[0],r.width),c=r.y+e(h[1],r[ni]),f=f||"left",m=m||"top";else{var y=n.adjustTextPositionOnRect(h,r,o,d);u=y.x,c=y.y,f=f||y[Se],m=m||y.textBaseline}t[Se]=f,t.textBaseline=m;var _=s.textFill,x=s.textStroke;_&&(t.fillStyle=_),x&&(t.strokeStyle=x),t.font=p,t.shadowColor=s.textShadowColor,t.shadowBlur=s.textShadowBlur,t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var b=l.split("\n"),w=0;w<b[$e];w++)_&&t.fillText(b[w],u,c),x&&t.strokeText(b[w],u,c),c+=o.lineHeight;v&&i(t,v)}}},o}),e("zrender/graphic/Displayable",[_i,T,"./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(T),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[pi]={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[be]();return n[de](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[pi].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[ze](e,r),i.mixin(e,a),e}),e("zrender/vml/core",[_i,"../core/env"],function(t){function e(){if(!o){o=!0;var t=a.styleSheets;t[$e]<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}if(!t("../core/env")[li]){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[se]("<zrvml:"+t+' class="zrvml">')}}catch(s){i=function(t){return a[se]("<"+t+' xmlns="'+n+'" class="zrvml">')}}return{doc:a,initVML:e,createNode:i}}}),e("echarts/model/mixin/lineStyle",[_i,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[I,"width"],[P,"color"],[pe],["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/itemStyle",[_i,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[P,"borderColor"],[I,"borderWidth"],[pe],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("zrender/tool/transformPath",[_i,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d=t.data,f=i.M,p=i.C,m=i.L,v=i.R,g=i.A,y=i.Q;for(u=0,c=0;u<d[$e];){switch(n=d[u++],c=u,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 _=e[4],x=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[u+7]}d[u++]+=_,d[u++]+=x,d[u++]*=b,d[u++]*=w,d[u++]+=M,d[u++]+=M,u+=2,c=u;break;case v:S[0]=d[u++],S[1]=d[u++],r(S,S,e),d[c++]=S[0],d[c++]=S[1],S[0]+=d[u++],S[1]+=d[u++],r(S,S,e),d[c++]=S[0],d[c++]=S[1]}for(h=0;l>h;h++){var S=a[h];S[0]=d[u++],S[1]=d[u++],r(S,S,e),d[c++]=S[0],d[c++]=S[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[k],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/contain/path",[_i,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,l,u,c){if(c>e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=f.cubicAt(t,n,a,s,x);u>b||(0>v&&(v=f.cubicExtrema(e,r,o,l,_),_[1]<_[0]&&v>1&&i(),d=f.cubicAt(e,r,o,l,_[0]),v>1&&(p=f.cubicAt(e,r,o,l,_[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 u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f.quadraticAt(e,n,a,u),d=0;l>d;d++){var p=f.quadraticAt(t,i,r,y[d]);p>o||(c+=y[d]<u?e>h?1:-1:h>a?1:-1)}return c}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);if(y[0]=-l,y[1]=l,Math.abs(n-r)%v<1e-4){n=0,r=v;var u=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?u: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 c=0,h=0;2>h;h++){var f=y[h];if(f+t>o){var p=Math.atan2(s,f),u=a?1:-1;0>p&&(p=v+p),(p>=n&&r>=p||p+v>=n&&r>=p+v)&&(p>Math.PI/2&&p<1.5*Math.PI&&(u=-u),c+=u)}}return c}function o(t,i,o,l,d){for(var f=0,v=0,g=0,y=0,_=0,x=0;x<t[$e];){var b=t[x++];if(b===s.M&&x>1&&(o||(f+=p(v,g,y,_,l,d)),0!==f))return!0;switch(1==x&&(v=t[x],g=t[x+1],y=v,_=g),b){case s.M:y=t[x++],_=t[x++],v=y,g=_;break;case s.L:if(o){if(m(v,g,t[x],t[x+1],i,l,d))return!0}else f+=p(v,g,t[x],t[x+1],l,d)||0;v=t[x++],g=t[x++];break;case s.C:if(o){if(u.containStroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l,d))return!0}else f+=n(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,d)||0;v=t[x++],g=t[x++];break;case s.Q:if(o){if(c.containStroke(v,g,t[x++],t[x++],t[x],t[x+1],i,l,d))return!0}else f+=r(v,g,t[x++],t[x++],t[x],t[x+1],l,d)||0;v=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],S=t[x++],T=t[x++],C=t[x++],L=t[x++],z=(t[x++],1-t[x++]),A=Math.cos(C)*S+w,P=Math.sin(C)*T+M;x>1?f+=p(v,g,A,P,l,d):(y=A,_=P);var I=(l-w)*T/S+w;if(o){if(h.containStroke(w,M,T,C,C+L,z,i,I,d))return!0}else f+=a(w,M,T,C,C+L,z,I,d);v=Math.cos(C+L)*S+w,g=Math.sin(C+L)*T+M;break;case s.R:y=v=t[x++],_=g=t[x++];var k=t[x++],D=t[x++],A=y+k,P=_+D;if(o){if(m(y,_,A,_,i,l,d)||m(A,_,A,P,i,l,d)||m(A,P,y,P,i,l,d)||m(y,P,A,P,i,l,d))return!0}else f+=p(A,_,A,P,l,d),f+=p(y,P,y,_,l,d);break;case s.Z:if(o){if(m(v,g,y,_,i,l,d))return!0}else if(f+=p(v,g,y,_,l,d),0!==f)return!0;v=y,g=_}}return o||e(g,_)||(f+=p(v,g,y,_,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),m=l.containStroke,v=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("echarts/model/mixin/textStyle",[_i,"zrender/contain/text"],function(t){function e(t,e){return t&&t[A](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[E];return this[A]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[E],i=t&&t[hi](Te);return[this[A]("fontStyle")||e(i,"fontStyle"),this[A]("fontWeight")||e(i,"fontWeight"),(this[A]("fontSize")||e(i,"fontSize")||12)+"px",this[A]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(Te)||{};return i[be](t,this[Me](),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this[Me](),e,n)}}}),e("echarts/model/mixin/areaStyle",[_i,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[pe],["shadowColor"]])}}),e("zrender/core/curve",[_i,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var m=-u/l;m>=0&&1>=m&&(o[p++]=m)}else{var v=d*d-4*h*f;if(e(v)){var g=d/h,m=-l/s+g,x=-g/2;m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x)}else if(v>0){var M=_(v),S=h*l+1.5*s*(-d+M),T=h*l+1.5*s*(-d-M);S=0>S?-y(-S,w):y(S,w),T=0>T?-y(-T,w):y(T,w);var m=(-l-(S+T))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var C=(2*h*l-3*s*d)/(2*_(h*h*h)),L=Math.acos(C)/3,z=_(h),A=Math.cos(L),m=(-l-2*z*A)/(3*s),x=(-l+z*(A+b*Math.sin(L)))/(3*s),P=(-l+z*(A-b*Math.sin(L)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),P>=0&&1>=P&&(o[p++]=P)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var d=s*s-4*l*u;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=_(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var d,f,p,m,v,y=.005,b=1/0;M[0]=u,M[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,l,w),m=g(M,S),b>m&&(d=w,b=m);b=1/0;for(var C=0;32>C&&!(x>y);C++)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):(T[0]=n(t,i,a,s,p),T[1]=n(e,r,o,l,p),v=g(T,M),1>=p&&b>v?(d=p,b=v):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),_(b)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=_(d),h=(-l+f)/(2*s),p=(-l-f)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var c,h=.005,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){S[0]=u(t,i,r,f),S[1]=u(e,n,a,f);var p=g(M,S);d>p&&(c=f,d=p)}d=1/0;for(var m=0;32>m&&!(x>h);m++){var v=c-h,y=c+h;S[0]=u(t,i,r,v),S[1]=u(e,n,a,v);var p=g(S,M);if(v>=0&&d>p)c=v,d=p;else{T[0]=u(t,i,r,y),T[1]=u(e,n,a,y);var b=g(T,M);1>=y&&d>b?(c=y,d=b):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),_(d)}var m=t("./vector"),v=m[he],g=m.distSquare,y=Math.pow,_=Math.sqrt,x=1e-4,b=_(3),w=1/3,M=v(),S=v(),T=v();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[_i,"./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[he](),u=e[he](),c=e[he](),h=2*Math.PI;return n.fromPoints=function(t,e,i){if(0!==t[$e]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;n<t[$e];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),u=r(u,o[1]),c=a(c,o[1]);e[0]=s,e[1]=u,i[0]=l,i[1]=c}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)},n.fromCubic=function(t,e,n,o,s,l,u,c,h,d){var f,p,m,v,g,y=[],_=[],x=i.cubicExtrema,b=i.cubicAt,w=x(t,n,s,u,y);for(g=0;w>g;g++)y[g]=b(t,n,s,u,y[g]);for(w=x(e,o,l,c,_),g=0;w>g;g++)_[g]=b(e,o,l,c,_[g]);y.push(t,u),_.push(e,c),f=r.apply(null,y),p=a.apply(null,y),m=r.apply(null,_),v=a.apply(null,_),h[0]=f,h[1]=m,d[0]=p,d[1]=v},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,d=i.quadraticAt,f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),m=d(t,n,s,f),v=d(e,o,l,p);u[0]=r(t,s,m),u[1]=r(e,l,v),c[0]=a(t,s,m),c[1]=a(e,l,v)},n.fromArc=function(t,i,n,r,a,d,f,p,m){var v=e.min,g=e.max;if(Math.abs(a-d)%h<1e-4)return p[0]=t-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,v(p,l,u),g(m,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var y=d;d=a,a=y}for(var _=0;d>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*n+t,c[1]=o(_)*r+i,v(p,c,p),g(m,c,m))},n}),e("zrender/graphic/Style",[_i],function(){var t=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],e=function(t){this.extendFrom(t)};e[pi]={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[P],a=0;a<t[$e];a++){var o=t[a];null!=this[o]&&(e[o]=this[o])}if(null!=r){var s=this[I];e[I]=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[pe]&&(e.globalAlpha=this[pe])},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===fi?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[pi];for(n=0;n<t[$e];n++)i=t[n],i in r||(r[i]=null);return e}),e("zrender/Element",[_i,"./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[pi]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case d:e=0;break;case h:t=0}var i=this[gi];i||(i=this[gi]=[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===ve||"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[ai]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[ai]=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if(typeof t===fi)this.attrKV(t,e);else if(a[ei](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[$e];i++)t[Q].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[$e];i++)t[Q].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",[_i,yi],function(t){var e=t(yi);return function(t){for(var i=0;i<t[$e];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[$e];r++){var a=t[r][1];if(!(i&&e[De](i,a)>=0)){var o=this[A](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/mixin/Animatable",[_i,"../animation/Animator",T,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(T),n=i[Le],r=i.isFunction,a=i[ei],o=t("../core/log"),s=function(){this.animators=[]};return s[pi]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var u=t.split("."),c=s;a="shape"===u[0];for(var h=0,d=u[$e];d>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(){s.dirty(a)}).done(function(){f[je](i[De](f,p),1)}),f.push(p),l&&l[Q].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[$e],n=0;i>n;n++)e[n].stop(t);return e[$e]=0,this},animateTo:function(t,e,i,a,o){function s(){u--,u||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),u=l[$e];u||o&&o();for(var c=0;c<l[$e];c++)l[c].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var u in n)if(null!=e[u])a(n[u])&&!i.isArrayLike(n[u])?this._animateToShallow(t?t+"."+u:u,e[u],n[u],r,o):(s[u]=n[u],l++);else if(null!=n[u])if(t){var c={};c[t]={},c[t][u]=n[u],this.attr(c)}else this.attr(u,n[u]);return l>0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e("zrender/mixin/Transformable",[_i,"../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[ve]||(this[ve]=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[pi];s[gi]=null,s.needLocalTransform=function(){return e(this.rotation)||e(this[ve][0])||e(this[ve][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this[L],e=t&&t[gi],n=this.needLocalTransform(),a=this[gi];return n||e?(a=a||i[he](),n?this[z](a):r(a),e&&(n?i.mul(a,t[gi],a):i.copy(a,t[gi])),this[gi]=a,this.invTransform=this.invTransform||i[he](),void i.invert(this.invTransform,a)):void(a&&r(a))},s[z]=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this.rotation,o=this[ve];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[gi];e&&t[gi](e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return s.decomposeTransform=function(){if(this[gi]){var t=this[L],n=this[gi];t&&t[gi]&&(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[ve],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[k](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[gi];return r&&n[k](i,i,r),i},o}),e("echarts/component/dataZoom/AxisProxy",[_i,yi,p],function(t){function e(t,e){var i=[Number.MAX_VALUE,Number.MIN_VALUE];return o(e,function(e){var n=e[qe]();n&&o(e.getDimensionsOnAxis(t),function(t){var e=n.getDataExtent(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[G],u=[l.start,l.end],c=[l.startValue,l.endValue],h=["floor","ceil"];return o([0,1],function(t){var o,s=c[t],l=!0;n(s)&&(o=u[t],n(o)&&(o=r[t]),s=a[S](o,r,e,!0),l=!1),i&&(s=Math[h[t]](s)),l&&(o=a[S](s,e,r,!0)),c[t]=s,u[t]=o}),{valueWindow:s(c),percentWindow:s(u)}}function n(t){return isNaN(t)||null==t}var r=t(yi),a=t(p),o=r.each,s=a.asc,l=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._backup,this._valueWindow,this._percentWindow,this._dataExtent,this[E]=n,this._model=i};return l[pi]={constructor:l,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[E][Xe](function(e){this._axisIndex===e.get(this._dimName+"AxisIndex")&&t.push(e)},this),t},getAxisModel:function(){return this[E][Z](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[E],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?ie:"angle");var o;return n[oi](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")===m,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")===m&&(r="empty"),o(n,function(t){var n=t[qe]();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)})})}}},l}),e("zrender/core/log",[_i,"../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",[_i,"./Clip","../tool/color",T],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[$e];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][$e],s=0;o>s;s++)for(var u=0;l>u;u++)r[s][u]=n(t[s][u],e[s][u],i)}function o(t,e,i){var n=t[$e],r=e[$e];if(n!==r){var a=n>r;if(a)t[$e]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}}function s(t,e,i){if(t===e)return!0;
var n=t[$e];if(n!==e[$e])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][$e],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var c=t[$e];if(1==l)for(var h=0;c>h;h++)s[h]=u(t[h],e[h],i[h],n[h],r,a,o);else for(var d=t[0][$e],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function c(t){if(v(t)){var e=t[$e];if(v(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,c,d){var m=t._getter,g=t._setter,y="spline"===e,_=c[$e];if(_){var x,b=c[0].value,w=v(b),M=!1,S=!1,T=w&&v(b[0])?2:1;c.sort(function(t,e){return t.time-e.time}),x=c[_-1].time;for(var C=[],L=[],z=c[0].value,A=!0,P=0;_>P;P++){C.push(c[P].time/x);var I=c[P].value;if(w&&s(I,z,T)||!w&&I===z||(A=!1),z=I,typeof I==fi){var k=p.parse(I);k?(I=k,M=!0):S=!0}L.push(I)}if(!A){if(w){for(var D=L[_-1],P=0;_-1>P;P++)o(L[P],D,T);o(m(t._target,d),D,T)}var V,R,O,E,B,Z,N=0,G=0;if(M)var F=[0,0,0,0];var H=function(t,e){var i;if(G>e){for(V=Math.min(N+1,_-1),i=V;i>=0&&!(C[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=N;_>i&&!(C[i]>e);i++);i=Math.min(i-1,_-2)}N=i,G=e;var o=C[i+1]-C[i];if(0!==o)if(R=(e-C[i])/o,y)if(E=L[i],O=L[0===i?i:i-1],B=L[i>_-2?_-1:i+1],Z=L[i>_-3?_-1:i+2],w)l(O,E,B,Z,R,R*R,R*R*R,m(t,d),T);else{var s;if(M)s=l(O,E,B,Z,R,R*R,R*R*R,F,1),s=h(F);else{if(S)return r(E,B,R);s=u(O,E,B,Z,R,R*R,R*R*R)}g(t,d,s)}else if(w)a(L[i],L[i+1],R,m(t,d),T);else{var s;if(M)a(L[i],L[i+1],R,F,1),s=h(F);else{if(S)return r(L[i],L[i+1],R);s=n(L[i],L[i+1],R)}g(t,d,s)}},W=new f({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:H,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var f=t("./Clip"),p=t("../tool/color"),m=t(T),v=m.isArrayLike,g=Array[pi].slice,y=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y[pi]={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:c(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[$e]=0;for(var t=this._doneList,e=t[$e],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[Q]&&this[Q].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[$e];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[Q],n=0;n<e[$e];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[$e]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("zrender/animation/Clip",[_i,"./easing"],function(t){function e(t){this._target=t[Fe],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[pi]={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==fi?i[n]:n,a=typeof r===Ie?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/config",[],function(){var t=1;typeof window!==C&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/contain/cubic",[_i,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>i+d&&h>r+d&&h>o+d&&h>l+d||i-d>h&&r-d>h&&o-d>h&&l-d>h||c>t+d&&c>n+d&&c>a+d&&c>s+d||t-d>c&&n-d>c&&a-d>c&&s-d>c)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,c,h,null);return d/2>=f}}}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/arc",[_i,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var d=Math.sqrt(u*u+c*c);if(d-h>r||r>d+h)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(c,u);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/util",[_i],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/quadratic",[_i,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e),l=s*(i-t)+t;return l>r?o:0}}),e("zrender/graphic/helper/roundRect",[_i],function(){return{buildPath:function(t,e){var i,n,r,o,s=e.x,l=e.y,u=e.width,c=e[ni],h=e.r;typeof h===Ae?i=n=r=o=h:h instanceof Array?1===h[$e]?i=n=r=o=h[0]:2===h[$e]?(i=r=h[0],n=o=h[1]):3===h[$e]?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0;var d;i+n>u&&(d=i+n,i*=u/d,n*=u/d),r+o>u&&(d=r+o,r*=u/d,o*=u/d),n+r>c&&(d=n+r,n*=c/d,r*=c/d),i+o>c&&(d=i+o,i*=c/d,o*=c/d),t[a](s+i,l),t.lineTo(s+u-n,l),0!==n&&t.quadraticCurveTo(s+u,l,s+u,l+n),t.lineTo(s+u,l+c-r),0!==r&&t.quadraticCurveTo(s+u,l+c,s+u-r,l+c),t.lineTo(s+o,l+c),0!==o&&t.quadraticCurveTo(s,l+c,s,l+c-o),t.lineTo(s,l+i),0!==i&&t.quadraticCurveTo(s,l,s+i,l)}}}),e("zrender/core/LRU",[_i],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[pi];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[ti]=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[pi];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[ti](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[ti](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("zrender/graphic/helper/poly",[_i,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var o=n.points,s=n.smooth;if(o&&o[$e]>=2){if(s&&"spline"!==s){var l=i(o,s,r,n.smoothConstraint);t[a](o[0][0],o[0][1]);for(var u=o[$e],c=0;(r?u:u-1)>c;c++){var h=l[2*c],d=l[2*c+1],f=o[(c+1)%u];t.bezierCurveTo(h[0],h[1],d[0],d[1],f[0],f[1])}}else{"spline"===s&&(o=e(o,r)),t[a](o[0][0],o[0][1]);for(var c=1,p=o[$e];p>c;c++)t.lineTo(o[c][0],o[c][1])}r&&t.closePath()}}}}),e("zrender/Storage",[_i,"./core/util","./container/Group"],function(t){function e(t,e){return t[Ee]===e[Ee]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[Ee]-e[Ee]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[pi]={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[$e];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[$e]=this._displayListLen;for(var n=0,r=i[$e];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[ai]){t.beforeUpdate(),t[ii](),t.afterUpdate();var i=t.clipPath;if(i&&(i[L]=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;r<n[$e];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[$e];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[$e];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==fi?this._elements[t]:t;var s=i[De](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[je](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",[_i,T,"../core/event","./Animator"],function(t){var e=t(T),i=t("../core/event").Dispatcher,n=typeof window!==C&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),a=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 a[pi]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[Q]=this;for(var e=t.getClips(),i=0;i<e[$e];i++)this.addClip(e[i])},removeClip:function(t){var i=e[De](this._clips,t);i>=0&&this._clips[je](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[$e];i++)this.removeClip(e[i]);t[Q]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[$e],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[$e];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[Ye]("frame",e),this.stage[ii]&&this.stage[ii]()},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(a,i),a}),e("zrender/Painter",[_i,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function n(t){return t?t.isBuildin?!0:typeof t[di]!==Ie||typeof t.refresh!==Ie?!1:!0:!1}function r(t){t.__unusedCount++}function a(t){t.__dirty=!1,1==t.__unusedCount&&t.clear()}function o(t,e,i){return p.copy(t[be]()),t[gi]&&p[k](t[gi]),m.width=e,m[ni]=i,!p.intersect(m)}function s(t,e){if(!t||!e||t[$e]!==e[$e])return!0;for(var i=0;i<t[$e];i++)if(t[i]!==e[i])return!0}function l(t,e){for(var n=0;n<t[$e];n++){var r,a=t[n];a[gi]&&(r=a[gi],e[gi](r[0],r[1],r[2],r[3],r[4],r[5]));var o=a.path;o.beginPath(e),a[i](o,a.shape),e.clip(),a[gi]&&(r=a.invTransform,e[gi](r[0],r[1],r[2],r[3],r[4],r[5]))}}var u=t("./config"),c=t("./core/util"),h=t("./core/log"),d=t("./core/BoundingRect"),f=t("./Layer"),p=new d(0,0,0,0),m=new d(0,0,0,0),v=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();i=i||{},this.dpr=i.devicePixelRatio||u.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[ni];this._width=a,this._height=o;var s=new f(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[se]("div");this._domRoot=l;var c=l.style;c[ve]="relative",c.overflow="hidden",c.width=this._width+"px",c[ni]=this._height+"px",t.appendChild(l),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return v[pi]={constructor:v,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[$e];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,n,u,c=this._width,d=this._height;this.eachBuildinLayer(r);for(var f=null,p=0,m=t[$e];m>p;p++){var v=t[p],g=this._singleCanvas?0:v[Ee];if(n!==g&&(n=g,i=this.getLayer(n),i.isBuildin||h("ZLevel "+n+" has been used by unkown layer "+i.id),u=i.ctx,i.__unusedCount=0,(i.__dirty||e)&&i.clear()),(i.__dirty||e)&&!v.invisible&&0!==v.style[pe]&&v.scale[0]&&v.scale[1]&&(!v.culling||!o(v,c,d))){var y=v.__clipPaths;s(y,f)&&(f&&u.restore(),y&&(u.save(),l(y,u)),f=y),v.beforeBrush&&v.beforeBrush(u),v.brush(u,!1),v.afterBrush&&v.afterBrush(u)}v.__dirty=!1}f&&u.restore(),this.eachBuildinLayer(a)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new f("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&c.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var i=this._layers,r=this._zlevelList,a=r[$e],o=null,s=-1,l=this._domRoot;if(i[t])return void h("ZLevel "+t+" has been used already");if(!n(e))return void h("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=i[r[s]]}if(r[je](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);i[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[$e];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[$e];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[$e];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[$e];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[Ee],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]?c.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&c.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom[b].removeChild(n.dom),delete e[t],i[je](c[De](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[ni]=e+"px";for(var n in this._layers)this._layers[n][di](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 f("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t[si],e.clear();for(var n=this.storage.getDisplayList(!0),r=0;r<n[$e];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[ni])||e(t.style[ni]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[se]("canvas"),s=o[oe]("2d");o.width=n*a,o[ni]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[ve],rotation:i.rotation,scale:i.scale};i[ve]=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s);var u=t("./graphic/Image"),c=new u({id:e,style:{x:0,y:0,image:o}});return null!=l[ve]&&(c[ve]=i[ve]=l[ve]),null!=l.rotation&&(c.rotation=i.rotation=l.rotation),null!=l.scale&&(c.scale=i.scale=l.scale),c},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},v}),e("zrender/Handler",[_i,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t){return"_"+t+"Handler"}function i(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 n(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[Fe],a,r.event)}}function r(t){for(var i=d[ae](f),n=i[$e];n--;){var r=i[n];t[e(r)]=l.bind(y[r],t)}}function a(t,e,i){if(t[t.rectHover?"rectContain":de](e,i)){for(var n=t[L];n;){if(n.clipPath&&!n.clipPath[de](e,i))return!1;n=n[L]}return!0}return!1}var o=t("./core/env"),s=t("./core/event"),l=t("./core/util"),u=t("./mixin/Draggable"),c=t("./core/GestureMgr"),h=t("./mixin/Eventful"),d=["click","dblclick","mousewheel","mousemove",He,"mouseup","mousedown"],f=["touchstart","touchend","touchmove"],p=300,m=s.addEventListener,v=s.removeEventListener,g=s.normalizeEvent,y={mousemove:function(t){t=g(this.root,t);var e=t.zrX,i=t.zrY,n=this._findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,He,t),this._dispatchProxy(n,"mousemove",t),n&&n!==r&&this._dispatchProxy(n,We,t)},mouseout:function(t){t=g(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[b]}this._dispatchProxy(this._hovered,He,t),this[Ye]("globalout",{event:t})},touchstart:function(t){t=g(this.root,t),this._lastTouchMoment=new Date,n(this,t,"start"),this._mousemoveHandler(t),this._mousedownHandler(t)},touchmove:function(t){t=g(this.root,t),n(this,t,"change"),this._mousemoveHandler(t)},touchend:function(t){t=g(this.root,t),n(this,t,"end"),this._mouseupHandler(t),+new Date-this._lastTouchMoment<p&&this._clickHandler(t)}};l.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){y[t]=function(e){e=g(this.root,e);var i=this._findHover(e.zrX,e.zrY,null);this._dispatchProxy(i,t,e)}});var _=function(t,i,n){h.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 c,r(this),o.os.tablet||o.os.phone?(l.each(f,function(i){m(t,i,this[e(i)])},this),m(t,He,this._mouseoutHandler)):(l.each(d,function(i){m(t,i,this[e(i)])},this),m(t,"DOMMouseScroll",this._mousewheelHandler)),u.call(this)};return _[pi]={constructor:_,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=d[ae](f),n=0;n<i[$e];n++){var r=i[n];v(t,r,this[e(r)])}v(t,"DOMMouseScroll",this._mousewheelHandler),this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,e,n){for(var r="on"+e,a=i(e,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[Ye](e,a),o=o[L],!a.cancelBubble););a.cancelBubble||(this[Ye](e,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==Ie&&t[r].call(t,a),t[Ye]&&t[Ye](e,a)}))},_findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r=n[$e]-1;r>=0;r--)if(!n[r].silent&&n[r]!==i&&a(n[r],t,e))return n[r]}},l.mixin(_,h),l.mixin(_,u),_}),e("zrender/graphic/helper/smoothBezier",[_i,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,d,f,p=[],m=[],v=[],g=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,_=t[$e];_>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,u[0]),n(f,f,u[1])}for(var y=0,_=t[$e];_>y;y++){var x=t[y];if(l)c=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(m,h,c),r(m,m,s);var b=a(x,c),w=a(x,h),M=b+w;0!==M&&(b/=M,w/=M),r(v,m,-b),r(g,m,w);var S=o([],x,v),T=o([],x,g);u&&(n(S,S,d),i(S,S,f),n(T,T,d),i(T,T,f)),p.push(S),p.push(T)}return l&&p.push(p.shift()),p}}),e("zrender/graphic/helper/smoothSpline",[_i,"../../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[$e],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,m=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var v=p*p,g=p*v;a.push([e(u[0],m[0],c[0],h[0],p,v,g),e(u[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/core/event",[_i,"../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[De]("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 u=e(t),c=u.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),h=u.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);i.zrX=s-h,i.zrY=l-c,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){o?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){o?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),o=typeof window!==C&&!!window.addEventListener,s=o?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:s,Dispatcher:a}}),e("zrender/mixin/Draggable",[_i],function(){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return t[pi]={constructor:t,_dragStart:function(t){var e=t[Fe];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t[g],this._y=t[v],this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t[g],n=t[v],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",[_i],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[pi]={constructor:i,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[$e]=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[$e];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[$e];if(r){var a=(i[r-1]||{}).points,o=(i[r-2]||{}).points||a;if(o&&o[$e]>1&&a&&a[$e]>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][Fe],event:n}}}}};return i}),e("echarts/coord/cartesian/Axis2D",[_i,yi,"../Axis","./axisLabelInterval"],function(t){var e=t(yi),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[ve]=a||ri};return r[pi]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[ve];return"top"===t||t===ri},getGlobalExtent:function(){var t=this[le]();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===m){var e=this.getLabelInterval();return typeof e===Ie&&!e(t,this.scale[ue](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[ze](r,i),r}),e("echarts/coord/cartesian/Cartesian2D",[_i,yi,"./Cartesian"],function(t){function e(t){n.call(this,t),this[F]=["x","y"]}var i=t(yi),n=t("./Cartesian");return e[pi]={constructor:e,type:"cartesian2d",getBaseAxis:function(){return this.getAxesByScale(X)[0]||this.getAxesByScale("time")[0]||this[te]("x")},containPoint:function(t){var e=this[te]("x"),i=this[te]("y");return e[de](e.toLocalCoord(t[0]))&&i[de](i.toLocalCoord(t[1]))},containData:function(t){return this[te]("x").containData(t[0])&&this[te]("y").containData(t[1])},dataToPoints:function(t,e){return t[ee](["x","y"],function(t,e){return this.dataToPoint([t,e])},e,this)},dataToPoint:function(t,e){var i=this[te]("x"),n=this[te]("y");return[i.toGlobalCoord(i[o](t[0],e)),n.toGlobalCoord(n[o](t[1],e))]},pointToData:function(t,e){var i=this[te]("x"),n=this[te]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[te]("x"===t.dim?"y":"x")}},i[ze](e,n),e}),e("echarts/coord/axisHelper",[_i,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",yi,"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(yi),o=t("zrender/contain/text"),s={};return s.niceScaleExtent=function(t,e){var i=t.scale;if(i.type!==X){var n=e.get("min"),o=e.get("max"),s=e.get("boundaryGap");a[Ve](s)||(s=[s||0,s||0]),s[0]=r.parsePercent(s[0],1),s[1]=r.parsePercent(s[1],1);var l=i[le](),u=l[1]-l[0],c=!0,h=!0;null==n&&(n=l[0]-s[0]*u,c=!1),null==o&&(o=l[1]+s[1]*u,h=!1),"dataMin"===n&&(n=l[0]),"dataMax"===o&&(o=l[1]),i.setExtent(n,o),i.niceExtent(e.get("splitNumber"),c,h);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 m:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(r)||i)[he](t)}},s.ifAxisCrossZero=function(t){var e=t.scale[le](),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[$e];l++){var u=t[l],c=o[be](e[l],i,ge,"top");c[n?"x":"y"]+=u,c[n?"width":ni]*=1.5,r?r.intersect(c)?(s++,a=Math.max(a,s)):(r.union(c),s=0):r=c.clone()}return a},s[l]=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i[ce]();return typeof e===fi?(e=function(t){return function(e){return t[Re]("{value}",e)}}(e),a.map(n,e)):typeof e===Ie?a.map(r,function(n,r){return e(t.type===m?i[ue](n):n,r)},this):n},s}),e("echarts/coord/cartesian/GridModel",[_i,"./AxisModel",r],function(t){t("./AxisModel");var e=t(r);return e[Je]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})
}),e("zrender/Layer",[_i,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[se](e),a=i[ci](),o=i[ui](),s=r.style;return s[ve]="absolute",s.left=0,s.top=0,s.width=a+"px",s[ni]=o+"px",r.width=a*n,r[ni]=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===fi?s=i(t,"canvas",a,o):n[ei](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[pi]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[oe]("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[oe]("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[ni]=e+"px",n.width=t*i,n[ni]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[ni]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[ni],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i.restore()),o){var u=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(u,0,0,n/l,r/l),i.restore()}}},a}),e("echarts/scale/Ordinal",[_i,yi,"./Scale"],function(t){var e=t(yi),i=t("./Scale"),n=i[pi],r=i[Je]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[$e]-1]},contain:function(t){return n[de].call(this,t)&&null!=this._data[t]},normalize:function(t){return typeof t===fi&&(t=e[De](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[he]=function(){return new r},r}),e("echarts/preprocessor/helper/compatStyle",[_i,yi],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[D],a=e[V];r&&r[n]&&(t[n]=t[n]||{},t[n][D]?i.merge(t[n][D],r[n]):t[n][D]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][V]?i.merge(t[n][V],a[n]):t[n][V]=a[n],a[n]=null)})}var i=t(yi),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[$e];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[$e];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[$e];r++)i[Ve](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}),e("echarts/coord/cartesian/Cartesian",[_i,yi],function(t){function e(t){return this._axes[t]}var i=t(yi),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[pi]={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[mi](),i[vi](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,o)},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[$e];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/data/Tree",[_i,yi,"../model/Model","./List","./helper/linkList","./helper/completeDimensions"],function(t){function e(t,e){this.root,this.data,this._nodes=[],this[Ne]=t,this.levelModels=n.map(e||[],function(e){return new r(e,t,t[E])})}function i(t,e){var i=e.children;t[b]!==e&&(i.push(t),t[b]=e,e.hostTree._nodes.push(t))}var n=t(yi),r=t("../model/Model"),a=t("./List"),o=t("./helper/linkList"),s=t("./helper/completeDimensions"),l=function(t,e,i){this.name=t||"",this.depth=0,this[ni]=0,this[b]=null,this[Ge]=null==e?-1:e,this.children=[],this.viewChildren=[],this.hostTree=i};return l[pi]={constructor:l,isRemoved:function(){return this[Ge]<0},eachNode:function(t,e,i){typeof t===Ie&&(i=e,e=t,t=null),t=t||{},n[Le](t)&&(t={order:t});var r,a=t.order||"preorder",o=this[t.attr||"children"];"preorder"===a&&(r=e.call(i,this));for(var s=0;!r&&s<o[$e];s++)o[s].eachNode(t,e,i);"postorder"===a&&e.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children[$e];i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n[ni]>e&&(e=n[ni])}this[ni]=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i[$e];n>e;e++){var r=i[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i[$e];n>e;e++){var r=i[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],i=t?this:this[b];i;)e.push(i),i=i[b];return e[x](),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this[Ge])},setLayout:function(t,e){this[Ge]>=0&&this.hostTree.data.setItemLayout(this[Ge],t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this[Ge])},getModel:function(t){if(!(this[Ge]<0)){var e=this.hostTree,i=e.data[H](this[Ge]),n=this.getLevelModel();return i[hi](t,(n||e[Ne])[hi](t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this[Ge]>=0&&this.hostTree.data[W](this[Ge],t,e)},getVisual:function(t,e){return this.hostTree.data[u](this[Ge],t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this[Ge])},getId:function(){return this.hostTree.data.getId(this[Ge])}},e[pi]={constructor:e,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e[$e];n>i;i++)e[i][Ge]=-1;for(var i=0,n=t.count();n>i;i++)e[t.getRawIndex(i)][Ge]=i}},e.createTree=function(t,n,r){function u(t,e){h.push(t);var n=new l(t.name,h[$e]-1,c);e?i(n,e):c.root=n;var r=t.children;if(r)for(var a=0;a<r[$e];a++)u(r[a],n)}var c=new e(n,r),h=[];u(t),c.root.updateDepthAndHeight(0);var d=s([{name:"value"}],h),f=new a(d,n);return f.initData(h),o.linkToTree(f,c),c},e}),e("echarts/chart/helper/createListFromArray",[_i,"../../data/List","../../data/helper/completeDimensions",yi,s],function(t){function e(t){for(var e=0;e<t[$e]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!u[Ve](h(i))}function n(t,e,n){t=t||[];var r=f[e.get(fe)](t,e,n),s=r[F],l=r.categoryAxisModel,u=s[0].type===X?0:s[1].type===X?1:-1,c=new o(s,e),p=a(r,t),m=l&&i(t)?function(t,e,i,n){return n===u?i:d(h(t),s[n])}:function(t,e,i,n){var r=h(t);return d(r&&r[n],s[n])};return c.initData(t,p,m),c}function r(t){return t!==m&&"time"!==t}function a(t,e){var i=[];if(t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[$e];if(u[Ve](e[0])&&e[0][$e]>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"),l=t("../../data/helper/completeDimensions"),u=t(yi),c=t(s),h=c.getDataItemValue,d=c.converDataValue,f={cartesian2d:function(t,e,i){var n=i[Z]("xAxis",e.get("xAxisIndex")),a=i[Z]("yAxis",e.get("yAxisIndex")),o=n.get("type"),s=a.get("type"),u=s===m,c=o===m,h=[{name:"x",type:c?X:"float",stackable:r(o)},{name:"y",type:u?X:"float",stackable:r(s)}];return l(h,t,["x","y","z"]),{dimensions:h,categoryAxisModel:c?n:u?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],s=i.findComponents({mainType:"radiusAxis",filter:a})[0],u=s.get("type")===m,c=o.get("type")===m,h=[{name:"radius",type:u?X:"float",stackable:r(s.get("type"))},{name:"angle",type:c?X:"float",stackable:r(o.get("type"))}];return l(h,t,[ie,"angle","value"]),{dimensions:h,categoryAxisModel:c?o:u?s:null}},geo:function(t){return{dimensions:l([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/component/tooltip/TooltipContent",[_i,yi,"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 o.map(d,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontSize"),n=t[we]();return n&&e.push("color:"+n),e.push("font:"+t[Me]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),c(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){t=t;var n=[],r=t.get("transitionDuration"),a=t.get(si),o=t[hi](Te),l=t.get(ye);return r&&n.push(e(r)),a&&(n.push("background-Color:"+s.toHex(a)),n.push("filter:alpha(opacity=70)"),n.push("background-Color:"+a)),c(["width","color",ie],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(o)),null!=l&&n.push("padding:"+u.normalizeCssArray(l).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[se]("div"),n=e.getZr();this.el=i,this._x=e[ci]()/2,this._y=e[ui]()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;l.normalizeEvent(t,e),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},a(i,t)}function a(t,e){function i(t){n(t[Fe])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i[b]}}l.addEventListener(e,"touchstart",i),l.addEventListener(e,"touchmove",i),l.addEventListener(e,"touchend",i)}var o=t(yi),s=t("zrender/tool/color"),l=t("zrender/core/event"),u=t("../../util/format"),c=o.each,h=u.toCamelCase,d=["","-webkit-","-moz-","-o-"],f="position:absolute;display:block;border-style:solid;white-space:nowrap;";return r[pi]={constructor:r,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[ve]&&"absolute"!==e[ve]&&(i[ve]="relative"),this.hide()},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=f+n(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(o.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},r}),e("echarts/component/helper/listComponent",[_i,f,"../../util/format",re],function(t){function e(t,e,n){i.positionGroup(t,e[xe](),{width:n[ci](),height:n[ui]()},e.get(ye))}var i=t(f),n=t("../../util/format"),r=t(re);return{layout:function(t,n,r){i.box(n.get(c),t,n.get("itemGap"),r[ci](),r[ui]()),e(t,n,r)},addBackground:function(t,e){var i=n.normalizeCssArray(e.get(ye)),a=t[be](),o=e.getItemStyle(["color",pe]);o.fill=e.get(si);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[ni]+i[0]+i[2]},style:o,silent:!0});r.subPixelOptimizeRect(s),t.add(s)}}}),e("echarts/util/symbol",[_i,"./graphic",_],function(t){var e=t("./graphic"),n=t(_),r=e.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e[ni]/2;t[a](i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+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,n=e.cy,r=e.width/2,o=e[ni]/2;t[a](i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),s=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[ni]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u);t.arc(i,l,o,Math.PI-u,2*Math.PI+u);var f=.6*o,p=.7*o;t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),l=e.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[ni],n=e.width,r=e.x,o=e.y,s=n/3*2;t[a](r,o),t.lineTo(r+s,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-s,o+i),t.lineTo(r,o),t.closePath()}}),u={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:o,pin:s,arrow:l,triangle:r},c={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[ni]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[ni]=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[ni]=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[ni]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ni]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[ni]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[ni]=n}},h={};for(var d in u)h[d]=new u[d];var f=e.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t[Se]=ge,t.textBaseline=M)},buildPath:function(t,e){var n=e.symbolType,r=h[n];"none"!==e.symbolType&&(r||(n="rect",r=h[n]),c[n](e.x,e.y,e.width,e[ni],r.shape),r[i](t,r.shape))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[P]=t:this.__isEmptyBrush?(e[P]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[P]&&(e[P]=t)),this.dirty()}},m={createSymbol:function(t,i,r,a,o,s){var l=0===t[De]("empty");l&&(t=t.substr(5,1)[mi]()+t.substr(6));var u;return u=0===t[De]("image://")?new e.Image({style:{image:t.slice(8),x:i,y:r,width:a,height:o}}):0===t[De]("path://")?e.makePath(t.slice(7),{},new n(i,r,a,o)):new f({shape:{symbolType:t,x:i,y:r,width:a,height:o}}),u.__isEmptyBrush=l,u.setColor=p,u.setColor(s),u}};return m}),e("echarts/chart/helper/SymbolDraw",[_i,re,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t.getItemLayout(e);return!(!n||isNaN(n[0])||isNaN(n[1])||i&&i(e)||"none"===t[u](e,U))}var n=t(re),r=t("./Symbol"),a=e[pi];return a[K]=function(t,e){var r=this.group,a=t[Ne],o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t.getItemLayout(n);if(i(t,n,e)){var o=new s(t,n);o.attr(ve,a),t.setItemGraphicEl(n,o),r.add(o)}})[ii](function(l,u){var c=o[Y](u),h=t.getItemLayout(l);return i(t,l,e)?(c?(c[K](t,l),n.updateProps(c,{position:h},a)):(c=new s(t,l),c.attr(ve,h)),r.add(c),void t.setItemGraphicEl(l,c)):void r[ti](c)})[ti](function(t){var e=o[Y](t);e&&e.fadeOut(function(){r[ti](e)})}).execute(),this._data=t},a.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){e.attr(ve,t.getItemLayout(i))})},a[ti]=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e[ti](t)})}):e[Ce]())},e}),e("echarts/data/List",[_i,"../model/Model","./DataDiffer",yi,"../util/model"],function(t){function e(t){return c[Ve](t)||(t=[t]),t}var i=C,n=typeof window===C?global:window,r=typeof n.Float64Array===i?Array:n.Float64Array,a=typeof n.Int32Array===i?Array:n.Int32Array,o={"float":r,"int":a,ordinal:Array,number:Array,time:Array},s=t("../model/Model"),l=t("./DataDiffer"),c=t(yi),h=t("../util/model"),d=c[ei],f=["stackedOn","_nameList","_idList","_rawData"],p=function(t,e,i){c.each(f[ae](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},m=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[$e];r++){var a,o={};typeof t[r]===fi?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||Ae),n.push(a),i[a]=o}this[F]=n,this._dimensionInfos=i,this[Ne]=e,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData},v=m[pi];v.type="list",v.getDimension=function(t){return isNaN(t)||(t=this[F][t]||t),t},v.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},v.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[F],s=t[$e],l=this._dimensionInfos,u=[],d={};e=e||[];for(var f=0;f<a[$e];f++){var p=l[a[f]],m=o[p.type];n[a[f]]=new m(s)}i=i||function(t,e,i,n){var r=h.getDataItemValue(t);return h.converDataValue(c[Ve](r)?r[n]:r,l[e])};for(var v=0;v<t[$e];v++){for(var g=t[v],y=0;y<a[$e];y++){var _=a[y],x=n[_];x[v]=i(g,_,v,y)}r.push(v)}for(var f=0;f<t[$e];f++){var b="";e[f]||(e[f]=t[f].name,b=t[f].id);var w=e[f]||"";!b&&w&&(d[w]=d[w]||0,b=w,d[w]>0&&(b+="__ec__"+d[w]),d[w]++),b&&(u[f]=b)}this._nameList=e,this._idList=u},v.count=function(){return this.indices[$e]},v.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},v.getValues=function(t,e,i){var n=[];c[Ve](t)||(i=e,e=t,t=this[F]);for(var r=0,a=t[$e];a>r;r++)n.push(this.get(t[r],e,i));return n},v.hasValue=function(t){for(var e=this[F],i=this._dimensionInfos,n=0,r=e[$e];r>n;n++)if(i[e[n]].type!==X&&isNaN(this.get(e[n],t)))return!1;return!0},v.getDataExtent=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-1/0]},v.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},v[De]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[$e];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},v.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[$e];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},v.indexOfNearest=function(t,e,i){c[Ve](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[$e];l>s;s++)for(var u=0,h=this.count();h>u;u++){var d=Math.abs(this.get(t[s],u,i)-e);a>=d&&(a=d,o=u)}return o}return-1},v.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},v[R]=function(t){return this._nameList[this.indices[t]]||""},v.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},v.each=function(t,i,n,r){typeof t===Ie&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=t[$e],s=this.indices;r=r||this;for(var l=0;l<s[$e];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var u=0;o>u;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},v.filterSelf=function(t,i,n,r){typeof t===Ie&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=[],s=t[$e],l=this.indices;r=r||this;for(var u=0;u<l[$e];u++){var h;if(1===s)h=i.call(r,this.get(t[0],u,n),u);else{for(var d=0;s>d;d++)o[d]=this.get(t[d],u,n);o[d]=u,h=i.apply(r,o)}h&&a.push(l[u])}return this.indices=a,this._extent={},this},v[ee]=function(t,e,i,n){typeof t===Ie&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},v.map=function(t,i){t=c.map(e(t),this.getDimension,this);var n=this[F],r=new m(c.map(n,this.getDimensionInfo,this),this[Ne]),a=r.indices=this.indices;p(r,this,this._wrappedMethods);for(var o=r._storage={},s=this._storage,l=0;l<n[$e];l++){var u=n[l],h=s[u];o[u]=c[De](t,u)>=0?new h.constructor(s[u][$e]):s[u]}var d=[];return this.each(t,function(){var e=arguments[arguments[$e]-1],n=i&&i.apply(this,arguments);if(null!=n){typeof n===Ae&&(d[0]=n,n=d);for(var r=0;r<n[$e];r++){var s=t[r],l=o[s],u=a[e];l&&(l[u]=n[r])}}}),r};var g=new s(null);v[H]=function(t,e){var i,n=this[Ne];return t=this.indices[t],i=e?new s(null,n):g,i[G]=this._rawData[t],i.parentModel=n,i[E]=n[E],i},v.diff=function(t){var e=this._idList,i=t&&t._idList;return new l(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},v.getVisual=function(t){var e=this._visual;return e&&e[t]},v.setVisual=function(t,e){if(d(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},v.getItemLayout=function(t){return this._itemLayouts[t]},v.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?c[Je](this._itemLayouts[t]||{},e):e},v[u]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},v[W]=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,d(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var y=function(t){t[Ze]=this[Ze],t[Ge]=this[Ge]};return v.setItemGraphicEl=function(t,e){var i=this[Ne];e&&(e[Ge]=t,e[Ze]=i&&i[Ze],"group"===e.type&&e[Oe](y,e)),this._graphicEls[t]=e},v[Y]=function(t){return this._graphicEls[t]},v.eachItemGraphicEl=function(t,e){c.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},v.cloneShallow=function(){var t=c.map(this[F],this.getDimensionInfo,this),e=new m(t,this[Ne]);return e._storage=this._storage,p(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},v.wrapMethod=function(t,e){var i=this[t];typeof i===Ie&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},m}),e("echarts/chart/helper/LineDraw",[_i,re,"./Line"],function(t){function e(t){this._ctor=t||n,this.group=new i.Group}var i=t(re),n=t("./Line"),r=e[pi];return r[K]=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)})[ii](function(a,o){var s=n[Y](o);s[K](t,e,i,a),t.setItemGraphicEl(a,s),r.add(s)})[ti](function(t){r[ti](n[Y](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[ti]=function(){this.group[Ce]()},e}),e("echarts/component/marker/markerHelper",[_i,yi,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=i.getDataExtent(r),s=[],l=o[0],u=o[1],c=(u-l)*t+l,h=i.indexOfNearest(r,c);s[1-a]=i.get(n,h),s[a]=i.get(r,h,!0);var d=e(i,r,h);return d>=0&&(s[a]=+s[a][w](d)),s}var n=t(yi),r=t(p),a=n.curry,o={min:a(i,0),max:a(i,1),average:a(i,.5)},s=function(t,e,i){if((isNaN(i.x)||isNaN(i.y))&&!n[Ve](i.coord)&&e){var r,a,s,l;null!=i.valueIndex?(r=e[F][i.valueIndex],a=e[F][1-i.valueIndex],s=e[te](r),l=e[te](a)):(l=e.getBaseAxis(),s=e[ne](l),a=l.dim,r=s.dim);var u=null!=i.valueIndex?i.valueIndex:"angle"===r||"x"===r?0:1;i=n[Je]({},i),i.coord=i.type&&o[i.type]&&l&&s?o[i.type](t,l.dim,r,u):[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},u=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:void t.value};return{dataTransform:s,dataFilter:l,dimValueGetter:u}}),e("echarts/component/timeline/TimelineModel",[_i,r,"../../data/List",yi,s],function(t){var e=t(r),i=t("../../data/List"),a=t(yi),o=t(s),l=e[Je]({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this[B](t,i),this._initData()},mergeOption:function(){this[n](N,arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this[G].currentIndex);var e=this._data.count();this[G].loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this[G].currentIndex=t},getCurrentIndex:function(){return this[G].currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this[G].autoPlay=!!t},getPlayState:function(){return!!this[G].autoPlay},_initData:function(){var t=this[G],e=t.data||[],n=t.axisType,r=this._names=[];if(n===m){var s=[];a.each(e,function(t,e){var i,n=o.getDataItemValue(t);a[ei](t)?(i=a.clone(t),i.value=e):i=e,s.push(i),a[Le](n)||null!=n&&!isNaN(n)||(n=""),r.push(n+"")}),e=s}var l={category:"ordinal",time:"time"}[n]||Ae,u=this._data=new i([{name:"value",type:l}],this);u.initData(e,r)},getData:function(){return this._data},getCategories:function(){return this.get("axisType")===m?this._names.slice():void 0}});return l}),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(){c=(new Date).getTime(),h=null,(d?t:t[r]).apply(o,s||[])}var p=function(){l=(new Date).getTime(),o=this,s=arguments,a=l-(n?u:c)-e,clearTimeout(h),n?i?h=setTimeout(f,e):a>=0&&f():a>=0?f():i&&(h=setTimeout(f,-a)),u=l};return p.clear=function(){h&&(clearTimeout(h),h=null)},p}var a,o,s,l=(new Date).getTime(),u=0,c=0,h=null,d=typeof t===Ie;if(e=e||0,d)return r();for(var f=[],p=0;p<t[$e];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,u=s[i];u!==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",[_i],function(){return function(t,e,i,n,r){function a(t,e,i){var n=e[$e]?e.slice():[e,e];return e[0]>e[1]&&n[x](),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/visual/VisualMapping",[_i,yi,"zrender/tool/color","../util/number"],function(t){function e(t){var e=t.pieceList;t.hasSpecialVisual=!1,l.each(e,function(e,i){e.originIndex=i,e.visual&&(t.hasSpecialVisual=!0)})}function i(t){var e=t.categories,i=t.visual,n=l[Ve](i);if(!e){if(n)return;throw new Error}var r=t.categoryMap={};if(h(e,function(t,e){r[t]=e}),!n){var a=[];l[ei](i)?h(i,function(t,e){var i=r[e];a[null!=i?i:f]=t}):a[f]=i,i=t.visual=a}for(var o=e[$e]-1;o>=0;o--)null==i[o]&&(delete r[e[o]],e.pop())}function n(t){return{applyVisual:function(e,i,n){var r=i("color"),a=l[Ve](e);if(e=a?[this.mapValueToVisual(e[0]),this.mapValueToVisual(e[1])]:this.mapValueToVisual(e),l[Ve](r))for(var o=0,s=r[$e];s>o;o++)r[o].color=t(r[o].color,a?e[o]:e);else n("color",t(r,e))},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[G].visual;return null==i&&(i=s(this)?o(this,n,e):c(e,[0,1],n,!0)),i}}}function r(t,e){return t[Math.round(c(e,[0,1],[0,t[$e]-1],!0))]}function a(t,e,i){i("color",this.mapValueToVisual(t))}function o(t,e,i){return e[t[G].loop&&i!==f?i%e[$e]:i]}function s(t){return t[G].mappingMethod===m}var l=t(yi),u=t("zrender/tool/color"),c=t("../util/number")[S],h=l.each,d=l[ei],f=-1,p=function(t){var n=t.mappingMethod,r=t.type;this.type=r,this.mappingMethod=n;var a=this[G]=l.clone(t);this._normalizeData=g[n],this._getSpecifiedVisual=l.bind(y[n],this,r),l[Je](this,v[r]),"piecewise"===n&&e(a),n===m&&i(a)};p[pi]={constructor:p,applyVisual:null,isValueActive:null,mapValueToVisual:null,getNormalizer:function(){return l.bind(this._normalizeData,this)}};var v=p.visualHandlers={color:{applyVisual:a,getColorMapper:function(){var t=s(this)?this[G].visual:l.map(this[G].visual,u.parse);return l.bind(s(this)?function(e,i){return!i&&(e=this._normalizeData(e)),o(this,t,e)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=u.fastMapToColor(e,t,n),r?n:l.stringify(n,"rgba")},this)},mapValueToVisual:function(t){var e=this[G].visual;if(l[Ve](t))return t=[this._normalizeData(t[0]),this._normalizeData(t[1])],u.mapIntervalToColor(t,e);var i=this._normalizeData(t),n=this._getSpecifiedVisual(t);return null==n&&(n=s(this)?o(this,e,i):u.mapToColor(i,e)),n}},colorHue:n(function(t,e){return u.modifyHSL(t,e)}),colorSaturation:n(function(t,e){return u.modifyHSL(t,null,e)}),colorLightness:n(function(t,e){return u.modifyHSL(t,null,null,e)}),colorAlpha:n(function(t,e){return u.modifyAlpha(t,e)}),symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(l[Le](n))i(U,n);else if(d(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[G].visual;return null==i&&(i=s(this)?o(this,n,e):r(n,e)||{}),i}},symbolSize:{applyVisual:function(t,e,i){i(j,this.mapValueToVisual(t))},mapValueToVisual:function(t){var e=this._normalizeData(t),i=this._getSpecifiedVisual(t),n=this[G].visual;return null==i&&(i=s(this)?o(this,n,e):c(e,[0,1],n,!0)),i}}},g={linear:function(t){return c(t,this[G].dataExtent,[0,1],!0)},piecewise:function(t){var e=this[G].pieceList,i=p.findPieceIndex(t,e);return null!=i?c(i,[0,e[$e]-1],[0,1],!0):void 0},category:function(t){var e=this[G].categories?this[G].categoryMap[t]:t;return null==e?f:e}},y={linear:l.noop,piecewise:function(t,e){var i=this[G],n=i.pieceList;if(i.hasSpecialVisual){var r=p.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[t]}},category:l.noop};return p.addVisualHandler=function(t,e){v[t]=e},p.isValidType=function(t){return v.hasOwnProperty(t)},p.eachVisual=function(t,e,i){l[ei](t)?l.each(t,e,i):e.call(i,t)},p.mapVisual=function(t,e,i){var n,r=l[Ve](t)?[]:l[ei](t)?{}:(n=!0,null);return p.eachVisual(t,function(t,a){var o=e.call(i,t,a);n?r=o:r[a]=o}),r},p.isInVisualCluster=function(t,e){return"color"===e?!(!t||0!==t[De](e)):t===e},p.retrieveVisuals=function(t){var e,i={};return t&&h(v,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},p.prepareVisualTypes=function(t){if(d(t)){var e=[];h(t,function(t,i){e.push(i)}),t=e}else{if(!l[Ve](t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t[De]("color")?1:-1}),t},p.findPieceIndex=function(t,e){for(var i=0,n=e[$e];n>i;i++){var r=e[i];if(null!=r.value&&r.value===t)return i}for(var i=0,n=e[$e];n>i;i++){var r=e[i],a=r.interval;if(a)if(a[0]===-1/0){if(t<a[1])return i}else if(1/0===a[1]){if(a[0]<t)return i}else if(r.interval[0]<=t&&t<=r.interval[1])return i}},p}),e("echarts/data/DataDiffer",[_i],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[$e];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[$e]||(e[r]=a=[a]),a.push(n))}}return e[pi]={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[$e];t++){var l=r(e[t]),u=s[l];if(null!=u){var c=u[$e];c?(1===c&&(s[l]=null),u=u.unshift()):s[l]=null,this._update&&this._update(u,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var u=s[l];if(null==u)continue;if(u[$e])for(var t=0,c=u[$e];c>t;t++)this._add&&this._add(u[t]);else this._add&&this._add(u)}}},e}),e("echarts/coord/Axis",[_i,"../util/number",yi],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[S],r=t(yi),a=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this[J]=!1,this.onBand=!1};return a[pi]={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[de](this[o](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[le](),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[le](),a=this.scale;return this.onBand&&a.type===X&&e(r,a.count()),n(t,[0,1],r,i)},coordToData:function(t,i){var r=this[le]();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[$e];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale[ce](),this[o],this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[$e];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale[ce](),this[o],this)},getBands:function(){for(var t=this[le](),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[le](),i=e[1]-e[0]+(this.onBand?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},a}),e("echarts/coord/cartesian/axisLabelInterval",[_i,yi,"../axisHelper"],function(t){var e=t(yi),i=t("../axisHelper");return function(t){var n=t.model,r=n[hi]("axisLabel"),a=r.get("interval");return t.type!==m||"auto"!==a?"auto"===a?0:a:i.getAxisLabelInterval(e.map(t.scale[ce](),t[o],t),n[l](),r[hi](Te)[Me](),t.isHorizontal())}}),e("echarts/data/helper/completeDimensions",[_i,yi],function(t){function e(t,e,a){var o=n(e[0]),s=r[Ve](o)&&o[$e]||1;a=a||[];for(var l=0;s>l;l++)if(!t[l]){var u=a[l]||"extra"+(l-a[$e]);t[l]=i(e,l)?{type:"ordinal",name:u}:u}return t}function i(t,e){for(var i=0,a=t[$e];a>i;i++){var o=n(t[i]);if(!r[Ve](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r[Le](o)&&"-"!==o)return!0}return!1}function n(t){return r[Ve](t)?t:r[ei](t)?t.value:t}var r=t(yi);return e}),e("echarts/data/helper/linkList",[_i,yi],function(t){function e(t,e,n){return i.each(r,function(r,a){var o=t[a];t[a]=i.curry(r,o,e,n)}),t[n]=e,e.data=t,t}var i=t(yi),n=Array[pi].slice,r={cloneShallow:function(t,i,r){var a=t.apply(this,n.call(arguments,3));return e(a,i,r)},map:function(t,i,r){var a=t.apply(this,n.call(arguments,3));return e(a,i,r)},filterSelf:function(t,e){var i=t.apply(this,n.call(arguments,3));return e[ii](),i}};return{linkToGraph:function(t,i){e(t,i,"graph")},linkToTree:function(t,i){e(t,i,"tree")}}}),e("echarts/chart/helper/Symbol",[_i,yi,"../../util/symbol",re,p],function(t){function e(t){return r[Ve](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this[K](t,e)}function n(t,e){this[L].drift(t,e)}var r=t(yi),a=t("../../util/symbol"),o=t(re),s=t(p),l=i[pi];l._createSymbol=function(t,i,r){this[Ce]();var s=i[Ne],l=i[u](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[u](r,j));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)[Ye](V)},l.downplay=function(){this.childAt(0)[Ye](D)},l.setZ=function(t,e){var i=this.childAt(0);i[Ee]=t,i.z=e},l.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},l[K]=function(t,i){var n=t[u](i,U)||"circle",r=t[Ne],a=e(t[u](i,j));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this.childAt(0);o.updateProps(s,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var c=["itemStyle",D],h=["itemStyle",V],d=["label",D],f=["label",V];return l._updateCommon=function(t,i,n){var a=this.childAt(0),l=t[Ne],p=t[H](i),m=p[hi](c),v=t[u](i,"color"),g=p[hi](h).getItemStyle();a.rotation=p[A]("symbolRotate")*Math.PI/180||0;var y=p[A]("symbolOffset");if(y){var _=a[ve];_[0]=s.parsePercent(y[0],n[0]),_[1]=s.parsePercent(y[1],n[1])}a.setColor(v),r[Je](a.style,m.getItemStyle(["color"]));var x=p[hi](d),b=p[hi](f),w=t[F][t[F][$e]-1],M=l.getFormattedLabel(i,D)||t.get(w,i),S=a.style;x.get("show")?(o.setText(S,x,v),S.text=M):S.text="",b[A]("show")?(o.setText(g,b,v),g.text=M):g.text="",o.setHoverStyle(a,g);var T=e(t[u](i,j));if(a.off(We).off(He).off(V).off(D),p[A]("hoverAnimation")){var C=function(){var t=T[1]/T[0];this.animateTo({scale:[Math.max(1.1*T[0],T[0]+3),Math.max(1.1*T[1],T[1]+3*t)]},400,"elasticOut")},L=function(){this.animateTo({scale:T},400,"elasticOut")};a.on(We,C).on(He,L).on(V,C).on(D,L)}},l.fadeOut=function(t){var e=this.childAt(0);e.style.text="",o.updateProps(e,{scale:[0,0]},this._seriesModel,t)},r[ze](i,o.Group),i}),e("echarts/component/helper/RoamController",[_i,"zrender/mixin/Eventful",yi,"zrender/core/event","./interactionMutex"],function(t){function e(t){if(!t[Fe]||!t[Fe].draggable){var e=t[g],i=t[v],n=this.rect;n&&n[de](e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function i(t){if(this._dragging&&(c.stop(t.event),"pinch"!==t.gestureEvent)){if(h.isTaken("globalPan",this._zr))return;var e=t[g],i=t[v],n=e-this._x,r=i-this._y;this._x=e,this._y=i;var a=this[Fe];if(a){var o=a[ve];o[0]+=n,o[1]+=r,a.dirty()}c.stop(t.event),this[Ye]("pan",n,r)}}function n(){this._dragging=!1}function r(t){c.stop(t.event);var e=t.wheelDelta<0?1.1:1/1.1;o.call(this,t,e,t[g],t[v])}function a(t){if(!h.isTaken("globalPan",this._zr)){c.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,i,n){var r=this.rect;if(r&&r[de](i,n)){var a=this[Fe];if(a){var o=a[ve],s=a.scale,l=this._zoom=this._zoom||1;l*=e;var u=l/this._zoom;this._zoom=l,o[0]-=(i-o[0])*(u-1),o[1]-=(n-o[1])*(u-1),s[0]*=u,s[1]*=u,a.dirty()}this[Ye]("zoom",e,i,n)}}function s(t,o,s){this[Fe]=o,this.rect=s,this._zr=t;var c=u.bind,h=c(e,this),d=c(i,this),f=c(n,this),p=c(r,this),m=c(a,this);l.call(this),this.enable=function(e){this.disable(),null==e&&(e=!0),e&&"scale"!==e&&(t.on("mousedown",h),t.on("mousemove",d),t.on("mouseup",f)),e&&"move"!==e&&(t.on("mousewheel",p),t.on("pinch",m))},this.disable=function(){t.off("mousedown",h),t.off("mousemove",d),t.off("mouseup",f),t.off("mousewheel",p),t.off("pinch",m)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var l=t("zrender/mixin/Eventful"),u=t(yi),c=t("zrender/core/event"),h=t("./interactionMutex");return u.mixin(s,l),s}),e("echarts/component/visualMap/VisualMapModel",[_i,yi,"zrender/core/env",y,s,"../../visual/visualDefault","../../visual/VisualMapping",p],function(t){var e=t(yi),i=t("zrender/core/env"),r=t(y),a=t(s),o=t("../../visual/visualDefault"),l=t("../../visual/VisualMapping"),u=l.mapVisual,c=l.eachVisual,h=t(p),d=e[Ve],f=e.each,m=h.asc,v=h[S];return r[Pe]({type:"visualMap",dependencies:[Ue],dataBound:[-1/0,1/0],stateList:["inRange","outOfRange"],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",seriesIndex:null,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:["#bf444c","#d88273","#f6efa6"],formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._autoSeriesIndex=!1,this._dataExtent,this.controllerVisuals={},this.targetVisuals={},this.textStyleModel,this.itemSize,this[B](t,i),this.doMergeOption({},!0)},mergeOption:function(t){this[n](N,arguments),this.doMergeOption(t,!1)},doMergeOption:function(){var t=this[G];i[li]||(t.realtime=!1),this.textStyleModel=this[hi](Te),this.resetItemSize(),this.completeVisualOption()},formatValueText:function(t,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t)[w](s)}var r,a,o=this[G],s=o.precision,l=this.dataBound,u=o[O];return e[Ve](t)&&(t=t.slice(),r=!0),a=i?t:r?[n(t[0]),n(t[1])]:n(t),e[Le](u)?u[Re]("{value}",r?a[0]:a)[Re]("{value2}",r?a[1]:a):e.isFunction(u)?r?u(t[0],t[1]):u(t):r?t[0]===l[0]?"< "+a[1]:t[1]===l[1]?"> "+a[0]:a[0]+" - "+a[1]:a},resetTargetSeries:function(t,e){var i=this[G],n=this._autoSeriesIndex=null==(e?i:t)[Ze];i[Ze]=n?[]:a.normalizeToArray(i[Ze]),n&&this[E][Xe](function(t,e){var n=t[qe]();"list"===n.type&&i[Ze].push(e)})},resetExtent:function(){var t=this[G],e=m([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this[G].dimension;return null!=e?e:t[F][$e]-1},getExtent:function(){return this._dataExtent.slice()},resetVisual:function(t){function e(e,n){f(this.stateList,function(r){var a=n[r]||(n[r]={}),o=this[G][e][r]||{};f(o,function(e,n){if(l.isValidType(n)){var o={type:n,dataExtent:i,visual:e};t&&t.call(this,o,r),a[n]=new l(o)}},this)},this)}var i=this[le]();e.call(this,"controller",this.controllerVisuals),e.call(this,Fe,this.targetVisuals)},completeVisualOption:function(){function t(t){d(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice()[x]()}),f(this.stateList,function(i){var n=t[i];if(e[Le](n)){var r=o.get(n,"active",p);r?(t[i]={},t[i][n]=r):delete t[i]}},this)}function i(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},f(n,function(t,e){var i=o.get(e,"inactive",p);l.isValidType(e)&&i&&(r[e]=i)}))}function n(t){var i=(t.inRange||{})[U]||(t.outOfRange||{})[U],n=(t.inRange||{})[j]||(t.outOfRange||{})[j],r=this.get("inactiveColor");f(this.stateList,function(a){var o=this.itemSize,s=t[a];s||(s=t[a]={color:p?r:[r]}),s[U]||(s[U]=i&&e.clone(i)||(p?"roundRect":["roundRect"])),s[j]||(s[j]=n&&e.clone(n)||(p?o[0]:[o[0],o[0]])),s[U]=u(s[U],function(t){return"none"===t||"square"===t?"roundRect":t});var l=s[j];if(l){var h=-1/0;c(l,function(t){t>h&&(h=t)}),s[j]=u(l,function(t){return v(t,[0,h],[0,o[0]],!0)})}},this)}var r=this[G],a={inRange:r.inRange,outOfRange:r.outOfRange},s=r[Fe]||(r[Fe]={}),h=r.controller||(r.controller={});e.merge(s,a),e.merge(h,a);var p=this.isCategory();t.call(this,s),t.call(this,h),i.call(this,s,"inRange","outOfRange"),i.call(this,s,"outOfRange","inRange"),n.call(this,h)},eachTargetSeries:function(t,i){e.each(this[G][Ze],function(e){t.call(i,this[E].getSeriesByIndex(e))},this)},isCategory:function(){return!!this[G].categories},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},setSelected:e.noop,getValueState:e.noop})}),e("echarts/chart/helper/Line",[_i,"../../util/symbol","zrender/core/vector","./LinePath",re,yi,p],function(t){function e(t,e,i){var n=e[u](i,"color"),r=e[u](i,U),a=e[u](i,j);if("none"!==r){f[Ve](a)||(a=[a,a]);var o=l.createSymbol(r,-a[0]/2,-a[1]/2,a[0],a[1],n);return o.name=t,o}}function i(t){var e=new h({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 t.type===U&&"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"),s=e.pointAt(0),l=e.pointAt(e.shape.percent),u=c.sub([],l,s);c.normalize(u,u),i&&(i.attr(ve,s),r(n)&&n.attr("rotation",o(s,l))),n&&(n.attr(ve,l),r(i)&&i.attr("rotation",o(l,s))),a.attr(ve,l);var h,d,f;"end"===a.__position?(h=[5*u[0]+l[0],5*u[1]+l[1]],d=u[0]>.8?"left":u[0]<-.8?"right":ge,f=u[1]>.8?"top":u[1]<-.8?ri:M):(h=[5*-u[0]+s[0],5*-u[1]+s[1]],d=u[0]>.8?"right":u[0]<-.8?"left":ge,f=u[1]>.8?ri:u[1]<-.8?"top":M),a.attr({style:{textBaseline:a.__textBaseline||f,textAlign:a.__textAlign||d},position:h})}}function o(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function s(t,e,i,n){d.Group.call(this),this._createLine(t,e,i,n)}var l=t("../../util/symbol"),c=t("zrender/core/vector"),h=t("./LinePath"),d=t(re),f=t(yi),m=t(p),v=s[pi];return v.beforeUpdate=a,v._createLine=function(t,n,r,a){var o=t[Ne],s=t.getItemLayout(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[u](a,U)}if(r){var f=e("toSymbol",r,a);this.add(f),this._toSymbolType=r[u](a,U)}this._updateCommonStl(t,n,r,a)},v[K]=function(t,i,r,a){var o=t[Ne],s=this.childOfName("line"),l=t.getItemLayout(a),c={shape:{}};if(n(c.shape,l),d.updateProps(s,c,o),i){var h=i[u](a,U);if(this._fromSymbolType!==h){var f=e("fromSymbol",i,a);this[ti](s.childOfName("fromSymbol")),this.add(f)}this._fromSymbolType=h}if(r){var p=r[u](a,U);if(p!==this._toSymbolType){var m=e("toSymbol",r,a);this[ti](s.childOfName("toSymbol")),this.add(m)}this._toSymbolType=p}this._updateCommonStl(t,i,r,a)},v._updateCommonStl=function(t,e,i,n){var r=t[Ne],a=this.childOfName("line"),o=t[H](n),s=o[hi]("label.normal"),l=s[hi](Te),c=o[hi]("label.emphasis"),h=c[hi](Te),p=m.round(r[q](n));isNaN(p)&&(p=t[R](n)),a[me](f[Je]({stroke:t[u](n,"color")},o[hi]("lineStyle.normal").getLineStyle()));var v=this.childOfName("label");v[me]({text:s.get("show")?r.getFormattedLabel(n,D)||p:"",textFont:l[Me](),fill:l[we]()||t[u](n,"color")}),v.hoverStyle={text:c.get("show")?r.getFormattedLabel(n,V)||p:"",textFont:l[Me](),fill:h[we]()},v.__textAlign=l.get("align"),v.__textBaseline=l.get("baseline"),v.__position=s.get(ve),d.setHoverStyle(this,o[hi]("lineStyle.emphasis").getLineStyle())},v.updateLayout=function(t,e,i,r){var a=t.getItemLayout(r),o=this.childOfName("line");n(o.shape,a),o.dirty(!0),e&&e[Y](r).attr(ve,a[0]),i&&i[Y](r).attr(ve,a[1])},f[ze](s,d.Group),s}),e("echarts/component/timeline/TimelineView",[_i,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Je]({type:"timeline"})}),e("echarts/component/timeline/TimelineAxis",[_i,yi,"../../coord/Axis","../../coord/axisHelper"],function(t){var e=t(yi),i=t("../../coord/Axis"),n=t("../../coord/axisHelper"),r=function(t,e,n,r){i.call(this,t,e,n),this.type=r||"value",this._autoLabelInterval,this.model=null};return r[pi]={constructor:r,getLabelInterval:function(){var t=this.model,i=t[hi]("label.normal"),r=i.get("interval");if(null!=r&&"auto"!=r)return r;var r=this._autoLabelInterval;return r||(r=this._autoLabelInterval=n.getAxisLabelInterval(e.map(this.scale[ce](),this[o],this),n[l](this,i.get(O)),i[hi](Te)[Me](),t.get(c)===d)),r},isLabelIgnored:function(t){if(this.type===m){var e=this.getLabelInterval();return typeof e===Ie&&!e(t,this.scale[ue](t))||t%(e+1)}}},e[ze](r,i),r}),e("echarts/component/helper/SelectController",[_i,"zrender/mixin/Eventful",yi,re],function(t){function e(t,e,i){p.call(this),this.type=t,this.zr=e,this.opt=m.clone(i),this.group=new y.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:_(r,this),mousemove:_(a,this),mouseup:_(o,this)},x(T,function(t){this.zr.on(t,this._handlers[t])},this)}function i(t,e){var i=this.group.transformCoordToLocal(t,e);return!this._containerRect||this._containerRect[de](i[0],i[1])}function n(t){var e=t.event;e.preventDefault&&e.preventDefault()}function r(t){if(!(this._disabled||t[Fe]&&t[Fe].draggable)){n(t);var e=t[g],r=t[v];i.call(this,e,r)&&(this._dragging=!0,this._track=[[e,r]])}}function a(t){this._dragging&&!this._disabled&&(n(t),s.call(this,t))}function o(t){this._dragging&&!this._disabled&&(n(t),s.call(this,t,!0),this._dragging=!1,this._track=[])}function s(t,e){var n=t[g],r=t[v];if(i.call(this,n,r)){this._track.push([n,r]);var a=l.call(this)?C[this.type].getRanges.call(this):[];u.call(this,a),this[Ye]("selected",m.clone(a)),e&&this[Ye]("selectEnd",m.clone(a))}}function l(){var t=this._track;if(!t[$e])return!1;var e=t[t[$e]-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],a=M(n*n+r*r,.5);return a>S}function u(t){var e=C[this.type];t&&t[$e]?(this._cover||(this._cover=e[he].call(this),this.group.add(this._cover)),e[ii].call(this,t)):(this.group[ti](this._cover),this._cover=null)}function c(){var t=this.group,e=t[L];e&&e[ti](t)}function h(){var t=this.opt;return new y.Rect({style:{stroke:t[P],fill:t.fill,lineWidth:t[I],opacity:t[pe]}})}function d(){return m.map(this._track,function(t){return this.group.transformCoordToLocal(t[0],t[1])},this)}function f(){var t=d.call(this),e=t[$e]-1;return 0>e&&(e=0),[t[0],t[e]]}var p=t("zrender/mixin/Eventful"),m=t(yi),y=t(re),_=m.bind,x=m.each,b=Math.min,w=Math.max,M=Math.pow,S=2,T=["mousedown","mousemove","mouseup"];e[pi]={constructor:e,enable:function(t,e){this._disabled=!1,c.call(this),this._containerRect=e!==!1?e||t[be]():null,t.add(this.group)},update:function(t){u.call(this,t&&m.clone(t))},disable:function(){this._disabled=!0,c.call(this)},dispose:function(){this.disable(),x(T,function(t){this.zr.off(t,this._handlers[t])},this)}},m.mixin(e,p);var C={line:{create:h,getRanges:function(){var t=f.call(this),e=b(t[0][0],t[1][0]),i=w(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover[$]({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:h,getRanges:function(){var t=f.call(this),e=[b(t[1][0],t[0][0]),b(t[1][1],t[0][1])],i=[w(t[1][0],t[0][0]),w(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover[$]({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/dataZoom/history",[_i,yi],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(yi),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[$e]-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[$e]-1];i[$e]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[$e]-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)[$e]}};return a}),e("echarts/component/helper/interactionMutex",[_i],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/dataZoomSelect",[_i,"./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("echarts/coord/cartesian/AxisModel",[_i,r,yi,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?m:"value")}var i=t(r),n=t(yi),a=t("../axisModelCreator"),o=i[Je]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[G].scale=!t},setMin:function(t){this[G].min=t},setMax:function(t){this[G].max=t}});n.merge(o[pi],t("../axisModelCommonMixin"));var s={gridIndex:0};return a("x",o,e,s),a("y",o,e,s),o}),e("echarts/chart/line/lineAnimationDiff",[_i,"zrender/core/arrayDiff"],function(t){function e(t){return t>=0?1:-1}function i(t,i,n){for(var r,a=t.getBaseAxis(),o=t[ne](a),s=a.onZero?0:o.scale[le]()[0],l=o.dim,u="x"===l||l===ie?1:0,c=i.stackedOn,h=i.get(l,n);c&&e(c.get(l,n))===e(h);){r=c;break}var d=[];return d[u]=i.get(a.dim,n),d[1-u]=r?r.get(l,n,!0):s,t.dataToPoint(d)}var n=t("zrender/core/arrayDiff");return function(t,e,r,a,o,s){for(var l=e[ee](e.getId),u=t[ee](t.getId),c=[],h=[],d=[],f=[],p=[],m=[],v=[],g=n(u,l),y=s[F],_=0;_<g[$e];_++){var x=g[_],b=!0;switch(x.cmd){case"=":c.push(t.getItemLayout(x.idx)),h.push(e.getItemLayout(x.idx1)),d.push(r[x.idx]),f.push(a[x.idx1]),v.push(e.getRawIndex(x.idx1));break;case"+":var w=x.idx;c.push(o.dataToPoint([e.get(y[0],w,!0),e.get(y[1],w,!0)])),h.push(e.getItemLayout(w).slice()),d.push(i(o,e,w)),f.push(a[w]),v.push(e.getRawIndex(w));break;case"-":var w=x.idx,M=t.getRawIndex(w);M!==w?(c.push(t.getItemLayout(w)),h.push(s.dataToPoint([t.get(y[0],w,!0),t.get(y[1],w,!0)])),d.push(r[w]),f.push(i(s,t,w)),v.push(M)):b=!1}b&&(p.push(x),m.push(m[$e]))}m.sort(function(t,e){return v[t]-v[e]});for(var S=[],T=[],C=[],L=[],z=[],_=0;_<m[$e];_++){var w=m[_];S[_]=c[w],T[_]=h[w],C[_]=d[w],L[_]=f[w],z[_]=p[w]}return{current:S,next:T,stackedOnCurrent:C,stackedOnNext:L,status:z}}}),e("echarts/chart/line/poly",[_i,"zrender/graphic/Path","zrender/core/vector"],function(t){function e(t,e,i,n,m,v,g,y,_){for(var x=i,b=0;m>b;b++){var w=e[x];if(x>=n||0>x||isNaN(w[0])||isNaN(w[1]))break;if(x===i)t[v>0?a:"lineTo"](w[0],w[1]),h(f,w);else if(_>0){var M=x-v,S=x+v;v>0?(M=s(M,i),S=o(S,n-1)):(S=s(S,0),M=o(M,i));var T=e[M],C=e[S];(isNaN(C[0])||isNaN(C[1]))&&(C=w),r.sub(d,C,T),c(p,w,d,-_/2),l(f,f,y),u(f,f,g),l(p,p,y),u(p,p,g),t.bezierCurveTo(f[0],f[1],p[0],p[1],w[0],w[1]),c(f,w,d,_/2)}else t.lineTo(w[0],w[1]);x+=v}return b}function i(t){for(var e=[1/0,1/0],i=[-1/0,-1/0],n=0;n<t[$e];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 n=t("zrender/graphic/Path"),r=t("zrender/core/vector"),o=Math.min,s=Math.max,l=r.min,u=r.max,c=r.scaleAndAdd,h=r.copy,d=[],f=[],p=[];return{Polyline:n[Je]({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[$e],s=i(r);o>a;)a+=e(t,r,a,o,o,1,s.min,s.max,n.smooth)+1}}),Polygon:n[Je]({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[$e],l=i(r),u=i(a);s>o;){var c=e(t,r,o,s,s,1,l.min,l.max,n.smooth);e(t,a,o+c-1,s,c,-1,u.min,u.max,n.stackedOnSmooth),o+=c+1,t.closePath()}}})}}),e("echarts/util/animation",[_i,yi],function(t){function e(){var t,e=[],n={};return{add:function(t,r,a,o,s){return i[Le](o)&&(s=o,o=0),n[t.id]?!1:(n[t.id]=1,e.push({el:t,target:r,time:a,delay:o,easing:s}),!0)},done:function(e){return t=e,this},start:function(){function i(){r--,r||(e[$e]=0,n={},t&&t())}for(var r=e[$e],a=0,o=e[$e];o>a;a++){var s=e[a];s.el.animateTo(s[Fe],s.time,s.delay,s.easing,i)}return this}}}var i=t(yi);return{createWrap:e}}),e("echarts/chart/treemap/helper",[_i],function(){var t={retrieveTargetInfo:function(t,e){if(t&&"treemapZoomToNode"===t.type){var i=e[qe]().tree.root,n=t.targetNode;if(n&&i.contains(n))return{node:n};var r=t.targetNodeId;return null!=r&&(n=i.getNodeById(r))?{node:n}:null}}};return t}),e("echarts/chart/treemap/Breadcrumb",[_i,re,f,yi],function(t){function e(t,e){this.group=new n.Group,t.add(this.group),this._onSelect=e||a.noop}function i(t,e,i,n,r,a){var o=[[r?t:t-l,e],[t+i,e],[t+i,e+n],[r?t:t-l,e+n]];return!a&&o[je](2,0,[t+i+l,e+n/2]),!r&&o.push([t,e+n/2]),o}var n=t(re),r=t(f),a=t(yi),o=8,s=8,l=5;return e[pi]={constructor:e,render:function(t,e,i){var n=t[hi]("breadcrumb"),a=this.group;if(a[Ce](),n.get("show")&&i){var o=n[hi]("itemStyle.normal"),s=o[hi](Te),l={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get(ri)},box:{width:e[ci](),height:e[ui]()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,i,l,s),this._renderContent(n,i,l,o,s),r.positionGroup(a,l.pos,l.box)}},_prepare:function(t,e,i,n){for(var r=e;r;r=r[b]){var a=r[hi]().get("name"),l=n.getTextRect(a),u=Math.max(l.width+2*o,i.emptyItemWidth);i.totalWidth+=u+s,i.renderList.push({node:r,text:a,width:u})}},_renderContent:function(t,e,o,l,u){for(var c=0,h=o.emptyItemWidth,d=t.get(ni),f=r.getAvailableSize(o.pos,o.box),p=o.totalWidth,m=o.renderList,v=m[$e]-1;v>=0;v--){var g=m[v],y=g.width,_=g.text;p>f.width&&(p-=y-h,y=h,_=""),this.group.add(new n.Polygon({shape:{points:i(c,0,y,d,v===m[$e]-1,0===v)},style:a[Ke](l.getItemStyle(),{lineJoin:"bevel",text:_,textFill:u[we](),textFont:u[Me]()}),onclick:a.bind(this._onSelect,this,g.node)})),c+=y+s}},remove:function(){this.group[Ce]()}},e}),e("echarts/visual/visualDefault",[_i,yi],function(t){var e=t(yi),i={get:function(t,i,r){var a=e.clone((n[t]||{})[i]);return r&&e[Ve](a)?a[a[$e]-1]:a}},n={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};return i}),e("echarts/chart/helper/LinePath",[_i,re],function(t){var e=t(re),n=e.Line[pi],r=e.BezierCurve[pi];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?n:r)[i](t,e)},pointAt:function(t){var e=this.shape;return null==e.cpx1||null==e.cpy1?n.pointAt.call(this,t):r.pointAt.call(this,t)}})}),e("echarts/component/dataZoom/SelectZoomView",[_i,"./DataZoomView"],function(t){return t("./DataZoomView")[Je]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/SelectZoomModel",[_i,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Je]({type:"dataZoom.select"})}),e("echarts/coord/axisModelCreator",[_i,"./axisDefault",yi,"../model/Component"],function(t){var e=t("./axisDefault"),i=t(yi),n=t("../model/Component"),r=["value",m,"time","log"];return function(t,a,o,s){i.each(r,function(n){a[Je]({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",[_i,yi,"./axisHelper"],function(t){function e(t){return r[ei](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===m&&r.map(this.get("data"),e)}function n(){return a[l](this.axis,this.get("axisLabel.formatter"))}var r=t(yi),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("zrender/core/arrayDiff",[_i],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 u,c,h,d=i>n,f=r>a,p=o(n-i),m=o(a-r);for(c=0;p>=c;c++)for(h=0;m>=h;h++)if(0===c)l[h]=h;else if(0===h)u=l[h],l[h]=c;else{var v=t[d?i-c:c-1+i],g=e[f?r-h:h-1+r],y=u+(s(v,g)?0:2),_=l[h]+1,x=l[h-1]+1;u=l[h],l[h]=_>y?y:_,x<l[h]&&(l[h]=x)}return l}function r(t,e,a,o,s,l,u,c,h){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++)u(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 _=e[s],y=!1;for(d=0;m>d;d++)u(_,t[d+a])&&!y?(y=!0,i(p,"=",d+a,s)):i(p,"-",d+a);y||i(p,"+",s)}else{var x=(m/2|0)+a;n(t,e,a,x,s,l,u,c),n(t,e,o,x+1,l,s,u,h);var b,w=1/0,M=0;for(f=0;v>=f;f++)b=c[f]+h[v-f],w>b&&(w=b,M=f);M+=s,p=r(t,e,a,x,s,M,u,c,h);var S=r(t,e,x,o,M,l,u,c,h);for(d=0;d<S[$e];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[$e],u=n[$e],c=Math.min(l,u),h=[];for(o=0;c>o&&a(e[o],n[o]);o++)i(h,"=",o,o);for(s=0;c>s&&a(e[l-s-1],n[u-s-1]);s++);if(l-s>=o||u-s>=o){var d=r(e,n,o,l-s,o,u-s,a,[],[]);for(o=0;o<d[$e];o++)h.push(d[o]);for(o=0;s>o;o++)i(h,"=",l-s+o,u-s+o)}return h}var o=Math.abs;return a}),e("echarts/component/visualMap/VisualMapView",[_i,y,yi,re,"../../util/format",f,"../../visual/VisualMapping"],function(t){var e=t(y),i=t(yi),n=t(re),r=t("../../util/format"),a=t(f),o=t("../../visual/VisualMapping");return e.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this[E]=t,this.api=e,this.visualMapModel,this._updatableShapes={}},render:function(t){return this.visualMapModel=t,t.get("show")===!1?void this.group[Ce]():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,i=r.normalizeCssArray(e.get(ye)||0),a=t[be]();t.add(new n.Rect({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a[ni]+i[0]+i[2]},style:{fill:e.get(si),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){function r(t){return h[t]}function a(t,e){h[t]=e}var s=this.visualMapModel,l=i[Ve](t);if(l&&(!e||"color"!==n))throw new Error(t);var u=s.controllerVisuals[e||s.getValueState(t)],c=s.get("contentColor"),h={symbol:s.get("itemSymbol"),color:l?[{color:c,offset:0},{color:c,offset:1}]:c},d=o.prepareVisualTypes(u);return i.each(d,function(e){var i=u[e];(!n||o.isInVisualCluster(e,n))&&i&&i.applyVisual(t,r,a)}),h},positionGroup:function(t){var e=this.visualMapModel,i=this.api;a.positionGroup(t,e[xe](),{width:i[ci](),height:i[ui]()})},doRender:i.noop})}),e("echarts/component/visualMap/helper",[_i,f],function(t){var e=t(f),i={getItemAlign:function(t,i,n){var r=t[G],a=r.align;if(null!=a&&"auto"!==a)return a;for(var o={width:i[ci](),height:i[ui]()},s=r[c]===d?1:0,l=[["left","right","width"],["top",ri,ni]],u=l[s],h=[0,null,10],f={},p=0;3>p;p++)f[l[1-s][p]]=h[p],f[u[p]]=2===p?n[0]:r[u[p]];var m=[["x","width",3],["y",ni,0]][s],v=e[_e](f,o,r[ye]);return u[(v.margin[m[2]]||0)+v[m[0]]+.5*v[m[1]]<.5*o[m[1]]?0:1]}};return i}),e("echarts/coord/axisDefault",[_i,yi],function(t){var e=t(yi),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[Ke]({boundaryGap:[0,0],splitNumber:5},i),a=e[Ke]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[Ke]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/component/visualMap/PiecewiseModel",[_i,"./VisualMapModel",yi,"../../visual/VisualMapping"],function(t){function e(t,e){var i=t[J];(t[c]===h?!i:i)&&e[x]()}var i=t("./VisualMapModel"),r=t(yi),a=t("../../visual/VisualMapping"),o=i[Je]({type:"visualMap.piecewise",defaultOption:{selected:null,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10},doMergeOption:function(t,e){this[n]("doMergeOption",arguments),this._pieceList=[],this.resetTargetSeries(t,e),this.resetExtent();var i=this._mode=this._decideMode();s[this._mode].call(this),this._resetSelected(t,e);var a=this[G].categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod=m,t.categories=r.clone(a)):(t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,function(t){var t=r.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},_resetSelected:function(t,e){var i=this[G],n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,r.each(n,function(t){var e=this.getSelectedMapKey(t);e in a||(a[e]=!0)},this),"single"===i.selectedMode){var o=!1;r.each(n,function(t){var e=this.getSelectedMapKey(t);a[e]&&(o?a[e]=!1:o=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_decideMode:function(){var t=this[G];return t.pieces&&t.pieces[$e]>0?"pieces":this[G].categories?"categories":"splitNumber"},setSelected:function(t){this[G].selected=r.clone(t)},getValueState:function(t){var e=this._pieceList,i=a.findPieceIndex(t,e);return null!=i&&this[G].selected[this.getSelectedMapKey(e[i])]?"inRange":"outOfRange"}}),s={splitNumber:function(){var t=this[G],e=t.precision,i=this[le](),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;
for(var r=(i[1]-i[0])/n;+r[w](e)!==r&&5>e;)e++;t.precision=e,r=+r[w](e);for(var a=0,o=i[0];n>a;a++,o+=r){var s=a===n-1?i[1]:o+r;this._pieceList.push({text:this.formatValueText([o,s]),index:a,interval:[o,s]})}},categories:function(){var t=this[G];r.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),e(t,this._pieceList)},pieces:function(){var t=this[G];r.each(t.pieces,function(t,e){r[ei](t)||(t={value:t});var i,n={text:"",index:e};if(null!=t.label&&(n.text=t.label,i=!0),t.hasOwnProperty("value"))n.value=t.value,i||(n.text=this.formatValueText(n.value));else{var o=t.min,s=t.max;null==o&&(o=-1/0),null==s&&(s=1/0),o===s&&(n.value=o),n.interval=[o,s],i||(n.text=this.formatValueText([o,s]))}n.visual=a.retrieveVisuals(t),this._pieceList.push(n)},this),e(t,this._pieceList)}};return o}),e("echarts/component/visualMap/PiecewiseView",[_i,"./VisualMapView",yi,re,"../../util/symbol",f,"./helper"],function(t){var e=t("./VisualMapView"),i=t(yi),n=t(re),r=t("../../util/symbol"),a=t(f),o=t("./helper"),s=e[Je]({type:"visualMap.piecewise",doRender:function(){function t(t){var r=new n.Group;r.onclick=i.bind(this._onItemClick,this,t.piece),this._createItemSymbol(r,t.piece,[0,0,d[0],d[1]]),p&&r.add(new n.Text({style:{x:"right"===h?-o:d[0]+o,y:d[1]/2,text:t.piece.text,textBaseline:"middle",textAlign:h,textFont:l,fill:u}})),e.add(r)}var e=this.group;e[Ce]();var r=this.visualMapModel,o=r.get("textGap"),s=r.textStyleModel,l=s[Me](),u=s[we](),h=this._getItemAlign(),d=r.itemSize,f=this._getViewData(),p=!f.endsText,m=!p;m&&this._renderEndsText(e,f.endsText[0],d),i.each(f.pieceList,t,this),m&&this._renderEndsText(e,f.endsText[1],d),a.box(r.get(c),e,r.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_getItemAlign:function(){var t=this.visualMapModel,e=t[G];if(e[c]===h)return o.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i){if(e){var r=new n.Group,a=this.visualMapModel.textStyleModel;r.add(new n.Text({style:{x:i[0]/2,y:i[1]/2,textBaseline:"middle",textAlign:"center",text:e,textFont:a[Me](),fill:a[we]()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=i.map(t.getPieceList(),function(t,e){return{piece:t,index:e}}),n=t.get("text"),r=t.get(c),a=t.get(J);return(r===d?a:!a)?e[x]():n&&(n=n.slice()[x]()),{pieceList:e,endsText:n}},_createItemSymbol:function(t,e,i){var n;if(this.visualMapModel.isCategory())n=e.value;else if(null!=e.value)n=e.value;else{var a=e.interval||[];n=(a[0]+a[1])/2}var o=this.getControllerVisual(n);t.add(r.createSymbol(o[U],i[0],i[1],i[2],i[3],o.color))},_onItemClick:function(t){var e=this.visualMapModel,n=e[G],r=i.clone(n.selected),a=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[a]=!0,i.each(r,function(t,e){r[e]=e===a})):r[a]=!r[a],this.api[Qe]({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}});return s}),e("echarts/component/axis/AxisView",[_i,yi,re,"./AxisBuilder",y],function(t){function e(t,e){function i(t){var e=n[te](t);return e.toGlobalCoord(e[o](0))}var n=t[fe],r=e.axis,a={},s=r[ve],l=r.onZero?"onZero":s,u=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c[ni]],d={x:{top:h[2],bottom:h[3]},y:{left:h[0],right:h[1]}};d.x.onZero=Math.max(Math.min(i("y"),d.x[ri]),d.x.top),d.y.onZero=Math.max(Math.min(i("x"),d.y.right),d.y.left),a[ve]=["y"===u?d.y[l]:h[0],"x"===u?d.x[l]:h[3]];var f={x:0,y:1};a.rotation=Math.PI/2*f[u];var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],r.onZero&&(a.labelOffset=d[u][s]-d[u].onZero),e[hi]("axisTick").get("inside")&&(a.tickDirection=-a.tickDirection),e[hi]("axisLabel").get("inside")&&(a.labelDirection=-a.labelDirection);var m=e[hi]("axisLabel").get("rotate");return a.labelRotation="top"===l?-m:m,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var i=t(yi),n=t(re),r=t("./AxisBuilder"),a=r.ifIgnoreOnTick,s=r.getInterval,l=["axisLine","axisLabel","axisTick","axisName"],u=["splitLine","splitArea"],c=t(y).extendComponentView({type:"axis",render:function(t,n){if(this.group[Ce](),t.get("show")){var a=n[Z]("grid",t.get("gridIndex")),o=e(a,t),s=new r(t,o);i.each(l,s.add,s),this.group.add(s.getGroup()),i.each(u,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this)}},_splitLine:function(t,e,i){var r=t.axis,o=t[hi]("splitLine"),l=o[hi]("lineStyle"),u=l.get("width"),c=l.get("color"),h=s(o,i);c=c instanceof Array?c:[c];for(var d=e[fe].getRect(),f=r.isHorizontal(),p=[],m=0,v=r.getTicksCoords(),g=[],y=[],_=0;_<v[$e];_++)if(!a(r,_,h)){var x=r.toGlobalCoord(v[_]);f?(g[0]=x,g[1]=d.y,y[0]=x,y[1]=d.y+d[ni]):(g[0]=d.x,g[1]=x,y[0]=d.x+d.width,y[1]=x);var b=m++%c[$e];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:u},silent:!0})))}for(var _=0;_<p[$e];_++)this.group.add(n.mergePath(p[_],{style:{stroke:c[_%c[$e]],lineDash:l.getLineDash(),lineWidth:u},silent:!0}))},_splitArea:function(t,e,i){var r=t.axis,o=t[hi]("splitArea"),l=o.get("areaStyle.color"),u=e[fe].getRect(),c=r.getTicksCoords(),h=c[0],d=c[0],f=[],p=0,m=s(o,i);l=l instanceof Array?l:[l];for(var v=1;v<c[$e];v++)if(!a(r,v,m)){var g,y,_,x,b=r.toGlobalCoord(c[v]);r.isHorizontal()?(g=h,y=u.y,_=b-g,x=u[ni]):(g=u.x,y=d,_=u.width,x=b-y);var w=p++%l[$e];f[w]=f[w]||[],f[w].push(new n.Rect({shape:{x:g,y:y,width:_,height:x},silent:!0})),h=g+_,d=y+x}for(var v=0;v<f[$e];v++)this.group.add(n.mergePath(f[v],{style:{fill:l[v%l[$e]]},silent:!0}))}});c[Je]({type:"xAxis"}),c[Je]({type:"yAxis"})}),e("echarts/component/axis/AxisBuilder",[_i,yi,re,"../../model/Model",p],function(t){function e(t,e,i){var n,r,a=u(e-t.rotation);return c(a)?(r=i>0?"top":ri,n=ge):c(a-h)?(r=i>0?ri:"top",n=ge):(r=M,n=a>0&&h>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}}function i(t,e,i){var n,r,a=u(-t.rotation),o=i[0]>i[1],s="start"===e&&!o||"start"!==e&&o;return c(a-h/2)?(r=s?ri:"top",n=ge):c(a-1.5*h)?(r=s?"top":ri,n=ge):(r=M,n=1.5*h>a&&a>h/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var n=t(yi),r=t(re),a=t("../../model/Model"),s=t(p),u=s.remRadian,c=s.isRadianAroundZero,h=Math.PI,d=function(t,e){this.opt=e,this.axisModel=t,n[Ke](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new r.Group({position:e[ve].slice(),rotation:e.rotation})};d[pi]={constructor:d,hasBuilder:function(t){return!!f[t]},add:function(t){f[t].call(this)},getGroup:function(){return this.group}};var f={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[le]();this.group.add(new r.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n[Je]({lineCap:"round"},e[hi]("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[hi]("axisTick"),n=this.opt,a=i[hi]("lineStyle"),o=i.get($e),s=g(i,n.labelInterval),l=e.getTicksCoords(),u=[],c=0;c<l[$e];c++)if(!v(e,c,s)){var h=l[c];u.push(new r.Line(r.subPixelOptimizeLine({shape:{x1:h,y1:0,x2:h,y2:n.tickDirection*o},style:{lineWidth:a.get("width")},silent:!0})))}this.group.add(r.mergePath(u,{style:a.getLineStyle(),silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[be]().clone(),n=e&&e[be]().clone();return i&&n?(i[k](t[z]()),n[k](e[z]()),i.intersect(n)):void 0}var i=this.axisModel;if(i.get("axisLabel.show")){var n=this.opt,s=i.axis,u=i[hi]("axisLabel"),c=u[hi](Te),d=u.get("margin"),f=s.scale[ce](),p=i[l](),g=n.labelRotation;null==g&&(g=u.get("rotate")||0),g=g*h/180;for(var y=e(n,g,n.labelDirection),_=i.get("data"),x=[],b=0;b<f[$e];b++)if(!v(s,b,n.labelInterval)){var w=c;_&&_[b]&&_[b][Te]&&(w=new a(_[b][Te],c,i[E]));var M=s[o](f[b]),S=[M,n.labelOffset+n.labelDirection*d],T=new r.Text({style:{text:p[b],textAlign:w.get("align",!0)||y[Se],textBaseline:w.get("baseline",!0)||y.textBaseline,textFont:w[Me](),fill:w[we]()},position:S,rotation:y.rotation,silent:!0,z2:10});x.push(T),this.group.add(T)}if(s.type!==m){if(i.get("min")){var C=x[0],L=x[1];t(C,L)&&(C[ai]=!0)}if(i.get("max")){var A=x[x[$e]-1],P=x[x[$e]-2];t(P,A)&&(A[ai]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,a=this.opt.axisName;if(null==a&&(a=n.get("name")),a){var o,s=n.get("nameLocation"),l=t.nameDirection,u=n[hi]("nameTextStyle"),c=n.get("nameGap")||0,h=this.axisModel.axis[le](),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,s===M?t.labelOffset+l*c:0];o=s===M?e(t,t.rotation,l):i(t,s,h),this.group.add(new r.Text({style:{text:a,textFont:u[Me](),fill:u[we]()||n.get("axisLine.lineStyle.color"),textAlign:o[Se],textBaseline:o.textBaseline},position:f,rotation:o.rotation,silent:!0,z2:1}))}}},v=d.ifIgnoreOnTick=function(t,e,i){return t.scale.type===X&&typeof i===Ie&&!i(e,t.scale[ue](e))||e%(i+1)},g=d.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return d}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var xi=t("echarts");return xi.graphic=t("echarts/util/graphic"),xi.number=t("echarts/util/number"),xi.format=t("echarts/util/format"),t("echarts/chart/line"),t("echarts/chart/treemap"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/markPoint"),t("echarts/component/markLine"),t("echarts/component/timeline"),t("echarts/component/dataZoom"),t("echarts/component/visualMap"),t("echarts/component/toolbox"),t("zrender/vml/vml"),xi});