!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="moveTo",n="transform",r="category",a="dataToCoord",o="getAxis",s="dataToPoint",l="radius",u="../../util/graphic",c="dimensions",h="getItemModel",d="ordinal",f="retrieve",p="rotation",v="parent",m="inside",g="getShallow",y="stroke",x="lineWidth",_="applyTransform",b="getItemGraphicEl",w="normal",M="ecModel",T="componentIndex",S="queryComponents",C="option",A="concat",P="createElement",L="getContext",I="undefined",k="getTicks",z="getExtent",D="contain",O="opacity",R="position",E="center",B="middle",N="getBoundingRect",V="getFont",F="textAlign",G="textStyle",H="removeAll",Z="inherits",q="filter",W="number",j="function",U="isArray",X="replace",Y="zlevel",$="setStyle",Q="traverse",K="getDataParams",J="target",te="mouseout",ee="mouseover",ie="splice",ne="series",re="trigger",ae="defaults",oe="extend",se="remove",le="isObject",ue="colorStops",ce="update",he="create",de="getItemVisual",fe="dataIndex",pe="getData",ve="coordinateSystem",me="indexOf",ge="length",ye="bottom",xe="ignore",_e="eachComponent",be="storage",we="canvasSupported",Me="getHeight",Te="getWidth",Se="getModel",Ce="animation",Ae="resize",Pe="height",Le="string",Ie="prototype",ke="toLowerCase",ze="zrender/core/vector",De="zrender/core/util",Oe="zrender/core/env",Re="require";e("echarts/echarts",[Re,Oe,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","./util/model","./util/throttle","zrender",De,"zrender/tool/color","zrender/mixin/Eventful","zrender/core/timsort","./visual/seriesColor","./preprocessor/backwardCompat","./loading/default","./data/List","./model/Model","./util/number","./util/format","zrender/core/matrix",ze],function(t){function e(t){return function(e,i,n){e=e&&e[ke](),O[Ie][t].call(this,e,i,n)}}function i(){O.call(this)}function n(t,e,n){function r(t,e){return t.prio-e.prio}n=n||{},typeof e===Le&&(e=Ue[e]),this.id,this.group,this._dom=t;var a=this._zr=k.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n[Pe]});this._throttledZrFlush=I.throttle(z.bind(a.flush,a),17),this._theme=z.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new b(this),this._coordSysMgr=new w,O.call(this),this._messageCenter=new i,this._initEvents(),this[Ae]=z.bind(this[Ae],this),this._pendingActions=[],R(je,r),R(qe,r),a[Ce].on("frame",this._onframe,this)}function r(t,e,i){var n,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=L.parseFinder(r,e);for(var o=0;oe.get("hoverLayerThreshold")&&!x.node&&i[Q](function(t){t.isGroup||(t.useHoverLayer=!0)})}function m(t,e){var i=0;e.group[Q](function(t){"group"===t.type||t[xe]||i++});var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!x.node;r&&e.group[Q](function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))});var a=t.get("blendMode")||null;e.group[Q](function(t){t.isGroup||t[$]("blend",a)})}function g(t,e){var i=t.get("z"),n=t.get(Y);e.group[Q](function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[Y]=n))})}function y(t){function e(t,e){for(var i=0;i=0&&z.each(t,function(t){var r=t[ve];if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(i|=a.containPoint(e,t))}},this)},this),!!i},Ve.getVisual=function(t,e){var i=this._model;t=L.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel,r=n[pe](),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty(fe)?r.indexOfRawIndex(t[fe]):null;return null!=a?r[de](a,e):r.getVisual(e)};var Fe={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),n[he](this._model,this._api),c.call(this,e,i),h.call(this,e),n[ce](e,i),f.call(this,e,t),p.call(this,e,t);var a=e.get("backgroundColor")||"transparent",o=r.painter;if(o.isSingleCanvas&&o.isSingleCanvas())r.configLayer(0,{clearColor:a});else{if(!x[we]){var s=D.parse(a);a=D.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a[ue]||a.image?(r.configLayer(0,{clearColor:a}),this[Be]=!0,this._dom.style.background="transparent"):(this[Be]&&r.configLayer(0,{clearColor:null}),this[Be]=!1,this._dom.style.background=a)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[pe]().clearAllVisual()}),f.call(this,e,t),l.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t[pe]().clearAllVisual()}),f.call(this,e,t),l.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(d.call(this,e,t),l.call(this,"updateLayout",e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;u.call(this,"component",e),u.call(this,"chart",e),this.__lastOnlyGraphic?(E(this._componentsViews,function(i){var n=i.__model;n&&"graphic"===n.mainType&&(i.render(n,e,this._api,t),g(n,i))},this),this.__lastOnlyGraphic=!1):Fe[ce].call(this,t)}};Ve[Ae]=function(t){this[Ee]=!0,this._zr[Ae](t);var e=this._model&&this._model.resetOption("media");Fe[e?"prepareAndUpdate":ce].call(this),this._loadingFX&&this._loadingFX[Ae](),this[Ee]=!1,s.call(this)},Ve.showLoading=function(t,e){if(z[le](t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Xe[t]){var i=Xe[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},Ve.hideLoading=function(){this._loadingFX&&this._zr[se](this._loadingFX),this._loadingFX=null},Ve.makeActionFromEvent=function(t){var e=z[oe]({},t);return e.type=Ze[t.type],e},Ve.dispatchAction=function(t,e){if(z[le](e)||(e={silent:!!e}),He[t.type]){if(this[Ee])return void this._pendingActions.push(t);o.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&x.browser.weChat&&this._throttledZrFlush(),s.call(this,e.silent)}},Ve.on=e("on"),Ve.off=e("off"),Ve.one=e("one");var Ge=["click","dblclick",ee,te,"mousemove","mousedown","mouseup","globalout","contextmenu"];Ve._initEvents=function(){E(Ge,function(t){this._zr.on(t,function(e){var i,n=this[Se](),r=e[J];if("globalout"===t)i={};else if(r&&null!=r[fe]){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a[K](r[fe],r.dataType)||{}}else r&&r.eventData&&(i=z[oe]({},r.eventData));i&&(i.event=e,i.type=t,this[re](t,i))},this)},this),E(Ze,function(t,e){this._messageCenter.on(e,function(t){this[re](e,t)},this)},this)},Ve.isDisposed=function(){return this._disposed},Ve.clear=function(){this.setOption({series:[]},!0)},Ve.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;E(this._componentsViews,function(i){i.dispose(e,t)}),E(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete Ye[this.id]}},z.mixin(n,O);var He=[],Ze={},qe=[],We=[],je=[],Ue={},Xe={},Ye={},$e={},Qe=new Date-0,Ke=new Date-0,Je="_echarts_instance_",ti={version:"3.3.2",dependencies:{zrender:"3.2.2"}};ti.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+Qe++,Ye[r.id]=r,t.setAttribute&&t.setAttribute(Je,r.id),y(r),r},ti.connect=function(t){if(z[U](t)){var e=t;t=null,z.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Ke++,z.each(e,function(e){e.group=t})}return $e[t]=!0,t},ti.disConnect=function(t){$e[t]=!1},ti.dispose=function(t){z.isDom(t)?t=ti.getInstanceByDom(t):typeof t===Le&&(t=Ye[t]),t instanceof n&&!t.isDisposed()&&t.dispose()},ti.getInstanceByDom=function(t){var e=t.getAttribute(Je);return Ye[e]},ti.getInstanceById=function(t){return Ye[t]},ti.registerTheme=function(t,e){Ue[t]=e},ti.registerPreprocessor=function(t){We.push(t)},ti.registerProcessor=function(t,e){typeof t===j&&(e=t,t=B),qe.push({prio:t,func:e})},ti.registerAction=function(t,e,i){typeof e===j&&(i=e,e="");var n=z[le](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[ke](),e=t.event,He[n]||(He[n]={action:i,actionInfo:t}),Ze[e]=n},ti.registerCoordinateSystem=function(t,e){w.register(t,e)},ti.registerLayout=function(t,e){typeof t===j&&(e=t,t=V),je.push({prio:t,func:e,isLayout:!0})},ti.registerVisual=function(t,e){typeof t===j&&(e=t,t=G),je.push({prio:t,func:e})},ti.registerLoading=function(t,e){Xe[t]=e};var ei=T.parseClassType;return ti.extendComponentModel=function(t,e){var i=T;if(e){var n=ei(e);i=T.getClass(n.main,n.sub,!0)}return i[oe](t)},ti.extendComponentView=function(t,e){var i=C;if(e){var n=ei(e);i=C.getClass(n.main,n.sub,!0)}return i[oe](t)},ti.extendSeriesModel=function(t,e){var i=S;if(e){e="series."+e[X]("series.","");var n=ei(e);i=T.getClass(n.main,n.sub,!0)}return i[oe](t)},ti.extendChartView=function(t,e){var i=A;if(e){e[X]("series.","");var n=ei(e);i=A.getClass(n.main,!0)}return i[oe](t)},ti.setCanvasCreator=function(t){z.createCanvas=t},ti.registerVisual(F,t("./visual/seriesColor")),ti.registerPreprocessor(t("./preprocessor/backwardCompat")),ti.registerLoading("default",t("./loading/default")),ti.registerAction({type:"highlight",event:"highlight",update:"highlight"},z.noop),ti.registerAction({type:"downplay",event:"downplay",update:"downplay"},z.noop),ti.List=t("./data/List"),ti.Model=t("./model/Model"),ti.graphic=t("./util/graphic"),ti[W]=t("./util/number"),ti.format=t("./util/format"),ti.matrix=t("zrender/core/matrix"),ti.vector=t(ze),ti.color=t("zrender/tool/color"),ti.util={},E(["map","each",q,me,Z,"reduce",q,"bind","curry",U,"isString",le,"isFunction",oe,ae,"clone"],function(t){ti.util[t]=z[t]}),ti.PRIORITY={PROCESSOR:{FILTER:B,STATISTIC:N},VISUAL:{LAYOUT:V,GLOBAL:F,CHART:G,COMPONENT:H,BRUSH:Re}},ti}),e("echarts/chart/line",[Re,De,"../echarts","./line/LineSeries","./line/LineView","../visual/symbol","../layout/points","../processor/dataSample","../component/grid"],function(t){var e=t(De),i=t("../echarts"),n=i.PRIORITY;t("./line/LineSeries"),t("./line/LineView"),i.registerVisual(e.curry(t("../visual/symbol"),"line","circle","line")),i.registerLayout(e.curry(t("../layout/points"),"line")),i.registerProcessor(n.PROCESSOR.STATISTIC,e.curry(t("../processor/dataSample"),"line")),t("../component/grid")}),e("echarts/chart/bar",[Re,De,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid","../echarts","../component/grid"],function(t){var e=t(De);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t("../echarts");n.registerLayout(e.curry(i,"bar")),n.registerVisual(function(t){t.eachSeriesByType("bar",function(t){var e=t[pe]();e.setVisual("legendSymbol","roundRect")})}),t("../component/grid")}),e("echarts/chart/pie",[Re,De,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(De),i=t("../echarts");t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(e.curry(t("../visual/dataColor"),"pie")),i.registerLayout(e.curry(t("./pie/pieLayout"),"pie")),i.registerProcessor(e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/component/grid",[Re,"../util/graphic",De,"../echarts","../coord/cartesian/Grid","./axis"],function(t){var e=t("../util/graphic"),i=t(De),n=t("../echarts");t("../coord/cartesian/Grid"),t("./axis"),n.extendComponentView({type:"grid",render:function(t){this.group[H](),t.get("show")&&this.group.add(new e.Rect({shape:t[ve].getRect(),style:i[ae]({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e("echarts/component/legend",[Re,"./legend/LegendModel","./legend/legendAction","./legend/LegendView","../echarts","./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t("../echarts");e.registerProcessor(t("./legend/legendFilter"))}),e("echarts/component/title",[Re,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=t("../util/layout");e.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e.extendComponentView({type:"title",render:function(t,e,r){if(this.group[H](),t.get("show")){var a=this.group,o=t[Se](G),s=t[Se]("subtextStyle"),l=t.get(F),u=t.get("textBaseline"),c=new i.Text({style:{text:t.get("text"),textFont:o[V](),fill:o.getTextColor()},z2:10}),h=c[N](),d=t.get("subtext"),f=new i.Text({style:{text:d,textFont:s[V](),fill:s.getTextColor(),y:h[Pe]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),v=t.get("sublink");c.silent=!p,f.silent=!v,p&&c.on("click",function(){window.open(p,"_"+t.get(J))}),v&&f.on("click",function(){window.open(v,"_"+t.get("subtarget"))}),a.add(c),d&&a.add(f);var m=a[N](),g=t.getBoxLayoutParams();g.width=m.width,g[Pe]=m[Pe];var y=n.getLayoutRect(g,{width:r[Te](),height:r[Me]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===B&&(l=E),"right"===l?y.x+=y.width:l===E&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get(ye),u===E&&(u=B),u===ye?y.y+=y[Pe]:u===B&&(y.y+=y[Pe]/2),u=u||"top"),a.attr(R,[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c[$](x),f[$](x),m=a[N]();var _=y.margin,b=t.getItemStyle(["color",O]);b.fill=t.get("backgroundColor");var w=new i.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m[Pe]+_[0]+_[2]},style:b,silent:!0});i.subPixelOptimizeRect(w),a.add(w)}}})}),e("zrender/vml/vml",[Re,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))}),e("echarts/component/tooltip",[Re,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t("../echarts").registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),t("../echarts").registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/component/toolbox",[Re,"./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("echarts/scale/Time",[Re,De,"../util/number","../util/format","./Interval"],function(t){var e=t(De),i=t("../util/number"),n=t("../util/format"),r=t("./Interval"),a=r[Ie],o=Math.ceil,s=Math.floor,l=1e3,u=60*l,c=60*u,h=24*c,d=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]=i)){var n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[r.round(h(e[0]/n)*n),r.round(c(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t,e,i){s.niceExtent.call(this,t,e,i);var n=this._originalScale;n.__fixMin=e,n.__fixMax=i}});return i.each([D,"normalize"],function(t){p[Ie][t]=function(e){return e=f(e)/f(this.base),o[t].call(this,e)}}),p[he]=function(){return new p},p}),e(Oe,[],function(){function t(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),o&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:document[P]("canvas")[L]?!0:!1,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=10)}}var e={};return e=typeof navigator===I?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e("echarts/CoordinateSystem",[Re,De],function(t){function e(){this._coordinateSystems=[]}var i=t(De),n={};return e[Ie]={constructor:e,create:function(t,e){var r=[];i.each(n,function(i){var n=i[he](t,e);r=r[A](n||[])}),this._coordinateSystems=r},update:function(t,e){i.each(this._coordinateSystems,function(i){i[ce]&&i[ce](t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]},e}),e("echarts/ExtensionAPI",[Re,De],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(De),n=["getDom","getZr",Te,Me,"dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL",Se,"getOption"];return e}),e("echarts/model/Global",[Re,De,"../util/model","./Model","./Component","./globalDefault","./mixin/colorPalette"],function(t){function e(t,e){l.each(e,function(e,i){g.hasClass(i)||("object"==typeof e?t[i]=t[i]?l.merge(t[i],e,!1):l.clone(e):null==t[i]&&(t[i]=e))})}function i(t){t=t,this[C]={},this[C][x]=1,this._componentsMap={},this._seriesIndices=null,e(t,this._theme[C]),l.merge(t,y,!1),this.mergeOption(t)}function n(t,e){l[U](e)||(e=e?[e]:[]);var i={};return h(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e,i){var n=e.type?e.type:i?i.subType:g.determineSubType(t,e);return n}function a(t){return f(t,function(t){return t[T]})||[]}function o(t,e){return e.hasOwnProperty("subType")?d(t,function(t){return t.subType===e.subType}):t}function s(t){}var l=t(De),u=t("../util/model"),c=t("./Model"),h=l.each,d=l[q],f=l.map,p=l[U],v=l[me],m=l[le],g=t("./Component"),y=t("./globalDefault"),x="\x00_ec_inner",_=c[oe]({constructor:_,init:function(t,e,i,n){i=i||{},this[C]=null,this._theme=new c(i),this._optionManager=n},setOption:function(t,e){l.assert(!(x in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this[C]&&"recreate"!==t?(this.restoreData(),this.mergeOption(r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[ge]&&h(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,s){var c=u.normalizeToArray(t[e]),d=u.mappingToExists(o[e],c);u.makeIdAndName(d),h(d,function(t){var i=t[C];m(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=r(e,i,t.exist))});var f=n(o,s);i[e]=[],o[e]=[],h(d,function(t,n){var r=t.exist,a=t[C];if(l.assert(m(a)||r,"Empty component definition"),a){var s=g.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof s)r.name=t.keyInfo.name,r.mergeOption(a,this),r.optionUpdated(a,!1);else{var u=l[oe]({dependentModels:f,componentIndex:n},t.keyInfo);r=new s(a,this,this,u),l[oe](r,u),r.init(a,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o[e][n]=r,i[e][n]=r[C]},this),e===ne&&(this._seriesIndices=a(o[ne]))}var i=this[C],o=this._componentsMap,s=[];h(t,function(t,e){null!=t&&(g.hasClass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),g.topologicalTravel(s,g.getAllClassMainTypes(),e,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=l.clone(this[C]);return h(t,function(e,i){if(g.hasClass(i)){for(var e=u.normalizeToArray(e),n=e[ge]-1;n>=0;n--)u.isIdInner(e[n])&&e[ie](n,1);t[i]=e}}),delete t[x],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[ge])return[];var s;if(null!=i)p(i)||(i=[i]),s=d(f(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=p(n);s=d(a,function(t){return l&&v(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=p(r);s=d(a,function(t){return u&&v(r,t.name)>=0||!u&&t.name===r})}else s=a;return o(s,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[q]?d(e,t[q]):e}var n=t.query,r=t.mainType,a=e(n),s=a?this[S](a):this._componentsMap[r];return i(o(s,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===j)i=e,e=t,h(n,function(t,n){h(t,function(t,r){e.call(i,n,t,r)})});else if(l.isString(t))h(n[t],e,i);else if(m(t)){var r=this.findComponents(t);h(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[ne];return d(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[ne][t]},getSeriesByType:function(t){var e=this._componentsMap[ne];return d(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[ne].slice()},eachSeries:function(t,e){s(this),h(this._seriesIndices,function(i){var n=this._componentsMap[ne][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){h(this._componentsMap[ne],t,e)},eachSeriesByType:function(t,e,i){s(this),h(this._seriesIndices,function(n){var r=this._componentsMap[ne][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return h(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return s(this),l[me](this._seriesIndices,t[T])<0},filterSeries:function(t,e){s(this);var i=d(this._componentsMap[ne],t,e);this._seriesIndices=a(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=a(t[ne]);var e=[];h(t,function(t,i){e.push(i)}),g.topologicalTravel(e,g.getAllClassMainTypes(),function(e){h(t[e],function(t){t.restoreData()})})}});return l.mixin(_,t("./mixin/colorPalette")),_}),e("echarts/model/Component",[Re,"./Model",De,"../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[Ie].dependencies||[])}),n.map(e,function(t){return o.parseClassType(t).main})}var i=t("./Model"),n=t(De),r=Array[Ie].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[oe]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,r){i.call(this,t,e,n,r),this.uid=a.getUID("componentModel")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme(); n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this[C],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[C],t,e)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[Ie].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[ge]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption},getReferringComponents:function(t){return this[M][S]({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});return o.enableClassManagement(l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/OptionManager",[Re,De,"../util/model","./Component"],function(t){function e(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function i(t,e,i){var n,r,a=[],o=[],l=t.timeline;if(t.baseOption&&(r=t.baseOption),(l||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var u=t.media;c(u,function(t){t&&t[C]&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=l),c([r][A](a)[A](s.map(o,function(t){return t[C]})),function(t){c(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:a,mediaDefault:n,mediaList:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][ke]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasClass(i)){e=l.normalizeToArray(e),n=l.normalizeToArray(n);var r=l.mappingToExists(n,e);t[i]=d(r,function(t){return t[C]&&t.exist?f(t.exist,t[C],!0):t.exist||t[C]})}else t[i]=f(n,e,!0)}})}var s=t(De),l=t("../util/model"),u=t("./Component"),c=s.each,h=s.clone,d=s.map,f=s.merge,p=/^(min|max)?(.+)$/;return e[Ie]={constructor:e,setOption:function(t,e){t=h(t,!0);var n=this._optionBackup,r=i.call(this,t,e,!n);this._newBaseOption=r.baseOption,n?(o(n.baseOption,r.baseOption),r.timelineOptions[ge]&&(n.timelineOptions=r.timelineOptions),r.mediaList[ge]&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=d(e.timelineOptions,h),this._mediaList=d(e.mediaList,h),this._mediaDefault=h(e.mediaDefault),this._currentMediaIndices=[],h(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[ge]){var n=t.getComponent("timeline");n&&(e=h(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api[Te](),e=this._api[Me](),i=this._mediaList,r=this._mediaDefault,o=[],s=[];if(!i[ge]&&!r)return s;for(var l=0,u=i[ge];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[ge]&&r&&(o=[-1]),o[ge]&&!a(o,this._currentMediaIndices)&&(s=d(o,function(t){return h(-1===t?r[C]:i[t][C])})),this._currentMediaIndices=o,s}},e}),e("echarts/view/Component",[Re,"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[Ie]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[Ie];return a.updateView=a.updateLayout=a.updateVisual=function(){},n.enableClassExtend(r),n.enableClassManagement(r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[Re,"zrender/container/Group","../util/component","../util/clazz","../util/model",De],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[re](e),"group"===t.type))for(var n=0;n=0?n():c=setTimeout(n,-a),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h},t.createOrUpdate=function(r,a,o,s){var l=r[a];if(l){var u=l[e]||l,c=l[n],h=l[i];if(h!==o||c!==s){if(null==o||!s)return r[a]=u;l=r[a]=t.throttle(u,o,"debounce"===s),l[e]=u,l[n]=s,l[i]=o}return l}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/util/graphic",[Re,De,"zrender/tool/path","zrender/graphic/Path","zrender/tool/color","zrender/core/matrix",ze,"zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Ring","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/CompoundPath","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient","zrender/core/BoundingRect"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===Le?C.lift(t,-.1):t}function n(t){if(t.__hoverStlDirty){var n=t.style[y],r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(e(r)?i(r):null),a[y]=a[y]||(e(n)?i(n):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function r(t){t.__isHover||(n(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t[$](t.__hoverStl),t.z2+=1),t.__isHover=!0)}function a(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t[$](e),t.z2-=1),t.__isHover=!1}}function o(t){"group"===t.type?t[Q](function(t){"group"!==t.type&&r(t)}):r(t)}function s(t){"group"===t.type?t[Q](function(t){"group"!==t.type&&a(t)}):a(t)}function l(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&n(t)}function u(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&o(this)}function c(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&s(this)}function h(){this.__isEmphasis=!0,o(this)}function d(){this.__isEmphasis=!1,s(this)}function f(t,e,i,n,r,a){typeof r===j&&(a=r,r=null);var o=n&&(n.ifEnableAnimation?n.ifEnableAnimation():n[g](Ce));if(o){var s=t?"Update":"",l=n&&n[g]("animationDuration"+s),u=n&&n[g]("animationEasing"+s),c=n&&n[g]("animationDelay"+s);typeof c===j&&(c=c(r)),l>0?e.animateTo(i,l,c||0,u,a):(e.attr(i),a&&a())}else e.attr(i),a&&a()}var b=t(De),M=t("zrender/tool/path"),T=Math.round,S=t("zrender/graphic/Path"),C=t("zrender/tool/color"),A=t("zrender/core/matrix"),P=t(ze),L={};return L.Group=t("zrender/container/Group"),L.Image=t("zrender/graphic/Image"),L.Text=t("zrender/graphic/Text"),L.Circle=t("zrender/graphic/shape/Circle"),L.Sector=t("zrender/graphic/shape/Sector"),L.Ring=t("zrender/graphic/shape/Ring"),L.Polygon=t("zrender/graphic/shape/Polygon"),L.Polyline=t("zrender/graphic/shape/Polyline"),L.Rect=t("zrender/graphic/shape/Rect"),L.Line=t("zrender/graphic/shape/Line"),L.BezierCurve=t("zrender/graphic/shape/BezierCurve"),L.Arc=t("zrender/graphic/shape/Arc"),L.CompoundPath=t("zrender/graphic/CompoundPath"),L.LinearGradient=t("zrender/graphic/LinearGradient"),L.RadialGradient=t("zrender/graphic/RadialGradient"),L.BoundingRect=t("zrender/core/BoundingRect"),L.extendShape=function(t){return S[oe](t)},L.extendPath=function(t,e){return M.extendFromString(t,e)},L.makePath=function(t,e,i,n){var r=M.createFromString(t,e),a=r[N]();if(i){var o=a.width/a[Pe];if(n===E){var s,l=i[Pe]*o;l<=i.width?s=i[Pe]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[Pe]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[Pe]=s}this.resizePath(r,i)}return r},L.mergePath=M.mergePath,L.resizePath=function(t,e){if(t[_]){var i=t[N](),n=i.calculateTransform(e);t[_](n)}},L.subPixelOptimizeLine=function(t){var e=L.subPixelOptimize,i=t.shape,n=t.style[x];return T(2*i.x1)===T(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),T(2*i.y1)===T(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},L.subPixelOptimizeRect=function(t){var e=L.subPixelOptimize,i=t.shape,n=t.style[x],r=i.x,a=i.y,o=i.width,s=i[Pe];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[Pe]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},L.subPixelOptimize=function(t,e,i){var n=T(2*t);return(n+T(e))%2===0?n/2:(n+(i?1:-1))/2},L.setHoverStyle=function(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t[Q](function(t){"group"!==t.type&&l(t,e)}):l(t,e),t.on(ee,u).on(te,c),t.on("emphasis",h).on(w,d)},L.setText=function(t,e,i){var n=e[g](R)||m,r=n[me](m)>=0?"white":i,a=e[Se](G);b[oe](t,{textDistance:e[g]("distance")||5,textFont:a[V](),textPosition:n,textFill:a.getTextColor()||r})},L.updateProps=function(t,e,i,n,r){f(!0,t,e,i,n,r)},L.initProps=function(t,e,i,n,r){f(!1,t,e,i,n,r)},L.getTransform=function(t,e){for(var i=A.identity([]);t&&t!==e;)A.mul(i,t.getLocalTransform(),i),t=t[v];return i},L[_]=function(t,e,i){return i&&(e=A.invert([],e)),P[_]([],t,e)},L.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===ye?r:0];return a=L[_](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?ye:"top"},L.groupTransition=function(t,e,i){function n(t){var e={};return t[Q](function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:P.clone(t[R]),rotation:t[p]};return t.shape&&(e.shape=b[oe]({},t.shape)),e}if(t&&e){var a=n(t);e[Q](function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),L.updateProps(t,n,i,t[fe])}}})}},L}),e("echarts/util/model",[Re,"./format","./number","../model/Model",De],function(t){function e(t,e){return t&&t.hasOwnProperty(e)}var i=t("./format"),n=t("./number"),r=t("../model/Model"),a=t(De),o=a.each,s=a[le],l={};return l.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},l.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t[w]=t[w]||{};o(e,function(t){var e=a[f](i[t],n[t]);null!=e&&(i[t]=e)})}},l.LABEL_OPTIONS=[R,"show",G,"distance","formatter"],l.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},l.isDataItemOption=function(t){return s(t)&&!(t instanceof Array)},l.converDataValue=function(t,e){var i=e&&e.type;return i===d?t:("time"!==i||isFinite(t)||null==t||"-"===t||(t=+n.parseDate(t)),null==t||""===t?0/0:+t)},l.createDataFormatModel=function(t,e){var i=new r;return a.mixin(i,l.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i[pe]=function(){return t},i},l.dataFormatMixin={getDataParams:function(t,e){var i=this[pe](e),n=this.seriesIndex,r=this.name,a=this.getRawValue(t,e),o=i.getRawIndex(t),s=i.getName(t,!0),l=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:this.mainType===ne?this.subType:null,seriesIndex:n,seriesName:r,name:s,dataIndex:o,data:l,dataType:e,value:a,color:i[de](t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,r){e=e||w;var a=this[pe](n),o=a[h](t),s=this[K](t,n);null!=r&&s.value instanceof Array&&(s.value=s.value[r]);var l=o.get(["label",e,"formatter"]);return typeof l===j?(s.status=e,l(s)):typeof l===Le?i.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this[pe](e),n=i.getRawDataItem(t);return null!=n?!s(n)||n instanceof Array?n:n.value:void 0},formatTooltip:a.noop},l.mappingToExists=function(t,e){e=(e||[]).slice();var i=a.map(t||[],function(t){return{exist:t}});return o(e,function(t,n){if(s(t)){for(var r=0;r=i[ge]&&i.push({option:t})}}),i},l.makeIdAndName=function(t){var e={};o(t,function(t){var i=t.exist;i&&(e[i.id]=t)}),o(t,function(t){var i=t[C];a.assert(!i||null==i.id||!e[i.id]||e[i.id]===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(e[i.id]=t),!t.keyInfo&&(t.keyInfo={})}),o(t,function(t){var i=t.exist,n=t[C],r=t.keyInfo;if(s(n)){if(r.name=null!=n.name?n.name+"":i?i.name:"\x00-",i)r.id=i.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(e[r.id])}e[r.id]=t}})},l.isIdInner=function(t){return s(t)&&t.id&&0===(t.id+"")[me]("\x00_ec_\x00")},l.compressBatches=function(t,e){function i(t,e,i){for(var n=0,r=t[ge];r>n;n++)for(var a=t[n].seriesId,o=l.normalizeToArray(t[n][fe]),s=i&&i[a],u=0,c=o[ge];c>u;u++){var h=o[u];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[ge]&&i.push({seriesId:r,dataIndex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},l.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e[fe]?a[U](e[fe])?a.map(e[fe],function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e[fe]):null!=e.name?a[U](e.name)?a.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},l.parseFinder=function(t,i,n){if(a.isString(i)){var r={};r[i+"Index"]=0,i=r}var s=n&&n.defaultMainType;!s||e(i,s+"Index")||e(i,s+"Id")||e(i,s+"Name")||(i[s+"Index"]=0);var l={};return o(i,function(e,n){var e=i[n];if(n===fe||"dataIndexInside"===n)return void(l[n]=e);var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],a=r[1],o=r[2];if(a&&o){var s={mainType:a};s[o[ke]()]=e;var u=t[S](s);l[a+"Models"]=u,l[a+"Model"]=u[0]}}),l},l}),e("echarts/model/Series",[Re,De,"../util/format","../util/model","./Component","./mixin/colorPalette",Oe,"../util/layout"],function(t){var e=t(De),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=t("./mixin/colorPalette"),o=t(Oe),s=t("../util/layout"),l=i.encodeHTML,u=i.addCommas,c=r[oe]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,i){this.seriesIndex=this[T],this.mergeDefaultAndTheme(t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){var r=this.layoutMode,a=r?s.getLayoutParams(t):{};e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,n.LABEL_OPTIONS),this.fillDataTextStyle(t.data),r&&s.mergeLayoutParam(t,a,r)},mergeOption:function(t,i){t=e.merge(this[C],t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&s.mergeLayoutParam(this[C],t,n);var r=this.getInitialData(t,i);r&&(this._data=r,this._dataBeforeProcessed=r.cloneShallow())},fillDataTextStyle:function(t){if(t)for(var e=0;e',p=this.name;return"\x00-"===p&&(p=""),n?f+l(this.name)+" : "+s:(p&&l(p)+"
")+f+(c?l(c)+" : "+s:s)},ifEnableAnimation:function(){if(o.node)return!1;var t=this[g](Ce);return t&&this[pe]().count()>this[g]("animationThreshold")&&(t=!1),t},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(t,e){var i=this[M],n=a.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipDataIndex:null,getTooltipPosition:null});return e.mixin(c,n.dataFormatMixin),e.mixin(c,a),c}),e("zrender/zrender",[Re,"./core/guid","./core/env","./core/util","./Handler","./Storage","./animation/Animation","./dom/HandlerProxy","./Painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./core/util"),a=t("./Handler"),o=t("./Storage"),s=t("./animation/Animation"),l=t("./dom/HandlerProxy"),u=!n[we],c={canvas:t("./Painter")},h={},d={};d.version="3.2.2",d.init=function(t,e){var n=new f(i(),t,e);return h[n.id]=n,n},d.dispose=function(t){if(t)t.dispose();else{for(var e in h)h.hasOwnProperty(e)&&h[e].dispose();h={}}return d},d.getInstance=function(t){return h[t]},d.registerPainter=function(t,e){c[t]=e};var f=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,d=new o,f=i.renderer;if(u){if(!c.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&c[f]||(f="canvas");var p=new c[f](e,d,i);this[be]=d,this.painter=p;var v=n.node?null:new l(p.getViewportRoot());this.handler=new a(d,p,v,p.root),this[Ce]=new s({stage:{update:r.bind(this.flush,this)}}),this[Ce].start(),this._needsRefresh;var m=d.delFromMap,g=d.addToMap;d.delFromMap=function(t){var e=d.get(t);m.call(d,t),e&&e.removeSelfFromZr(h)},d.addToMap=function(t){g.call(d,t),t.addSelfToZr(h)}};return f[Ie]={constructor:f,getId:function(){return this.id},add:function(t){this[be].addRoot(t),this._needsRefresh=!0},remove:function(t){this[be].delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter[Ae](t.width,t[Pe]),this.handler[Ae]()},clearAnimation:function(){this[Ce].clear()},getWidth:function(){return this.painter[Te]()},getHeight:function(){return this.painter[Me]()},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler[re](t,e)},clear:function(){this[be].delRoot(),this.painter.clear()},dispose:function(){this[Ce].stop(),this.clear(),this[be].dispose(),this.painter.dispose(),this.handler.dispose(),this[Ce]=this[be]=this.painter=this.handler=null,e(this.id)}},d}),e(De,[Re],function(){function t(e){if(null==e||"object"!=typeof e)return e;var i=e,n=D.call(e);if("[object Array]"===n){i=[];for(var r=0,a=e[ge];a>r;r++)i[r]=t(e[r])}else if(z[n])i=e.constructor.from(e);else if(!k[n]&&!M(e)){i={};for(var o in e)e.hasOwnProperty(o)&&(i[o]=t(e[o]))}return i}function e(i,n,r){if(!b(n)||!b(i))return r?t(n):i;for(var a in n)if(n.hasOwnProperty(a)){var o=i[a],s=n[a];!b(s)||!b(o)||y(s)||y(o)||M(s)||M(o)||w(s)||w(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[ge];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document[P]("canvas")}function o(){return I||(I=F.createCanvas()[L]("2d")),I}function s(t,e){if(t){if(t[me])return t[me](e);for(var i=0,n=t[ge];n>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var n=t[Ie];i[Ie]=e[Ie],t[Ie]=new i;for(var r in n)t[Ie][r]=n[r];t[Ie].constructor=t,t.superClass=e}function u(t,e,i){t=Ie in t?t[Ie]:t,e=Ie in e?e[Ie]:e,r(t,e,i)}function c(t){return t?typeof t==Le?!1:typeof t[ge]==W:void 0}function h(t,e,i){if(t&&e)if(t.forEach&&t.forEach===R)t.forEach(e,i);else if(t[ge]===+t[ge])for(var n=0,r=t[ge];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 d(t,e,i){if(t&&e){if(t.map&&t.map===N)return t.map(e,i);for(var n=[],r=0,a=t[ge];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function f(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===V)return t.reduce(e,i,n);for(var r=0,a=t[ge];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function p(t,e,i){if(t&&e){if(t[q]&&t[q]===E)return t[q](e,i);for(var n=[],r=0,a=t[ge];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[ge];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function m(t,e){var i=B.call(arguments,2);return function(){return t.apply(e,i[A](B.call(arguments)))}}function g(t){var e=B.call(arguments,1);return function(){return t.apply(this,e[A](B.call(arguments)))}}function y(t){return"[object Array]"===D.call(t)}function x(t){return typeof t===j}function _(t){return"[object String]"===D.call(t)}function b(t){var e=typeof t;return e===j||!!t&&"object"==e}function w(t){return!!k[D.call(t)]}function M(t){return"object"==typeof t&&typeof t.nodeType===W&&"object"==typeof t.ownerDocument}function T(){for(var t=0,e=arguments[ge];e>t;t++)if(null!=arguments[t])return arguments[t]}function S(){return Function.call.apply(B,arguments)}function C(t,e){if(!t)throw new Error(e)}var I,k={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},z={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},D=Object[Ie].toString,O=Array[Ie],R=O.forEach,E=O[q],B=O.slice,N=O.map,V=O.reduce,F={inherits:l,mixin:u,clone:t,merge:e,mergeAll:i,extend:n,defaults:r,getContext:o,createCanvas:a,indexOf:s,slice:S,find:v,isArrayLike:c,each:h,map:d,reduce:f,filter:p,bind:m,curry:g,isArray:y,isString:_,isObject:b,isFunction:x,isBuildInObject:w,isDom:M,retrieve:T,assert:C,noop:function(){}};return F}),e("zrender/mixin/Eventful",[Re],function(){var t=Array[Ie].slice,e=function(){this._$handlers={}};return e[Ie]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;rr;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][ge]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[ge];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[ge],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[ie](o,1),a--):o++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var i=arguments,n=i[ge];n>4&&(i=t.call(i,1,i[ge]-1));for(var r=i[i[ge]-1],a=this._$handlers[e],o=a[ge],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[ie](s,1),o--):s++}}return this}},e}),e("zrender/tool/color",[Re],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[ge]&&"%"===e.charAt(e[ge]-1)?parseFloat(e)/100*255:parseInt(e,10))}function r(t){return i(t[ge]&&"%"===t.charAt(t[ge]-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[X](/ /g,"")[ke]();if(e in g)return g[e].slice();if("#"!==e.charAt(0)){var i=e[me]("("),a=e[me](")");if(-1!==i&&a+1===e[ge]){var o=e.substr(0,i),s=e.substr(i+1,a-(i+1)).split(","),u=1;switch(o){case"rgba":if(4!==s[ge])return;u=r(s.pop());case"rgb":if(3!==s[ge])return;return[n(s[0]),n(s[1]),n(s[2]),u];case"hsla":if(4!==s[ge])return;return s[3]=r(s[3]),l(s);case"hsl":if(3!==s[ge])return;return l(s);default:return}}}else{if(4===e[ge]){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[ge]){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[ge]&&(u[3]=e[3]),u}function u(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function c(t,e){var i=s(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return m(i,4===i[ge]?"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[ge]&&e>=0&&1>=e){n=n||[0,0,0,0];var r=e*(i[ge]-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[ge]&&e>=0&&1>=e){var a=e*(n[ge]-1),l=Math.floor(a),u=Math.ceil(a),c=s(n[l]),h=s(n[u]),d=a-l,f=m([t(o(c[0],h[0],d)),t(o(c[1],h[1],d)),t(o(c[2],h[2],d)),i(o(c[3],h[3],d))],"rgba");return r?{color:f,leftIndex:l,rightIndex:u,value:a}:f}}function p(t,i,n,a){return t=s(t),t?(t=u(t),null!=i&&(t[0]=e(i)),null!=n&&(t[1]=r(n)),null!=a&&(t[2]=r(a)),m(l(t),"rgba")):void 0}function v(t,e){return t=s(t),t&&null!=e?(t[3]=i(e),m(t,"rgba")):void 0}function m(t,e){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}var g={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:s,lift:c,toHex:h,fastMapToColor:d,mapToColor:f,modifyHSL:p,modifyAlpha:v,stringify:m}}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=l;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e]; t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,l=n;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;s>l&&a(t,e[i+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[i+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;s>l&&a(t,e[i+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=n-r;s>l&&a(t,e[i+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])<0?l=c:o=c+1}return l}function o(t,e){function i(t,e){d[y]=t,f[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&f[t-1]<=f[t]+f[t+1]||t>=2&&f[t-2]<=f[t]+f[t-1])f[t-1]f[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&f[t-1]=o?l(n,o,s,u):h(n,o,s,u)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)x[l]=t[i+l];var c=0,h=o,d=i;if(t[d++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];return void(t[d+s]=x[c])}for(var f,v,m,g=p;;){f=0,v=0,m=!1;do if(e(t[h],x[c])<0){if(t[d++]=t[h++],v++,f=0,0===--s){m=!0;break}}else if(t[d++]=x[c++],f++,v=0,1===--n){m=!0;break}while(g>(f|v));if(m)break;do{if(f=a(t[h],x,c,n,0,e),0!==f){for(l=0;f>l;l++)t[d+l]=x[c+l];if(d+=f,c+=f,n-=f,1>=n){m=!0;break}}if(t[d++]=t[h++],0===--s){m=!0;break}if(v=r(x[c],t,h,s,0,e),0!==v){for(l=0;v>l;l++)t[d+l]=t[h+l];if(d+=v,h+=v,s-=v,0===s){m=!0;break}}if(t[d++]=x[c++],1===--n){m=!0;break}g--}while(f>=u||v>=u);if(m)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(l=0;s>l;l++)t[d+l]=t[h+l];t[d+s]=x[c]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[d+l]=x[c+l]}}else for(l=0;n>l;l++)t[d+l]=x[c+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)x[l]=t[o+l];var c=i+n-1,h=s-1,d=o+s-1,f=0,v=0;if(t[d--]=t[c--],0!==--n){if(1===s){for(d-=n,c-=n,v=d+1,f=c+1,l=n-1;l>=0;l--)t[v+l]=t[f+l];return void(t[d]=x[h])}for(var m=p;;){var g=0,y=0,_=!1;do if(e(x[h],t[c])<0){if(t[d--]=t[c--],g++,y=0,0===--n){_=!0;break}}else if(t[d--]=x[h--],y++,g=0,1===--s){_=!0;break}while(m>(g|y));if(_)break;do{if(g=n-a(x[h],t,i,n,n-1,e),0!==g){for(d-=g,c-=g,n-=g,v=d+1,f=c+1,l=g-1;l>=0;l--)t[v+l]=t[f+l];if(0===n){_=!0;break}}if(t[d--]=x[h--],1===--s){_=!0;break}if(y=s-r(t[c],x,0,s,s-1,e),0!==y){for(d-=y,h-=y,s-=y,v=d+1,f=h+1,l=0;y>l;l++)t[v+l]=x[f+l];if(1>=s){_=!0;break}}if(t[d--]=t[c--],0===--n){_=!0;break}m--}while(g>=u||y>=u);if(_)break;0>m&&(m=0),m+=2}if(p=m,1>p&&(p=1),1===s){for(d-=n,c-=n,v=d+1,f=c+1,l=n-1;l>=0;l--)t[v+l]=t[f+l];t[d]=x[h]}else{if(0===s)throw new Error;for(f=d-(s-1),l=0;s>l;l++)t[f+l]=x[l]}}else for(f=d-(s-1),l=0;s>l;l++)t[f+l]=x[l]}var d,f,p=u,v=0,m=c,g=0,y=0;v=t[ge],2*c>v&&(m=v>>>1);var x=[];g=120>v?5:1542>v?10:119151>v?19:40,d=[],f=[],this.mergeRuns=n,this.forceMergeRuns=o,this.pushRun=i}function s(i,r,a,s){a||(a=0),s||(s=i[ge]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),d=t(u);do{if(c=e(i,a,s,r),d>c){var f=u;f>d&&(f=d),n(i,a,a+f,a+c,r),c=f}h.pushRun(a,c),h.mergeRuns(),u-=c,a+=c}while(0!==u);h.forceMergeRuns()}}var l=32,u=7,c=256;return s}),e("echarts/visual/seriesColor",[Re,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t){function i(i){var n=(i.visualColorAccessPath||"itemStyle.normal.color").split("."),r=i[pe](),a=i.get(n)||i.getColorFromPalette(i.get("name"));r.setVisual("color",a),t.isSeriesFiltered(i)||(typeof a!==j||a instanceof e||r.each(function(t){r.setItemVisual(t,"color",a(i[K](t)))}),r.each(function(t){var e=r[h](t),i=e.get(n,!0);null!=i&&r.setItemVisual(t,"color",i)}))}t.eachRawSeries(i)}}),e("echarts/preprocessor/backwardCompat",[Re,De,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n=0?new l.constructor(a[s][ge]):a[s]}return n}var n=I,r=typeof window===I?global:window,a=typeof r.Float64Array===n?Array:r.Float64Array,o=typeof r.Int32Array===n?Array:r.Int32Array,s={"float":a,"int":o,ordinal:Array,number:Array,time:Array},l=t("../model/Model"),u=t("./DataDiffer"),f=t(De),p=t("../util/model"),v=f[le],m=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],g=function(t,e){f.each(m[A](e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},y=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r0&&(M+="__ec__"+h[w]),h[w]++),M&&(u[d]=M)}this._nameList=e,this._idList=u},x.count=function(){return this.indices[ge]},x.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=n[t]&&n[t][r];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}}return a},x.getValues=function(t,e,i){var n=[];f[U](t)||(i=e,e=t,t=this[c]);for(var r=0,a=t[ge];a>r;r++)n.push(this.get(t[r],e,i));return n},x.hasValue=function(t){for(var e=this[c],i=this._dimensionInfos,n=0,r=e[ge];r>n;n++)if(i[e[n]].type!==d&&isNaN(this.get(e[n],t)))return!1;return!0},x.getDataExtent=function(t,e){t=this.getDimension(t);var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-1/0,l=0,u=this.count();u>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+!!e]=[o,s]}return[1/0,-1/0]},x.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},x[me]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[ge];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},x.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[ge];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},x.indexOfRawIndex=function(t){var e=this.indices,i=e[t];if(null!=i&&i===t)return t;for(var n=0,r=e[ge]-1;r>=n;){var a=(n+r)/2|0;if(e[a]t))return a;r=a-1}}return-1},x.indexOfNearest=function(t,e,i,n){var r=this._storage,a=r[t];null==n&&(n=1/0);var o=-1;if(a)for(var s=Number.MAX_VALUE,l=0,u=this.count();u>l;l++){var c=e-this.get(t,l,i),h=Math.abs(c);n>=c&&(s>h||h===s&&c>0)&&(s=h,o=l)}return o},x.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},x.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},x.getName=function(t){return this._nameList[this.indices[t]]||""},x.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},x.each=function(t,i,n,r){typeof t===j&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=t[ge],s=this.indices;r=r||this;for(var l=0;lu;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},x.filterSelf=function(t,i,n,r){typeof t===j&&(r=n,n=i,i=t,t=[]),t=f.map(e(t),this.getDimension,this);var a=[],o=[],s=t[ge],l=this.indices;r=r||this;for(var u=0;uh;h++)o[h]=this.get(t[h],u,n);o[h]=u,c=i.apply(r,o)}c&&a.push(l[u])}return this.indices=a,this._extent={},this},x.mapArray=function(t,e,i,n){typeof t===j&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},x.map=function(t,n,r,a){t=f.map(e(t),this.getDimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[ge]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===W&&(u[0]=i,i=u);for(var r=0;rv;v+=d){d>p-v&&(d=p-v,c[ge]=d);for(var m=0;d>m;m++){var g=l[v+m];c[m]=f[g],h[m]=g}var y=n(c),g=h[r(c,y)||0];f[g]=y,u.push(g)}return a},x[h]=function(t){var e=this.hostModel;return t=this.indices[t],new l(this._rawData[t],e,e&&e[M])},x.diff=function(t){var e,i=this._idList,n=t&&t._idList,r="e\x00\x00";return new u(t?t.indices:[],this.indices,function(t){return null!=(e=n[t])?e:r+t},function(t){return null!=(e=i[t])?e:r+t})},x.getVisual=function(t){var e=this._visual;return e&&e[t]},x.setVisual=function(t,e){if(v(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},x.setLayout=function(t,e){if(v(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},x.getLayout=function(t){return this._layout[t]},x.getItemLayout=function(t){return this._itemLayouts[t]},x.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?f[oe](this._itemLayouts[t]||{},e):e},x.clearItemLayouts=function(){this._itemLayouts[ge]=0},x[de]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},x.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,v(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i},x.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var _=function(t){t.seriesIndex=this.seriesIndex,t[fe]=this[fe],t.dataType=this.dataType};return x.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e[fe]=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e[Q](_,e)),this._graphicEls[t]=e},x[b]=function(t){return this._graphicEls[t]},x.eachItemGraphicEl=function(t,e){f.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},x.cloneShallow=function(){var t=f.map(this[c],this.getDimensionInfo,this),e=new y(t,this.hostModel);return e._storage=this._storage,g(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=f[oe]({},this._extent)),e},x.wrapMethod=function(t,e){var i=this[t];typeof i===j&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t][A](f.slice(arguments)))})},x.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],x.CHANGABLE_METHODS=["filterSelf"],y}),e("echarts/util/number",[Re],function(){function t(t){return t[X](/^\s+/,"")[X](/\s+$/,"")}var e={},i=1e-4;return e.linearMap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},e.parsePercent=function(e,i){switch(e){case E:case B:e="50%";break;case"left":case"top":e="0%";break;case"right":case ye:e="100%"}return typeof e===Le?t(e).match(/%$/)?parseFloat(e)/100*i:parseFloat(e):null==e?0/0:+e},e.round=function(t,e){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),+(+t).toFixed(e)},e.asc=function(t){return t.sort(function(t,e){return t-e}),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},e.getPrecisionSafe=function(t){var e=t.toString(),i=e[me](".");return 0>i?0:e[ge]-1-i},e.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-i&&i>t},e.parseDate=function(t){if(t instanceof Date)return t;if(typeof t===Le){var e=new Date(t);return isNaN(+e)&&(e=new Date(new Date(t[X](/-/g,"/"))-new Date("1970/01/01"))),e}return new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},e.nice=function(t,i){var n,r=e.quantity(t),a=t/r;return n=i?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,n*r},e.reformIntervals=function(t){function e(t,i,n){return t.interval[n]s;s++)a[s]<=i&&(a[s]=i,o[s]=s?1:1-n),i=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t[ie](r,1):r++}return t},e}),e("echarts/util/format",[Re,De,"./number","zrender/contain/text"],function(t){var e=t(De),i=t("./number"),n=t("zrender/contain/text"),r={};r.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][X](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[ge]>1?"."+t[1]:""))},r.toCamelCase=function(t,e){return t=(t||"")[ke]()[X](/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},r.normalizeCssArray=function(t){var e=t[ge];return typeof t===W?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},r.encodeHTML=function(t){return String(t)[X](/&/g,"&")[X](//g,">")[X](/"/g,""")[X](/'/g,"'")};var a=["a","b","c","d","e","f","g"],o=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formatTpl=function(t,i){e[U](i)||(i=[i]);var n=i[ge];if(!n)return"";for(var r=i[0].$vars||[],s=0;su;u++)for(var c=0;ct?"0"+t:t};return r.formatTime=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),l=n.getHours(),u=n.getMinutes(),c=n.getSeconds();return t=t[X]("MM",s(a))[ke]()[X]("yyyy",r)[X]("yy",r%100)[X]("dd",s(o))[X]("d",o)[X]("hh",s(l))[X]("h",l)[X]("mm",s(u))[X]("m",u)[X]("ss",s(c))[X]("s",c)},r.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},r.truncateText=n.truncateText,r}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===I?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(ze,[],function(){var t=typeof Float32Array===I?Array:Float32Array,e={create:function(e,i){var n=new t(2);return null==e&&(e=0),null==i&&(i=0),n[0]=e,n[1]=i,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[ge]=e.len,e.lengthSquare=e.lenSquare,e.dist=e.distance,e.distSquare=e.distanceSquare,e}),e("echarts/chart/line/LineView",[Re,De,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",u,"../../util/model","./poly","../../view/Chart"],function(t){function e(t,e){if(t[ge]===e[ge]){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function h(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale[z]()[0],o=n.dim,u="x"===o||o===l?1:0;return e.mapArray([o],function(n,l){for(var c,h=e.stackedOn;h&&r(h.get(o,l))===r(n);){c=h;break}var d=[];return d[u]=e.get(i.dim,l),d[1-u]=c?c.get(o,l,!0):a,t[s](d)},!0)}function f(t,e,i){var r=n(t[o]("x")),a=n(t[o]("y")),s=t.getBaseAxis().isHorizontal(),l=Math.min(r[0],r[1]),u=Math.min(a[0],a[1]),c=Math.max(r[0],r[1])-l,h=Math.max(a[0],a[1])-u,d=i.get("lineStyle.normal.width")||2,f=i.get("clipOverflow")?d/2:Math.max(c,h);s?(u-=f,h+=2*f):(l-=f,c+=2*f);var p=new M.Rect({shape:{x:l,y:u,width:c,height:h}});return e&&(p.shape[s?"width":Pe]=0,M.initProps(p,{shape:{width:c,height:h}},i)),p}function p(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[z](),o=n[z](),s=Math.PI/180,l=new M.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,M.initProps(l,{shape:{endAngle:-o[1]*s}},i)),l}function v(t,e,i){return"polar"===t.type?p(t,e,i):f(t,e,i)}function m(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||n.dim===l?0:1,a=[],o=0;o=0;r--)if(i[r].dimension<2){n=i[r];break}if(n&&"cartesian2d"===e.type){var s=n.dimension,l=t[c][s],u=e[o](l),h=y.map(n.stops,function(t){return{coord:u.toGlobalCoord(u[a](t.value)),color:t.color}}),d=h[ge],f=n.outerColors.slice();d&&h[0].coord>h[d-1].coord&&(h.reverse(),f.reverse());var p=10,v=h[0].coord-p,m=h[d-1].coord+p,g=m-v;if(.001>g)return"transparent";y.each(h,function(t){t.offset=(t.coord-v)/g}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var x=new M.LinearGradient(0,0,0,0,h,!0);return x[l]=v,x[l+"2"]=m,x}}}var y=t(De),x=t("../helper/SymbolDraw"),_=t("../helper/Symbol"),w=t("./lineAnimationDiff"),M=t(u),T=t("../../util/model"),S=t("./poly"),C=t("../../view/Chart");return C[oe]({type:"line",init:function(){var t=new M.Group,e=new x;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var a=t[ve],o=this.group,s=t[pe](),l=t[Se]("lineStyle.normal"),u=t[Se]("areaStyle.normal"),c=s.mapArray(s.getItemLayout,!0),d="polar"===a.type,f=this._coordSys,p=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get(Ce),M=!u.isEmpty(),T=h(a,s),S=t.get("showSymbol"),C=S&&!d&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(s,a),A=this._data;A&&A.eachItemGraphicEl(function(t,e){t.__temp&&(o[se](t),A.setItemGraphicEl(e,null))}),S||p[se](),o.add(b);var P=!d&&t.get("step");x&&f.type===a.type&&P===this._step?(M&&!_?_=this._newPolygon(c,T,a,w):_&&!M&&(b[se](_),_=this._polygon=null),b.setClipPath(v(a,!1,t)),S&&p.updateData(s,C),s.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),e(this._stackedOnPoints,T)&&e(this._points,c)||(w?this._updateAnimation(s,T,a,r,P):(P&&(c=m(c,a,P),T=m(T,a,P)),x.setShape({points:c}),_&&_.setShape({points:c,stackedOnPoints:T})))):(S&&p.updateData(s,C),P&&(c=m(c,a,P),T=m(T,a,P)),x=this._newPolyline(c,a,w),M&&(_=this._newPolygon(c,T,a,w)),b.setClipPath(v(a,!0,t)));var L=g(s,a)||s.getVisual("color");x.useStyle(y[ae](l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var I=t.get("smooth");if(I=i(t.get("smooth")),x.setShape({smooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var k=s.stackedOn,z=0;if(_.useStyle(y[ae](u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),k){var D=k.hostModel;z=i(D.get("smooth"))}_.setShape({smooth:I,stackedOnSmooth:z,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=s,this._coordSys=a,this._stackedOnPoints=T,this._points=c,this._step=P},dispose:function(){},highlight:function(t,e,i,n){var r=t[pe](),a=T.queryDataIndex(r,n);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r[b](a);if(!o){var s=r.getItemLayout(a);if(!s)return;o=new _(r,a),o[R]=s,o.setZ(t.get(Y),t.get("z")),o[xe]=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else C[Ie].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[pe](),a=T.queryDataIndex(r,n);if(null!=a&&a>=0){var o=r[b](a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group[se](o)):o.downplay())}else C[Ie].downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup[se](e),e=new S.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup[se](i),i=new S.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(d)[0];return i&&i.isLabelIgnored?y.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,r){var a=this._polyline,o=this._polygon,s=t.hostModel,l=w(this._data,t,this._stackedOnPoints,e,this._coordSys,i),u=l.current,c=l.stackedOnCurrent,h=l.next,d=l.stackedOnNext;r&&(u=m(l.current,i,r),c=m(l.stackedOnCurrent,i,r),h=m(l.next,i,r),d=m(l.stackedOnNext,i,r)),a.shape.__points=l.current,a.shape.points=u,M.updateProps(a,{shape:{points:h}},s),o&&(o.setShape({points:u,stackedOnPoints:c}),M.updateProps(o,{shape:{points:h,stackedOnPoints:d}},s));for(var f=[],p=l.status,v=0;ve&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i1){var h;typeof r===Le?h=t[r]:typeof r===j&&(h=r),h&&(n=n.downSample(s.dim,1/c,h,e),i.setData(n))}}},this)}}),e("echarts/coord/cartesian/Grid",[Re,"exports","../../util/layout","../../coord/axisHelper",De,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t){function e(t,e){return t.findGridModel()===e}function i(t){var e,i=t.model,n=i.getFormattedLabels(),r=i[Se]("axisLabel.textStyle"),a=1,o=n[ge];o>40&&(a=Math.ceil(o/40));for(var s=0;o>s;s+=a)if(!t.isLabelIgnored(s)){var l=r.getTextRect(n[s]);e?e.union(l):e=l}return e}function n(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this._model=t}function l(t,e){var i=t[z](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function u(t){return v.map(w,function(e){var i=t.getReferringComponents(e)[0];return i})}function h(t){return"cartesian2d"===t.get(ve)}var f=t("../../util/layout"),p=t("../../coord/axisHelper"),v=t(De),m=t("./Cartesian2D"),g=t("./Axis2D"),y=v.each,x=p.ifAxisCrossZero,_=p.niceScaleExtent;t("./GridModel");var b=n[Ie];b.type="grid",b.getRect=function(){return this._rect},b[ce]=function(t,e){function i(t){var e=n[t];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];if(a&&(a.type===r||!x(a)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this._model),y(n.x,function(t){_(t,t.model)}),y(n.y,function(t){_(t,t.model)}),y(n.x,function(t){i("y")&&(t.onZero=!1)}),y(n.y,function(t){i("x")&&(t.onZero=!1) }),this[Ae](this._model,e)},b[Ae]=function(t,e){function n(){y(a,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r[Pe]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),l(t,e?r.x:r.y)})}var r=f.getLayoutRect(t.getBoxLayoutParams(),{width:e[Te](),height:e[Me]()});this._rect=r;var a=this._axesList;n(),t.get("containLabel")&&(y(a,function(t){if(!t.model.get("axisLabel.inside")){var e=i(t);if(e){var n=t.isHorizontal()?Pe:"width",a=t.model.get("axisLabel.margin");r[n]-=e[n]+a,"top"===t[R]?r.y+=e[Pe]+a:"left"===t[R]&&(r.x+=e.width+a)}}}),n())},b[o]=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},b.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}for(var n=0,r=this._coordsList;n0?1:-1,n=t[Pe]>0?1:-1;e=Math.min(e,Math.abs(t.width),Math.abs(t[Pe])),t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[Pe]-=n*e}var i=t(De),n=t(u);return i[oe](t("../../model/Model")[Ie],t("./barItemStyle")),t("../../echarts").extendChartView({type:"bar",render:function(t,e,i){var n=t.get(ve);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},dispose:i.noop,_renderOnCartesian:function(t){function r(r,a){var s=o.getItemLayout(r),l=o[h](r).get(f)||0;e(s,l);var u=new n.Rect({shape:i[oe]({},s)});if(d){var p=u.shape,v=c?Pe:"width",m={};p[v]=0,m[v]=s[v],n[a?"updateProps":"initProps"](u,{shape:m},t,r)}return u}var a=this.group,o=t[pe](),s=this._data,l=t[ve],u=l.getBaseAxis(),c=u.isHorizontal(),d=t.get(Ce),f=["itemStyle",w,"barBorderWidth"];o.diff(s).add(function(t){if(o.hasValue(t)){var e=r(t);o.setItemGraphicEl(t,e),a.add(e)}})[ce](function(i,l){var u=s[b](l);if(!o.hasValue(i))return void a[se](u);u||(u=r(i,!0));var c=o.getItemLayout(i),d=o[h](i).get(f)||0;e(c,d),n.updateProps(u,{shape:c},t,i),o.setItemGraphicEl(i,u),a.add(u)})[se](function(e){var i=s[b](e);i&&(i.style.text="",n.updateProps(i,{shape:{width:0}},t,e,function(){a[se](i)}))}).execute(),this._updateStyle(t,o,c),this._data=o},_updateStyle:function(t,e,r){function a(t,e,i,r,a){n.setText(t,e,i),t.text=r,"outside"===t.textPosition&&(t.textPosition=a)}e.eachItemGraphicEl(function(o,s){var l=e[h](s),u=e[de](s,"color"),c=e[de](s,O),d=e.getItemLayout(s),p=l[Se]("itemStyle.normal"),v=l[Se]("itemStyle.emphasis").getBarItemStyle();o.setShape("r",p.get("barBorderRadius")||0),o.useStyle(i[ae]({fill:u,opacity:c},p.getBarItemStyle()));var m=r?d[Pe]>0?ye:"top":d.width>0?"left":"right",g=l[Se]("label.normal"),y=l[Se]("label.emphasis"),x=o.style;g.get("show")?a(x,g,u,i[f](t.getFormattedLabel(s,w),t.getRawValue(s)),m):x.text="",y.get("show")?a(v,y,u,i[f](t.getFormattedLabel(s,"emphasis"),t.getRawValue(s)),m):v.text="",n.setHoverStyle(o,v)})},remove:function(t){var e=this.group;t.get(Ce)?this._data&&this._data.eachItemGraphicEl(function(i){i.style.text="",n.updateProps(i,{shape:{width:0}},t,i[fe],function(){e[se](i)})}):e[H]()}})}),e("echarts/chart/pie/PieSeries",[Re,"../../data/List",De,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin","../../echarts"],function(t){var e=t("../../data/List"),i=t(De),n=t("../../util/model"),r=t("../../data/helper/completeDimensions"),a=t("../../component/helper/selectableMixin"),o=t("../../echarts").extendSeriesModel({type:"series.pie",init:function(t){o.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){o.superCall(this,"mergeOption",t),this.updateSelectedMap(this[C].data)},getInitialData:function(t){var i=r(["value"],t.data),n=new e(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this._data,i=o.superCall(this,K,t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},_defaultLabelLine:function(t){n.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[w],i=t.labelLine.emphasis;e.show=e.show&&t.label[w].show,i.show=i.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationEasing:"cubicOut",data:[]}});return i.mixin(o,a),o}),e("echarts/chart/pie/PieView",[Re,u,De,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[pe](),o=this[fe],s=a.getName(o),l=e.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[b](t),a.getItemLayout(t),e.isSelected(a.getName(t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,u=[o*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr(R,u)}function n(t,e){function i(){o[xe]=o.hoverIgnore,s[xe]=s.hoverIgnore}function n(){o[xe]=o.normalIgnore,s[xe]=s.normalIgnore}a.Group.call(this);var r=new a.Sector({z2:2}),o=new a.Polyline,s=new a.Text;this.add(r),this.add(o),this.add(s),this.updateData(t,e,!0),this.on("emphasis",i).on(w,n).on(ee,i).on(te,n)}function r(t,e,i,n,r){var a=n[Se](G),s=r===m||"inner"===r;return{fill:a.getTextColor()||(s?"#fff":t[de](e,"color")),opacity:t[de](e,O),textFont:a[V](),text:o[f](t.hostModel.getFormattedLabel(e,i),t.getName(e))}}var a=t(u),o=t(De),s=n[Ie];s.updateData=function(t,e,n){function r(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r+10}},300,"elasticOut")}function s(){l.stopAnimation(!0),l.animateTo({shape:{r:d.r}},300,"elasticOut")}var l=this.childAt(0),u=t.hostModel,c=t[h](e),d=t.getItemLayout(e),f=o[oe]({},d);f.label=null,n?(l.setShape(f),l.shape.endAngle=d.startAngle,a.updateProps(l,{shape:{endAngle:d.endAngle}},u,e)):a.updateProps(l,{shape:f},u,e);var p=c[Se]("itemStyle"),v=t[de](e,"color");l.useStyle(o[ae]({lineJoin:"bevel",fill:v},p[Se](w).getItemStyle())),l.hoverStyle=p[Se]("emphasis").getItemStyle(),i(this,t.getItemLayout(e),c.get("selected"),u.get("selectedOffset"),u.get(Ce)),l.off(ee).off(te).off("emphasis").off(w),c.get("hoverAnimation")&&u.ifEnableAnimation()&&l.on(ee,r).on(te,s).on("emphasis",r).on(w,s),this._updateLabel(t,e),a.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),o=t.hostModel,s=t[h](e),l=t.getItemLayout(e),u=l.label,c=t[de](e,"color");a.updateProps(i,{shape:{points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]}},o,e),a.updateProps(n,{style:{x:u.x,y:u.y}},o,e),n.attr({style:{textVerticalAlign:u.verticalAlign,textAlign:u[F],textFont:u.font},rotation:u[p],origin:[u.x,u.y],z2:10});var d=s[Se]("label.normal"),f=s[Se]("label.emphasis"),v=s[Se]("labelLine.normal"),m=s[Se]("labelLine.emphasis"),g=d.get(R)||f.get(R);n[$](r(t,e,w,d,g)),n[xe]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),i[xe]=i.normalIgnore=!v.get("show"),i.hoverIgnore=!m.get("show"),i[$]({stroke:c,opacity:t[de](e,O)}),i[$](v[Se]("lineStyle").getLineStyle()),n.hoverStyle=r(t,e,"emphasis",f,g),i.hoverStyle=m[Se]("lineStyle").getLineStyle();var y=v.get("smooth");y&&y===!0&&(y=.4),i.setShape({smooth:y})},o[Z](n,a.Group);var l=t("../../view/Chart")[oe]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var s=t[pe](),l=this._data,u=this.group,c=i.get(Ce),h=!l,d=o.curry(e,this.uid,t,c,r),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new n(s,t);h&&e.eachChild(function(t){t.stopAnimation(!0)}),f&&e.on("click",d),s.setItemGraphicEl(t,e),u.add(e)})[ce](function(t,e){var i=l[b](e);i.updateData(s,t),i.off("click"),f&&i.on("click",d),u.add(i),s.setItemGraphicEl(t,i)})[se](function(t){var e=l[b](t);u[se](e)}).execute(),c&&h&&s.count()>0){var p=s.getItemLayout(0),v=Math.max(r[Te](),r[Me]())/2,m=o.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(p.cx,p.cy,v,p.startAngle,p.clockwise,m,t))}this._data=s}},dispose:function(){},_createClipPath:function(t,e,i,n,r,o,s){var l=new a.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l},containPoint:function(t,e){var i=e[pe](),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,a=t[1]-n.cy,o=Math.sqrt(r*r+a*a);return o<=n.r&&o>=n.r0}}});return l}),e("echarts/layout/barGrid",[Re,De,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function i(t){return t.dim+t.index}function n(t){var n={};s.each(t,function(t){var a=t[pe](),o=t[ve],s=o.getBaseAxis(),l=s[z](),c=s.type===r?s.getBandWidth():Math.abs(l[1]-l[0])/a.count(),h=n[i(s)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;n[i(s)]=h;var f=e(t);d[f]||h.autoWidthCount++,d[f]=d[f]||{width:0,maxWidth:0};var p=u(t.get("barWidth"),c),v=u(t.get("barMaxWidth"),c),m=t.get("barGap"),g=t.get("barCategoryGap");p&&!d[f].width&&(p=Math.min(h.remainedWidth,p),d[f].width=p,h.remainedWidth-=p),v&&(d[f].maxWidth=v),null!=m&&(h.gap=m),null!=g&&(h.categoryGap=g)});var a={};return s.each(n,function(t,e){a[e]={};var i=t.stacks,n=t.bandWidth,r=u(t.categoryGap,n),o=u(t.gap,1),l=t.remainedWidth,c=t.autoWidthCount,h=(l-r)/(c+(c-1)*o);h=Math.max(h,0),s.each(i,function(t){var e=t.maxWidth;!t.width&&e&&h>e&&(e=Math.min(e,l),l-=e,t.width=e,c--)}),h=(l-r)/(c+(c-1)*o),h=Math.max(h,0);var d,f=0;s.each(i,function(t){t.width||(t.width=h),d=t,f+=t.width*(1+o)}),d&&(f-=d.width*o);var p=-f/2;s.each(i,function(t,i){a[e][i]=a[e][i]||{offset:p,width:t.width},p+=t.width*(1+o)})}),a}function o(t,r){var o=n(s[q](r.getSeriesByType(t),function(t){return!r.isSeriesFiltered(t)&&t[ve]&&"cartesian2d"===t[ve].type})),l={},u={};r.eachSeriesByType(t,function(t){var n=t[pe](),r=t[ve],s=r.getBaseAxis(),c=e(t),h=o[i(s)][c],d=h.offset,f=h.width,p=r.getOtherAxis(s),v=t.get("barMinHeight")||0,m=s.onZero?p.toGlobalCoord(p[a](0)):p.getGlobalExtent()[0],g=r.dataToPoints(n,!0);l[c]=l[c]||[],u[c]=u[c]||[],n.setLayout({offset:d,size:f}),n.each(p.dim,function(t,e){if(!isNaN(t)){l[c][e]||(l[c][e]={p:m,n:m},u[c][e]={p:m,n:m});var i,r,a,o,s=t>=0?"p":"n",h=g[e],y=l[c][e][s],x=u[c][e][s];p.isHorizontal()?(i=y,r=h[1]+d,a=h[0]-x,o=f,u[c][e][s]+=a,Math.abs(a)a?-1:1)*v),l[c][e][s]+=a):(i=h[0]+d,r=y,a=f,o=h[1]-x,u[c][e][s]+=o,Math.abs(o)=o?-1:1)*v),l[c][e][s]+=o),n.setItemLayout(e,{x:i,y:r,width:a,height:o})}},!0)},this)}var s=t(De),l=t("../util/number"),u=l.parsePercent;return o}),e("echarts/visual/dataColor",[Re],function(){return function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var a=t[pe]();a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),n.each(function(e){var o=n[h](e),s=r[e],l=null!=s&&a[de](s,"color",!0);if(l)n.setItemVisual(e,"color",l);else{var u=o.get("itemStyle.normal.color")||t.getColorFromPalette(n.getName(e),i);n.setItemVisual(e,"color",u),null!=s&&a.setItemVisual(s,"color",u)}})}})}}),e("echarts/action/createDataSelectAction",[Re,"../echarts",De],function(t){var e=t("../echarts"),i=t(De);return function(t,n){i.each(n,function(i){i[ce]="updateView",e.registerAction(i,function(e,n){var r={};return n[_e]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[pe]();n.each(function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/chart/pie/pieLayout",[Re,"../../util/number","./labelLayout",De],function(t){var e=t("../../util/number"),i=e.parsePercent,n=t("./labelLayout"),r=t(De),a=2*Math.PI,o=Math.PI/180;return function(t,s,u){s.eachSeriesByType(t,function(t){var s=t.get(E),c=t.get(l);r[U](c)||(c=[0,c]),r[U](s)||(s=[s,s]);var h=u[Te](),d=u[Me](),f=Math.min(h,d),p=i(s[0],h),v=i(s[1],d),m=i(c[0],f/2),g=i(c[1],f/2),y=t[pe](),x=-t.get("startAngle")*o,_=t.get("minAngle")*o,b=y.getSum("value"),w=Math.PI/(b||y.count())*2,M=t.get("clockwise"),T=t.get("roseType"),S=y.getDataExtent("value");S[0]=0;var C=a,A=0,P=x,L=M?1:-1;if(y.each("value",function(t,i){var n;n="area"!==T?0===b?w:t*w:a/(y.count()||1),_>n?(n=_,C-=_):A+=t;var r=P+L*n;y.setItemLayout(i,{angle:n,startAngle:P,endAngle:r,clockwise:M,cx:p,cy:v,r0:m,r:T?e.linearMap(t,S,[m,g]):g}),P=r},!0),a>C)if(.001>=C){var I=a/y.count();y.each(function(t){var e=y.getItemLayout(t);e.startAngle=x+L*t*I,e.endAngle=x+L*(t+1)*I})}else w=C/A,P=x,y.each("value",function(t,e){var i=y.getItemLayout(e),n=i.angle===_?_:t*w;i.startAngle=P,i.endAngle=P+L*n,P+=L*n});n(t,g,h,d)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e.findComponents({mainType:"legend"});i&&i[ge]&&e.eachSeriesByType(t,function(t){var e=t[pe]();e.filterSelf(function(t){for(var n=e.getName(t),r=0;r=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});return n}),e("echarts/component/legend/legendAction",[Re,"../../echarts",De],function(t){function e(t,e,i){var r,a={},o="toggleSelected"===t;return i[_e]("legend",function(i){o&&null!=r?i[r?"select":"unSelect"](e.name):(i[t](e.name),r=i.isSelected(e.name));var s=i[pe]();n.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a[e]=e in a?a[e]&&n:n}})}),{name:e.name,selected:a}}var i=t("../../echarts"),n=t(De);i.registerAction("legendToggleSelect","legendselectchanged",n.curry(e,"toggleSelected")),i.registerAction("legendSelect","legendselected",n.curry(e,"select")),i.registerAction("legendUnSelect","legendunselected",n.curry(e,"unSelect"))}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t.findComponents({mainType:"legend"});e&&e[ge]&&t.filterSeries(function(t){for(var i=0;ic)return;var p=o[de](c,"color"),v="roundRect",m=this._createItem(s,r,t,v,null,d,p,h);m.on("click",l(e,s,u)).on(ee,l(i,a,s,u)).on(te,l(n,a,s,u)),f[s]=!0}},this)},this),s.layout(c,t,u),s.addBackground(c,t)}},_createItem:function(t,e,i,n,s,l,u,c){var h=i.get("itemWidth"),d=i.get("itemHeight"),f=i.get("inactiveColor"),p=i.isSelected(t),v=new o.Group,m=e[Se](G),g=e.get("icon"),y=e[Se]("tooltip"),x=y.parentModel;if(n=g||n,v.add(a.createSymbol(n,0,0,h,d,p?u:f)),!g&&s&&(s!==n||"none"==s)){var _=.8*d;"none"===s&&(s="circle"),v.add(a.createSymbol(s,(h-_)/2,(d-_)/2,_,_,p?u:f))}var b="left"===l?h+5:-5,w=l,M=i.get("formatter"),S=t;typeof M===Le&&M?S=M[X]("{name}",null!=t?t:""):typeof M===j&&(S=M(t));var A=new o.Text({style:{text:S,x:b,y:d/2,fill:p?m.getTextColor():f,textFont:m[V](),textAlign:w,textVerticalAlign:"middle"}});v.add(A);var P=new o.Rect({shape:v[N](),invisible:!0,tooltip:y.get("show")?r[oe]({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i[T],name:t,$vars:["name"]}},y[C]):null});return v.add(P),v.eachChild(function(t){t.silent=!0}),P.silent=!c,this.group.add(v),o.setHoverStyle(v),v}})}),e("echarts/util/layout",[Re,De,"zrender/core/BoundingRect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l[R],f=l[N](),p=e.childAt(u+1),v=p&&p[N]();if("horizontal"===t){var m=f.width+(v?-v.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,o+=s+i,s=f[Pe]):s=Math.max(s,f[Pe])}else{var g=f[Pe]+(v?-v.y+f.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=c+i:o=h+i)})}var i=t(De),n=t("zrender/core/BoundingRect"),r=t("./number"),a=t("./format"),o=r.parsePercent,s=i.each,l={},u=l.LOCATION_PARAMS=["left","right","top",ye,"width",Pe];return l.box=e,l.vbox=i.curry(e,"vertical"),l.hbox=i.curry(e,"horizontal"),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[Pe],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),i=a.normalizeCssArray(i||0),{width:Math.max(u-s-i[1]-i[3],0),height:Math.max(c-l-i[0]-i[2],0)}},l.getLayoutRect=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[Pe],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[ye],s),d=o(t.width,r),f=o(t[Pe],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=r-c-v-l),isNaN(f)&&(f=s-h-p-u),isNaN(d)&&isNaN(f)&&(m>r/s?d=.8*r:f=.8*s),null!=m&&(isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=r-c-d-v),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case E:l=r/2-d/2-i[3];break;case"right":l=r-d-v}switch(t.top||t[ye]){case B:case E:u=s/2-f/2-i[0];break;case ye:u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-l-(c||0)),isNaN(f)&&(f=s-u-(h||0));var g=new n(l+i[3],u+i[0],d,f);return g.margin=i,g},l.positionElement=function(t,e,r,a,o){var s=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||u){var h;if("raw"===c)h="group"===t.type?new n(0,0,+e.width||0,+e[Pe]||0):t[N]();else if(h=t[N](),t.needLocalTransform()){var d=t.getLocalTransform();h=h.clone(),h[_](d)}e=l.getLayoutRect(i[ae]({width:h.width,height:h[Pe]},e),r,a);var f=t[R],p=s?e.x-h.x:0,v=u?e.y-h.y:0;t.attr(R,"raw"===c?[p,v]:[f[0]+p,f[1]+v])}},l.mergeLayoutParam=function(t,e,n){function r(i){var r={},l=0,u={},c=0,h=n.ignoreSize?1:2;if(s(i,function(e){u[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&c++}),c!==h&&l){if(l>=h)return r;for(var d=0;d=0?parseFloat(t)/100*e:parseFloat(t):t},W=function(t,e,i){var n=a.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=R(n[0],n[1],n[2]),t[O]=i*n[3])},j=function(t){var e=a.parse(t);return[R(e[0],e[1],e[2]),e[3]]},U=function(t,e,i){var r=e.fill;if(null!=r)if(r instanceof d){var a,o=0,s=[0,0],l=0,u=1,c=i[N](),h=c.width,f=c[Pe];if("linear"===r.type){a="gradient";var p=i[n],v=[r.x*h,r.y*f],m=[r.x2*h,r.y2*f];p&&(T(v,v,p),T(m,m,p));var g=m[0]-v[0],y=m[1]-v[1];o=180*Math.atan2(g,y)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{a="gradientradial";var v=[r.x*h,r.y*f],p=i[n],x=i.scale,_=h,b=f;s=[(v[0]-c.x)/_,(v[1]-c.y)/b],p&&T(v,v,p),_/=x[0]*A,b/=x[1]*A;var w=M(_,b);l=0/w,u=2*r.r/w-l}var S=r[ue].slice();S.sort(function(t,e){return t.offset-e.offset});for(var C=S[ge],P=[],L=[],I=0;C>I;I++){var k=S[I],z=j(k.color);L.push(k.offset*u+l+" "+z[0]),(0===I||I===C-1)&&P.push(z)}if(C>=2){var D=P[0][0],R=P[1][0],E=P[0][1]*e[O],B=P[1][1]*e[O];t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=D,t.color2=R,t.colors=L.join(","),t[O]=B,t.opacity2=E}"radial"===a&&(t.focusposition=s.join(","))}else W(t,r,e[O])},$=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[y]||e[y]instanceof d||W(t,e[y],e[O])},Q=function(t,e,i,n){var r="fill"==e,a=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[x])?(t[r?"filled":"stroked"]="true",i[e]instanceof d&&G(t,a),a||(a=f.createNode(e)),r?U(a,i,n):$(a,i),V(t,a)):(t[r?"filled":"stroked"]="false",G(t,a))},K=[[],[],[]],J=function(t,e){var i,n,a,o,s,l,u=r.M,c=r.C,h=r.L,d=r.A,f=r.Q,m=[];for(o=0;o.01?F&&(G+=270/A):Math.abs(H-R)<1e-10?F&&O>G||!F&&G>O?w-=270/A:w+=270/A:F&&R>H||!F&&H>R?_+=270/A:_-=270/A),m.push(Z,p(((O-E)*k+P)*A-L),S,p(((R-B)*z+I)*A-L),S,p(((O+E)*k+P)*A-L),S,p(((R+B)*z+I)*A-L),S,p((G*k+P)*A-L),S,p((H*z+I)*A-L),S,p((_*k+P)*A-L),S,p((w*z+I)*A-L)),s=_,l=w;break;case r.R:var q=K[0],W=K[1];q[0]=t[o++],q[1]=t[o++],W[0]=q[0]+t[o++],W[1]=q[1]+t[o++],e&&(T(q,q,e),T(W,W,e)),q[0]=p(q[0]*A-L),W[0]=p(W[0]*A-L),q[1]=p(q[1]*A-L),W[1]=p(W[1]*A-L),m.push(" m ",q[0],S,q[1]," l ",W[0],S,q[1]," l ",W[0],S,W[1]," l ",q[0],S,W[1]);break;case r.Z:m.push(" x ")}if(i>0){m.push(n);for(var j=0;i>j;j++){var U=K[j];e&&T(U,U,e),m.push(p(U[0]*A-L),S,p(U[1]*A-L),i-1>j?S:"")}}}return m.join("")};h[Ie].brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=f.createNode("shape"),z(i),this._vmlEl=i),Q(i,"fill",e,this),Q(i,y,e,this);var r=this[n],a=null!=r,o=i.getElementsByTagName(y)[0];if(o){var s=e[x];if(a&&!e.strokeNoScale){var l=r[0]*r[3]-r[1]*r[2];s*=v(m(l))}o.weight=s+"px"}var u=this.path;this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape),u.toStatic(),this.__dirtyPath=!1),i.path=J(u.data,this[n]),i.style.zIndex=H(this[Y],this.z,this.z2),V(t,i),null!=e.text?this.drawRectText(t,this[N]()):this.removeRectText(t)},h[Ie].onRemove=function(t){G(t,this._vmlEl),this.removeRectText(t)},h[Ie].onAdd=function(t){V(t,this._vmlEl),this.appendRectText(t)};var te=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};u[Ie].brushVML=function(t){var e,i,r=this.style,a=r.image;if(te(a)){var o=a.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=a.runtimeStyle,l=s.width,u=s[Pe];s.width="auto",s[Pe]="auto",e=a.width,i=a[Pe],s.width=l,s[Pe]=u,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}a=o}else a===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(a){var c=r.x||0,h=r.y||0,d=r.width,m=r[Pe],g=r.sWidth,y=r.sHeight,x=r.sx||0,_=r.sy||0,b=g&&y,w=this._vmlEl;w||(w=f.doc[P]("div"),z(w),this._vmlEl=w);var A,L=w.style,I=!1,k=1,D=1;if(this[n]&&(A=this[n],k=v(A[0]*A[0]+A[1]*A[1]),D=v(A[2]*A[2]+A[3]*A[3]),I=A[1]||A[2]),I){var R=[c,h],E=[c+d,h],B=[c,h+m],F=[c+d,h+m];T(R,R,A),T(E,E,A),T(B,B,A),T(F,F,A);var G=M(R[0],E[0],B[0],F[0]),Z=M(R[1],E[1],B[1],F[1]),W=[];W.push("M11=",A[0]/k,S,"M12=",A[2]/D,S,"M21=",A[1]/k,S,"M22=",A[3]/D,S,"Dx=",p(c*k+A[4]),S,"Dy=",p(h*D+A[5])),L.padding="0 "+p(G)+"px "+p(Z)+"px 0",L[q]=C+".Matrix("+W.join("")+", SizingMethod=clip)"}else A&&(c=c*k+A[4],h=h*D+A[5]),L[q]="",L.left=p(c)+"px",L.top=p(h)+"px";var j=this._imageEl,U=this._cropEl;j||(j=f.doc[P]("div"),this._imageEl=j);var X=j.style;if(b){if(e&&i)X.width=p(k*e*d/g)+"px",X[Pe]=p(D*i*m/y)+"px";else{var $=new Image,Q=this;$.onload=function(){$.onload=null,e=$.width,i=$[Pe],X.width=p(k*e*d/g)+"px",X[Pe]=p(D*i*m/y)+"px",Q._imageWidth=e,Q._imageHeight=i,Q._imageSrc=a},$.src=a}U||(U=f.doc[P]("div"),U.style.overflow="hidden",this._cropEl=U);var K=U.style;K.width=p((d+x*d/g)*k),K[Pe]=p((m+_*m/y)*D),K[q]=C+".Matrix(Dx="+-x*d/g*k+",Dy="+-_*m/y*D+")",U.parentNode||w.appendChild(U),j.parentNode!=U&&U.appendChild(j)}else X.width=p(k*d)+"px",X[Pe]=p(D*m)+"px",w.appendChild(j),U&&U.parentNode&&(w.removeChild(U),this._cropEl=null);var J="",ee=r[O];1>ee&&(J+=".Alpha(opacity="+p(100*ee)+") "),J+=C+".AlphaImageLoader(src="+a+", SizingMethod=scale)",X[q]=J,w.style.zIndex=H(this[Y],this.z,this.z2),V(t,w),null!=r.text&&this.drawRectText(t,this[N]())}},u[Ie].onRemove=function(t){G(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},u[Ie].onAdd=function(t){V(t,this._vmlEl),this.appendRectText(t)};var ee,ie=w,ne={},re=0,ae=100,oe=document[P]("div"),se=function(t){var e=ne[t];if(!e){re>ae&&(re=0,ne={});var i,n=oe.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||ie,variant:n.fontVariant||ie,weight:n.fontWeight||ie,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},ne[t]=e,re++}return e};o.measureText=function(t,e){var i=f.doc; ee||(ee=i[P]("div"),ee.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",f.doc.body.appendChild(ee));try{ee.style.font=e}catch(n){}return ee.innerHTML="",ee.appendChild(i.createTextNode(t)),{width:ee.offsetWidth}};for(var le=new i,ce=function(t,e,i,r){var a=this.style,s=a.text;if(null!=s&&(s+=""),s){var l,u,c=a[F],h=se(a.textFont),d=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',v=a.textBaseline,m=a.textVerticalAlign;i=i||o[N](s,d,c,v);var g=this[n];if(g&&!r&&(le.copy(e),le[_](g),e=le),r)l=e.x,u=e.y;else{var x=a.textPosition,b=a.textDistance;if(x instanceof Array)l=e.x+Z(x[0],e.width),u=e.y+Z(x[1],e[Pe]),c=c||"left",v=v||"top";else{var w=o.adjustTextPositionOnRect(x,e,i,b);l=w.x,u=w.y,c=c||w[F],v=v||w.textBaseline}}if(m){switch(m){case B:u-=i[Pe]/2;break;case ye:u-=i[Pe]}v="top"}var M=h.size;switch(v){case"hanging":case"top":u+=M/1.75;break;case B:break;default:u-=M/2.25}switch(c){case"left":break;case E:l-=i.width/2;break;case"right":l-=i.width}var C,A,P,L=f.createNode,I=this._textVmlEl;I?(P=I.firstChild,C=P.nextSibling,A=C.nextSibling):(I=L("line"),C=L("path"),A=L("textpath"),P=L("skew"),A.style["v-text-align"]="left",z(I),C.textpathok=!0,A.on=!0,I.from="0 0",I.to="1000 0.05",V(I,P),V(I,C),V(I,A),this._textVmlEl=I);var k=[l,u],R=I.style;g&&r?(T(k,k,g),P.on=!0,P.matrix=g[0].toFixed(3)+S+g[2].toFixed(3)+S+g[1].toFixed(3)+S+g[3].toFixed(3)+",0,0",P.offset=(p(k[0])||0)+","+(p(k[1])||0),P.origin="0 0",R.left="0px",R.top="0px"):(P.on=!1,R.left=p(l)+"px",R.top=p(u)+"px"),A[Le]=D(s);try{A.style.font=d}catch(G){}Q(I,"fill",{fill:r?a.fill:a.textFill,opacity:a[O]},this),Q(I,y,{stroke:r?a[y]:a.textStroke,opacity:a[O],lineDash:a.lineDash},this),I.style.zIndex=H(this[Y],this.z,this.z2),V(t,I)}},he=function(t){G(t,this._textVmlEl),this._textVmlEl=null},de=function(t){V(t,this._textVmlEl)},fe=[s,l,u,h,c],pe=0;pen?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function v(t,e,i,n,r){var a=i.clientWidth,o=i.clientHeight;return t=Math.min(t+a,n)-a,e=Math.min(e+o,r)-o,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function g(t,e,i){var n=i.clientWidth,r=i.clientHeight,a=5,o=0,s=0,l=e.width,u=e[Pe];switch(t){case m: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 ye: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 x(t,e,r,a,o,s,l,u){var c=u[Te](),h=u[Me](),d=l&&l[N]().clone();if(l&&d[_](l[n]),typeof t===j&&(t=t([e,r],s,o.el,d)),C[U](t))e=I(t[0],c),r=I(t[1],h);else if(typeof t===Le&&l){var f=g(t,d,o.el);e=f[0],r=f[1]}else{var f=p(e,r,o.el,c,h);e=f[0],r=f[1]}if(a){var f=v(e,r,o.el,c,h);e=f[0],r=f[1]}o[i](e,r)}function w(t){var e=t[ve],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===i)}var T=t("./TooltipContent"),S=t(u),C=t(De),A=t("../../util/format"),P=t("../../util/number"),L=t("../../util/model"),I=P.parsePercent,k=t(Oe),D=t("../../model/Model");t("../../echarts").extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!k.node){var i=new T(e.getDom(),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._manuallyHideTip,this)}},render:function(t,e,i){if(!k.node){this.group[H](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[ce](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==a){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){o._manuallyShowTip({x:o._lastX,y:o._lastY})})}var s=this._api.getZr();s.off("click",this._tryShow),s.off("mousemove",this._mousemove),s.off(te,this._hide),s.off("globalout",this._hide),"click"===a?s.on("click",this._tryShow,this):"mousemove"===a&&(s.on("mousemove",this._mousemove,this),s.on(te,this._hide,this),s.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),i=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){i._tryShow(t)},e):this._tryShow(t)},_manuallyShowTip:function(t){function e(e){var i=e[pe](),n=L.queryDataIndex(i,t);return null!=n&&!C[U](n)&&i.hasValue(n)?!0:void 0}if(t.from!==this.uid){var i=this._ecModel,r=t.seriesIndex,a=i.getSeriesByIndex(r),o=this._api,l="axis"===this._tooltipModel.get(re);if(null==t.x||null==t.y){if(l?(a&&!e(a)&&(a=null),a||i.eachSeries(function(t){w(t)&&!a&&e(t)&&(a=t)})):a=a||i.getSeriesByIndex(0),a){var u=a[pe](),h=L.queryDataIndex(u,t);if(null==h||C[U](h))return;var d,f,p=u[b](h),v=a[ve];if(a.getTooltipPosition){var m=a.getTooltipPosition(h)||[];d=m[0],f=m[1]}else if(v&&v[s]){var m=v[s](u.getValues(C.map(v[c],function(t){return a.coordDimToDataDim(t)[0]}),h,!0));d=m&&m[0],f=m&&m[1]}else if(p){var g=p[N]().clone();g[_](p[n]),d=g.x+g.width/2,f=g.y+g[Pe]/2}null!=d&&null!=f&&this._tryShow({offsetX:d,offsetY:f,position:t[R],target:p,event:{}})}}else{var p=o.getZr().handler.findHover(t.x,t.y);this._tryShow({offsetX:t.x,offsetY:t.y,position:t[R],target:p,event:{}})}}},_manuallyHideTip:function(t){t.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var i={};return e.eachSeries(function(t){if(w(t)){var e,n,r=t[ve];"cartesian2d"===r.type?(e=r.getBaseAxis(),n=e.dim+e.index):"singleAxis"===r.type?(e=r[o](),n=e.dim+e.type):(e=r.getBaseAxis(),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][ne].push(t)}},this),i},_tryShow:function(t){var e=t[J],i=this._tooltipModel,n=i.get(re),r=this._ecModel,a=this._api;if(i)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e[fe]){var o=e.dataModel||r.getSeriesByIndex(e.seriesIndex),s=e[fe],l=o[pe]()[h](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,e.dataType,t)),a.dispatchAction({type:"showTip",from:this.uid,dataIndexInside:e[fe],seriesIndex:e.seriesIndex})}else if(e&&e.tooltip){var u=e.tooltip;if(typeof u===Le){var c=u;u={content:c,formatter:c}}var d=new D(u,i),f=d.get("content"),p=Math.random();this._showTooltipContent(d,f,d.get("formatterParams")||{},p,t.offsetX,t.offsetY,t[R],e,a)}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),"cross"===i.get("axisPointer.type")&&a.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,i,n){var r=t[Se]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[J];if(o&&null!=o[fe]){var l=i.getSeriesByIndex(o.seriesIndex),u=o[fe];this._showItemTooltipContent(l,u,o.dataType,n)}}this._showAxisPointer();var h=!0;C.each(this._seriesGroupByAxis,function(i){var o=i.coordSys,l=o[0],u=[n.offsetX,n.offsetY];if(!l.containPoint(u))return void this._hideAxisPointer(l.name);h=!1;var d=l[c],f=l.pointToData(u,!0);u=l[s](f);var p=l.getBaseAxis(),v=r.get("axis");"auto"===v&&(v=p.dim);var m=!1,g=this._lastHover;if("cross"===a)e(g.data,f)&&(m=!0),g.data=f;else{var y=C[me](d,v);g.data===f[y]&&(m=!0),g.data=f[y]}var x=t.get(Ce);"cartesian2d"!==l.type||m?"polar"!==l.type||m?"singleAxis"!==l.type||m||this._showSinglePointer(r,l,v,u,x):this._showPolarPointer(r,l,v,u,x):this._showCartesianPointer(r,l,v,u,x),"cross"!==a&&this._dispatchAndShowSeriesTooltipContent(l,i[ne],u,f,m,n[R])},this),this._tooltipModel.get("show")||this._hideAxisPointer(),h&&this._hide()},_showCartesianPointer:function(t,e,i,n,s){function l(i,n,r){var o="x"===i?a(n[0],r[0],n[0],r[1]):a(r[0],n[1],r[1],n[1]),s=c._getPointerElement(e,t,i,o);S.subPixelOptimizeLine({shape:o,style:s.style}),p?S.updateProps(s,{shape:o},t):s.attr({shape:o})}function u(i,n,r){var a=e[o](i),s=a.getBandWidth(),l=r[1]-r[0],u="x"===i?d(n[0]-s/2,r[0],s,l):d(r[0],n[1]-s/2,l,s),h=c._getPointerElement(e,t,i,u);p?S.updateProps(h,{shape:u},t):h.attr({shape:u})}var c=this,h=t.get("type"),f=e.getBaseAxis(),p=s&&"cross"!==h&&f.type===r&&f.getBandWidth()>20;if("cross"===h)l("x",n,e[o]("y").getGlobalExtent()),l("y",n,e[o]("x").getGlobalExtent()),this._updateCrossText(e,n,t);else{var v=e[o]("x"===i?"y":"x"),m=v.getGlobalExtent();"cartesian2d"===e.type&&("line"===h?l:u)(i,n,m)}},_showSinglePointer:function(t,e,i,n,s){function l(i,n,r){var s=e[o](),l=s.orient,c="horizontal"===l?a(n[0],r[0],n[0],r[1]):a(r[0],n[1],r[1],n[1]),d=u._getPointerElement(e,t,i,c);h?S.updateProps(d,{shape:c},t):d.attr({shape:c})}var u=this,c=t.get("type"),h=s&&"cross"!==c&&e.getBaseAxis().type===r,d=e.getRect(),f=[d.y,d.y+d[Pe]];l(i,n,f)},_showPolarPointer:function(t,e,i,n,s){function u(i,n,r){var o,s=e.pointToCoord(n);if("angle"===i){var l=e.coordToPoint([r[0],s[1]]),u=e.coordToPoint([r[1],s[1]]);o=a(l[0],l[1],u[0],u[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var c=h._getPointerElement(e,t,i,o);m?S.updateProps(c,{shape:o},t):c.attr({shape:o})}function c(i,n,r){var a,s=e[o](i),l=s.getBandWidth(),u=e.pointToCoord(n),c=Math.PI/180;a="angle"===i?f(e.cx,e.cy,r[0],r[1],(-u[1]-l/2)*c,(-u[1]+l/2)*c):f(e.cx,e.cy,u[0]-l/2,u[0]+l/2,0,2*Math.PI);var d=h._getPointerElement(e,t,i,a);m?S.updateProps(d,{shape:a},t):d.attr({shape:a})}var h=this,d=t.get("type"),p=e.getAngleAxis(),v=e.getRadiusAxis(),m=s&&"cross"!==d&&e.getBaseAxis().type===r;if("cross"===d)u("angle",n,v[z]()),u(l,n,p[z]()),this._updateCrossText(e,n,t);else{var g=e[o](i===l?"angle":l),y=g[z]();("line"===d?u:c)(i,n,y)}},_updateCrossText:function(t,e,i){var n=i[Se]("crossStyle"),a=n[Se](G),s=this._tooltipModel,l=this._crossText;l||(l=this._crossText=new S.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(l));var u=t.pointToData(e),h=t[c];u=C.map(u,function(e,i){var n=t[o](h[i]);return e=n.type===r||"time"===n.type?n.scale.getLabel(e):A.addCommas(e.toFixed(n.getPixelPrecision()))}),l[$]({fill:a.getTextColor()||n.get("color"),textFont:a[V](),text:u.join(", "),x:e[0]+5,y:e[1]-5}),l.z=s.get("z"),l[Y]=s.get(Y)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(Y),s=this._axisPointers,u=t.name;if(s[u]=s[u]||{},s[u][i])return s[u][i];var c=e.get("type"),h=e[Se](c+"Style"),d="shadow"===c,f=h[d?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?d?"Sector":i===l?"Circle":"Line":d?"Rect":"Line";d?f[y]=null:f.fill=null;var v=s[u][i]=new S[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_dispatchAndShowSeriesTooltipContent:function(t,e,i,n,a,o){var s,u=this._tooltipModel,c=t.getBaseAxis(),h="x"===c.dim||c.dim===l?0:1,d=C.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndexInside:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(c.dim),n,c):t[pe]().indexOfNearest(t.coordDimToDataDim(c.dim)[0],n[h],!1,c.type===r?.5:null)}});C.each(d,function(t,i){e[i][pe]().hasValue(t.dataIndexInside)&&(s=i)}),s=s||0;var f=this._lastHover,p=this._api;if(f.payloadBatch&&!a&&p.dispatchAction({type:"downplay",batch:f.payloadBatch}),a||(p.dispatchAction({type:"highlight",batch:d}),f.payloadBatch=d),p.dispatchAction({type:"showTip",dataIndexInside:d[s].dataIndexInside,seriesIndex:d[s].seriesIndex,from:this.uid}),c&&u.get("showContent")&&u.get("show")){var v=C.map(e,function(t,e){return t[K](d[e].dataIndexInside)});if(a)x(o||u.get(R),i[0],i[1],u.get("confine"),this._tooltipContent,v,null,p);else{var m=d[s].dataIndexInside,g="time"===c.type?c.scale.getLabel(n[h]):e[s][pe]().getName(m),y=(g?g+"
":"")+C.map(e,function(t,e){return t.formatTooltip(d[e].dataIndexInside,!0)}).join("
"),_="axis_"+t.name+"_"+m;this._showTooltipContent(u,y,v,_,i[0],i[1],o,null,p)}}},_showItemTooltipContent:function(t,e,i,n){var r=this._api,a=t[pe](i),o=a[h](e),s=o.get("tooltip",!0);if(typeof s===Le){var l=s;s={formatter:l}}var u=this._tooltipModel,c=t[Se]("tooltip",u),d=new D(s,c,c[M]),f=t[K](e,i),p=t.formatTooltip(e,!1,i),v="item_"+t.name+"_"+e;this._showTooltipContent(d,p,f,v,n.offsetX,n.offsetY,n[R],n[J],r)},_showTooltipContent:function(t,e,i,n,r,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("confine"),h=t.get("formatter");o=o||t.get(R);var d=e;if(h)if(typeof h===Le)d=A.formatTpl(h,i);else if(typeof h===j){var f=this,p=n,v=function(t,e){t===f._ticket&&(u.setContent(e),x(o,r,a,c,u,i,s,l))};f._ticket=p,d=h(i,p,v)}u.show(t),u.setContent(d),x(o,r,a,c,u,i,s,l)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&C.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&C.each(e,function(t){t.hide()})}else this.group.children()[ge]&&this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(t,e){if(!k.node){var i=e.getZr();this._tooltipContent.hide(),i.off("click",this._tryShow),i.off("mousemove",this._mousemove),i.off(te,this._hide),i.off("globalout",this._hide),e.off("showTip",this._manuallyShowTip),e.off("hideTip",this._manuallyHideTip)}}})}),e("echarts/component/toolbox/ToolboxModel",[Re,"./featureManager",De,"../../echarts"],function(t){var e=t("./featureManager"),i=t(De),n=t("../../echarts").extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(){n.superApply(this,"mergeDefaultAndTheme",arguments),i.each(this[C].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"}}}});return n}),e("echarts/component/toolbox/ToolboxView",[Re,"./featureManager",De,u,"../../model/Model","../../data/DataDiffer","../helper/listComponent","zrender/contain/text","../../echarts"],function(t){function e(t){return 0===t[me]("my")}var i=t("./featureManager"),n=t(De),r=t(u),a=t("../../model/Model"),o=t("../../data/DataDiffer"),s=t("../helper/listComponent"),l=t("zrender/contain/text");return t("../../echarts").extendComponentView({type:"toolbox",render:function(t,u,c,h){function d(n,r){var o,s=x[n],l=x[r],d=m[s],p=new a(d,t,t[M]);if(s&&!l){if(e(s))o={model:p,onclick:p[C].onclick,featureName:s};else{var v=i.get(s);if(!v)return;o=new v(p,u,c)}g[s]=o}else{if(o=g[l],!o)return;o.model=p,o[M]=u,o.api=c}return!s&&l?void(o.dispose&&o.dispose(u,c)):!p.get("show")||o.unusable?void(o[se]&&o[se](u,c)):(f(p,o,s),p.setIconStatus=function(t,e){var i=this[C],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][re](e)},void(o.render&&o.render(p,u,c,h)))}function f(e,i,a){var o=e[Se]("iconStyle"),s=i.getIcons?i.getIcons():e.get("icon"),l=e.get("title")||{};if(typeof s===Le){var h=s,d=l;s={},l={},s[a]=h,l[a]=d}var f=e.iconPaths={};n.each(s,function(a,s){var h=o[Se](w).getItemStyle(),d=o[Se]("emphasis").getItemStyle(),m={x:-v/2,y:-v/2,width:v,height:v},g=0===a[me]("image://")?(m.image=a.slice(8),new r.Image({style:m})):r.makePath(a[X]("path://",""),{style:h,hoverStyle:d,rectHover:!0},m,E);r.setHoverStyle(g),t.get("showTitle")&&(g.__title=l[s],g.on(ee,function(){var t=o[Se]("emphasis").getItemStyle();g[$]({text:l[s],textPosition:t.textPosition||ye,textFill:t.fill||t[y]||"#000",textAlign:t[F]||E})}).on(te,function(){g[$]({textFill:null})})),g[re](e.get("iconStatus."+s)||w),p.add(g),g.on("click",n.bind(i.onclick,i,u,c,s)),f[s]=g})}var p=this.group;if(p[H](),t.get("show")){var v=+t.get("itemSize"),m=t.get("feature")||{},g=this._features||(this._features={}),x=[];n.each(m,function(t,e){x.push(e)}),new o(this._featureNames||[],x).add(d)[ce](d)[se](n.curry(d,null)).execute(),this._featureNames=x,s.layout(p,t,c),s.addBackground(p,t),p.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var n=l[N](e,i.font),r=t[R][0]+p[R][0],a=t[R][1]+p[R][1]+v,o=!1;a+n[Pe]>c[Me]()&&(i.textPosition="top",o=!0);var s=o?-5-n[Pe]:v+8;r+n.width/2>c[Te]()?(i.textPosition=["100%",s],i[F]="right"):r-n.width/2<0&&(i.textPosition=[0,s],i[F]="left")}})}},updateView:function(t,e,i,r){n.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,r)})},updateLayout:function(t,e,i,r){n.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,i,r)})},remove:function(t,e){n.each(this._features,function(i){i[se]&&i[se](t,e)}),this.group[H]()},dispose:function(t,e){n.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[Re,Oe,"../featureManager"],function(t){function e(t){this.model=t}var i=t(Oe);e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},e[Ie].unusable=!i[we];var n=e[Ie];return n.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",a=document[P]("a"),o=n.get("type",!0)||"png";a.download=r+"."+o,a[J]="_blank";var s=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(a.href=s,typeof MouseEvent!==j||i.browser.ie||i.browser.edge){var l=n.get("lang"),u='',c=window.open();c.document.write(u)}else{var h=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(h)}},t("../featureManager").register("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[Re,De,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(De);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[Ie];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"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")||{},!0):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"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")||{},!0):void 0},stack:function(t,e,n,r){return"line"===t||"bar"===t?i.merge({id:e,stack:"__ec_magicType_stack__"},r.get("option.stack")||{},!0):void 0},tiled:function(t,e,n,r){return"line"===t||"bar"===t?i.merge({id:e,stack:""},r.get("option.tiled")||{},!0):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(e){var a=e.subType,s=e.id,u=r[n](a,s,e,o);u&&(i[ae](u,e[C]),l[ne].push(u));var c=e[ve];if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var h=c.getAxesByScale(d)[0];if(h){var f=h.dim,p=f+"Axis",v=t[S]({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],m=v[T];l[p]=l[p]||[];for(var g=0;m>=g;g++)l[p][m]=l[p][m]||{};l[p][m].boundaryGap="bar"===n?!0:!1}}};i.each(a,function(t){i[me](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,w)})}),o.setIconStatus(n,"emphasis"),t[_e]({mainType:"series",query:null==s?null:{seriesIndex:s}},u),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),t("../featureManager").register("magicType",e),e}),e("echarts/component/toolbox/feature/DataView",[Re,De,"zrender/core/event","../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var a=t[ve];if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var o=a.getBaseAxis();if(o.type===r){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s][ne].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return p.each(t,function(t){var i=t.categoryAxis,n=t.valueAxis,r=n.dim,a=[" "][A](p.map(t[ne],function(t){return t.name})),o=[i.model.getCategories()];p.each(t[ne],function(t){o.push(t.getRawData().mapArray(r,function(t){return t}))});for(var s=[a.join(g)],l=0;lo;o++)n[o]=arguments[o];i.push((a?a+g:"")+n.join(g))}),i.join("\n")}).join("\n\n"+m+"\n\n")}function a(t){var r=e(t);return{value:p[q]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[X](/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:r.meta}}function o(t){return t[X](/^\s\s*/,"")[X](/\s\s*$/,"")}function s(t){var e=t.slice(0,t[me]("\n"));return e[me](g)>=0?!0:void 0}function l(t){for(var e=t.split(/\n+/g),i=o(e.shift()).split(y),n=[],r=p.map(i,function(t){return{name:t,data:[]}}),a=0;a1?"emphasis":w)}function r(t,e,n,r){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key?r.dataZoomSelectActive:!1),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":w);var o=s.makeCoordInfoList(i(t[C]),e),l=o.xAxisHas&&!o.yAxisHas?"lineX":!o.xAxisHas&&o.yAxisHas?"lineY":"rect";n._brushController.setPanels(s.makePanelOpts(o)).enableBrush(a?{brushType:l,brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}var a=t(De),o=t("../../helper/BrushController"),s=t("../../helper/brushHelper"),l=t("../../dataZoom/history"),u=a.each;t("../../dataZoomSelect");var c="\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 h=e[Ie];h.render=function(t,e,i,a){this.model=t,this[M]=e,this.api=i,r(t,e,this,a),n(t,e)},h.onclick=function(t,e,i){d[i].call(this)},h[se]=function(){this._brushController.unmount()},h.dispose=function(){this._brushController.dispose()};var d={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(l.pop(this[M]))}};return h._onBrush=function(t,e){function n(t,e,i){var n=r(t,i[t],o);n&&(a[n.id]={dataZoomId:n.id,startValue:e[0],endValue:e[1]}) }function r(t,e,i){var n;return i[_e]({mainType:"dataZoom",subType:"select"},function(r){var a=r.get(t+"Index");null!=a&&i.getComponent(t,a)===e&&(n=r)}),n}if(e.isEnd&&t[ge]){var a={},o=this[M];this._brushController.updateCovers([]);var u=s.makeCoordInfoList(i(this.model[C]),o),c=[];s.parseOutputRanges(t,u,o,c);var h=t[0],d=c[0],f=h.coordRange,p=h.brushType;if(d&&f)if("rect"===p)n("xAxis",f[0],d),n("yAxis",f[1],d);else{var v={lineX:"xAxis",lineY:"yAxis"};n(v[p],f,d)}l.push(o,a),this._dispatchZoomAction(a)}},h._dispatchZoomAction=function(t){var e=[];u(t,function(t){e.push(a.clone(t))}),e[ge]&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},t("../featureManager").register("dataZoom",e),t("../../../echarts").registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"==o||a[U](o)||(o=o===!1||"none"===o?[]:[o]),i(t,function(e,i){if(null==o||"all"==o||-1!==a[me](o,i)){var s={type:"select",$fromToolbox:!0,id:c+t+i};s[r]=i,n.push(s)}})}}function i(e,i){var n=t[e];a[U](n)||(n=n?[n]:[]),u(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);a[U](n)||(t.dataZoom=n=[n]);var r=t.toolbox;if(r&&(a[U](r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),e}),e("echarts/component/toolbox/feature/Restore",[Re,"../../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[Ie];return n.onclick=function(t,e){i.clear(t),e.dispatchAction({type:"restore",from:this.uid})},t("../featureManager").register("restore",e),t("../../../echarts").registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/scale/Interval",[Re,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,o=e.getPrecisionSafe,s=e.round,l=n[oe]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),l[Ie].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this._extent,i=[],n=1e4;if(t){var r=this._niceExtent,a=o(t)+2;e[0]n)return[];e[1]>(i[ge]?i[i[ge]-1]:r[1])&&i.push(e[1])}return i},getTicksLabels:function(){for(var t=[],e=this[k](),i=0;in&&(n=-n,i.reverse());var l=s(e.nice(n/t,!0),Math.max(o(i[0]),o(i[1]))+2),u=o(l)+2,c=[s(a(i[0]/l)*l,u),s(r(i[1]/l)*l,u)];this._interval=l,this._niceExtent=c}},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1])if(0!==n[0]){var o=n[0];i?n[0]-=o/2:(n[1]+=o/2,n[0]-=o/2)}else n[1]=1;var l=n[1]-n[0];isFinite(l)||(n[0]=0,n[1]=1),this.niceTicks(t);var u=this._interval;e||(n[0]=s(r(n[0]/u)*u)),i||(n[1]=s(a(n[1]/u)*u))}});return l[he]=function(){return new l},l}),e("echarts/scale/Scale",[Re,"../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[Ie];return n.parse=function(t){return t},n[D]=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[1]&&(e[1]=t[1])},n[z]=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[k](),i=0;i1&&(o*=u(_),s*=u(_));var b=(r===a?-1:1)*u((o*o*s*s-o*o*x*x-s*s*y*y)/(o*o*x*x+s*s*y*y))||0,w=b*o*x/s,M=b*-s*y/o,T=(t+i)/2+h(g)*w-c(g)*M,S=(e+n)/2+c(g)*w+h(g)*M,C=v([1,0],[(y-w)/o,(x-M)/s]),A=[(y-w)/o,(x-M)/s],P=[(-1*y-w)/o,(-1*x-M)/s],L=v(A,P);p(A,P)<=-1&&(L=d),p(A,P)>=1&&(L=0),0===a&&L>0&&(L-=2*d),1===a&&0>L&&(L+=2*d),m.addData(f,T,S,o,s,C,L,g,a)}function i(t){if(!t)return[];var i,n=t[X](/-/g," -")[X](/ /g," ")[X](/ /g,",")[X](/,,/g,",");for(i=0;i0&&""===m[0]&&m.shift();for(var g=0;ga;a++){var o=t[a];o.__dirty&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.buildPath=function(t){t.appendPath(i);var e=t[L]();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/Path",[Re,"./Displayable","../core/util","../core/PathProxy","../contain/path","./Pattern"],function(t){function e(t){i.call(this,t),this.path=new a}var i=t("./Displayable"),r=t("../core/util"),a=t("../core/PathProxy"),o=t("../contain/path"),s=t("./Pattern"),l=s[Ie].getCanvasPattern,u=Math.abs;return e[Ie]={constructor:e,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path,r=i.hasStroke(),a=i.hasFill(),o=i.fill,s=i[y],u=a&&!!o[ue],c=r&&!!s[ue],h=a&&!!o.image,d=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var f=this[N]();u&&(this._fillGradient=i.getGradient(t,o,f)),c&&(this._strokeGradient=i.getGradient(t,s,f))}u?t.fillStyle=this._fillGradient:h&&(t.fillStyle=l.call(o,t)),c?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=l.call(s,t));var p=i.lineDash,v=i.lineDashOffset,m=!!t.setLineDash,g=this.getGlobalScale();n.setScale(g[0],g[1]),this.__dirtyPath||p&&!m&&r?(n=this.path.beginPath(t),p&&!m&&(n.setLineDash(p),n.setLineDashOffset(v)),this.buildPath(n,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),a&&n.fill(t),p&&m&&(t.setLineDash(p),t.lineDashOffset=v),r&&n[y](t),p&&m&&t.setLineDash([]),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this[N]())},buildPath:function(){},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n[N]()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var a=e[x],o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r[Pe]+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[N](),r=this.style;if(t=i[0],e=i[1],n[D](t,e)){var a=this.path.data;if(r.hasStroke()){var s=r[x],l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o[D](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i[Ie].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(r[le](t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[n];return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},e[oe]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,i)};r[Z](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[Ie][n]=t[n]);return i},r[Z](e,i),e}),e("zrender/container/Group",[Re,"../core/util","../Element","../core/BoundingRect"],function(t){var e=t("../core/util"),i=t("../Element"),n=t("../core/BoundingRect"),r=function(t){t=t||{},i.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};return r[Ie]={constructor:r,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i[ie](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[v]&&t[v][se](t),t[v]=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[me](a,t);return 0>o?this:(a[ie](o,1),t[v]=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;es&&(a=n*(1-s)+a*s,o=r*(1-s)+o*s),t.lineTo(a,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/Rect",[Re,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[oe]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[Pe];i.r?e.buildPath(t,i):t.rect(n,r,a,o),t.closePath()}})}),e("zrender/graphic/shape/Ring",[Re,"../Path"],function(t){return t("../Path")[oe]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=2*Math.PI;t[i](n+e.r,r),t.arc(n,r,e.r,0,a,!1),t[i](n+e.r0,r),t.arc(n,r,e.r0,0,a,!0)}})}),e("zrender/graphic/shape/BezierCurve",[Re,"../../core/curve","../../core/vector","../Path"],function(t){function e(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?c:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?c:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?u:s)(t.x1,t.cpx1,t.x2,e),(i?u:s)(t.y1,t.cpy1,t.y2,e)]}var n=t("../../core/curve"),r=t("../../core/vector"),a=n.quadraticSubdivide,o=n.cubicSubdivide,s=n.quadraticAt,l=n.cubicAt,u=n.quadraticDerivativeAt,c=n.cubicDerivativeAt,h=[];return t("../Path")[oe]({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 n=e.x1,r=e.y1,s=e.x2,l=e.y2,u=e.cpx1,c=e.cpy1,d=e.cpx2,f=e.cpy2,p=e.percent;0!==p&&(t[i](n,r),null==d||null==f?(1>p&&(a(n,u,s,p,h),u=h[1],s=h[2],a(r,c,l,p,h),c=h[1],l=h[2]),t.quadraticCurveTo(u,c,s,l)):(1>p&&(o(n,u,d,s,p,h),u=h[1],d=h[2],s=h[3],o(r,c,f,l,p,h),c=h[1],f=h[2],l=h[3]),t.bezierCurveTo(u,c,d,f,s,l)))},pointAt:function(t){return e(this.shape,t,!1)},tangentAt:function(t){var i=e(this.shape,t,!0);return r.normalize(i,i)}})}),e("zrender/graphic/shape/Arc",[Re,"../Path"],function(t){return t("../Path")[oe]({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 n=e.cx,r=e.cy,a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),c=Math.sin(o);t[i](u*a+n,c*a+r),t.arc(n,r,a,o,s,!l)}})}),e("zrender/graphic/CompoundPath",[Re,"./Path"],function(t){var e=t("./Path");return e[oe]({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;ii&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this[Pe]=n}var i=t("./vector"),n=t("./matrix"),r=i[_],a=Math.min,o=Math.max;return e[Ie]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=o(t.x+t.width,this.x+this.width)-e,this[Pe]=o(t.y+t[Pe],this.y+this[Pe])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(s){if(s){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this[Pe],r(t,t,s),r(e,e,s),r(i,i,s),r(n,n,s),this.x=a(t[0],e[0],i[0],n[0]),this.y=a(t[1],e[1],i[1],n[1]);var l=o(t[0],e[0],i[0],n[0]),u=o(t[1],e[1],i[1],n[1]);this.width=l-this.x,this[Pe]=u-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[Pe]/e[Pe],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){if(!t)return!1;t instanceof e||(t=e[he](t));var i=this,n=i.x,r=i.x+i.width,a=i.y,o=i.y+i[Pe],s=t.x,l=t.x+t.width,u=t.y,c=t.y+t[Pe];return!(s>r||n>l||u>o||a>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[Pe]},clone:function(){return new e(this.x,this.y,this.width,this[Pe])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[Pe]=t[Pe]},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this[Pe]}}},e[he]=function(t){return new e(t.x,t.y,t.width,t[Pe])},e}),e("zrender/graphic/RadialGradient",[Re,"../core/util","./Gradient"],function(t){var e=t("../core/util"),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,i.call(this,r)};return n[Ie]={constructor:n},e[Z](n,i),n}),e("zrender/contain/text",[Re,"../core/util","../core/BoundingRect"],function(t){function e(t,e){var i=t+":"+e;if(o[i])return o[i];for(var n=(t+"").split("\n"),r=0,a=0,u=n[ge];u>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return s>l&&(s=0,o={}),s++,o[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[ge],o=e(t,i),s=e("国",i),l=a*s,u=new c(0,0,o,l);switch(u.lineHeight=s,r){case ye:case"alphabetic":u.y-=s;break;case B:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case E:u.x-=u.width/2}return u}function n(t,e,i,n){var r=e.x,a=e.y,o=e[Pe],s=e.width,l=i[Pe],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=E;break;case ye:r+=s/2,a+=o+n,c=E;break;case m:r+=s/2,a+=u,c=E;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=E;break;case"insideBottom":r+=s/2,a+=o-l-n,c=E;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,o){if(!i)return"";o=o||{},r=h(r,"...");for(var s=h(o.maxIterations,2),l=h(o.minChar,0),u=e("国",n),c=e("a",n),d=h(o.placeholder,""),f=i=Math.max(0,i-1),p=0;l>p&&f>=c;p++)f-=c;var v=e(r);v>f&&(r="",v=0),f=i-v;for(var m=(t+"").split("\n"),p=0,g=m[ge];g>p;p++){var y=m[p],x=e(y,n);if(!(i>=x)){for(var _=0;;_++){if(f>=x||_>=s){y+=r;break}var b=0===_?a(y,f,c,u):x>0?Math.floor(y[ge]*f/x):0;y=y.substr(0,b),x=e(y,n)}""===y&&(y=d),m[p]=y}}return m.join("\n")}function a(t,e,i,n){for(var r=0,a=0,o=t[ge];o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?i:n}return a}var o={},s=0,l=5e3,u=t("../core/util"),c=t("../core/BoundingRect"),h=u[f],d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,truncateText:r,measureText:function(t,e){var i=u[L]();return i.font=e||"12px sans-serif",i.measureText(t)}};return d}),e("echarts/coord/axisHelper",[Re,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",De,"zrender/contain/text"],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),a=t("../util/number"),o=t(De),s=t("zrender/contain/text"),l={};return l.getScaleExtent=function(t,e){var i=t.scale,n=i[z](),r=n[1]-n[0];if(i.type===d)return isFinite(r)?n:[0,0];var s=e.getMin?e.getMin():e.get("min"),l=e.getMax?e.getMax():e.get("max"),u=e.getNeedCrossZero?e.getNeedCrossZero():!e.get("scale"),c=e.get("boundaryGap");o[U](c)||(c=[c||0,c||0]),c[0]=a.parsePercent(c[0],1),c[1]=a.parsePercent(c[1],1);var h=!0,f=!0;return null==s&&(s=n[0]-c[0]*r,h=!1),null==l&&(l=n[1]+c[1]*r,f=!1),"dataMin"===s&&(s=n[0]),"dataMax"===l&&(l=n[1]),u&&(s>0&&l>0&&!h&&(s=0),0>s&&0>l&&!f&&(l=0)),[s,l]},l.niceScaleExtent=function(t,e){var i=t.scale,n=l.getScaleExtent(t,e),r=null!=(e.getMin?e.getMin():e.get("min")),a=null!=(e.getMax?e.getMax():e.get("max")),o=e.get("splitNumber");"log"===i.type&&(i.base=e.get("logBase")),i.setExtent(n[0],n[1]),i.niceExtent(o,r,a);var s=e.get("minInterval");if(isFinite(s)&&!r&&!a&&"interval"===i.type){var u=i.getInterval(),c=Math.max(Math.abs(u),s)/u;n=i[z]();var h=(n[1]+n[0])/2;i.setExtent(c*(n[0]-h)+h,c*(n[1]-h)+h),i.niceExtent(o)}var u=e.get("interval");null!=u&&i.setInterval&&i.setInterval(u)},l.createScaleByModel=function(t,a){if(a=a||t.get("type"))switch(a){case r:return new e(t.getCategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getClass(a)||i)[he](t)}},l.ifAxisCrossZero=function(t){var e=t.scale[z](),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},l.getAxisLabelInterval=function(t,e,i,n){var r,a=0,o=0,l=1;e[ge]>40&&(l=Math.floor(e[ge]/40));for(var u=0;u1?l:(a+1)*l-1},l.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),a=i[k]();return typeof e===Le?(e=function(t){return function(e){return t[X]("{value}",null!=e?e:"")}}(e),o.map(n,e)):typeof e===j?o.map(a,function(n,a){return e(t.type===r?i.getLabel(n):n,a)},this):n},l}),e("echarts/coord/cartesian/Cartesian2D",[Re,De,"./Cartesian"],function(t){function e(t){n.call(this,t)}var i=t(De),n=t("./Cartesian");return e[Ie]={constructor:e,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale(d)[0]||this.getAxesByScale("time")[0]||this[o]("x")},containPoint:function(t){var e=this[o]("x"),i=this[o]("y");return e[D](e.toLocalCoord(t[0]))&&i[D](i.toLocalCoord(t[1]))},containData:function(t){return this[o]("x").containData(t[0])&&this[o]("y").containData(t[1])},dataToPoints:function(t,e){return t.mapArray(["x","y"],function(t,e){return this[s]([t,e])},e,this)},dataToPoint:function(t,e){var i=this[o]("x"),n=this[o]("y");return[i.toGlobalCoord(i[a](t[0],e)),n.toGlobalCoord(n[a](t[1],e))]},pointToData:function(t,e){var i=this[o]("x"),n=this[o]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[o]("x"===t.dim?"y":"x")}},i[Z](e,n),e}),e("echarts/coord/cartesian/Axis2D",[Re,De,"../Axis","./axisLabelInterval"],function(t){var e=t(De),i=t("../Axis"),n=t("./axisLabelInterval"),a=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[R]=a||ye};return a[Ie]={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[R];return"top"===t||t===ye},getGlobalExtent:function(){var t=this[z]();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===r){var e=this.getLabelInterval();return typeof e===j&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[Z](a,i),a}),e("echarts/coord/cartesian/GridModel",[Re,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[oe]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("echarts/util/clazz",[Re,De],function(t){function e(t,e){var i=n.slice(arguments,2);return this.superClass[Ie][e].apply(t,i)}function i(t,e,i){return this.superClass[Ie][e].apply(t,i)}var n=t(De),r={},a=".",o="___EC__COMPONENT__CONTAINER___",s=r.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(a),e.main=t[0]||"",e.sub=t[1]||""),e};return r.enableClassExtend=function(t,r){t.$constructor=t,t[oe]=function(t){var r=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):r.apply(this,arguments)};return n[oe](a[Ie],t),a[oe]=this[oe],a.superCall=e,a.superApply=i,n[Z](a,this),a.superClass=r,a}},r.enableClassManagement=function(t,e){function i(t){var e=r[t.main];return e&&e[o]||(e=r[t.main]={},e[o]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=s(e),e.sub){if(e.sub!==o){var n=i(e);n[e.sub]=t}}else r[e.main]=t;return t},t.getClass=function(t,e,i){var n=r[t];if(n&&n[o]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists. Load it first.");return n},t.getClassesByMainType=function(t){t=s(t);var e=[],i=r[t.main];return i&&i[o]?n.each(i,function(t,i){i!==o&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=s(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return n.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=s(t);var e=r[t.main];return e&&e[o]},t.parseClassType=s,e.registerWhenExtend){var a=t[oe];a&&(t[oe]=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t},r.setReadOnly=function(){},r}),e("echarts/model/mixin/lineStyle",[Re,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[x,"width"],[y,"color"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash(i[x]);return n&&(i.lineDash=n),i},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}}}),e("echarts/model/mixin/areaStyle",[Re,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[O],["shadowColor"]])}}),e("echarts/model/mixin/textStyle",[Re,"zrender/contain/text"],function(t){function e(t,e){return t&&t[g](e)}var i=t("zrender/contain/text");return{getTextColor:function(){var t=this[M];return this[g]("color")||t&&t.get("textStyle.color") },getFont:function(){var t=this[M],i=t&&t[Se](G);return[this[g]("fontStyle")||e(i,"fontStyle"),this[g]("fontWeight")||e(i,"fontWeight"),(this[g]("fontSize")||e(i,"fontSize")||12)+"px",this[g]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){return i[N](t,this[V](),this[g]("align"),this[g]("baseline"))},truncateText:function(t,e,n,r){return i.truncateText(t,e,this[V](),n,r)}}}),e("echarts/model/mixin/itemStyle",[Re,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([["fill","color"],[y,"borderColor"],[x,"borderWidth"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],[F]]);return{getItemStyle:function(t){var i=e.call(this,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/graphic/mixin/RectText",[Re,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===Le?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var i=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[Ie]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){t.save();var u,c,h=s.textPosition,d=s.textDistance,f=s[F],p=s.textFont||s.font,v=s.textBaseline,m=s.textVerticalAlign;o=o||i[N](l,p,f,v);var g=this[n];if(s.textTransform?this.setTransform(t):g&&(a.copy(r),a[_](g),r=a),h instanceof Array){if(u=r.x+e(h[0],r.width),c=r.y+e(h[1],r[Pe]),f=f||"left",v=v||"top",m){switch(m){case B:c-=o[Pe]/2-o.lineHeight/2;break;case ye:c-=o[Pe]-o.lineHeight/2;break;default:c+=o.lineHeight/2}v=B}}else{var y=i.adjustTextPositionOnRect(h,r,o,d);u=y.x,c=y.y,f=f||y[F],v=v||y.textBaseline}t[F]=f||"left",t.textBaseline=v||"alphabetic";var x=s.textFill,b=s.textStroke;x&&(t.fillStyle=x),b&&(t.strokeStyle=b),t.font=p||"12px sans-serif",t.shadowBlur=s.textShadowBlur,t.shadowColor=s.textShadowColor||"transparent",t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;var w=l.split("\n");s.textRotation&&(g&&t.translate(g[4],g[5]),t.rotate(s.textRotation),g&&t.translate(-g[4],-g[5]));for(var M=0;Mthis._ux||g(e-this._yi)>this._uy||this._len<5;return this.addData(s.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,a){return this.addData(s.C,t,e,i,n,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,a):this._ctx.bezierCurveTo(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,i,n){return this.addData(s.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.addData(s.A,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=p(r)*i+t,this._xi=v(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(s.R,t,e,i,n),this},closePath:function(){this.addData(s.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[y](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ii;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[ge],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();x&&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;oe[ge]&&(this._expandData(),e=this.data);for(var i=0;io&&(o=a+o),o%=a,g-=o*h,y-=o*p;h>0&&t>=g||0>h&&g>=t||0==h&&(p>0&&e>=y||0>p&&y>=e);)r=this._dashIdx,n=s[r],g+=h*n,y+=p*n,this._dashIdx=(r+1)%x,h>0&&u>g||0>h&&g>u||p>0&&c>y||0>p&&y>c||l[r%2?i:"lineTo"](h>=0?d(g,t):f(g,t),p>=0?d(y,e):f(y,e));h=g-t,p=y-e,this._dashOffset=-m(h*h+p*p)},_dashedBezierTo:function(t,n,r,a,o,s){var l,u,c,h,d,f=this._dashSum,p=this._dashOffset,v=this._lineDash,g=this._ctx,y=this._xi,x=this._yi,_=e.cubicAt,b=0,w=this._dashIdx,M=v[ge],T=0;for(0>p&&(p=f+p),p%=f,l=0;1>l;l+=.1)u=_(y,t,r,o,l+.1)-_(y,t,r,o,l),c=_(x,n,a,s,l+.1)-_(x,n,a,s,l),b+=m(u*u+c*c);for(;M>w&&(T+=v[w],!(T>p));w++);for(l=(T-p)/b;1>=l;)h=_(y,t,r,o,l),d=_(x,n,a,s,l),w%2?g[i](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(){var t=this.data;t instanceof Array&&(t[ge]=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=c[0]=c[1]=Number.MAX_VALUE,u[0]=u[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,o=0,d=0,f=0;ff;){var m=u[f++];switch(1==f&&(r=u[f],a=u[f+1],e=r,n=a),m){case s.M:e=r=u[f++],n=a=u[f++],t[i](r,a);break;case s.L:o=u[f++],l=u[f++],(g(o-r)>c||g(l-a)>h||f===d-1)&&(t.lineTo(o,l),r=o,a=l);break;case s.C:t.bezierCurveTo(u[f++],u[f++],u[f++],u[f++],u[f++],u[f++]),r=u[f-2],a=u[f-1];break;case s.Q:t.quadraticCurveTo(u[f++],u[f++],u[f++],u[f++]),r=u[f-2],a=u[f-1];break;case s.A:var y=u[f++],x=u[f++],_=u[f++],b=u[f++],w=u[f++],M=u[f++],T=u[f++],S=u[f++],C=_>b?_:b,A=_>b?1:_/b,P=_>b?b/_:1,L=Math.abs(_-b)>.001,I=w+M;L?(t.translate(y,x),t.rotate(T),t.scale(A,P),t.arc(0,0,C,w,I,1-S),t.scale(1/A,1/P),t.rotate(-T),t.translate(-y,-x)):t.arc(y,x,C,w,I,1-S),1==f&&(e=p(w)*_+y,n=v(w)*b+x),r=p(I)*_+y,a=v(I)*b+x;break;case s.R:e=r=u[f],n=a=u[f+1],t.rect(u[f++],u[f++],u[f++],u[f++]);break;case s.Z:t.closePath(),r=e,a=n}}}},_.CMD=s,_}),e("zrender/graphic/Displayable",[Re,"../core/util","./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style),this._rect=null,this.__clipPaths=[]}var i=t("../core/util"),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[Ie]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this[N]();return n[D](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[Ie].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new n(t),this.dirty(!1),this}},i[Z](e,r),i.mixin(e,a),e}),e("zrender/graphic/Gradient",[Re],function(){var t=function(t){this[ue]=t||[]};return t[Ie]={constructor:t,addColorStop:function(t,e){this[ue].push({offset:t,color:e})}},t}),e("zrender/vml/core",[Re,"exports","module","../core/env"],function(t,e,i){if(!t("../core/env")[we]){var n,r="urn:schemas-microsoft-com:vml",a=window,o=a.document,s=!1;try{!o.namespaces.zrvml&&o.namespaces.add("zrvml",r),n=function(t){return o[P]("')}}catch(l){n=function(t){return o[P]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.styleSheets;t[ge]<31?o.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};i.exports={doc:o,initVML:u,createNode:n}}}),e("echarts/component/toolbox/featureManager",[Re],function(){var t={};return{register:function(e,i){t[e]=i},get:function(e){return t[e]}}}),e("zrender/contain/path",[Re,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=f.cubicRootAt(e,r,o,l,c,y);if(0===h)return 0;for(var d,p,v=0,m=-1,g=0;h>g;g++){var _=y[g],b=0===_||1===_?.5:1,w=f.cubicAt(t,n,a,s,_);u>w||(0>m&&(m=f.cubicExtrema(e,r,o,l,x),x[1]1&&i(),d=f.cubicAt(e,r,o,l,x[0]),m>1&&(p=f.cubicAt(e,r,o,l,x[1]))),v+=2==m?_d?b:-b:_p?b:-b:p>l?b:-b:_d?b:-b:d>l?b:-b)}return v}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var u=f.quadraticExtremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=f.quadraticAt(e,n,a,u),d=0;l>d;d++){var p=0===y[d]||1===y[d]?.5:1,v=f.quadraticAt(t,i,r,y[d]);o>v||(c+=y[d]h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,v=f.quadraticAt(t,i,r,y[0]);return o>v?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%m){n=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=m);for(var h=0,f=0;2>f;f++){var p=y[f];if(p+t>o){var v=Math.atan2(s,p),c=a?1:-1;0>v&&(v=m+v),(v>=n&&r>=v||v+m>=n&&r>=v+m)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,m=0,g=0,y=0,x=0,_=0;_1&&(o||(f+=p(m,g,y,x,l,d))),1==_&&(m=t[_],g=t[_+1],y=m,x=g),b){case s.M:y=t[_++],x=t[_++],m=y,g=x;break;case s.L:if(o){if(v(m,g,t[_],t[_+1],i,l,d))return!0}else f+=p(m,g,t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.C:if(o){if(u.containStroke(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=n(m,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.Q:if(o){if(c.containStroke(m,g,t[_++],t[_++],t[_],t[_+1],i,l,d))return!0}else f+=r(m,g,t[_++],t[_++],t[_],t[_+1],l,d)||0;m=t[_++],g=t[_++];break;case s.A:var w=t[_++],M=t[_++],T=t[_++],S=t[_++],C=t[_++],A=t[_++],P=(t[_++],1-t[_++]),L=Math.cos(C)*T+w,I=Math.sin(C)*S+M;_>1?f+=p(m,g,L,I,l,d):(y=L,x=I);var k=(l-w)*S/T+w;if(o){if(h.containStroke(w,M,S,C,C+A,P,i,k,d))return!0}else f+=a(w,M,S,C,C+A,P,k,d);m=Math.cos(C+A)*T+w,g=Math.sin(C+A)*S+M;break;case s.R:y=m=t[_++],x=g=t[_++];var z=t[_++],D=t[_++],L=y+z,I=x+D;if(o){if(v(y,x,L,x,i,l,d)||v(L,x,L,I,i,l,d)||v(L,I,y,I,i,l,d)||v(y,I,y,x,i,l,d))return!0}else f+=p(L,x,L,I,l,d),f+=p(y,I,y,x,l,d);break;case s.Z:if(o){if(v(m,g,y,x,i,l,d))return!0}else f+=p(m,g,y,x,l,d);m=y,g=x}}return o||e(g,x)||(f+=p(m,g,y,x,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],x=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/tool/transformPath",[Re,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,d,f=t.data,p=i.M,v=i.C,m=i.L,g=i.R,y=i.A,x=i.Q;for(u=0,c=0;uh;h++){var d=a[h];d[0]=f[u++],d[1]=f[u++],r(d,d,e),f[c++]=d[0],f[c++]=d[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[_],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/graphic/Pattern",[Re],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[Ie].getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t}),e("echarts/scale/Ordinal",[Re,De,"./Scale"],function(t){var e=t(De),i=t("./Scale"),n=i[Ie],r=i[oe]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[ge]-1]},parse:function(t){return typeof t===Le?e[me](this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),n[D].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[he]=function(){return new r},r}),e("echarts/model/mixin/makeStyleMapper",[Re,De],function(t){var e=t(De);return function(t){for(var i=0;i=0)){var o=this[g](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("zrender/core/curve",[Re,"./vector"],function(t){function e(t){return t>-_&&_>t}function i(t){return t>_||-_>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,d=l*u-9*s*c,f=u*u-3*l*c,p=0;if(e(h)&&e(d))if(e(l))o[0]=0;else{var v=-u/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*h*f;if(e(m)){var g=d/h,v=-l/s+g,_=-g/2;v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_)}else if(m>0){var b=x(m),T=h*l+1.5*s*(-d+b),S=h*l+1.5*s*(-d-b);T=0>T?-y(-T,M):y(T,M),S=0>S?-y(-S,M):y(S,M);var v=(-l-(T+S))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var C=(2*h*l-3*s*d)/(2*x(h*h*h)),A=Math.acos(C)/3,P=x(h),L=Math.cos(A),v=(-l-2*P*L)/(3*s),_=(-l+P*(L+w*Math.sin(A)))/(3*s),I=(-l+P*(L-w*Math.sin(A)))/(3*s);v>=0&&1>=v&&(o[p++]=v),_>=0&&1>=_&&(o[p++]=_),I>=0&&1>=I&&(o[p++]=I)}}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=x(d),h=(-s+f)/(2*l),p=(-s-f)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var d,f,p,v,m,y=.005,_=1/0;T[0]=u,T[1]=c;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,l,w),v=g(T,S),_>v&&(d=w,_=v);_=1/0;for(var M=0;32>M&&!(b>y);M++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,T),f>=0&&_>v?(d=f,_=v):(C[0]=n(t,i,a,s,p),C[1]=n(e,r,o,l,p),m=g(C,T),1>=p&&_>m?(d=p,_=m):y*=.5);return h&&(h[0]=n(t,i,a,s,d),h[1]=n(e,r,o,l,d)),x(_)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var d=l*l-4*s*u;if(e(d)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(d>0){var f=x(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;T[0]=o,T[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(T,S);d>p&&(c=f,d=p)}d=1/0;for(var v=0;32>v&&!(b>h);v++){var m=c-h,y=c+h;S[0]=u(t,i,r,m),S[1]=u(e,n,a,m);var p=g(S,T);if(m>=0&&d>p)c=m,d=p;else{C[0]=u(t,i,r,y),C[1]=u(e,n,a,y);var _=g(C,T);1>=y&&d>_?(c=y,d=_):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),x(d)}var v=t("./vector"),m=v[he],g=v.distSquare,y=Math.pow,x=Math.sqrt,_=1e-8,b=1e-4,w=x(3),M=1/3,T=m(),S=m(),C=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:u,quadraticDerivativeAt:c,quadraticRootAt:h,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[Re,"./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;n.fromPoints=function(t,e,i){if(0!==t[ge]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;nv;v++){var x=g(t,n,s,u,d[v]);h[0]=r(x,h[0]),p[0]=a(x,p[0])}for(y=m(e,o,l,c,f),v=0;y>v;v++){var _=g(e,o,l,c,f[v]);h[1]=r(_,h[1]),p[1]=a(_,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(u,h[0]),p[0]=a(u,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromQuadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticExtremum,d=i.quadraticAt,f=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),v=d(t,n,s,f),m=d(e,o,l,p);u[0]=r(t,s,v),u[1]=r(e,l,m),c[0]=a(t,s,v),c[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,d,f,p,v){var m=e.min,g=e.max,y=Math.abs(a-d);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(d)*n+t,u[1]=o(d)*r+i,m(p,l,u),g(v,l,u),a%=h,0>a&&(a+=h),d%=h,0>d&&(d+=h),a>d&&!f?d+=h:d>a&&f&&(a+=h),f){var x=d;d=a,a=x}for(var _=0;d>_;_+=Math.PI/2)_>a&&(c[0]=s(_)*n+t,c[1]=o(_)*r+i,m(p,c,p),g(v,c,v))},n}),e("zrender/config",[],function(){var t=1;typeof window!==I&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/graphic/Style",[Re],function(){function t(t,e,i){var n=e.x,r=e.x2,a=e.y,o=e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[Pe]+i.y,o=o*i[Pe]+i.y);var s=t.createLinearGradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[Pe],a=Math.min(n,r),o=e.x,s=e.y,l=e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createRadialGradient(o,s,0,o,s,l);return u}var i=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(t){this.extendFrom(t)};n[Ie]={constructor:n,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s0},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===Le?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n[ue],l=0;l=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[ge]){var l=n(i),u=l.graph,c=l.noEntryList,h={};for(e.each(t,function(t){h[t]=!0});c[ge];){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/model/mixin/boxLayout",[Re],function(){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(ye),width:this.get("width"),height:this.get(Pe)}}}}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/Transformable",[Re,"../core/matrix","../core/vector"],function(t){function e(t){return t>o||-o>t}var i=t("../core/matrix"),r=t("../core/vector"),a=i.identity,o=5e-5,s=function(t){t=t||{},t[R]||(this[R]=[0,0]),null==t[p]&&(this[p]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s[Ie];l[n]=null,l.needLocalTransform=function(){return e(this[p])||e(this[R][0])||e(this[R][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},l.updateTransform=function(){var t=this[v],e=t&&t[n],r=this.needLocalTransform(),o=this[n];return r||e?(o=o||i[he](),r?this.getLocalTransform(o):a(o),e&&(r?i.mul(o,t[n],o):i.copy(o,t[n])),this[n]=o,this.invTransform=this.invTransform||i[he](),void i.invert(this.invTransform,o)):void(o&&a(o))},l.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,n=this.scale,r=this[p],o=this[R];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),r&&i.rotate(t,t,r),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},l.setTransform=function(t){var e=this[n],i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},l.restoreTransform=function(t){var e=(this[n],t.dpr||1);t.setTransform(e,0,0,e,0,0)};var u=[];return l.decomposeTransform=function(){if(this[n]){var t=this[v],r=this[n];t&&t[n]&&(i.mul(u,t.invTransform,r),r=u);var a=r[0]*r[0]+r[1]*r[1],o=r[2]*r[2]+r[3]*r[3],s=this[R],l=this.scale;e(a-1)&&(a=Math.sqrt(a)),e(o-1)&&(o=Math.sqrt(o)),r[0]<0&&(a=-a),r[3]<0&&(o=-o),s[0]=r[4],s[1]=r[5],l[0]=a,l[1]=o,this[p]=Math.atan2(-r[1]/o,r[0]/a)}},l.getGlobalScale=function(){var t=this[n];if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},l.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&r[_](i,i,n),i},l.transformCoordToGlobal=function(t,e){var i=[t,e],a=this[n];return a&&r[_](i,i,a),i},s}),e("zrender/mixin/Animatable",[Re,"../animation/Animator","../core/util","../core/log"],function(t){var e=t("../animation/Animator"),i=t("../core/util"),n=i.isString,r=i.isFunction,a=i[le],o=t("../core/log"),s=function(){this.animators=[]};return s[Ie]={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[ge];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[ie](i[me](f,p),1)}),f.push(p),l&&l[Ce].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[ge],n=0;i>n;n++)e[n].stop(t);return e[ge]=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[ge];u||o&&o();for(var c=0;c0&&this.animate(t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("echarts/coord/Axis",[Re,"../util/number",De],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i.linearMap,r=t(De),o=[0,1],s=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return s[Ie]={constructor:s,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[D](this[a](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i.getPixelPrecision(t||this.scale[z](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type===d&&(r=r.slice(),e(r,a.count())),n(t,o,r,i)},coordToData:function(t,i){var r=this._extent,a=this.scale;this.onBand&&a.type===d&&(r=r.slice(),e(r,a.count()));var s=n(t,r,o,i);return this.scale.scale(s)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;no;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[z](),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},s}),e("echarts/coord/cartesian/axisLabelInterval",[Re,De,"../axisHelper"],function(t){var e=t(De),i=t("../axisHelper");return function(t){var n=t.model,o=n[Se]("axisLabel"),s=o.get("interval");return t.type!==r||"auto"!==s?"auto"===s?0:s:i.getAxisLabelInterval(e.map(t.scale[k](),t[a],t),n.getFormattedLabels(),o[Se](G)[V](),t.isHorizontal())}}),e("zrender/core/log",[Re,"../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",[Re,"./Clip","../tool/color","../core/util"],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[ge];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][ge],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[ge],r=e[ge];if(n!==r){var a=n>r;if(a)t[ge]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}for(var s=t[0]&&t[0][ge],o=0;ol;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function s(t,e,i){if(t===e)return!0;var n=t[ge];if(n!==e[ge])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][ge],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[ge];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][ge],h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(t[h][f],e[h][f],i[h][f],n[h][f],r,a,o)}function u(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function c(t){if(m(t)){var e=t[ge];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function h(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,c,d){var v=t._getter,g=t._setter,y="spline"===e,x=c[ge];if(x){var _,b=c[0].value,w=m(b),M=!1,T=!1,S=w&&m(b[0])?2:1;c.sort(function(t,e){return t.time-e.time}),_=c[x-1].time;for(var C=[],A=[],P=c[0].value,L=!0,I=0;x>I;I++){C.push(c[I].time/_);var k=c[I].value;if(w&&s(k,P,S)||!w&&k===P||(L=!1),P=k,typeof k==Le){var z=p.parse(k);z?(k=z,M=!0):T=!0}A.push(k)}if(!L){for(var D=A[x-1],I=0;x-1>I;I++)w?o(A[I],D,S):!isNaN(A[I])||isNaN(D)||T||M||(A[I]=D);w&&o(v(t._target,d),D,S);var O,R,E,B,N,V,F=0,G=0;if(M)var H=[0,0,0,0];var Z=function(t,e){var i;if(0>e)i=0;else if(G>e){for(O=Math.min(F+1,x-1),i=O;i>=0&&!(C[i]<=e);i--);i=Math.min(i,x-2)}else{for(i=F;x>i&&!(C[i]>e);i++);i=Math.min(i-1,x-2)}F=i,G=e;var o=C[i+1]-C[i];if(0!==o)if(R=(e-C[i])/o,y)if(B=A[i],E=A[0===i?i:i-1],N=A[i>x-2?x-1:i+1],V=A[i>x-3?x-1:i+2],w)l(E,B,N,V,R,R*R,R*R*R,v(t,d),S);else{var s;if(M)s=l(E,B,N,V,R,R*R,R*R*R,H,1),s=h(H);else{if(T)return r(B,N,R);s=u(E,B,N,V,R,R*R,R*R*R)}g(t,d,s)}else if(w)a(A[i],A[i+1],R,v(t,d),S);else{var s;if(M)a(A[i],A[i+1],R,H,1),s=h(H);else{if(T)return r(A[i],A[i+1],R);s=n(A[i],A[i+1],R)}g(t,d,s)}},q=new f({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:Z,ondestroy:i});return e&&"spline"!==e&&(q.easing=e),q}}}var f=t("./Clip"),p=t("../tool/color"),v=t("../core/util"),m=v.isArrayLike,g=Array[Ie].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[Ie]={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:c(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[ge]=0;for(var t=this._doneList,e=t[ge],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[Ce]&&this[Ce].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;ne)){e=Math.min(e,1);var n=this.easing,r=typeof n==Le?i[n]:n,a=typeof r===j?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime)%this._life;this._startTime=t-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e("echarts/coord/axisModelZoomMixin",[Re],function(){return{getMin:function(){var t=this[C],e=null!=t.rangeStart?t.rangeStart:t.min;return e instanceof Date&&(e=+e),e},getMax:function(){var t=this[C],e=null!=t.rangeEnd?t.rangeEnd:t.max;return e instanceof Date&&(e=+e),e},getNeedCrossZero:function(){var t=this[C];return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},setRange:function(t,e){this[C].rangeStart=t,this[C].rangeEnd=e},resetRange:function(){this[C].rangeStart=this[C].rangeEnd=null}}}),e("echarts/coord/axisModelCreator",[Re,"./axisDefault",De,"../model/Component","../util/layout"],function(t){var e=t("./axisDefault"),i=t(De),n=t("../model/Component"),a=t("../util/layout"),o=["value",r,"time","log"];return function(t,r,s,l){i.each(o,function(n){r[oe]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,l=o?a.getLayoutParams(e):{},u=r.getTheme();i.merge(e,u.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=s(t,e),o&&a.mergeLayoutParam(e,l,o)},defaultOption:i.mergeAll([{},e[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(s,t))}}),e("echarts/coord/axisModelCommonMixin",[Re,De,"./axisHelper"],function(t){function e(t){return a[le](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===r&&a.map(this.get("data"),e)}function n(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var a=t(De),o=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("echarts/coord/axisDefault",[Re,De],function(t){var e=t(De),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),r=e.merge({boundaryGap:[0,0],splitNumber:5},i),a=e[ae]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[ae]({logBase:10},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("zrender/contain/arc",[Re,"./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/cubic",[Re,"../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/quadratic",[Re,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticProjectPoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/contain/util",[Re],function(){var t=2*Math.PI;return{normalizeRadian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var l=s*(i-t)+t;return l>r?o:0}}),e("zrender/core/LRU",[Re],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[Ie];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[se]=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[Ie];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[se](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[se](e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/chart/helper/createListFromArray",[Re,"../../data/List","../../data/helper/completeDimensions",De,"../../util/model","../../CoordinateSystem"],function(t){function e(t){for(var e=0;e=0&&i(t)?function(t,e,i,n){return p.isDataItemOption(t)&&(_.hasItemOption=!0),n===x?i:g(m(t),d[n])}:function(t,e,i,n){var r=m(t),a=g(r&&r[n],d[n]);p.isDataItemOption(t)&&(_.hasItemOption=!0);var o=l&&l.categoryAxesModels;return o&&o[e]&&typeof a===Le&&(w[e]=w[e]||o[e].getCategories(),a=f[me](w[e],a),0>a&&!isNaN(a)&&(a=+a)),a};return _.hasItemOption=!1,_.initData(t,b,M),_}function a(t){return t!==r&&"time"!==t}function o(t){return t===r?d:"time"===t?"time":"float"}function s(t,e){var i,n=[],r=t&&t[c][t.categoryIndex];if(r&&(i=t.categoryAxesModels[r.name]),i){var a=i.getCategories();if(a){var o=e[ge];if(f[U](e[0])&&e[0][ge]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryIndex||0]]}else n=a.slice(0)}}return n}var u=t("../../data/List"),h=t("../../data/helper/completeDimensions"),f=t(De),p=t("../../util/model"),v=t("../../CoordinateSystem"),m=p.getDataItemValue,g=p.converDataValue,y={cartesian2d:function(t,e,i){var n=f.map(["xAxis","yAxis"],function(t){return i[S]({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),s=n[0],l=n[1],u=s.get("type"),c=l.get("type"),d=[{name:"x",type:o(u),stackable:a(u)},{name:"y",type:o(c),stackable:a(c)}],p=u===r,v=c===r;h(d,t,["x","y","z"]);var m={};return p&&(m.x=s),v&&(m.y=l),{dimensions:d,categoryIndex:p?0:v?1:-1,categoryAxesModels:m}},polar:function(t,e,i){var n=i[S]({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],s=n.findAxisModel("angleAxis"),u=n.findAxisModel("radiusAxis"),c=u.get("type"),d=s.get("type"),f=[{name:"radius",type:o(c),stackable:a(c)},{name:"angle",type:o(d),stackable:a(d)}],p=d===r,v=c===r;h(f,t,[l,"angle","value"]);var m={};return v&&(m[l]=u),p&&(m.angle=s),{dimensions:f,categoryIndex:p?1:v?0:-1,categoryAxesModels:m}},geo:function(t){return{dimensions:h([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("zrender/graphic/helper/poly",[Re,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),n=t("./smoothBezier");return{buildPath:function(t,r,a){var o=r.points,s=r.smooth;if(o&&o[ge]>=2){if(s&&"spline"!==s){var l=n(o,s,a,r.smoothConstraint);t[i](o[0][0],o[0][1]);for(var u=o[ge],c=0;(a?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,a)),t[i](o[0][0],o[0][1]);for(var c=1,p=o[ge];p>c;c++)t.lineTo(o[c][0],o[c][1])}a&&t.closePath()}}}}),e("zrender/animation/Animation",[Re,"../core/util","../core/event","./requestAnimationFrame","./Animator"],function(t){var e=t("../core/util"),i=t("../core/event").Dispatcher,n=t("./requestAnimationFrame"),r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,i.call(this)};return a[Ie]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[Ce]=this;for(var e=t.getClips(),i=0;i=0&&this._clips[ie](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;io;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[ge];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[re]("frame",e),this.stage[ce]&&this.stage[ce]()},_startLoop:function(){function t(){e._running&&(n(t),!e._paused&&e._update())}var e=this;this._running=!0,n(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Handler",[Re,"./core/util","./mixin/Draggable","./mixin/Eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch}}function i(){}function n(t,e,i){if(t[t.rectHover?"rectContain":D](e,i)){for(var n=t;n;){if(n.silent||n.clipPath&&!n.clipPath[D](e,i))return!1;n=n[v]}return!0}return!1}var r=t("./core/util"),a=t("./mixin/Draggable"),o=t("./mixin/Eventful");i[Ie].dispose=function(){};var s=["click","dblclick","mousewheel",te,"mouseup","mousedown","mousemove","contextmenu"],l=function(t,e,n,l){o.call(this),this[be]=t,this.painter=e,this.painterRoot=l,n=n||new i,this.proxy=n,n.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,a.call(this),r.each(s,function(t){n.on&&n.on(t,this[t],this)},this)};return l[Ie]={constructor:l,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this.findHover(e,i,null),r=this._hovered,a=this.proxy;this._hovered=n,a.setCursor&&a.setCursor(n?n.cursor:"default"),r&&n!==r&&r.__zr&&this.dispatchToElement(r,te,t),this.dispatchToElement(n,"mousemove",t),n&&n!==r&&this.dispatchToElement(n,ee,t)},mouseout:function(t){this.dispatchToElement(this._hovered,te,t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this[re]("globalout",{event:t})},resize:function(){this._hovered=null},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this[be]=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,i,n){for(var r="on"+i,a=e(i,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[re](i,a),o=o[v],!a.cancelBubble););a.cancelBubble||(this[re](i,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==j&&t[r].call(t,a),t[re]&&t[re](i,a)}))},findHover:function(t,e,i){for(var r=this[be].getDisplayList(),a=r[ge]-1;a>=0;a--)if(!r[a].silent&&r[a]!==i&&!r[a][xe]&&n(r[a],t,e))return r[a]}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){l[Ie][t]=function(e){var i=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=i,this._upel=i;else if("mosueup"===t)this._upel=i;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(i,t,e)}}),r.mixin(l,o),r.mixin(l,a),l}),e("zrender/dom/HandlerProxy",[Re,"../core/event","../core/util","../mixin/Eventful","../core/env","../core/GestureMgr"],function(t){function e(t){return"mousewheel"===t&&c.browser.firefox?"DOMMouseScroll":t}function i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement(r[J],a,r.event)}}function n(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(){return c.touchEventsSupported}function a(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}for(var i=0;i=0&&i[ie](n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;ea;){var o=t[a],s=o.__from;s&&s.__zr?(a++,s.invisible||(o[n]=s[n],o.invTransform=s.invTransform,o.__clipPaths=s.__clipPaths,this._doPaintEl(o,i,!0,r))):(t[ie](a,1),s.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e[be]&&(e._doPaintList(e[be].getDisplayList()),e._furtherProgressive?(e._progress++,g(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,g(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,h.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuildinLayer(r),this._doPaintList(t,e),this.eachBuildinLayer(a)},_doPaintList:function(t,e){function i(t){var e=a.dpr||1;a.save(),a.globalAlpha=1,a.shadowBlur=0,n.__dirty=!0,a.setTransform(1,0,0,1,0,0),a.drawImage(t.dom,0,0,c*e,f*e),a.restore()}for(var n,r,a,o,s,l,u=0,c=this._width,f=this._height,p=this._progress,v=0,m=t[ge];m>v;v++){var g=t[v],x=this._singleCanvas?0:g[Y],_=g.__frame;if(0>_&&s&&(i(s),s=null),r!==x&&(a&&a.restore(),o={},r=x,n=this.getLayer(r),n.isBuildin||d("ZLevel "+r+" has been used by unkown layer "+n.id),a=n.ctx,a.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(_>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,y-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){v=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(p=l),s.__progress=p+1}_===p&&this._doPaintEl(g,s,!0,s.renderScope)}else this._doPaintEl(g,n,e,o);g.__dirty=!1}}s&&i(s),a&&a.restore(),this._furtherProgressive=!1,h.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,r){var a=e.ctx,u=t[n];if(!(!e.__dirty&&!i||t.invisible||0===t.style[O]||u&&!u[0]&&!u[3]||t.culling&&o(t,this._width,this._height))){var c=t.__clipPaths;(r.prevClipLayer!==e||s(c,r.prevElClipPaths))&&(r.prevElClipPaths&&(r.prevClipLayer.ctx.restore(),r.prevClipLayer=r.prevElClipPaths=null,r.prevEl=null),c&&(a.save(),l(c,a),r.prevClipLayer=e,r.prevElClipPaths=c)),t.beforeBrush&&t.beforeBrush(a),t.brush(a,r.prevEl||null),r.prevEl=t,t.afterBrush&&t.afterBrush(a)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new m("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&h.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[ge],o=null,s=-1,l=this._domRoot;if(n[t])return void d("ZLevel "+t+" has been used already");if(!i(e))return void d("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]t);s++);o=n[r[s]]}if(r[ie](s+1,0,t),o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;nu;u++){var d=t[u],f=this._singleCanvas?0:d[Y],p=e[f],v=d.progressive;if(p&&(p.elCount++,p.__dirty=p.__dirty||d.__dirty),v>=0){o!==v&&(o=v,l++);var g=d.__frame=l-1;if(!a){var x=Math.min(s,y-1);a=i[x],a||(a=i[x]=new m("progressive",this,this.dpr),a.initContext()),a.__maxProgress=0}a.__dirty=a.__dirty||d.__dirty,a.elCount++,a.__maxProgress=Math.max(a.__maxProgress,g),a.__maxProgress>=a.__progress&&(p.__dirty=!0)}else d.__frame=-1,a&&(a.__nextIdxNotProg=u,s++,a=null)}a&&(s++,a.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i[ge]=Math.min(s,y),h.each(i,function(t,e){r[e]!==t.elCount&&(d.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?h.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&h.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i[ie](h[me](i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n[Pe]=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[Pe]=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r][Ae](t,e);h.each(this._progressiveLayers,function(i){i[Ae](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[be]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new m("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var i=this[be].getDisplayList(!0),n={},r=0;ru;u++)if(!t[u]){var c=a[u]||o+(u-a[ge]);t[u]=r(e,u)?{type:"ordinal",name:c}:c}return t}function i(t){return n[U](t)?t:n[le](t)?t.value:t}var n=t(De),r=e.guessOrdinal=function(t,e){for(var r=0,a=t[ge];a>r;r++){var o=i(t[r]);if(!n[U](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(n.isString(o)&&"-"!==o)return!0}return!1};return e}),e("zrender/Storage",[Re,"./core/util","./core/env","./container/Group","./core/timsort"],function(t){function e(t,e){return t[Y]===e[Y]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[Y]-e[Y]}var i=t("./core/util"),n=t("./core/env"),r=t("./container/Group"),a=t("./core/timsort"),o=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return o[Ie]={constructor:o,traverse:function(t,e){for(var i=0;io;o++)this._updateAndAddDisplayable(i[o],null,t);r[ge]=this._displayListLen,n[we]&&a(r,e)},_updateAndAddDisplayable:function(t,e,i){if(!t[xe]||i){t.beforeUpdate(),t.__dirty&&t[ce](),t.afterUpdate();var n=t.clipPath;if(n&&(n[v]=t,n.updateTransform(),e?(e=e.slice(),e.push(n)):e=[n]),t.isGroup){for(var r=t._children,a=0;ae;e++)this.delRoot(t[e]);else{var o;o=typeof t==Le?this._elements[t]:t;var s=i[me](this._roots,o);s>=0&&(this.delFromMap(o.id),this._roots[ie](s,1),o instanceof r&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof r&&(t.__storage=this),t.dirty(!1),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof r&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:e},o}),e("echarts/data/DataDiffer",[Re],function(){function t(t){return t}function e(e,i,n,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=r||t}function i(t,e,i,n){for(var r=0;rf;f++)this._add&&this._add(h[f]);else this._add&&this._add(h)}}}},e}),e("zrender/graphic/helper/smoothSpline",[Re,"../../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[ge],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(u=t[(f-1+r)%r],c=t[(f+1)%r],h=t[(f+2)%r]):(u=t[0===f?f:f-1],c=t[f>r-2?r-1:f+1],h=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(u[0],v[0],c[0],h[0],p,m,g),e(u[1],v[1],c[1],h[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[Re,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e.distance,o=e.add;return function(t,s,l,u){var c,h,d,f,p=[],v=[],m=[],g=[];if(u){d=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,x=t[ge];x>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,x=t[ge];x>y;y++){var _=t[y];if(l)c=t[y?y-1:x-1],h=t[(y+1)%x];else{if(0===y||y===x-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(v,h,c),r(v,v,s);var b=a(_,c),w=a(_,h),M=b+w;0!==M&&(b/=M,w/=M),r(m,v,-b),r(g,v,w);var T=o([],_,m),S=o([],_,g);u&&(n(T,T,d),i(T,T,f),n(S,S,d),i(S,S,f)),p.push(T),p.push(S)}return l&&p.push(p.shift()),p}}),e("zrender/mixin/Draggable",[Re],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[Ie]={constructor:t,_dragStart:function(t){var e=t[J];e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this.dispatchToElement(e,"drag",t.event);var o=this.findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(s,"dragleave",t.event),o&&o!==s&&this.dispatchToElement(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t}),e("echarts/chart/bar/barItemStyle",[Re,"../../model/mixin/makeStyleMapper"],function(t){var e=t("../../model/mixin/makeStyleMapper")([["fill","color"],[y,"borderColor"],[x,"borderWidth"],[y,"barBorderColor"],[x,"barBorderWidth"],[O],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getBarItemStyle:function(t){var i=e.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(i.lineDash=n)}return i}}}),e("zrender/graphic/helper/roundRect",[Re],function(){return{buildPath:function(t,e){var n,r,a,o,s=e.x,l=e.y,u=e.width,c=e[Pe],h=e.r;0>u&&(s+=u,u=-u),0>c&&(l+=c,c=-c),typeof h===W?n=r=a=o=h:h instanceof Array?1===h[ge]?n=r=a=o=h[0]:2===h[ge]?(n=a=h[0],r=o=h[1]):3===h[ge]?(n=h[0],r=o=h[1],a=h[2]):(n=h[0],r=h[1],a=h[2],o=h[3]):n=r=a=o=0;var d;n+r>u&&(d=n+r,n*=u/d,r*=u/d),a+o>u&&(d=a+o,a*=u/d,o*=u/d),r+a>c&&(d=r+a,r*=c/d,a*=c/d),n+o>c&&(d=n+o,n*=c/d,o*=c/d),t[i](s+n,l),t.lineTo(s+u-r,l),0!==r&&t.quadraticCurveTo(s+u,l,s+u,l+r),t.lineTo(s+u,l+c-a),0!==a&&t.quadraticCurveTo(s+u,l+c,s+u-a,l+c),t.lineTo(s+o,l+c),0!==o&&t.quadraticCurveTo(s,l+c,s,l+c-o),t.lineTo(s,l+n),0!==n&&t.quadraticCurveTo(s,l,s+n,l)}}}),e("zrender/core/event",[Re,"../mixin/Eventful","./env"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,e,i,r){return i=i||{},r||!l[we]?n(t,e,i):l.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):n(t,e,i),i}function n(t,i,n){var r=e(t);n.zrX=i.clientX-r.left,n.zrY=i.clientY-r.top}function r(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var r=e.type,a=r&&r[me]("touch")>=0;if(a){var o="touchend"!=r?e.targetTouches[0]:e.changedTouches[0];o&&i(t,o,e,n)}else i(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function a(t,e,i){u?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function o(t,e,i){u?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var s=t("../mixin/Eventful"),l=t("./env"),u=typeof window!==I&&!!window.addEventListener,c=u?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{clientToLocal:i,normalizeEvent:r,addEventListener:a,removeEventListener:o,stop:c,Dispatcher:s}}),e("zrender/animation/requestAnimationFrame",[Re],function(){return typeof window!==I&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)}}),e("zrender/core/GestureMgr",[Re,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[Ie]={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track[ge]=0,this},_doTrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[ge];s>o;o++){var l=r[o],u=n.clientToLocal(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasOwnProperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[ge];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[ge]>1&&a&&a[ge]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][J],event:n}}}}};return r}),e("zrender/Layer",[Re,"./core/util","./config","./graphic/Style","./graphic/Pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[P](e),a=i[Te](),o=i[Me](),s=r.style;return s[R]="absolute",s.left=0,s.top=0,s.width=a+"px",s[Pe]=o+"px",r.width=a*n,r[Pe]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/Style"),o=t("./graphic/Pattern"),s=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===Le?s=i(t,"canvas",a,o):n[le](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return s[Ie]={constructor:s,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[L]("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack[L]("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[Pe]=e+"px",n.width=t*i,n[Pe]=e*i,a&&(a.width=t*i,a[Pe]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[Pe],s=this.clearColor,l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,r/c)),i.clearRect(0,0,n,r),s){var h;s[ue]?(h=s.__canvasGradient||a.getGradient(i,s,{x:0,y:0,width:n,height:r}),s.__canvasGradient=h):s.image&&(h=o[Ie].getCanvasPattern.call(s,i)),i.save(),i.fillStyle=h||s,i.fillRect(0,0,n,r),i.restore()}if(l){var d=this.domBack;i.save(),i.globalAlpha=u,i.drawImage(d,0,0,n,r),i.restore()}}},s}),e("echarts/preprocessor/helper/compatStyle",[Re,De],function(t){function e(t){var e=t&&t.itemStyle;e&&i.each(n,function(n){var r=e[w],a=e.emphasis;r&&r[n]&&(t[n]=t[n]||{},t[n][w]?i.merge(t[n][w],r[n]):t[n][w]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n].emphasis?i.merge(t[n].emphasis,a[n]):t[n].emphasis=a[n],a[n]=null)})}var i=t(De),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){if(t){e(t),e(t.markPoint),e(t.markLine);var n=t.data;if(n){for(var r=0;rM;M++){var T=n[w];if(w>=p||0>w)break;if(e(T)){if(_){w+=v;continue}break}if(w===r)t[v>0?i:"lineTo"](T[0],T[1]),c(d,T);else if(y>0){var S=w+v,C=n[S];if(_)for(;C&&e(n[S]);)S+=v,C=n[S];var A=.5,P=n[b],C=n[S];if(!C||e(C))c(f,T);else{e(C)&&!_&&(C=T),o.sub(h,C,P);var L,I;if("x"===x||"y"===x){var k="x"===x?0:1;L=Math.abs(T[k]-P[k]),I=Math.abs(T[k]-C[k])}else L=o.dist(T,P),I=o.dist(T,C);A=I/(I+L),u(f,T,h,-y*(1-A))}s(d,d,g),l(d,d,m),s(f,f,g),l(f,f,m),t.bezierCurveTo(d[0],d[1],f[0],f[1],T[0],T[1]),u(d,T,h,y*A)}else t.lineTo(T[0],T[1]);b=w,w+=v}return M}function r(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;rn[0]&&(n[0]=a[0]),a[1]>n[1]&&(n[1]=a[1])}return{min:e?i:n,max:e?n:i}}var a=t("zrender/graphic/Path"),o=t(ze),s=o.min,l=o.max,u=o.scaleAndAdd,c=o.copy,h=[],d=[],f=[];return{Polyline:a[oe]({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,i){var a=i.points,o=0,s=a[ge],l=r(a,i.smoothConstraint);if(i.connectNulls){for(;s>0&&e(a[s-1]);s--);for(;s>o&&e(a[o]);o++);}for(;s>o;)o+=n(t,a,o,s,s,1,l.min,l.max,i.smooth,i.smoothMonotone,i.connectNulls)+1}}),Polygon:a[oe]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,i){var a=i.points,o=i.stackedOnPoints,s=0,l=a[ge],u=i.smoothMonotone,c=r(a,i.smoothConstraint),h=r(o,i.smoothConstraint);if(i.connectNulls){for(;l>0&&e(a[l-1]);l--);for(;l>s&&e(a[s]);s++);}for(;l>s;){var d=n(t,a,s,l,l,1,c.min,c.max,i.smooth,u,i.connectNulls);n(t,o,s+d-1,d,l,-1,h.min,h.max,i.stackedOnSmooth,u,i.connectNulls),s+=d+1,t.closePath()}}})}}),e("echarts/chart/line/lineAnimationDiff",[Re],function(){function t(t){return t>=0?1:-1}function e(e,i,n){for(var r,a=e.getBaseAxis(),o=e.getOtherAxis(a),u=a.onZero?0:o.scale[z]()[0],c=o.dim,h="x"===c||c===l?1:0,d=i.stackedOn,f=i.get(c,n);d&&t(d.get(c,n))===t(f);){r=d;break}var p=[];return p[h]=i.get(a.dim,n),p[1-h]=r?r.get(c,n,!0):u,e[s](p)}function i(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})})[ce](function(t,e){i.push({cmd:"=",idx:e,idx1:t})})[se](function(t){i.push({cmd:"-",idx:t})}).execute(),i}return function(t,n,r,a,o,l){for(var u=i(t,n),h=[],d=[],f=[],p=[],v=[],m=[],g=[],y=l[c],x=0;xr;r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r][Pe])return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][Pe]));n--);}function u(t,e,i,n,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t[ge];l>s;s++)if(t[s][R]!==E){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=r+c>u?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=o&&(d=o-10),!e&&o>=d&&(d=o+10),t[s].x=i+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,d=t[ge],f=[],p=[],v=0;d>v;v++)c=t[v].y-h,0>c&&s(v,d,-c,r),h=t[v].y+t[v][Pe];0>o-h&&l(d-1,h-o);for(var v=0;d>v;v++)t[v].y>=i?p.push(t[v]):f.push(t[v]);u(f,!1,e,i,n,r),u(p,!0,e,i,n,r)}function i(t,i,n,r,a,o){for(var s=[],l=[],u=0;uT?-1:1)*b,z=I;r=k+(0>T?-5:5),a=z,d=[[A,P],[L,I],[k,z]]}f=C?E:T>0?"left":"right"}var D=g[Se](G)[V](),O=g.get("rotate")?0>T?-M+Math.PI:-M:0,B=t.getFormattedLabel(i,w)||l.getName(i),F=n[N](B,D,f,"top");c=!!O,p.label={x:r,y:a,position:y,height:F[Pe],len:_,len2:b,linePoints:d,textAlign:f,verticalAlign:"middle",font:D,rotation:O},C||u.push(p.label)}),!c&&t.get("avoidLabelOverlap")&&i(u,o,s,e,r,a)}}),e("echarts/component/axis/AxisBuilder",[Re,De,"../../util/format",u,"../../model/Model","../../util/number",ze],function(t){function e(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t[T],e}function i(t,e,i){var n,r,a=g(e-t[p]);return y(a)?(r=i>0?"top":ye,n=E):y(a-S)?(r=i>0?ye:"top",n=E):(r=B,n=a>0&&S>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,verticalAlign:r}}function o(t,e,i,n){var r,a,o=g(i-t[p]),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return y(o-S/2)?(a=l?ye:"top",r=E):y(o-1.5*S)?(a=l?"top":ye,r=E):(a=B,r=1.5*S>o&&o>S/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,verticalAlign:a}}function s(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var l=t(De),c=t("../../util/format"),h=t(u),v=t("../../model/Model"),m=t("../../util/number"),g=m.remRadian,y=m.isRadianAroundZero,x=t(ze),b=x[_],w=l[f],S=Math.PI,C=function(t,e){this.opt=e,this.axisModel=t,l[ae](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group; var i=new h.Group({position:e[R].slice(),rotation:e[p]});i.updateTransform(),this._transform=i[n],this._dumbGroup=i};C[Ie]={constructor:C,hasBuilder:function(t){return!!A[t]},add:function(t){A[t].call(this)},getGroup:function(){return this.group}};var A={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[z](),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(b(r,r,n),b(a,a,n)),this.group.add(new h.Line(h.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[oe]({lineCap:"round"},e[Se]("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show"))for(var e=t.axis,i=t[Se]("axisTick"),n=this.opt,r=i[Se]("lineStyle"),a=i.get(ge),o=L(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale[k](),c=[],d=[],f=this._transform,p=0;pm[1]?-1:1,y=["start"===u?m[0]-g*v:"end"===u?m[1]+g*v:(m[0]+m[1])/2,u===B?t.labelOffset+d*v:0],x=n.get("nameRotate");null!=x&&(x=x*S/180);var _;u===B?a=i(t,null!=x?x:t[p],d):(a=o(t,u,x||0,m),_=t.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(a[p])),!isFinite(_)&&(_=null)));var b=f[V](),M=n.get("nameTruncate",!0)||{},C=M.ellipsis,A=w(M.maxWidth,_),P=null!=C&&null!=A?c.truncateText(r,A,b,C,{minChar:2,placeholder:M.placeholder}):r,L=n.get("tooltip",!0),I=n.mainType,k={componentType:I,name:r,$vars:["name"]};k[I+"Index"]=n[T];var D=new h.Text({anid:"name",__fullText:r,__truncatedText:P,style:{text:P,textFont:b,fill:f.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:a[F],textVerticalAlign:a.verticalAlign},position:y,rotation:a[p],silent:s(n),z2:1,tooltip:L&&L.show?l[oe]({content:r,formatter:function(){return r},formatterParams:k},L):null});n.get("triggerEvent")&&(D.eventData=e(n),D.eventData.targetType="axisName",D.eventData.name=r),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},P=C.ifIgnoreOnTick=function(t,e,i){var n,r=t.scale;return r.type===d&&(typeof i===j?(n=r[k]()[e],!i(n,r.getLabel(n))):e%(i+1))},L=C.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return C}),e("echarts/component/helper/brushHelper",[Re,De,u],function(t){function e(t){return t[0]>t[1]&&t.reverse(),t}function i(t,e){for(var i=!0,n=0;n=0){i=!1;for(var a=0;a=0?(i=n[N]().clone(),i[_](l.getTransform(n))):i=n.grid.getRect().clone(),e.push({panelId:t.panelId,rect:i})}),e},h.makeCoordInfoList=function(t,e){var i=[];return c(d,function(n){var a=t[n+"Index"];null!=a&&"none"!==a&&("all"===a||r[U](a)||(a=[a]),e[_e]({mainType:n},function(t,e){if(!("all"!==a&&r[me](a,e)<0)){var o,s;"xAxis"===n||"yAxis"===n?o=t.axis.grid:s=t[ve];for(var l,u=0,c=i[ge];c>u;u++){var h=i[u];if("yAxis"===n&&!h.yAxis&&h.xAxis){var d=o.getCartesian(h.xAxisIndex,e);if(d){s=d,l=h;break}}}!l&&i.push(l={}),l[n]=t,l[n+"Index"]=e,l.panelId=n+f+e,l.coordSys=s||o.getCartesian(l.xAxisIndex,l.yAxisIndex),l.coordSys?i[n+"Has"]=!0:i.pop()}}))}),i},h.controlSeries=function(t,e,n){var r=i(t,e.coordInfoList);return r===!0||r&&r.coordSys===n[ve]};var v={lineX:r.curry(n,"x"),lineY:r.curry(n,"y"),rect:function(t,i,n){var r=i.coordSys,a=r[p[t]]([n[0][0],n[1][0]]),o=r[p[t]]([n[0][1],n[1][1]]);return[e([a[0],o[0]]),e([a[1],o[1]])]},polygon:function(t,e,i){var n=e.coordSys;return r.map(i,n[p[t]],n)}};return h}),e("echarts/component/dataZoom/history",[Re,De],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(De),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[ge]-1;n>=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t[S]({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[ge]-1];i[ge]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[ge]-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)[ge]}};return a}),e("echarts/component/helper/BrushController",[Re,"zrender/mixin/Eventful",De,"zrender/core/BoundingRect",u,"./interactionMutex","../../data/DataDiffer"],function(t){function e(t){G.call(this),this._zr=t,this.group=new q.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+fe++,this._handlers={},X(pe,function(t,e){this._handlers[e]=H.bind(t,this)},this)}function i(t,e){var i=t._zr;t._enableGlobalPan||W.take(i,oe,t._uid),X(t._handlers,function(t,e){i.on(e,t)}),t._brushType=e.brushType,t._brushOption=H.merge(H.clone(de),e,!0)}function n(t){var e=t._zr;W.release(e,oe,t._uid),X(t._handlers,function(t,i){e.off(i,t)}),t._brushType=t._brushOption=null}function r(t,e){var i=ve[e.brushType].createCover(t,e);return s(i),i.__brushOption=e,t.group.add(i),i}function a(t,e){var i=c(e);return i.endCreating&&(i.endCreating(t,e),s(e)),e}function o(t,e){var i=e.__brushOption;c(e).updateCoverShape(t,e,i.range,i)}function s(t){t[Q](function(t){t.z=ee,t.z2=ee})}function l(t,e){c(e).updateCommon(t,e),o(t,e)}function c(t){return ve[t.__brushOption.brushType]}function h(t,e,i){var n=t._panels;if(!n)return!0;var r;return X(n,function(t){t[D](e,i)&&(r=t)}),r}function d(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null!=n?i[n]:!0}function f(t){var e=t._covers,i=e[ge];return X(e,function(e){t.group[se](e)},t),e[ge]=0,!!i}function v(t,e){var i=Y(t._covers,function(t){var e=t.__brushOption,i=H.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t[re]("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function m(t){var e=t._track;if(!e[ge])return!1;var i=e[e[ge]-1],n=e[0],r=i[0]-n[0],a=i[1]-n[1],o=te(r*r+a*a,.5);return o>ie}function g(t){var e=t[ge]-1;return 0>e&&(e=0),[t[0],t[e]]}function y(t,e,i,n){var r=new q.Group;return r.add(new q.Rect({name:"main",style:M(i),silent:!0,draggable:!0,cursor:"move",drift:U(t,e,r,"nswe"),ondragend:U(v,e,{isEnd:!0})})),X(n,function(i){r.add(new q.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:U(t,e,r,i),ondragend:U(v,e,{isEnd:!0})}))}),r}function _(t,e,i,n){var r=n.brushStyle[x]||0,a=K(r,ne),o=i[0][0],s=i[1][0],l=o-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-a+r/2,f=h-a+r/2,p=c-o,v=h-s,m=p+r,g=v+r;w(t,e,"main",o,s,p,v),n.transformable&&(w(t,e,"w",l,u,a,g),w(t,e,"e",d,u,a,g),w(t,e,"n",l,u,m,a),w(t,e,"s",l,f,m,a),w(t,e,"nw",l,u,a,a),w(t,e,"ne",d,u,a,a),w(t,e,"sw",l,f,a,a),w(t,e,"se",d,f,a,a))}function b(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(M(i)),r.attr({silent:!n,cursor:n?"move":"default"}),X(["w","e","n","s","se","sw","ne","nw"],function(i){var r=e.childOfName(i),a=C(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?ue[a]+"-resize":null})})}function w(t,e,i,n,r,a,o){var s=e.childOfName(i);s&&s.setShape(k(I(t,e,[[n,r],[n+a,r+o]])))}function M(t){return H[ae]({strokeNoScale:!0},t.brushStyle)}function T(t,e,i,n){var r=[$(t,i),$(e,n)],a=[K(t,i),K(e,n)];return[[r[0],a[0]],[r[1],a[1]]]}function S(t){return q.getTransform(t.group)}function C(t,e){if(e[ge]>1){e=e.split("");var i=[C(t,e[0]),C(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=q.transformDirection(n[e],S(t));return r[i]}function A(t,e,i,n,r,a,o){var s=n.__brushOption,u=t(s.range),c=L(i,a,o);X(r.split(""),function(t){var e=le[t];u[e[0]][e[1]]+=c[e[0]]}),s.range=e(T(u[0][0],u[1][0],u[0][1],u[1][1])),l(i,n),v(i,{isEnd:!1})}function P(t,e,i,n){var r=e.__brushOption.range,a=L(t,i,n);X(r,function(t){t[0]+=a[0],t[1]+=a[1]}),l(t,e),v(t,{isEnd:!1})}function L(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),a=n.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function I(t,e,i){var n=d(t,e);if(n===!0)return H.clone(i);var r=n[N]();return H.map(i,function(t){var e=t[0];e=K(e,r.x),e=$(e,r.x+r.width);var i=t[1];return i=K(i,r.y),i=$(i,r.y+r[Pe]),[e,i]})}function k(t){var e=$(t[0][0],t[1][0]),i=$(t[0][1],t[1][1]),n=K(t[0][0],t[1][0]),r=K(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:r-i}}function z(t,e){var i=e.offsetX,n=e.offsetY,r=t._zr;if(t._brushType){for(var a,o=t._panels,s=t._covers,l=0;lo;o++)a[o].get("type")===r&&n.push(o);i[e.axisIndex]=n,n[ge]&&(t=!1)}},this),t&&this[M].eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&h(function(e){var r=i[e.axisIndex],a=t.get(e.axisIndex),o=t.get(e.axisId),s=t[M][S]({mainType:e.axis,index:a,id:o})[0];a=s[T],n[me](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[C].orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return h(function(n){var r=t.get(n.axisIndex),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this[M][C];this[C].throttle=e[Ce]&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return h(function(e){if(null==t){var i=this.get(e.axisIndex);i[ge]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[M];h(function(n){c(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){c(["start","end","startValue","endValue"],function(e){this[C][e]=t[e]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});return d}),e("echarts/component/dataZoom/dataZoomProcessor",[Re,"../../echarts"],function(t){function e(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function i(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var n=t("../../echarts");n.registerProcessor(function(t){t[_e]("dataZoom",function(t){t.eachTargetAxis(e),t.eachTargetAxis(i)}),t[_e]("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})})}),e("echarts/component/dataZoom/SelectZoomModel",[Re,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[oe]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/DataZoomView",[Re,"../../view/Component"],function(t){var e=t("../../view/Component");return e[oe]({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this[M]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;ai[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){return s(["min","max"],function(n,r){var a=e.get(n,!0);null!=a&&(a+"")[ke]()!=="data"+n&&(t[r]=i.parse(a))}),e.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function n(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var a=e||0===n[0]&&100===n[1],s=!e&&o.getPixelPrecision(r,[0,500]),l=!(e||20>s&&s>=0),u=e||a||l;i.setRange&&i.setRange(u?null:+r[0].toFixed(s),u?null:+r[1].toFixed(s))}}var a=t(De),o=t("../../util/number"),s=a.each,u=o.asc,c=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this[M]=n,this._dataZoomModel=i};return c[Ie]={constructor:c,hostedBy:function(t){return this._dataZoomModel===t},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this[M];return e.eachSeries(function(i){var n=i.get(ve);if("cartesian2d"===n||"polar"===n){var r=this._dimName,a=e[S]({mainType:r+"Axis",index:i.get(r+"AxisIndex"),id:i.get(r+"AxisId")})[0];this._axisIndex===(a&&a[T])&&t.push(i)}},this),t},getAxisModel:function(){return this[M].getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[M],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?l:"angle");var o;return n[_e](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},calculateDataWindow:function(t,e){var n=this.getAxisModel(),r=n.axis.scale,a=[0,100],l=[t.start,t.end],c=[];return e=e.slice(),i(e,n,r),s(["startValue","endValue"],function(e){c.push(null!=t[e]?r.parse(t[e]):null)}),s([0,1],function(t){var i=c[t],n=l[t];null!=n||null==i?(null==n&&(n=a[t]),i=r.parse(o.linearMap(n,a,e,!0))):n=o.linearMap(i,e,a,!0),c[t]=i,l[t]=n}),{valueWindow:u(c),percentWindow:u(l)}},reset:function(t){if(t===this._dataZoomModel){var i=this._dataExtent=e(this._dimName,this.getTargetSeriesModels()),r=this.calculateDataWindow(t[C],i);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,n(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,n(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow,l=this.getOtherAxisModel();t.get("$fromToolbox")&&l&&l.get("type")===r&&(a="empty"),s(n,function(t){var n=t[pe]();n&&s(t.coordDimToDataDim(i),function(i){"empty"===a?t.setData(n.map(i,function(t){return e(t)?t:0/0})):n.filterSelf(i,e)})})}}},c}),e("echarts/component/dataZoom/helper",[Re,"../../util/format",De],function(t){var e=t("../../util/format"),i=t(De),n={},r=["x","y","z",l,"angle"];return n.createNameEach=function(t,n){t=t.slice();var r=i.map(t,e.capitalFirst);n=(n||[]).slice();var a=i.map(n,e.capitalFirst);return function(e,o){i.each(t,function(t,i){for(var s={name:t,capital:r[i]},l=0;l=0}function a(t,r){var a=!1;return e(function(e){i.each(n(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){i.each(n(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}},n}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var Ee=t("echarts");return Ee.graphic=t("echarts/util/graphic"),Ee.number=t("echarts/util/number"),Ee.format=t("echarts/util/format"),t("echarts/chart/bar"),t("echarts/chart/line"),t("echarts/chart/pie"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/legend"),t("echarts/component/tooltip"),t("echarts/component/toolbox"),t("zrender/vml/vml"),Ee});