!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof module&&module.exports?module.exports=b():a.echarts=b()}(this,function(){var an,aG;!function(){function c(u,p){if(!p){return u}if(0===u.indexOf(".")){var m=p.split("/"),j=u.split("/"),g=m.length-1,q=j.length,h=0,v=0;u:for(var k=0;q>k;k++){switch(j[k]){case"..":if(!(g>h)){break u}h++,v++;break;case".":v++;break;default:break u}}return m.length=g-h,j=j.slice(v),m.concat(j).join("/")}return u}function f(a){function g(j,k){if("string"==typeof j){var i=h[j];return i||(i=b(c(j,a)),h[j]=i),i}j instanceof Array&&(k=k||function(){},k.apply(this,d(j,k,a)))}var h={};return g}function d(k,g,a){for(var q=[],i=e[a],o=0,p=Math.min(k.length,g.length);p>o;o++){var j,m=c(k[o],a);switch(m){case"require":j=i&&i.require||an;break;case"exports":j=i.exports;break;case"module":j=i;break;default:j=b(m)}q.push(j)}return q}function b(g){var h=e[g];if(!h){throw new Error("No "+g)}if(!h.defined){var a=h.factory,j=a.apply(this,d(h.deps||[],a,g));"undefined"!=typeof j&&(h.exports=j),h.defined=1}return h.exports}var e={};aG=function(g,h,a){e[g]={id:g,deps:h,factory:a,defined:0,exports:{},require:f(g)}},an=f("")}();var aB="moveTo",av="radius",ap="../../echarts",aL="../../util/graphic",au="dataToPoint",ao="dimensions",ay="ordinal",aI="category",am="parsePercent",aC="getItemModel",aH="../core/util",aF="createElement",at="undefined",aE="updateProps",al="animation",aw="inside",ai="getShallow",aj="stroke",aM="lineWidth",aK="applyTransform",ak="Sector",aV="getItemGraphicEl",a3="normal",bi="emphasis",bg="getItemVisual",aT="getName",a4="ecModel",aY="getComponent",ah="option",az="getExtent",a7="getLabel",bd="contain",aZ="opacity",aW="position",bh="center",bc="middle",a1="getBoundingRect",aR="getFont",bb="textAlign",ba="textStyle",a9="coordinateSystem",ar="removeAll",aQ="inherits",aN="function",aP="indexOf",aA="isArray",aS="replace",aO="zlevel",aX="getDataParams",bn="seriesIndex",a5="dataIndex",a6="target",bf="mouseout",ab="mouseover",ax="getData",a8="splice",bt="series",bj="trigger",aD="length",bm="defaults",bs="extend",aq="remove",aJ="isObject",a0="update",ad="create",bq="height",af="bottom",bk="ignore",ag="getHeight",bl="getWidth",bo="getModel",bv="resize",aa="string",aU="prototype",ac="toLowerCase",bw="filter",bu="transform",br="zrender/core/util",a2="require";aG("echarts/echarts",[a2],function(bJ){function bY(a){return function(c,b,d){c=c&&c[ac](),A[aU][a].call(this,c,b,d)}}function bU(){A.call(this)}function bQ(a,b,c){c=c||{},typeof b===aa&&(b=bx[b]),b&&Z(w,function(d){d(b)}),this.id,this.group,this._dom=a,this._zr=J.init(a,{renderer:c.renderer||"canvas",devicePixelRatio:c.devicePixelRatio}),this._theme=Y.clone(b),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new bW(this),this._coordSysMgr=new bH,A.call(this),this._messageCenter=new bU,this._initEvents(),this[bv]=Y.bind(this[bv],this)}function bL(b,c){var a=this._model;a&&a.eachComponent({mainType:"series",query:c},function(e){var d=this._chartsMap[e.__viewId];d&&d.__alive&&d[b](e,a,this._api,c)},this)}function b2(b,c,a){var d=this._api;Z(this._componentsViews,function(f){var e=f.__model;f[b](e,c,d,a),bZ(e,f)},this),c.eachSeries(function(f){var e=this._chartsMap[f.__viewId];e[b](f,c,d,a),bZ(f,e)},this)}function bP(d,h){for(var c="component"===d,l=c?this._componentsViews:this._chartsViews,g=c?this._componentsMap:this._chartsMap,b=this._zr,k=0;k<l[aD];k++){l[k].__alive=!1}h[c?"eachComponent":"eachSeries"](function(i,n){if(c){if(i===bt){return}}else{n=i}var m=n.id+"_"+n.type,a=g[m];if(!a){var p=bF.parseClassType(n.type),e=c?b3.getClass(p.main,p.sub):b1.getClass(p.sub);if(!e){return}a=new e,a.init(h,this._api),g[m]=a,l.push(a),b.add(a.group)}n.__viewId=m,a.__alive=!0,a.__id=m,a.__model=n},this);for(var k=0;k<l[aD];){var f=l[k];f.__alive?k++:(b[aq](f.group),f.dispose(h,this._api),l[a8](k,1),delete g[f.__id])}}function bK(a,b){Z(bE,function(c){Z(X[c]||[],function(d){d(a,b)})})}function bS(a){var b={};a.eachSeries(function(d){var c=d.get("stack"),f=d[ax]();if(c&&"list"===f.type){var e=b[c];e&&(f.stackedOn=e),b[c]=f}})}function b0(b,c){var a=this._api;Z(bz,function(d){d(b,a,c)})}function bI(a,b){Z(U,function(c){Z(by[c]||[],function(d){d(a,b)})})}function bV(b,c){var a=this._api;Z(this._componentsViews,function(e){var d=e.__model;e.render(d,b,a,c),bZ(d,e)},this),Z(this._chartsViews,function(d){d.__alive=!1},this),b.eachSeries(function(e){var d=this._chartsMap[e.__viewId];d.__alive=!0,d.render(e,b,a,c),d.group.silent=!!e.get("silent"),bZ(e,d)},this),Z(this._chartsViews,function(d){d.__alive||d[aq](b,a)},this)}function bZ(b,c){var a=b.get("z"),d=b.get(aO);c.group.traverse(function(e){null!=a&&(e.z=a),null!=d&&(e[aO]=d)})}function bX(d){function g(k,l){for(var a=0;a<k[aD];a++){var m=k[a];m[b]=l}}var c=0,h=1,f=2,b="__connectUpdateStatus";Y.each(bC,function(e,a){d._messageCenter.on(a,function(n){if(bM[d.group]&&d[b]!==c){var m=d.makeActionFromEvent(n),i=[];for(var p in be){var k=be[p];k!==d&&k.group===d.group&&i.push(k)}g(i,c),Z(i,function(l){l[b]!==h&&l.dispatchAction(m)}),g(i,f)}})})}var bN=bJ("./model/Global"),bW=bJ("./ExtensionAPI"),bH=bJ("./CoordinateSystem"),bR=bJ("./model/OptionManager"),bF=bJ("./model/Component"),bG=bJ("./model/Series"),b3=bJ("./view/Component"),b1=bJ("./view/Chart"),J=bJ("zrender"),Y=bJ(br),bB=bJ("zrender/core/env"),A=bJ("zrender/mixin/Eventful"),Z=Y.each,U=["echarts","chart","component"],bE=[bu,bw,"statistic"];bU[aU].on=bY("on"),bU[aU].off=bY("off"),bU[aU].one=bY("one"),Y.mixin(bU,A);var bT=bQ[aU];bT.getDom=function(){return this._dom},bT.getZr=function(){return this._zr},bT.setOption=function(b,c,a){(!this._model||c)&&(this._model=new bN(null,null,this._theme,new bR(this._api))),this._model.setOption(b,w),ae.prepareAndUpdate.call(this),!a&&this._zr.refreshImmediately()},bT.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},bT[bo]=function(){return this._model},bT.getOption=function(){return this._model.getOption()},bT[bl]=function(){return this._zr[bl]()},bT[ag]=function(){return this._zr[ag]()},bT.getRenderedCanvas=function(b){if(bB.canvasSupported){b=b||{},b.pixelRatio=b.pixelRatio||1,b.backgroundColor=b.backgroundColor||this._model.get("backgroundColor");var c=this._zr,a=c.storage.getDisplayList();return Y.each(a,function(d){d.stopAnimation(!0)}),c.painter.getRenderedCanvas(b)}},bT.getDataURL=function(d){d=d||{};var g=d.excludeComponents,c=this._model,h=[],f=this;Z(g,function(a){c.eachComponent({mainType:a},function(i){var k=f._componentsMap[i.__viewId];k.group[bk]||(h.push(k),k.group[bk]=!0)})});var b=this.getRenderedCanvas(d).toDataURL("image/"+(d&&d.type||"png"));return Z(h,function(a){a.group[bk]=!1}),b},bT.getConnectedDataURL=function(x){if(bB.canvasSupported){var N=this.group,H=Math.min,E=Math.max,B=1/0;if(bM[N]){var R=B,D=B,z=-B,G=-B,P=[],q=x&&x.pixelRatio||1;for(var I in be){var O=be[I];if(O.group===N){var M=O.getRenderedCanvas(Y.clone(x)),C=O.getDom().getBoundingClientRect();R=H(C.left,R),D=H(C.top,D),z=E(C.right,z),G=E(C[af],G),P.push({dom:M,left:C.left,top:C.top})}}R*=q,D*=q,z*=q,G*=q;var L=z-R,k=G-D,F=Y.createCanvas();F.width=L,F[bq]=k;var b=J.init(F);return Z(P,function(a){var c=new ak.Image({style:{x:a.left*q-R,y:a.top*q-D,image:a.dom}});b.add(c)}),b.refreshImmediately(),F.toDataURL("image/"+(x&&x.type||"png"))}return this.getDataURL(x)}};var ae={update:function(d){var g=this._model,c=this._api,k=this._coordSysMgr;if(g){g.restoreData(),k[ad](this._model,this._api),bK.call(this,g,c),bS.call(this,g),k[a0](g,c),b0.call(this,g,d),bI.call(this,g,d),bV.call(this,g,d);var f=g.get("backgroundColor")||"transparent",b=this._zr.painter;if(b.isSingleCanvas&&b.isSingleCanvas()){this._zr.configLayer(0,{clearColor:f})}else{if(!bB.canvasSupported){var h=bi.parse(f);f=bi.stringify(h,"rgb"),0===h[3]&&(f="transparent")}f=f,this._dom.style.backgroundColor=f}}},updateView:function(a){var b=this._model;b&&(b0.call(this,b,a),bI.call(this,b,a),b2.call(this,"updateView",b,a))},updateVisual:function(a){var b=this._model;b&&(bI.call(this,b,a),b2.call(this,"updateVisual",b,a))},updateLayout:function(a){var b=this._model;b&&(b0.call(this,b,a),b2.call(this,"updateLayout",b,a))},highlight:function(a){bL.call(this,"highlight",a)},downplay:function(a){bL.call(this,"downplay",a)},prepareAndUpdate:function(a){var b=this._model;bP.call(this,"component",b),bP.call(this,"chart",b),ae[a0].call(this,a)}};bT[bv]=function(){this._zr[bv]();var a=this._model&&this._model.resetOption("media");ae[a?"prepareAndUpdate":a0].call(this),this._loadingFX&&this._loadingFX[bv]()};var bA=bJ("./loading/default");bT.showLoading=function(b,c){Y[aJ](b)&&(c=b,b="default"),this.hideLoading();var a=bA(this._api,c),d=this._zr;this._loadingFX=a,d.add(a)},bT.hideLoading=function(){this._loadingFX&&this._zr[aq](this._loadingFX),this._loadingFX=null},bT.makeActionFromEvent=function(a){var b=Y[bs]({},a);return b.type=bC[a.type],b},bT.dispatchAction=function(y,p){var k=Q[y.type];if(k){var f=k.actionInfo,b=f[a0]||a0,v=[y],d=!1;y.batch&&(d=!0,v=Y.map(y.batch,function(a){return a=Y[bm](Y[bs]({},a),y),a.batch=null,a}));for(var z,g=[],q="highlight"===y.type||"downplay"===y.type,x=0;x<v[aD];x++){var m=v[x];z=k.action(m,this._model),z=z||Y[bs]({},m),z.type=f.event||z.type,g.push(z),q&&ae[b].call(this,m)}"none"!==b&&!q&&ae[b].call(this,y),p||(z=d?{type:f.event||y.type,batch:g}:g[0],this._messageCenter[bj](z.type,z))}},bT.on=bY("on"),bT.off=bY("off"),bT.one=bY("one");var W=["click","dblclick",ab,bf,"mousedown","mouseup","globalout"];bT._initEvents=function(){Z(W,function(a){this._zr.on(a,function(f){var c=this[bo](),g=f[a6];if(g&&null!=g[a5]){var d=g.dataModel||c.getSeriesByIndex(g[bn]),b=d&&d[aX](g[a5],g.dataType)||{};b.event=f,b.type=a,this[bj](a,b)}else{g&&g.eventData&&this[bj](a,g.eventData)}},this)},this),Z(bC,function(a,b){this._messageCenter.on(b,function(c){this[bj](b,c)},this)},this)},bT.isDisposed=function(){return this._disposed},bT.clear=function(){this.setOption({},!0)},bT.dispose=function(){this._disposed=!0;var a=this._api,b=this._model;Z(this._componentsViews,function(c){c.dispose(b,a)}),Z(this._chartsViews,function(c){c.dispose(b,a)}),this._zr.dispose(),delete be[this.id]},Y.mixin(bQ,A);var Q=[],bC={},bz=[],X={},w=[],by={},bx={},be={},bM={},j=new Date-0,bD=new Date-0,K="_echarts_instance_",bO={version:"0.0.0",dependencies:{zrender:"0.0.0"}};return bO.init=function(b,d,a){if(!b){throw new Error("Initialize failed: invalid dom.")}var c=new bQ(b,d,a);return c.id="ec_"+j++,be[c.id]=c,b.setAttribute&&b.setAttribute(K,c.id),bX(c),c},bO.connect=function(a){if(Y[aA](a)){var b=a;a=null,Y.each(b,function(c){null!=c.group&&(a=c.group)}),a=a||"g_"+bD++,Y.each(b,function(c){c.group=a})}return bM[a]=!0,a},bO.disConnect=function(a){bM[a]=!1},bO.dispose=function(a){Y.isDom(a)?a=bO.getInstanceByDom(a):typeof a===aa&&(a=be[a]),a instanceof bQ&&!a.isDisposed()&&a.dispose()},bO.getInstanceByDom=function(a){var b=a.getAttribute(K);return be[b]},bO.getInstanceById=function(a){return be[a]},bO.registerTheme=function(a,b){bx[a]=b},bO.registerPreprocessor=function(a){w.push(a)},bO.registerProcessor=function(b,c){if(Y[aP](bE,b)<0){throw new Error("stage should be one of "+bE)}var a=X[b]||(X[b]=[]);a.push(c)},bO.registerAction=function(b,c,a){typeof c===aN&&(a=c,c="");var d=Y[aJ](b)?b.type:[b,b={event:c}][0];b.event=(b.event||d)[ac](),c=b.event,Q[d]||(Q[d]={action:a,actionInfo:b}),bC[c]=d},bO.registerCoordinateSystem=function(a,b){bH.register(a,b)},bO.registerLayout=function(a){Y[aP](bz,a)<0&&bz.push(a)},bO.registerVisualCoding=function(b,c){if(Y[aP](U,b)<0){throw new Error("stage should be one of "+U)}var a=by[b]||(by[b]=[]);a.push(c)},bO.extendChartView=function(a){return b1[bs](a)},bO.extendComponentModel=function(a){return bF[bs](a)},bO.extendSeriesModel=function(a){return bG[bs](a)},bO.extendComponentView=function(a){return b3[bs](a)},bO.setCanvasCreator=function(a){Y.createCanvas=a},bO.registerPreprocessor(bJ("./preprocessor/backwardCompat")),bO.registerAction({type:"highlight",event:"highlight",update:"highlight"},Y.noop),bO.registerAction({type:"downplay",event:"downplay",update:"downplay"},Y.noop),bO.number=bJ("./util/number"),bO.format=bJ("./util/format"),bO.matrix=bJ("zrender/core/matrix"),bO.vector=bJ("zrender/core/vector"),bO.util={},Z(["map","each",bw,aP,aQ,"reduce",bw,"bind","curry",aA,"isString",aJ,"isFunction",bs],function(a){bO.util[a]=Y[a]}),bO}),aG("echarts/chart/pie",[a2,br,"../echarts","./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(b){var c=b(br),a=b("../echarts");b("./pie/PieSeries"),b("./pie/PieView"),b("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),a.registerVisualCoding("chart",c.curry(b("../visual/dataColor"),"pie")),a.registerLayout(c.curry(b("./pie/pieLayout"),"pie")),a.registerProcessor(bw,c.curry(b("../processor/dataFilter"),"pie"))}),aG("echarts/component/tooltip",[a2,"./tooltip/TooltipModel","./tooltip/TooltipView","../echarts"],function(a){a("./tooltip/TooltipModel"),a("./tooltip/TooltipView"),a("../echarts").registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),a("../echarts").registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})}),aG("echarts/model/Global",[a2,br,"../util/model","./Model","./Component","./globalDefault"],function(z){function L(b,c){for(var a in c){j.hasClass(a)||("object"==typeof c[a]?b[a]=b[a]?N.merge(b[a],c[a],!1):N.clone(c[a]):null==b[a]&&(b[a]=c[a]))}}function H(a){a=a,this[ah]={},this[ah][Q]=1,this._componentsMap={},this._seriesIndices=null,L(a,this._theme[ah]),N.merge(a,k,!1),this.mergeOption(a)}function E(b,c){N[aA](c)||(c=c?[c]:[]);var a={};return M(c,function(d){a[d]=(b[d]||[]).slice()}),a}function B(b,c){var a={};M(c,function(d){var f=d.exist;f&&(a[f.id]=d)}),M(c,function(f){var g=f[ah];if(N.assert(!g||null==g.id||!a[g.id]||a[g.id]===f,"id duplicates: "+(g&&g.id)),g&&null!=g.id&&(a[g.id]=f),F(g)){var d=P(b,g,f.exist);f.keyInfo={mainType:b,subType:d}}}),M(c,function(f){var h=f.exist,i=f[ah],g=f.keyInfo;if(F(i)){if(g.name=null!=i.name?i.name+"":h?h.name:"\x00-",h){g.id=h.id}else{if(null!=i.id){g.id=i.id+""}else{var d=0;do{g.id="\x00"+g.name+"\x00"+d++}while(a[g.id])}}a[g.id]=f}})}function P(b,c,a){var d=c.type?c.type:a?a.subType:j.determineSubType(b,c);return d}function D(a){return C(a,function(b){return b.componentIndex})||[]}function A(a,b){return b.hasOwnProperty("subType")?K(a,function(c){return c.subType===b.subType}):a}function G(a){if(!a._seriesIndices){throw new Error("Series has not been initialized yet.")}}var N=z(br),w=z("../util/model"),I=z("./Model"),M=N.each,K=N[bw],C=N.map,J=N[aA],q=N[aP],F=N[aJ],j=z("./Component"),k=z("./globalDefault"),Q="\x00_ec_inner",O=I[bs]({constructor:O,init:function(b,c,a,d){a=a||{},this[ah]=null,this._theme=new I(a),this._optionManager=d},setOption:function(a,b){N.assert(!(Q in a),"please use chart.getOption()"),this._optionManager.setOption(a,b),this.resetOption()},resetOption:function(c){var f=!1,h=this._optionManager;if(!c||"recreate"===c){var d=h.mountOption("recreate"===c);this[ah]&&"recreate"!==c?(this.restoreData(),this.mergeOption(d)):H.call(this,d),f=!0}if(("timeline"===c||"media"===c)&&this.restoreData(),!c||"recreate"===c||"timeline"===c){var b=h.getTimelineOption(this);b&&(this.mergeOption(b),f=!0)}if(!c||"recreate"===c||"media"===c){var g=h.getMediaOption(this,this._api);g[aD]&&M(g,function(a){this.mergeOption(a,f=!0)},this)}return f},mergeOption:function(d){function g(o,m){var a=w.normalizeToArray(d[o]),i=w.mappingToExists(b[o],a);B(o,i);var n=E(b,m);c[o]=[],b[o]=[],M(i,function(e,u){var l=e.exist,p=e[ah];if(N.assert(F(p)||l,"Empty component definition"),p){var h=j.getClass(o,e.keyInfo.subType,!0);l&&l instanceof h?(l.mergeOption(p,this),l.optionUpdated(this)):(l=new h(p,this,this,N[bs]({dependentModels:n,componentIndex:u},e.keyInfo)),l.optionUpdated(this))}else{l.mergeOption({},this),l.optionUpdated(this)}b[o][u]=l,c[o][u]=l[ah]},this),o===bt&&(this._seriesIndices=D(b[bt]))}var c=this[ah],b=this._componentsMap,f=[];M(d,function(a,h){null!=a&&(j.hasClass(h)?f.push(h):c[h]=null==c[h]?N.clone(a):N.merge(c[h],a,!0))}),j.topologicalTravel(f,j.getAllClassMainTypes(),g,this)},getOption:function(){var a=N.clone(this[ah]);return M(a,function(c,b){if(j.hasClass(b)){for(var c=w.normalizeToArray(c),d=c[aD]-1;d>=0;d--){w.isIdInner(c[d])&&c[a8](d,1)}a[b]=c}}),delete a[Q],a},getTheme:function(){return this._theme},getComponent:function(b,c){var a=this._componentsMap[b];return a?a[c||0]:void 0},queryComponents:function(u){var m=u.mainType;if(!m){return[]}var h=u.index,f=u.id,b=u.name,s=this._componentsMap[m];if(!s||!s[aD]){return[]}var d;if(null!=h){J(h)||(h=[h]),d=K(C(h,function(a){return s[a]}),function(a){return !!a})}else{if(null!=f){var g=J(f);d=K(s,function(a){return g&&q(f,a.id)>=0||!g&&a.id===f})}else{if(null!=b){var p=J(b);d=K(s,function(a){return p&&q(b,a.name)>=0||!p&&a.name===b})}}}return A(d,u)},findComponents:function(d){function g(m){var o=f+"Index",a=f+"Id",p=f+"Name";return m&&(m.hasOwnProperty(o)||m.hasOwnProperty(a)||m.hasOwnProperty(p))?{mainType:f,index:m[o],id:m[a],name:m[p]}:null}function c(a){return d[bw]?K(a,d[bw]):a}var l=d.query,f=d.mainType,b=g(l),h=b?this.queryComponents(b):this._componentsMap[f];return c(A(h,d))},eachComponent:function(b,d,a){var f=this._componentsMap;if(typeof b===aN){a=d,d=b,M(f,function(e,g){M(e,function(h,i){d.call(a,g,h,i)})})}else{if(N.isString(b)){M(f[b],d,a)}else{if(F(b)){var c=this.findComponents(b);M(c,d,a)}}}},getSeriesByName:function(a){var b=this._componentsMap[bt];return K(b,function(c){return c.name===a})},getSeriesByIndex:function(a){return this._componentsMap[bt][a]},getSeriesByType:function(a){var b=this._componentsMap[bt];return K(b,function(c){return c.subType===a})},getSeries:function(){return this._componentsMap[bt].slice()},eachSeries:function(a,b){G(this),M(this._seriesIndices,function(c){var d=this._componentsMap[bt][c];a.call(b,d,c)},this)},eachRawSeries:function(a,b){M(this._componentsMap[bt],a,b)},eachSeriesByType:function(b,c,a){G(this),M(this._seriesIndices,function(e){var d=this._componentsMap[bt][e];d.subType===b&&c.call(a,d,e)},this)},eachRawSeriesByType:function(b,c,a){return M(this.getSeriesByType(b),c,a)},isSeriesFiltered:function(a){return G(this),N[aP](this._seriesIndices,a.componentIndex)<0},filterSeries:function(b,c){G(this);var a=K(this._componentsMap[bt],b,c);this._seriesIndices=D(a)},restoreData:function(){var a=this._componentsMap;this._seriesIndices=D(a[bt]);var b=[];M(a,function(d,c){b.push(c)}),j.topologicalTravel(b,j.getAllClassMainTypes(),function(c){M(a[c],function(d){d.restoreData()})})}});return O}),aG("echarts/ExtensionAPI",[a2,br],function(b){function c(e){a.each(d,function(f){this[f]=a.bind(e[f],e)},this)}var a=b(br),d=["getDom","getZr",bl,ag,"dispatchAction","on","off","getDataURL","getConnectedDataURL",bo,"getOption"];return c}),aG("echarts/CoordinateSystem",[a2],function(){function a(){this._coordinateSystems=[]}var b={};return a[aU]={constructor:a,create:function(e,d){var g=[];for(var f in b){var c=b[f][ad](e,d);c&&(g=g.concat(c))}this._coordinateSystems=g},update:function(d,f){for(var c=this._coordinateSystems,g=0;g<c[aD];g++){c[g][a0]&&c[g][a0](d,f)}}},a.register=function(d,c){b[d]=c},a.get=function(c){return b[c]},a}),aG("echarts/model/OptionManager",[a2,br,"../util/model","./Component"],function(C){function x(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function q(h,s){var f,E,p=[],d=[],u=h.timeline;if(h.baseOption&&(E=h.baseOption),(u||h.options)&&(E=E||{},p=(h.options||[]).slice()),h.media){E=E||{};var c=h.media;B(c,function(a){a&&a[ah]&&(a.query?d.push(a):f||(f=a))})}return E||(E=h),E.timeline||(E.timeline=u),B([E].concat(p).concat(D.map(d,function(a){return a[ah]})),function(a){B(s,function(i){i(a)})}),{baseOption:E,timelineOptions:p,mediaDefault:f,mediaList:d}}function k(f,h,d){var l={width:h,height:d,aspectratio:h/d},c=!0;return D.each(f,function(n,r){var a=r.match(g);if(a&&a[1]&&a[2]){var u=a[1],p=a[2][ac]();b(l[p],n,u)||(c=!1)}}),c}function b(c,d,a){return"min"===a?c>=d:"max"===a?d>=c:c===d}function A(a,c){return a.join(",")===c.join(",")}function j(a,c){c=c||{},B(c,function(h,d){if(null!=h){var l=a[d];if(z.hasClass(d)){h=m.normalizeToArray(h),l=m.normalizeToArray(l);var f=m.mappingToExists(l,h);a[d]=y(f,function(e){return e[ah]&&e.exist?w(e.exist,e[ah],!0):e.exist||e[ah]})}else{a[d]=w(l,h,!0)}}})}var D=C(br),m=C("../util/model"),z=C("./Component"),B=D.each,v=D.clone,y=D.map,w=D.merge,g=/^(min|max)?(.+)$/;return x[aU]={constructor:x,setOption:function(a,d){a=v(a,!0);var f=this._optionBackup,c=q.call(this,a,d);this._newBaseOption=c.baseOption,f?(j(f.baseOption,c.baseOption),c.timelineOptions[aD]&&(f.timelineOptions=c.timelineOptions),c.mediaList[aD]&&(f.mediaList=c.mediaList),c.mediaDefault&&(f.mediaDefault=c.mediaDefault)):this._optionBackup=c},mountOption:function(a){var c=this._optionBackup;return this._timelineOptions=y(c.timelineOptions,v),this._mediaList=y(c.mediaList,v),this._mediaDefault=v(c.mediaDefault),this._currentMediaIndices=[],v(a?c.baseOption:this._newBaseOption)},getTimelineOption:function(c){var d,a=this._timelineOptions;if(a[aD]){var f=c[aY]("timeline");f&&(d=v(a[f.getCurrentIndex()],!0))}return d},getMediaOption:function(){var f=this._api[bl](),p=this._api[ag](),d=this._mediaList,n=this._mediaDefault,u=[],h=[];if(!d[aD]&&!n){return h}for(var a=0,E=d[aD];E>a;a++){k(d[a].query,f,p)&&u.push(a)}return !u[aD]&&n&&(u=[-1]),u[aD]&&!A(u,this._currentMediaIndices)&&(h=y(u,function(c){return v(-1===c?n[ah]:d[c][ah])})),this._currentMediaIndices=u,h}},x}),aG("echarts/model/Component",[a2,"./Model",br,"../util/component","../util/clazz"],function(f){function h(a){var i=[];return k.each(b.getClassesByMainType(a),function(e){g.apply(i,e[aU].dependencies||[])}),k.map(i,function(e){return j.parseClassType(e).main})}var d=f("./Model"),k=f(br),g=Array[aU].push,c=f("../util/component"),j=f("../util/clazz"),b=d[bs]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(){this.mergeDefaultAndTheme(this[ah],this[a4])},mergeDefaultAndTheme:function(n,p){var m=this.layoutMode,o={},l=p.getTheme();k.merge(n,l.get(this.mainType)),k.merge(n,this.getDefaultOption()),m&&ao.mergeLayoutParam(n,o,m)},mergeOption:function(a){k.merge(this[ah],a,!0);var i=this.layoutMode;i&&ao.mergeLayoutParam(this[ah],a,i)},optionUpdated:function(){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var n=[],p=this.constructor;p;){var m=p[aU].defaultOption;m&&n.push(m),p=p.superClass}for(var o={},l=n[aD]-1;l>=0;l--){o=k.merge(o,n[l],!0)}this.__defaultOption=o}return this.__defaultOption}});return j.enableClassExtend(b,function(l,n,a,m){k[bs](this,m),this.uid=c.getUID("componentModel")}),j.enableClassManagement(b,{registerWhenExtend:!0}),c.enableSubTypeDefaulter(b),c.enableTopologicalTravel(b,h),b}),aG("echarts/model/Series",[a2,br,"../util/format","../util/model","./Component"],function(d){var h=d(br),c=d("../util/format"),k=d("../util/model"),g=d("./Component"),b=c.encodeHTML,j=c.addCommas,f=g[bs]({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(l,m,a){this[bn]=this.componentIndex,this.mergeDefaultAndTheme(l,a),this._dataBeforeProcessed=this.getInitialData(l,a),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(e,a){h.merge(e,a.getTheme().get(this.subType)),h.merge(e,this.getDefaultOption()),k.defaultEmphasis(e.label,k.LABEL_OPTIONS),this.fillDataTextStyle(e.data)},mergeOption:function(e,a){e=h.merge(this[ah],e,!0),this.fillDataTextStyle(e.data);var l=this.getInitialData(e,a);l&&(this._data=l,this._dataBeforeProcessed=l.cloneShallow())},fillDataTextStyle:function(a){if(a){for(var i=0;i<a[aD];i++){a[i]&&a[i].label&&k.defaultEmphasis(a[i].label,k.LABEL_OPTIONS)}}},getInitialData:function(){},getData:function(a){return null==a?this._data:this._data.getLinkedData(a)},setData:function(a){this._data=a},getRawData:function(){return this._dataBeforeProcessed},coordDimToDataDim:function(a){return[a]},dataDimToCoordDim:function(a){return a},getBaseAxis:function(){var a=this[a9];return a&&a.getBaseAxis&&a.getBaseAxis()},formatTooltip:function(w,o){var e=this._data,a=this.getRawValue(w),x=h[aA](a)?h.map(a,j).join(", "):j(a),m=e[aT](w),q=e[bg](w,"color"),v='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+q+'"></span>',p=this.name;return"\x00-"===p&&(p=""),o?v+b(this.name)+" : "+x:(p&&b(p)+"<br />")+v+(m?b(m)+" : "+x:x)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getAxisTooltipDataIndex:null});return h.mixin(f,k.dataFormatMixin),f}),aG("echarts/view/Component",[a2,"zrender/container/Group","../util/component","../util/clazz"],function(d){var g=d("zrender/container/Group"),c=d("../util/component"),h=d("../util/clazz"),f=function(){this.group=new g,this.uid=c.getUID("viewComponent")};f[aU]={constructor:f,init:function(){},render:function(){},dispose:function(){}};var b=f[aU];return b.updateView=b.updateLayout=b.updateVisual=function(){},h.enableClassExtend(f),h.enableClassManagement(f,{registerWhenExtend:!0}),f}),aG("echarts/view/Chart",[a2,"zrender/container/Group","../util/component","../util/clazz"],function(d){function h(){this.group=new g,this.uid=b.getUID("viewChart")}function c(a,i){if(a&&(a[bj](i),"group"===a.type)){for(var l=0;l<a.childCount();l++){c(a.childAt(l),i)}}}function k(l,o,p){if(null!=o[a5]){var m=l[aV](o[a5]);c(m,p)}else{if(o.name){var i=l.indexOfName(o.name),m=l[aV](i);c(m,p)}else{l.eachItemGraphicEl(function(a){c(a,p)})}}}var g=d("zrender/container/Group"),b=d("../util/component"),j=d("../util/clazz");h[aU]={type:"chart",init:function(){},render:function(){},highlight:function(l,n,a,m){k(l[ax](),m,bi)},downplay:function(l,n,a,m){k(l[ax](),m,a3)},remove:function(){this.group[ar]()},dispose:function(){}};var f=h[aU];return f.updateView=f.updateLayout=f.updateVisual=function(l,m,a,o){this.render(l,m,a,o)},j.enableClassExtend(h),j.enableClassManagement(h,{registerWhenExtend:!0}),h}),aG("echarts/util/graphic",[a2],function(v){function K(a){return null!=a&&"none"!=a}function G(a){return a}function D(d){if(d.__hoverStlDirty){var i=d.style[aj],f=d.style.fill,c=d.__hoverStl;c.fill=c.fill||(K(f)?G(f):null),c[aj]=c[aj]||(K(i)?G(i):null);var h={};for(var e in c){c.hasOwnProperty(e)&&(h[e]=d.style[e])}d.__normalStl=h,d.__hoverStlDirty=!1}}function y(a){a.__isHover||(D(a),a.setStyle(a.__hoverStl),a.z2+=1,a.__isHover=!0)}function N(a){if(a.__isHover){var c=a.__normalStl;c&&a.setStyle(c),a.z2-=1,a.__isHover=!1}}function B(a){"group"===a.type?a.traverse(function(c){"group"!==c.type&&y(c)}):y(a)}function w(a){"group"===a.type?a.traverse(function(c){"group"!==c.type&&N(c)}):N(a)}function E(a,c){a.__hoverStl=a.hoverStyle||c||{},a.__hoverStlDirty=!0,a.__isHover&&D(a)}function M(){!this.__isEmphasis&&B(this)}function q(){!this.__isEmphasis&&w(this)}function H(){this.__isEmphasis=!0,B(this)}function L(){this.__isEmphasis=!1,w(this)}function J(I,u,p,h,d,C){typeof d===aN&&(C=d,d=null);var f=I?"Update":"",O=h&&h[ai]("animationDuration"+f),k=h&&h[ai]("animationEasing"+f),z=h&&h[ai]("animationDelay"+f);typeof z===aN&&(z=z(d)),h&&h[ai](al)?u.animateTo(p,O,z||0,k,C):(u.attr(p),C&&C())}var A=v(br),x=Math.round,b=v("zrender/graphic/Path"),g=v("zrender/core/matrix"),j=v("zrender/core/vector"),F=v("zrender/graphic/Gradient"),m={};return m.Group=v("zrender/container/Group"),m.Text=v("zrender/graphic/Text"),m[ak]=v("zrender/graphic/shape/Sector"),m.Polyline=v("zrender/graphic/shape/Polyline"),m.extendShape=function(a){return b[bs](a)},m.extendPath=function(a,c){return aV.extendFromString(a,c)},m.makePath=function(P,z,p,h){var d=aV.createFromString(P,z),I=d[a1]();if(p){var f=I.width/I[bq];if(h===bh){var Q,k=p[bq]*f;k<=p.width?Q=p[bq]:(k=p.width,Q=k/f);var C=p.x+p.width/2,O=p.y+p[bq]/2;p.x=C-k/2,p.y=O-Q/2,p.width=k,p[bq]=Q}this.resizePath(d,p)}return d},m.mergePath=aV.mergePath,m.resizePath=function(c,d){if(c[aK]){var a=c[a1](),f=a.calculateTransform(d);c[aK](f)}},m.subPixelOptimizeLine=function(c){var d=m.subPixelOptimize,a=c.shape,f=c.style[aM];return x(2*a.x1)===x(2*a.x2)&&(a.x1=a.x2=d(a.x1,f,!0)),x(2*a.y1)===x(2*a.y2)&&(a.y1=a.y2=d(a.y1,f,!0)),c},m.subPixelOptimizeRect=function(f){var l=m.subPixelOptimize,d=f.shape,u=f.style[aM],k=d.x,c=d.y,p=d.width,h=d[bq];return d.x=l(d.x,u,!0),d.y=l(d.y,u,!0),d.width=Math.max(l(k+p,u,!1)-d.x,0===p?0:1),d[bq]=Math.max(l(c+h,u,!1)-d.y,0===h?0:1),f},m.subPixelOptimize=function(c,d,a){var f=x(2*c);return(f+x(d))%2===0?f/2:(f+(a?1:-1))/2},m.setHoverStyle=function(a,c){"group"===a.type?a.traverse(function(d){"group"!==d.type&&E(d,c)}):E(a,c),a.on(ab,M).on(bf,q),a.on(bi,H).on(a3,L)},m.setText=function(f,k,d){var l=k[ai](aW)||aw,h=l[aP](aw)>=0?"white":d,c=k[bo](ba);A[bs](f,{textDistance:k[ai]("distance")||5,textFont:c[aR](),textPosition:l,textFill:c.getTextColor()||h})},m[aE]=A.curry(J,!0),m.initProps=A.curry(J,!1),m.getTransform=function(c,d){for(var a=g.identity([]);c&&c!==d;){g.mul(a,c.getLocalTransform(),a),c=c.parent}return a},m[aK]=function(c,d,a){return a&&(d=g.invert([],d)),j[aK]([],c,d)},m.transformDirection=function(f,k,d){var l=0===k[4]||0===k[5]||0===k[0]?1:Math.abs(2*k[4]/k[0]),h=0===k[4]||0===k[5]||0===k[2]?1:Math.abs(2*k[4]/k[2]),c=["left"===f?-l:"right"===f?l:0,"top"===f?-h:f===af?h:0];return c=m[aK](c,k,d),Math.abs(c[0])>Math.abs(c[1])?c[0]>0?"right":"left":c[1]>0?af:"top"},m}),aG("zrender/core/env",[],function(){function a(A){var L={},I={},F=A.match(/Web[kK]it[\/]{0,1}([\d.]+)/),C=A.match(/(Android);?[\s\/]+([\d.]+)?/),P=A.match(/(iPad).*OS\s([\d_]+)/),E=A.match(/(iPod)(.*OS\s([\d_]+))?/),B=!P&&A.match(/(iPhone\sOS)\s([\d_]+)/),H=A.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),N=H&&A.match(/TouchPad/),z=A.match(/Kindle\/([\d.]+)/),J=A.match(/Silk\/([\d._]+)/),M=A.match(/(BlackBerry).*Version\/([\d.]+)/),D=A.match(/(BB10).*Version\/([\d.]+)/),K=A.match(/(RIM\sTablet\sOS)\s([\d.]+)/),q=A.match(/PlayBook/),G=A.match(/Chrome\/([\d.]+)/)||A.match(/CriOS\/([\d.]+)/),f=A.match(/Firefox\/([\d.]+)/),j=F&&A.match(/Mobile\//)&&!G,Q=A.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!G,O=A.match(/MSIE\s([\d.]+)/)||A.match(/Trident\/.+?rv:(([\d.]+))/),k=A.match(/Edge\/([\d.]+)/);return(I.webkit=!!F)&&(I.version=F[1]),C&&(L.android=!0,L.version=C[2]),B&&!E&&(L.ios=L.iphone=!0,L.version=B[2][aS](/_/g,".")),P&&(L.ios=L.ipad=!0,L.version=P[2][aS](/_/g,".")),E&&(L.ios=L.ipod=!0,L.version=E[3]?E[3][aS](/_/g,"."):null),H&&(L.webos=!0,L.version=H[2]),N&&(L.touchpad=!0),M&&(L.blackberry=!0,L.version=M[2]),D&&(L.bb10=!0,L.version=D[2]),K&&(L.rimtabletos=!0,L.version=K[2]),q&&(I.playbook=!0),z&&(L.kindle=!0,L.version=z[1]),J&&(I.silk=!0,I.version=J[1]),!J&&L.android&&A.match(/Kindle Fire/)&&(I.silk=!0),G&&(I.chrome=!0,I.version=G[1]),f&&(I.firefox=!0,I.version=f[1]),O&&(I.ie=!0,I.version=O[1]),j&&(A.match(/Safari/)||L.ios)&&(I.safari=!0),Q&&(I.webview=!0),O&&(I.ie=!0,I.version=O[1]),k&&(I.edge=!0,I.version=k[1]),L.tablet=!!(P||q||C&&!A.match(/Mobile/)||f&&A.match(/Tablet/)||O&&!A.match(/Phone/)&&A.match(/Touch/)),L.phone=!(L.tablet||L.ipod||!(C||B||H||M||D||G&&A.match(/Android/)||G&&A.match(/CriOS\/([\d.]+)/)||f&&A.match(/Mobile/)||O&&A.match(/Touch/))),{browser:I,os:L,node:!1,canvasSupported:document[aF]("canvas").getContext?!0:!1,touchEventsSupported:"ontouchstart" in window&&!I.ie&&!I.edge,pointerEventsSupported:"onpointerdown" in window&&(I.edge||I.ie&&I.version>=10)}}var b={};return b=typeof navigator===at?{browser:{},os:{},node:!0,canvasSupported:!0}:a(navigator.userAgent)}),aG(br,[a2,"../graphic/Gradient"],function(bC){function bO(d){if("object"==typeof d&&null!==d){var c=d;if(d instanceof Array){c=[];for(var g=0,e=d[aD];e>g;g++){c[g]=bO(d[g])}}else{if(!K(d)&&!ae(d)){c={};for(var b in d){d.hasOwnProperty(b)&&(c[b]=bO(d[b]))}}}return c}return d}function bL(c,h,e){if(!q(h)||!q(c)){return e?bO(h):c}for(var b in h){if(h.hasOwnProperty(b)){var g=c[b],d=h[b];!q(d)||!q(g)||bT(d)||bT(g)||ae(d)||ae(g)||K(d)||K(g)?!e&&b in c||(c[b]=bO(h[b],!0)):bL(g,d,e)}}return c}function bH(c,g){for(var h=c[0],d=1,b=c[aD];b>d;d++){h=bL(h,c[d],g)}return h}function bE(b,c){for(var a in c){c.hasOwnProperty(a)&&(b[a]=c[a])}return b}function bS(b,c,a){for(var d in c){c.hasOwnProperty(d)&&(a?null!=c[d]:null==b[d])&&(b[d]=c[d])}return b}function bG(){return document[aF]("canvas")}function bD(){return G||(G=f.createCanvas().getContext("2d")),G}function bJ(b,c){if(b){if(b[aP]){return b[aP](c)}for(var a=0,d=b[aD];d>a;a++){if(b[a]===c){return a}}}return -1}function bQ(b,d){function a(){}var g=b[aU];a[aU]=d[aU],b[aU]=new a;for(var c in g){b[aU][c]=g[c]}b[aU].constructor=b,b.superClass=d}function bB(b,c,a){b=aU in b?b[aU]:b,c=aU in c?c[aU]:c,bS(b,c,a)}function bM(a){return a?typeof a==aa?!1:"number"==typeof a[aD]:void 0}function bP(d,h,c){if(d&&h){if(d.forEach&&d.forEach===H){d.forEach(h,c)}else{if(d[aD]===+d[aD]){for(var k=0,g=d[aD];g>k;k++){h.call(c,d[k],k,d)}}else{for(var b in d){d.hasOwnProperty(b)&&h.call(c,d[b],b,d)}}}}}function bF(d,h,c){if(d&&h){if(d.map&&d.map===W){return d.map(h,c)}for(var k=[],g=0,b=d[aD];b>g;g++){k.push(h.call(c,d[g],g,d))}return k}}function bN(d,h,c,k){if(d&&h){if(d.reduce&&d.reduce===J){return d.reduce(h,c,k)}for(var g=0,b=d[aD];b>g;g++){c=h.call(k,c,d[g],g,d)}return c}}function bA(d,h,c){if(d&&h){if(d[bw]&&d[bw]===F){return d[bw](h,c)}for(var k=[],g=0,b=d[aD];b>g;g++){h.call(c,d[g],g,d)&&k.push(d[g])}return k}}function bI(b,d,a){if(b&&d){for(var g=0,c=b[aD];c>g;g++){if(d.call(a,b[g],g,b)){return b[g]}}}}function bx(b,c){var a=Z.call(arguments,2);return function(){return b.apply(c,a.concat(Z.call(arguments)))}}function by(a){var b=Z.call(arguments,1);return function(){return a.apply(this,b.concat(Z.call(arguments)))}}function bT(a){return"[object Array]"===U.call(a)}function bR(a){return typeof a===aN}function bz(a){return"[object String]"===U.call(a)}function q(a){var b=typeof a;return b===aN||!!a&&"object"==b}function K(a){return !!bK[U.call(a)]||a instanceof be}function ae(a){return a&&1===a.nodeType&&typeof a.nodeName==aa}function Y(){for(var a=0,b=arguments[aD];b>a;a++){if(null!=arguments[a]){return arguments[a]}}}function j(){return Function.call.apply(Z,arguments)}function Q(a,b){if(!a){throw new Error(b)}}var G,be=bC("../graphic/Gradient"),bK={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},U=Object[aU].toString,X=Array[aU],H=X.forEach,F=X[bw],Z=X.slice,W=X.map,J=X.reduce,f={inherits:bQ,mixin:bB,clone:bO,merge:bL,mergeAll:bH,extend:bE,defaults:bS,getContext:bD,createCanvas:bG,indexOf:bJ,slice:j,find:bI,isArrayLike:bM,each:bP,map:bF,reduce:bN,filter:bA,bind:bx,curry:by,isArray:bT,isString:bz,isObject:q,isFunction:bR,isBuildInObject:K,isDom:ae,retrieve:Y,assert:Q,noop:function(){}};return f}),aG("zrender/zrender",[a2,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(v){function m(a){delete p[a]}var j=v("./core/guid"),f=v("./core/env"),b=v("./Handler"),q=v("./Storage"),d=v("./animation/Animation"),g={canvas:v("./Painter")},p={},s={};s.version="0.0.0",s.init=function(a,c){var h=new k(j(),a,c);return p[h.id]=h,h},s.dispose=function(a){if(a){a.dispose()}else{for(var c in p){p[c].dispose()}p={}}return s},s.getInstance=function(a){return p[a]},s.registerPainter=function(a,c){g[a]=c};var k=function(z,r,l){l=l||{},this.dom=r,this.id=z;var x=this,y=new q,n=l.renderer;n&&g[n]||(n="canvas");var w=new g[n](r,y,l);this.storage=y,this.painter=w,f.node||(this.handler=new b(w.getViewportRoot(),y,w)),this[al]=new d({stage:{update:function(){x._needsRefresh&&x.refreshImmediately()}}}),this[al].start(),this._needsRefresh;var o=y.delFromMap,a=y.addToMap;y.delFromMap=function(c){var h=y.get(c);o.call(y,c),h&&h.removeSelfFromZr(x)},y.addToMap=function(c){a.call(y,c),c.addSelfToZr(x)}};return k[aU]={constructor:k,getId:function(){return this.id},add:function(a){this.storage.addRoot(a),this._needsRefresh=!0},remove:function(a){this.storage.delRoot(a),this._needsRefresh=!0},configLayer:function(a,c){this.painter.configLayer(a,c),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[bv](),this.handler&&this.handler[bv]()},clearAnimation:function(){this[al].clear()},getWidth:function(){return this.painter[bl]()},getHeight:function(){return this.painter[ag]()},pathToImage:function(a,h,i){var c=j();return this.painter.pathToImage(c,a,h,i)},setDefaultCursorStyle:function(a){this.handler.setDefaultCursorStyle(a)},on:function(c,h,a){this.handler&&this.handler.on(c,h,a)},off:function(a,c){this.handler&&this.handler.off(a,c)},trigger:function(a,c){this.handler&&this.handler[bj](a,c)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this[al].stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this[al]=this.storage=this.painter=this.handler=null,m(this.id)}},s}),aG("zrender/mixin/Eventful",[a2,aH],function(b){var d=Array[aU].slice,a=b(aH),f=a[aP],c=function(){this._$handlers={}};return c[aU]={constructor:c,one:function(h,k,g){var j=this._$handlers;return k&&h?(j[h]||(j[h]=[]),f(j[h],h)>=0?this:(j[h].push({h:k,one:!0,ctx:g||this}),this)):this},on:function(h,j,g){var k=this._$handlers;return j&&h?(k[h]||(k[h]=[]),k[h].push({h:j,one:!1,ctx:g||this}),this):this},isSilent:function(g){var h=this._$handlers;return h[g]&&h[g][aD]},off:function(j,l){var h=this._$handlers;if(!j){return this._$handlers={},this}if(l){if(h[j]){for(var m=[],k=0,g=h[j][aD];g>k;k++){h[j][k].h!=l&&m.push(h[j][k])}h[j]=m}h[j]&&0===h[j][aD]&&delete h[j]}else{delete h[j]}return this},trigger:function(h){if(this._$handlers[h]){var g=arguments,l=g[aD];l>3&&(g=d.call(g,1));for(var j=this._$handlers[h],e=j[aD],k=0;e>k;){switch(l){case 1:j[k].h.call(j[k].ctx);break;case 2:j[k].h.call(j[k].ctx,g[1]);break;case 3:j[k].h.call(j[k].ctx,g[1],g[2]);break;default:j[k].h.apply(j[k].ctx,g)}j[k].one?(j[a8](k,1),e--):k++}}return this},triggerWithContext:function(h){if(this._$handlers[h]){var g=arguments,m=g[aD];m>4&&(g=d.call(g,1,g[aD]-1));for(var k=g[g[aD]-1],e=this._$handlers[h],l=e[aD],j=0;l>j;){switch(m){case 1:e[j].h.call(k);break;case 2:e[j].h.call(k,g[1]);break;case 3:e[j].h.call(k,g[1],g[2]);break;default:e[j].h.apply(k,g)}e[j].one?(e[a8](j,1),l--):j++}}return this}},c}),aG("echarts/loading/default",[a2,"../util/graphic",br],function(b){var c=b("../util/graphic"),a=b(br),d=Math.PI;return function(g,i){i=i||{},a[bm](i,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var f=new c.Rect({style:{fill:i.maskColor},zlevel:i[aO],z:10000}),j=new c.Arc({shape:{startAngle:-d/2,endAngle:-d/2+0.1,r:10},style:{stroke:i.color,lineCap:"round",lineWidth:5},zlevel:i[aO],z:10001}),h=new c.Rect({style:{fill:"none",text:i.text,textPosition:"right",textDistance:10,textFill:i.textColor},zlevel:i[aO],z:10001});j.animateShape(!0).when(1000,{endAngle:3*d/2}).start("circularInOut"),j.animateShape(!0).when(1000,{startAngle:3*d/2}).delay(300).start("circularInOut");var e=new c.Group;return e.add(j),e.add(h),e.add(f),e[bv]=function(){var l=g[bl]()/2,k=g[ag]()/2;j.setShape({cx:l,cy:k});var m=j.shape.r;h.setShape({x:l-m,y:k-m,width:2*m,height:2*m}),f.setShape({x:0,y:0,width:g[bl](),height:g[ag]()})},e[bv](),e}}),aG("echarts/preprocessor/backwardCompat",[a2,br,"./helper/compatStyle"],function(p){function j(c,l){l=l.split(",");for(var a=c,o=0;o<l[aD]&&(a=a&&a[l[o]],null!=a);o++){}return a}function h(s,v,l,x){v=v.split(",");for(var u,c=s,w=0;w<v[aD]-1;w++){u=v[w],null==c[u]&&(c[u]={}),c=c[u]}(x||null==c[v[w]])&&(c[v[w]]=l)}function f(a){k(d,function(c){c[0] in a&&!(c[1] in a)&&(a[c[1]]=a[c[0]])})}var b=p(br),m=p("./helper/compatStyle"),d=[["x","left"],["y","top"],["x2","right"],["y2",af]],q=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],g=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],k=b.each;return function(a){k(a[bt],function(e){if(b[aJ](e)){var l=e.type;if(m(e),("pie"===l||"gauge"===l)&&null!=e.clockWise&&(e.clockwise=e.clockWise),"gauge"===l){var i=j(e,"pointer.color");null!=i&&h(e,"itemStyle.normal.color",i)}for(var n=0;n<g[aD];n++){if(g[n]===e.type){f(e);break}}}}),a.dataRange&&(a.visualMap=a.dataRange),k(q,function(l){var c=a[l];c&&(b[aA](c)||(c=[c]),k(c,function(e){f(e)}))})}}),aG("echarts/util/format",[a2,br,"./number"],function(w){function m(a){return isNaN(a)?"-":(a=(a+"").split("."),a[0][aS](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(a[aD]>1?"."+a[1]:""))}function j(a){return a[ac]()[aS](/-(.)/g,function(c,h){return h.toUpperCase()})}function f(a){var c=a[aD];return"number"==typeof a?[a,a,a,a]:2===c?[a[0],a[1],a[0],a[1]]:3===c?[a[0],a[1],a[2],a[1]]:a}function b(a){return String(a)[aS](/&/g,"&amp;")[aS](/</g,"&lt;")[aS](/>/g,"&gt;")[aS](/"/g,"&quot;")[aS](/'/g,"&#39;")}function q(a,c){return"{"+a+(null==c?"":c)+"}"}function d(h,z){p[aA](z)||(z=[z]);var c=z[aD];if(!c){return""}for(var B=z[0].$vars,y=0;y<B[aD];y++){var A=k[y];h=h[aS](q(A),q(A,0))}for(var u=0;c>u;u++){for(var a=0;a<B[aD];a++){h=h[aS](q(k[a],u),z[u][B[a]])}}return h}function x(C,z){("week"===C||"month"===C||"quarter"===C||"half-year"===C||"year"===C)&&(C="MM-dd\nyyyy");var y=v.parseDate(z),u=y.getFullYear(),h=y.getMonth()+1,B=y.getDate(),l=y.getHours(),D=y.getMinutes(),A=y.getSeconds();return C=C[aS]("MM",g(h))[ac]()[aS]("yyyy",u)[aS]("yy",u%100)[aS]("dd",g(B))[aS]("d",B)[aS]("hh",g(l))[aS]("h",l)[aS]("mm",g(D))[aS]("m",D)[aS]("ss",g(A))[aS]("s",A)}function g(a){return 10>a?"0"+a:a}var p=w(br),v=w("./number"),k=["a","b","c","d","e","f","g"];return{normalizeCssArray:f,addCommas:m,toCamelCase:j,encodeHTML:b,formatTpl:d,formatTime:x}}),aG("echarts/util/number",[a2],function(){function b(d){return d[aS](/^\s+/,"")[aS](/\s+$/,"")}var c={},a=0.0001;return c.linearMap=function(g,j,f,k){var h=j[1]-j[0],d=f[1]-f[0];if(0===h){return 0===d?f[0]:(f[0]+f[1])/2}if(k){if(h>0){if(g<=j[0]){return f[0]}if(g>=j[1]){return f[1]}}else{if(g>=j[0]){return f[0]}if(g<=j[1]){return f[1]}}}else{if(g===j[0]){return f[0]}if(g===j[1]){return f[1]}}return(g-j[0])/h*d+f[0]},c[am]=function(f,d){switch(f){case bh:case bc:f="50%";break;case"left":case"top":f="0%";break;case"right":case af:f="100%"}return typeof f===aa?b(f).match(/%$/)?parseFloat(f)/100*d:parseFloat(f):null==f?0/0:+f},c.round=function(d){return +(+d).toFixed(10)},c.asc=function(d){return d.sort(function(f,g){return f-g}),d},c.getPrecision=function(f){if(isNaN(f)){return 0}for(var g=1,d=0;Math.round(f*g)/g!==f;){g*=10,d++}return d},c.getPixelPrecision=function(g,j){var f=Math.log,k=Math.LN10,h=Math.floor(f(g[1]-g[0])/k),d=Math.round(f(Math.abs(j[1]-j[0]))/k);return Math.max(-h+d,0)},c.MAX_SAFE_INTEGER=9007199254740991,c.remRadian=function(d){var f=2*Math.PI;return(d%f+f)%f},c.isRadianAroundZero=function(d){return d>-a&&a>d},c.parseDate=function(d){return d instanceof Date?d:new Date(typeof d===aa?d[aS](/-/g,"/"):Math.round(d))},c.quantity=function(d){return Math.pow(10,Math.floor(Math.log(d)/Math.LN10))},c.nice=function(f,e){var h,g=c.quantity(f),d=f/g;return h=e?1.5>d?1:2.5>d?2:4>d?3:7>d?5:10:1>d?1:2>d?2:3>d?3:5>d?5:10,h*g},c}),aG("zrender/core/matrix",[],function(){var a=typeof Float32Array===at?Array:Float32Array,b={create:function(){var c=new a(6);return b.identity(c),c},identity:function(c){return c[0]=1,c[1]=0,c[2]=0,c[3]=1,c[4]=0,c[5]=0,c},copy:function(c,d){return c[0]=d[0],c[1]=d[1],c[2]=d[2],c[3]=d[3],c[4]=d[4],c[5]=d[5],c},mul:function(m,j,h){var f=j[0]*h[0]+j[2]*h[1],c=j[1]*h[0]+j[3]*h[1],k=j[0]*h[2]+j[2]*h[3],d=j[1]*h[2]+j[3]*h[3],p=j[0]*h[4]+j[2]*h[5]+j[4],g=j[1]*h[4]+j[3]*h[5]+j[5];return m[0]=f,m[1]=c,m[2]=k,m[3]=d,m[4]=p,m[5]=g,m},translate:function(d,f,c){return d[0]=f[0],d[1]=f[1],d[2]=f[2],d[3]=f[3],d[4]=f[4]+c[0],d[5]=f[5]+c[1],d},rotate:function(v,k,j){var g=k[0],d=k[2],p=k[4],f=k[1],w=k[3],h=k[5],m=Math.sin(j),q=Math.cos(j);return v[0]=g*q+f*m,v[1]=-g*m+f*q,v[2]=d*q+w*m,v[3]=-d*m+q*w,v[4]=q*p+m*h,v[5]=q*h-m*p,v},scale:function(d,g,c){var h=c[0],f=c[1];return d[0]=g[0]*h,d[1]=g[1]*f,d[2]=g[2]*h,d[3]=g[3]*f,d[4]=g[4]*h,d[5]=g[5]*f,d},invert:function(m,j){var h=j[0],f=j[2],c=j[4],k=j[1],d=j[3],p=j[5],g=h*d-k*f;return g?(g=1/g,m[0]=d*g,m[1]=-k*g,m[2]=-f*g,m[3]=h*g,m[4]=(f*p-d*c)*g,m[5]=(k*c-h*p)*g,m):null}};return b}),aG("zrender/core/vector",[],function(){var a=typeof Float32Array===at?Array:Float32Array,b={create:function(d,c){var f=new a(2);return f[0]=d||0,f[1]=c||0,f},copy:function(c,d){return c[0]=d[0],c[1]=d[1],c},clone:function(d){var c=new a(2);return c[0]=d[0],c[1]=d[1],c},set:function(d,f,c){return d[0]=f,d[1]=c,d},add:function(d,f,c){return d[0]=f[0]+c[0],d[1]=f[1]+c[1],d},scaleAndAdd:function(d,f,c,g){return d[0]=f[0]+c[0]*g,d[1]=f[1]+c[1]*g,d},sub:function(d,f,c){return d[0]=f[0]-c[0],d[1]=f[1]-c[1],d},len:function(c){return Math.sqrt(this.lenSquare(c))},lenSquare:function(c){return c[0]*c[0]+c[1]*c[1]},mul:function(d,f,c){return d[0]=f[0]*c[0],d[1]=f[1]*c[1],d},div:function(d,f,c){return d[0]=f[0]/c[0],d[1]=f[1]/c[1],d},dot:function(c,d){return c[0]*d[0]+c[1]*d[1]},scale:function(d,f,c){return d[0]=f[0]*c,d[1]=f[1]*c,d},normalize:function(d,c){var e=b.len(c);return 0===e?(d[0]=0,d[1]=0):(d[0]=c[0]/e,d[1]=c[1]/e),d},distance:function(c,d){return Math.sqrt((c[0]-d[0])*(c[0]-d[0])+(c[1]-d[1])*(c[1]-d[1]))},distanceSquare:function(c,d){return(c[0]-d[0])*(c[0]-d[0])+(c[1]-d[1])*(c[1]-d[1])},negate:function(c,d){return c[0]=-d[0],c[1]=-d[1],c},lerp:function(d,f,c,g){return d[0]=f[0]+g*(c[0]-f[0]),d[1]=f[1]+g*(c[1]-f[1]),d},applyTransform:function(d,g,c){var h=g[0],f=g[1];return d[0]=c[0]*h+c[2]*f+c[4],d[1]=c[1]*h+c[3]*f+c[5],d},min:function(d,f,c){return d[0]=Math.min(f[0],c[0]),d[1]=Math.min(f[1],c[1]),d},max:function(d,f,c){return d[0]=Math.max(f[0],c[0]),d[1]=Math.max(f[1],c[1]),d}};return b[aD]=b.len,b.lengthSquare=b.lenSquare,b.dist=b.distance,b.distSquare=b.distanceSquare,b}),aG("echarts/processor/dataSample",[],function(){var a={average:function(d){for(var f=0,c=0,g=0;g<d[aD];g++){isNaN(d[g])||(f+=d[g],c++)}return 0===c?0/0:f/c},sum:function(d){for(var f=0,c=0;c<d[aD];c++){f+=d[c]||0}return f},max:function(d){for(var f=-1/0,c=0;c<d[aD];c++){d[c]>f&&(f=d[c])}return f},min:function(d){for(var f=1/0,c=0;c<d[aD];c++){d[c]<f&&(f=d[c])}return f},nearest:function(c){return c[0]}},b=function(c){return Math.round(c[aD]/2)};return function(c,d){d.eachSeriesByType(c,function(k){var g=k[ax](),e=k.get("sampling"),q=k[a9];if("cartesian2d"===q.type&&e){var f=q.getBaseAxis(),v=q.getOtherAxis(f),j=f[az](),p=j[1]-j[0],t=Math.round(g.count()/p);if(t>1){var m;typeof e===aa?m=a[e]:typeof e===aN&&(m=e),m&&(g=g.downSample(v.dim,1/t,m,b),k.setData(g))}}},this)}}),aG("echarts/chart/pie/PieSeries",[a2,"../../data/List",br,"../../util/model","../../data/helper/completeDimensions","../../component/helper/selectableMixin",ap],function(d){var g=d("../../data/List"),c=d(br),j=d("../../util/model"),b=d("../../data/helper/completeDimensions"),h=d("../../component/helper/selectableMixin"),f=d(ap).extendSeriesModel({type:"series.pie",init:function(a){f.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(a.data),this._defaultLabelLine(a)},mergeOption:function(a){f.superCall(this,"mergeOption",a),this.updateSelectedMap(this[ah].data)},getInitialData:function(e){var a=b(["value"],e.data),k=new g(a,this);return k.initData(e.data),k},getDataParams:function(k){var l=this._data,a=f.superCall(this,aX,k),m=l.getSum("value");return a.percent=m?+(l.get("value",k)/m*100).toFixed(2):0,a.$vars.push("percent"),a},_defaultLabelLine:function(k){j.defaultEmphasis(k.labelLine,["show"]);var l=k.labelLine[a3],a=k.labelLine[bi];l.show=l.show&&k.label[a3].show,a.show=a.show&&k.label[bi].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:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});return c.mixin(f,h),f}),aG("echarts/chart/pie/PieView",[a2,aL,br,"../../view/Chart"],function(k){function h(p,v,x,u){var i=v[ax](),w=this[a5],q=i[aT](w),c=v.get("selectedOffset");u.dispatchAction({type:"pieToggleSelect",from:p,name:q,seriesId:v.id}),i.each(function(e){g(i[aV](e),i.getItemLayout(e),v.isSelected(i[aT](e)),c,x)})}function g(A,x,w,u,p){var z=(x.startAngle+x.endAngle)/2,q=Math.cos(z),B=Math.sin(z),v=w?u:0,y=[q*v,B*v];p?A.animate().when(200,{position:y}).start("bounceOut"):A.attr(aW,y)}function d(o,u){function l(){c[bk]=c.hoverIgnore,p[bk]=p.hoverIgnore}function v(){c[bk]=c.normalIgnore,p[bk]=p.normalIgnore}b.Group.call(this);var q=new b[ak]({z2:2}),c=new b.Polyline,p=new b.Text;this.add(q),this.add(c),this.add(p),this.updateData(o,u,!0),this.on(bi,l).on(a3,v).on(ab,l).on(bf,v)}function a(p,s,l,v,q){var c=v[bo](ba),u=q===aw||"inner"===q;return{fill:c.getTextColor()||(u?"#fff":p[bg](s,"color")),opacity:p[bg](s,aZ),textFont:c[aR](),text:m.retrieve(p.hostModel.getFormattedLabel(s,l),p[aT](s))}}var b=k(aL),m=k(br),f=d[aU];f.updateData=function(C,x,q){function i(){v.stopAnimation(!0),v.animateTo({shape:{r:y.r+10}},300,"elasticOut")}function A(){v.stopAnimation(!0),v.animateTo({shape:{r:y.r}},300,"elasticOut")}var v=this.childAt(0),z=C.hostModel,B=C[aC](x),y=C.getItemLayout(x),w=m[bs]({},y);w.label=null,q?(v.setShape(w),v.shape.endAngle=y.startAngle,b[aE](v,{shape:{endAngle:y.endAngle}},z,x)):b[aE](v,{shape:w},z,x);var o=B[bo]("itemStyle"),s=C[bg](x,"color");v.useStyle(m[bm]({fill:s},o[bo](a3).getItemStyle())),v.hoverStyle=o[bo](bi).getItemStyle(),g(this,C.getItemLayout(x),B.get("selected"),z.get("selectedOffset"),z.get(al)),v.off(ab).off(bf).off(bi).off(a3),B.get("hoverAnimation")&&v.on(ab,i).on(bf,A).on(bi,i).on(a3,A),this._updateLabel(C,x),b.setHoverStyle(this)},f._updateLabel=function(H,A){var x=this.childAt(1),q=this.childAt(2),E=H.hostModel,I=H[aC](A),w=H.getItemLayout(A),C=w.label,G=H[bg](A,"color");b[aE](x,{shape:{points:C.linePoints||[[C.x,C.y],[C.x,C.y],[C.x,C.y]]}},E,A),b[aE](q,{style:{x:C.x,y:C.y}},E,A),q.attr({style:{textVerticalAlign:C.verticalAlign,textAlign:C[bb],textFont:C.font},rotation:C.rotation,origin:[C.x,C.y],z2:10});var B=I[bo]("label.normal"),z=I[bo]("label.emphasis"),o=I[bo]("labelLine.normal"),F=I[bo]("labelLine.emphasis"),r=B.get(aW)||z.get(aW);q.setStyle(a(H,A,a3,B,r)),q[bk]=q.normalIgnore=!B.get("show"),q.hoverIgnore=!z.get("show"),x[bk]=x.normalIgnore=!o.get("show"),x.hoverIgnore=!F.get("show"),x.setStyle({stroke:G,opacity:H[bg](A,aZ)}),x.setStyle(o[bo]("lineStyle").getLineStyle()),q.hoverStyle=a(H,A,bi,z,r),x.hoverStyle=F[bo]("lineStyle").getLineStyle();var D=o.get("smooth");D&&D===!0&&(D=0.4),x.setShape({smooth:D})},m[aQ](d,b.Group);var j=k("../../view/Chart")[bs]({type:"pie",init:function(){var c=new b.Group;this._sectorGroup=c},render:function(E,w,e,C){if(!C||C.from!==this.uid){var q=E[ax](),v=this._data,B=this.group,D=w.get(al),x=!v,A=m.curry(h,this.uid,E,D,e),z=E.get("selectedMode");if(q.diff(v).add(function(c){var i=new d(q,c);x&&i.eachChild(function(l){l.stopAnimation(!0)}),z&&i.on("click",A),q.setItemGraphicEl(c,i),B.add(i)})[a0](function(l,o){var c=v[aV](o);c.updateData(q,l),c.off("click"),z&&c.on("click",A),B.add(c),q.setItemGraphicEl(l,c)})[aq](function(c){var i=v[aV](c);B[aq](i)}).execute(),D&&x&&q.count()>0){var n=q.getItemLayout(0),y=Math.max(e[bl](),e[ag]())/2,s=m.bind(B.removeClipPath,B);B.setClipPath(this._createClipPath(n.cx,n.cy,y,n.startAngle,n.clockwise,s,E))}this._data=q}},_createClipPath:function(q,w,p,x,v,o,u){var c=new b[ak]({shape:{cx:q,cy:w,r0:0,r:p,startAngle:x,endAngle:x,clockwise:v}});return b.initProps(c,{shape:{endAngle:x+(v?1:-1)*Math.PI*2}},u,o),c}});return j}),aG("echarts/action/createDataSelectAction",[a2,"../echarts",br],function(b){var c=b("../echarts"),a=b(br);return function(d,e){a.each(e,function(f){f[a0]="updateView",c.registerAction(f,function(h,i){var g={};return i.eachComponent({mainType:"series",subType:d,query:h},function(j){j[f.method]&&j[f.method](h.name);var k=j[ax]();k.each(function(m){var l=k[aT](m);g[l]=j.isSelected(l)||!1})}),{name:h.name,selected:g}})})}}),aG("echarts/visual/dataColor",[a2],function(){return function(b,c){var a=c.get("color"),d=0;c.eachRawSeriesByType(b,function(f){var g=f.get("color",!0),e=f.getRawData();if(!c.isSeriesFiltered(f)){var h=f[ax]();h.each(function(k){var n=h[aC](k),m=h.getRawIndex(k),i=h[bg](k,"color",!0);if(i){e.setItemVisual(m,"color",i)}else{var o=g?g[m%g[aD]]:a[(m+d)%a[aD]],j=n.get("itemStyle.normal.color")||o;e.setItemVisual(m,"color",j),h.setItemVisual(k,"color",j)}})}d+=e.count()})}}),aG("echarts/chart/pie/pieLayout",[a2,"../../util/number","./labelLayout",br],function(d){var h=d("../../util/number"),c=h[am],g=d("./labelLayout"),b=d(br),j=2*Math.PI,f=Math.PI/180;return function(e,a,i){a.eachSeriesByType(e,function(H){var O=H.get(bh),G=H.get(av);b[aA](G)||(G=[0,G]),b[aA](O)||(O=[O,O]);var Q=i[bl](),V=i[ag](),U=Math.min(Q,V),K=c(O[0],Q),R=c(O[1],V),F=c(G[0],U/2),N=c(G[1],U/2),B=H[ax](),D=-H.get("startAngle")*f,X=H.get("minAngle")*f,W=B.getSum("value"),E=Math.PI/(W||B.count())*2,n=H.get("clockwise"),q=H.get("roseType"),J=B.getDataExtent("value");J[0]=0;var I=j,k=0,r=D,o=n?1:-1;if(B.each("value",function(m,l){var u;u="area"!==q?0===W?E:m*E:j/(B.count()||1),X>u?(u=X,I-=X):k+=m;var p=r+o*u;B.setItemLayout(l,{angle:u,startAngle:r,endAngle:p,clockwise:n,cx:K,cy:R,r0:F,r:q?h.linearMap(m,J,[F,N]):N}),r=p},!0),j>I){if(0.001>=I){var s=j/B.count();B.each(function(l){var m=B.getItemLayout(l);m.startAngle=D+o*l*s,m.endAngle=D+o*(l+1)*s})}else{E=I/k,r=D,B.each("value",function(m,p){var l=B.getItemLayout(p),u=l.angle===X?X:m*E;l.startAngle=r,l.endAngle=r+o*u,r+=u})}}g(H,N,Q,V)})}}),aG("echarts/processor/dataFilter",[],function(){return function(b,c){var a=c.findComponents({mainType:"legend"});a&&a[aD]&&c.eachSeriesByType(b,function(d){var f=d[ax]();f.filterSelf(function(e){for(var h=f[aT](e),g=0;g<a[aD];g++){if(!a[g].isSelected(h)){return !1}}return !0},this)},this)}}),aG("echarts/component/tooltip/TooltipModel",[a2,ap],function(a){a(ap).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,showDelay:0,hideDelay:100,transitionDuration:0.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),aG("echarts/component/tooltip/TooltipView",[a2,"./TooltipContent",aL,br,"../../util/format","../../util/number","zrender/core/env",ap],function(w){function k(f,l){if(!f||!l){return !1}var d=i.round;return d(f[0])===d(l[0])&&d(f[1])===d(l[1])}function h(f,l,d,p){return{x1:f,y1:l,x2:d,y2:p}}function n(f,l,d,p){return{x:f,y:l,width:d,height:p}}function j(l,v,f,x,p,d){return{cx:l,cy:v,r0:f,r:x,startAngle:p,endAngle:d,clockwise:!0}}function c(l,x,f,z,v){var d=f.clientWidth,y=f.clientHeight,p=20;return l+d+p>z?l-=d+p:l+=p,x+y+p>v?x-=y+p:x+=p,[l,x]}function u(B,y,x){var p=x.clientWidth,d=x.clientHeight,A=5,f=0,C=0,v=y.width,z=y[bq];switch(B){case aw:f=y.x+v/2-p/2,C=y.y+z/2-d/2;break;case"top":f=y.x+v/2-p/2,C=y.y-d-A;break;case af:f=y.x+v/2-p/2,C=y.y+z+A;break;case"left":f=y.x-p-A,C=y.y+z/2-d/2;break;case"right":f=y.x+v+A,C=y.y+z/2-d/2}return[f,C]}function r(C,y,p,d,A,f,D){var v=D[bl](),z=D[ag](),B=f&&f[a1]().clone();if(f&&B[aK](f[bu]),typeof C===aN&&(C=C([y,p],A,d.el,B)),b[aA](C)){y=o(C[0],v),p=o(C[1],z)}else{if(typeof C===aa&&f){var x=u(C,B,d.el);y=x[0],p=x[1]}else{var x=c(y,p,d.el,v,z);y=x[0],p=x[1]}}d[aB](y,p)}function s(f){var l=f[a9],d=f.get("tooltip.trigger",!0);return !(!l||"cartesian2d"!==l.type&&"polar"!==l.type&&"single"!==l.type||"item"===d)}var m=w("./TooltipContent"),g=w(aL),b=w(br),q=w("../../util/format"),i=w("../../util/number"),o=i[am],a=w("zrender/core/env");w(ap).extendComponentView({type:"tooltip",_axisPointers:{},init:function(f,l){if(!a.node){var d=new m(l.getDom(),l);this._tooltipContent=d,l.on("showTip",this._manuallyShowTip,this),l.on("hideTip",this._manuallyHideTip,this)}},render:function(l,v,f){if(!a.node){this.group[ar](),this._axisPointers={},this._tooltipModel=l,this._ecModel=v,this._api=f,this._lastHover={};var y=this._tooltipContent;y[a0](),y.enterable=l.get("enterable"),this._alwaysShowContent=l.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(l,v);var p=this._crossText;if(p&&this.group.add(p),null!=this._lastX&&null!=this._lastY){var d=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){d._manuallyShowTip({x:d._lastX,y:d._lastY})})}var x=this._api.getZr();x.off("click",this._tryShow),x.off("mousemove",this._mousemove),x.off(bf,this._hide),x.off("globalout",this._hide),"click"===l.get("triggerOn")?x.on("click",this._tryShow,this):(x.on("mousemove",this._mousemove,this),x.on(bf,this._hide,this),x.on("globalout",this._hide,this))}},_mousemove:function(f){var l=this._tooltipModel.get("showDelay"),d=this;clearTimeout(this._showTimeout),l>0?this._showTimeout=setTimeout(function(){d._tryShow(f)},l):this._tryShow(f)},_manuallyShowTip:function(I){if(I.from!==this.uid){var D=this._ecModel,A=I[bn],y=I[a5],v=D.getSeriesByIndex(A),G=this._api;if(null==I.x||null==I.y){if(v||D.eachSeries(function(d){s(d)&&!v&&(v=d)}),v){var z=v[ax]();null==y&&(y=z.indexOfName(I.name));var F,H,B=z[aV](y),E=v[a9];if(E&&E[au]){var C=E[au](z.getValues(b.map(E[ao],function(d){return v.coordDimToDataDim(d)[0]}),y,!0));F=C&&C[0],H=C&&C[1]}else{if(B){var x=B[a1]().clone();x[aK](B[bu]),F=x.x+x.width/2,H=x.y+x[bq]/2}}null!=F&&null!=H&&this._tryShow({offsetX:F,offsetY:H,target:B,event:{}})}}else{var B=G.getZr().handler.findHover(I.x,I.y);this._tryShow({offsetX:I.x,offsetY:I.y,target:B,event:{}})}}},_manuallyHideTip:function(d){d.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(f,l){var d={};return l.eachSeries(function(p){if(s(p)){var x,y,v=p[a9];"cartesian2d"===v.type?(x=v.getBaseAxis(),y=x.dim+x.index):"single"===v.type?(x=v.getAxis(),y=x.dim+x.type):(x=v.getBaseAxis(),y=x.dim+v.name),d[y]=d[y]||{coordSys:[],series:[]},d[y].coordSys.push(v),d[y][bt].push(p)}},this),d},_tryShow:function(A){var y=A[a6],x=this._tooltipModel,p=x.get(bj),d=this._ecModel,z=this._api;if(x){if(this._lastX=A.offsetX,this._lastY=A.offsetY,y&&null!=y[a5]){var f=y.dataModel||d.getSeriesByIndex(y[bn]),B=y[a5],v=f[ax]()[aC](B);"axis"===(v.get("tooltip.trigger")||p)?this._showAxisTooltip(x,d,A):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(f,B,y.dataType,A)),z.dispatchAction({type:"showTip",from:this.uid,dataIndex:y[a5],seriesIndex:y[bn]})}else{"item"===p?this._hide():this._showAxisTooltip(x,d,A),"cross"===x.get("axisPointer.type")&&z.dispatchAction({type:"showTip",from:this.uid,x:A.offsetX,y:A.offsetY})}}},_showAxisTooltip:function(A,p,e){var d=A[bo]("axisPointer"),y=d.get("type");if("cross"===y){var f=e[a6];if(f&&null!=f[a5]){var x=p.getSeriesByIndex(f[bn]),z=f[a5];this._showItemTooltipContent(x,z,f.dataType,e)}}this._showAxisPointer();var v=!0;b.each(this._seriesGroupByAxis,function(L){var E=L.coordSys,D=E[0],I=[e.offsetX,e.offsetY];if(!D.containPoint(I)){return void this._hideAxisPointer(D.name)}v=!1;var K=D[ao],H=D.pointToData(I,!0);I=D[au](H);var G=D.getBaseAxis(),B=d.get("axis");"auto"===B&&(B=G.dim);var F=!1,J=this._lastHover;if("cross"===y){k(J.data,H)&&(F=!0),J.data=H}else{var C=b[aP](K,B);J.data===H[C]&&(F=!0),J.data=H[C]}"cartesian2d"!==D.type||F?"polar"!==D.type||F?"single"!==D.type||F||this._showSinglePointer(d,D,B,I):this._showPolarPointer(d,D,B,I):this._showCartesianPointer(d,D,B,I),"cross"!==y&&this._dispatchAndShowSeriesTooltipContent(D,L[bt],I,H,F)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),v&&this._hide()},_showCartesianPointer:function(B,x,p,l){function d(t,F,E){var e="x"===t?h(F[0],E[0],F[0],E[1]):h(E[0],F[1],E[1],F[1]),D=f._getPointerElement(x,B,t,e);y?g[aE](D,{shape:e},B):D.attr({shape:e})}function z(E,I,H){var t=x.getAxis(E),G=t.getBandWidth(),e=H[1]-H[0],D="x"===E?n(I[0]-G/2,H[0],G,e):n(H[0],I[1]-G/2,e,G),F=f._getPointerElement(x,B,E,D);y?g[aE](F,{shape:D},B):F.attr({shape:D})}var f=this,C=B.get("type"),y="cross"!==C;if("cross"===C){d("x",l,x.getAxis("y").getGlobalExtent()),d("y",l,x.getAxis("x").getGlobalExtent()),this._updateCrossText(x,l,B)}else{var A=x.getAxis("x"===p?"y":"x"),v=A.getGlobalExtent();"cartesian2d"===x.type&&("line"===C?d:z)(p,l,v)}},_showSinglePointer:function(A,v,p,l){function d(t,G,D){var E=v.getAxis(),F=E.orient,e="horizontal"===F?h(G[0],D[0],G[0],D[1]):h(D[0],G[1],D[1],G[1]),C=y._getPointerElement(v,A,t,e);B?g[aE](C,{shape:e},A):C.attr({shape:e})}var y=this,f=A.get("type"),B="cross"!==f,x=v.getRect(),z=[x.y,x.y+x[bq]];d(p,l,z)},_showPolarPointer:function(G,A,y,f){function D(p,K,v){var d,I=A.pointToCoord(K);if("angle"===p){var J=A.coordToPoint([v[0],I[1]]),e=A.coordToPoint([v[1],I[1]]);d=h(J[0],J[1],e[0],e[1])}else{d={cx:A.cx,cy:A.cy,r:I[0]}}var t=H._getPointerElement(A,G,p,d);B?g[aE](t,{shape:d},G):t.attr({shape:d})}function x(v,p,d){var K,e=A.getAxis(v),t=e.getBandWidth(),J=A.pointToCoord(p),L=Math.PI/180;K="angle"===v?j(A.cx,A.cy,d[0],d[1],(-J[1]-t/2)*L,(-J[1]+t/2)*L):j(A.cx,A.cy,J[0]-t/2,J[0]+t/2,0,2*Math.PI);var I=H._getPointerElement(A,G,v,K);B?g[aE](I,{shape:K},G):I.attr({shape:K})}var H=this,C=G.get("type"),F=A.getAngleAxis(),z=A.getRadiusAxis(),B="cross"!==C;if("cross"===C){D("angle",f,z[az]()),D(av,f,F[az]()),this._updateCrossText(A,f,G)}else{var l=A.getAxis(y===av?"angle":av),E=l[az]();("line"===C?D:x)(y,f,E)}},_updateCrossText:function(B,y,x){var p=x[bo]("crossStyle"),d=p[bo](ba),z=this._tooltipModel,f=this._crossText;f||(f=this._crossText=new g.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(f));var v=B.pointToData(y),A=B[ao];v=b.map(v,function(t,l){var C=B.getAxis(A[l]);return t=C.type===aI||"time"===C.type?C.scale[a7](t):q.addCommas(t.toFixed(C.getPixelPrecision()))}),f.setStyle({fill:d.getTextColor()||p.get("color"),textFont:d[aR](),text:v.join(", "),x:y[0]+5,y:y[1]-5}),f.z=z.get("z"),f[aO]=z.get(aO)},_getPointerElement:function(J,E,A,v){var H=this._tooltipModel,y=H.get("z"),K=H.get(aO),z=this._axisPointers,G=J.name;if(z[G]=z[G]||{},z[G][A]){return z[G][A]}var I=E.get("type"),B=E[bo](I+"Style"),F="shadow"===I,D=B[F?"getAreaStyle":"getLineStyle"](),x="polar"===J.type?F?ak:A===av?"Circle":"Line":F?"Rect":"Line";F?D[aj]=null:D.fill=null;var C=z[G][A]=new g[x]({style:D,z:y,zlevel:K,silent:!0,shape:v});return this.group.add(C),C},_dispatchAndShowSeriesTooltipContent:function(B,M,I,D,Q){var F=this._tooltipModel,C=this._tooltipContent,H=B.getBaseAxis(),O=b.map(M,function(d){return{seriesIndex:d[bn],dataIndex:d.getAxisTooltipDataIndex?d.getAxisTooltipDataIndex(d.coordDimToDataDim(H.dim),D,H):d[ax]().indexOfNearest(d.coordDimToDataDim(H.dim)[0],D["x"===H.dim||H.dim===av?0:1])}}),A=this._lastHover,J=this._api;if(A.payloadBatch&&!Q&&J.dispatchAction({type:"downplay",batch:A.payloadBatch}),Q||(J.dispatchAction({type:"highlight",batch:O}),A.payloadBatch=O),J.dispatchAction({type:"showTip",dataIndex:O[0][a5],seriesIndex:O[0][bn],from:this.uid}),H&&F.get("showContent")&&F.get("show")){var N,L=F.get("formatter"),E=F.get(aW),K=b.map(M,function(d,f){return d[aX](O[f][a5])});C.show(F);var z=O[0][a5];if(!Q){if(this._ticket="",L){if(typeof L===aa){N=q.formatTpl(L,K)}else{if(typeof L===aN){var G=this,y="axis_"+B.name+"_"+z,R=function(d,f){d===G._ticket&&(C.setContent(f),r(E,I[0],I[1],C,K,null,J))};G._ticket=y,N=L(K,y,R)}}}else{var P=M[0][ax]()[aT](z);N=(P?P+"<br />":"")+b.map(M,function(d,f){return d.formatTooltip(O[f][a5],!0)}).join("<br />")}C.setContent(N)}r(E,I[0],I[1],C,K,null,J)}},_showItemTooltipContent:function(M,G,D,A){var x=this._api,J=M[ax](D),z=J[aC](G),N=this._tooltipModel,C=this._tooltipContent,I=z[bo]("tooltip");if(I.parentModel?I.parentModel.parentModel=N:I.parentModel=this._tooltipModel,I.get("showContent")&&I.get("show")){var L,H=I.get("formatter"),F=I.get(aW),y=M[aX](G,D);if(H){if(typeof H===aa){L=q.formatTpl(H,y)}else{if(typeof H===aN){var E=this,K="item_"+M.name+"_"+G,B=function(d,f){d===E._ticket&&(C.setContent(f),r(F,A.offsetX,A.offsetY,C,y,A[a6],x))};E._ticket=K,L=H(y,K,B)}}}else{L=M.formatTooltip(G,!1,D)}C.show(I),C.setContent(L),r(F,A.offsetX,A.offsetY,C,y,A[a6],x)}},_showAxisPointer:function(d){if(d){var f=this._axisPointers[d];f&&b.each(f,function(e){e.show()})}else{this.group.eachChild(function(e){e.show()}),this.group.show()}},_resetLastHover:function(){var d=this._lastHover;d.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:d.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(d){if(d){var f=this._axisPointers[d];f&&b.each(f,function(e){e.hide()})}else{this.group.hide()}},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(f,l){if(!a.node){var d=l.getZr();this._tooltipContent.hide(),d.off("click",this._tryShow),d.off("mousemove",this._mousemove),d.off(bf,this._hide),d.off("globalout",this._hide),l.off("showTip",this._manuallyShowTip),l.off("hideTip",this._manuallyHideTip)}}})}),aG("echarts/util/model",[a2,"./format","./number",br],function(d){var g=d("./format"),c=d("./number"),f=d(br),b=["x","y","z",av,"angle"],h={};return h.createNameEach=function(j,k){j=j.slice();var a=f.map(j,h.capitalFirst);k=(k||[]).slice();var l=f.map(k,h.capitalFirst);return function(e,i){f.each(j,function(n,p){for(var o={name:n,capital:a[p]},m=0;m<k[aD];m++){o[k[m]]=n+l[m]}e.call(i,o)})}},h.capitalFirst=function(a){return a?a.charAt(0).toUpperCase()+a.substr(1):a},h.eachAxisDim=h.createNameEach(b,["axisIndex","axis","index"]),h.normalizeToArray=function(a){return f[aA](a)?a:null==a?[]:[a]},h.createLinkedNodesFinder=function(l,m,k){function q(a,i){return f[aP](i.nodes,a)>=0}function j(i,o){var e=!1;return m(function(a){f.each(k(i,a)||[],function(n){o.records[a.name][n]&&(e=!0)})}),e}function p(a,e){e.nodes.push(a),m(function(i){f.each(k(a,i)||[],function(n){e.records[i.name][n]=!0})})}return function(e){function o(i){!q(i,n)&&j(i,n)&&(p(i,n),a=!0)}var n={nodes:[],records:{}};if(m(function(i){n.records[i.name]={}}),!e){return n}p(e,n);var a;do{a=!1,l(o)}while(a);return n}},h.defaultEmphasis=function(j,k){if(j){var a=j[bi]=j[bi]||{},l=j[a3]=j[a3]||{};f.each(k,function(i){var m=f.retrieve(a[i],l[i]);null!=m&&(a[i]=m)})}},h.LABEL_OPTIONS=[aW,"show",ba,"distance","formatter"],h.getDataItemValue=function(a){return a&&(null==a.value?a:a.value)},h.converDataValue=function(a,i){var j=i&&i.type;return j===ay?a:("time"!==j||isFinite(a)||null==a||"-"===a||(a=+c.parseDate(a)),null==a||""===a?0/0:+a)},h.dataFormatMixin={getDataParams:function(w,u){var q=this[ax](u),m=this[bn],j=this.name,v=this.getRawValue(w,u),k=q.getRawIndex(w),x=q[aT](w,!0),p=q.getRawDataItem(w);return{componentType:this.mainType,componentSubType:this.subType,seriesType:this.mainType===bt?this.subType:null,seriesIndex:m,seriesName:j,name:x,dataIndex:k,data:p,dataType:u,value:v,color:q[bg](w,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(m,k,u,j){k=k||a3;var q=this[ax](u),p=q[aC](m),e=this[aX](m,u);null!=j&&f[aA](e.value)&&(e.value=e.value[j]);var r=p.get(["label",k,"formatter"]);return typeof r===aN?(e.status=k,r(e)):typeof r===aa?g.formatTpl(r,e):void 0},getRawValue:function(j,k){var a=this[ax](k),l=a.getRawDataItem(j);return null!=l?f[aJ](l)&&!f[aA](l)?l.value:l:void 0},formatTooltip:f.noop},h.mappingToExists=function(j,k){k=(k||[]).slice();var a=f.map(j||[],function(e){return{exist:e}});return f.each(k,function(i,m){if(f[aJ](i)){for(var e=0;e<a[aD];e++){var l=a[e].exist;if(!a[e][ah]&&(null!=i.id&&l.id===i.id+""||null!=i.name&&!h.isIdInner(i)&&!h.isIdInner(l)&&l.name===i.name+"")){a[e][ah]=i,k[m]=null;break}}}}),f.each(k,function(i){if(f[aJ](i)){for(var l=0;l<a[aD];l++){var m=a[l].exist;if(!a[l][ah]&&!h.isIdInner(m)&&null==i.id){a[l][ah]=i;break}}l>=a[aD]&&a.push({option:i})}}),a},h.isIdInner=function(a){return f[aJ](a)&&a.id&&0===(a.id+"")[aP]("\x00_ec_\x00")},h}),aG("echarts/model/Model",[a2,br,"../util/clazz","./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(b){function d(h,j,g,k){this.parentModel=j,this[a4]=g,this[ah]=h,this.init&&(arguments[aD]<=4?this.init(h,j,g,k):this.init.apply(this,arguments))}var a=b(br),f=b("../util/clazz");d[aU]={constructor:d,init:null,mergeOption:function(e){a.merge(this[ah],e,!0)},get:function(h,k){if(!h){return this[ah]}typeof h===aa&&(h=h.split("."));for(var g=this[ah],l=this.parentModel,j=0;j<h[aD]&&(!h[j]||(g=g&&"object"==typeof g?g[h[j]]:null,null!=g));j++){}return null==g&&l&&!k&&(g=l.get(h)),g},getShallow:function(h,k){var g=this[ah],l=g&&g[h],j=this.parentModel;return null==l&&j&&!k&&(l=j[ai](h)),l},getModel:function(h,g){var k=this.get(h,!0),j=this.parentModel,e=new d(k,g||j&&j[bo](h),this[a4]);return e},isEmpty:function(){return null==this[ah]},restoreData:function(){},clone:function(){var e=this.constructor;return new e(a.clone(this[ah]))},setReadOnly:function(e){f.setReadOnly(this,e)}},f.enableClassExtend(d);var c=a.mixin;return c(d,b("./mixin/lineStyle")),c(d,b("./mixin/areaStyle")),c(d,b("./mixin/textStyle")),c(d,b("./mixin/itemStyle")),d}),aG("echarts/model/globalDefault",[],function(){var a="";return typeof navigator!==at&&(a=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],grid:{},textStyle:{fontFamily:a.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2000,animationDuration:1000,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}}),aG("zrender/graphic/Path",[a2,"./Displayable",aH,"../core/PathProxy","../contain/path","./Gradient"],function(k){function h(a){var i=a.fill;return null!=i&&"none"!==i}function g(a){var i=a[aj];return null!=i&&"none"!==i&&a[aM]>0}function d(a){b.call(this,a),this.path=new c}var b=k("./Displayable"),j=k(aH),c=k("../core/PathProxy"),m=k("../contain/path"),f=(k("./Gradient"),Math.abs);return d[aU]={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(A){A.save();var p=this.style,e=this.path,y=g(p),i=h(p),B=i&&!!p.fill.colorStops,q=y&&!!p[aj].colorStops;if(p.bind(A,this),this.setTransform(A),this.__dirtyPath){B&&(this._fillGradient=p.getGradient(A,p.fill,aI)),q&&(this._strokeGradient=p.getGradient(A,p[aj],aI))}B&&(A.fillStyle=this._fillGradient),q&&(A.strokeStyle=this._strokeGradient);var z=p.lineDash,v=p.lineDashOffset,x=!!A.setLineDash,w=this.getGlobalScale();e.setScale(w[0],w[1]),this.__dirtyPath||z&&!x&&y?(e=this.path.beginPath(A),z&&!x&&(e.setLineDash(z),e.setLineDashOffset(v)),this.buildPath(e,this.shape),this.__dirtyPath=!1):(A.beginPath(),this.path.rebuildPath(A)),i&&e.fill(A),z&&x&&(A.setLineDash(z),A.lineDashOffset=v),y&&e[aj](A),null!=p.text&&this.drawRectText(A,this[a1]()),A.restore()},buildPath:function(){},getBoundingRect:function(){var p=this._rect,w=this.style,u=!p;if(u){var i=this.path;this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape)),p=i[a1]()}if(this._rect=p,g(w)){var v=this._rectWithStroke||(this._rectWithStroke=p.clone());if(this.__dirty||u){v.copy(p);var q=w[aM],e=w.strokeNoScale?this.getLineScale():1;h(w)||(q=Math.max(q,this.strokeContainThreshold)),e>1e-10&&(v.width+=q/e,v[bq]+=q/e,v.x-=q/e/2,v.y-=q/e/2)}return v}return p},contain:function(q,x){var s=this.transformCoordToLocal(q,x),i=this[a1](),v=this.style;if(q=s[0],x=s[1],i[bd](q,x)){var e=this.path.data;if(g(v)){var w=v[aM],p=v.strokeNoScale?this.getLineScale():1;if(p>1e-10&&(h(v)||(w=Math.max(w,this.strokeContainThreshold)),m.containStroke(e,w/p,q,x))){return !0}}if(h(v)){return m[bd](e,q,x)}}return !1},dirty:function(a){0===arguments[aD]&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,i){"shape"===a?this.setShape(i):b[aU].attrKV.call(this,a,i)},setShape:function(l,o){var a=this.shape;if(a){if(j[aJ](l)){for(var p in l){a[p]=l[p]}}else{a[l]=o}this.dirty(!0)}return this},getLineScale:function(){var a=this[bu];return a&&f(a[0]-1)>1e-10&&f(a[3]-1)>1e-10?Math.sqrt(f(a[0]*a[3]-a[2]*a[1])):1}},d[bs]=function(l){var n=function(s){d.call(this,s),l.style&&this.style.extendFrom(l.style,!1);var p=l.shape;if(p){this.shape=this.shape||{};var q=this.shape;for(var o in p){!q.hasOwnProperty(o)&&p.hasOwnProperty(o)&&(q[o]=p[o])}}l.init&&l.init.call(this,s)};j[aQ](n,d);for(var a in l){"style"!==a&&"shape"!==a&&(n[aU][a]=l[a])}return n},j[aQ](d,b),d}),aG("zrender/graphic/Gradient",[a2],function(){var a=function(b){this.colorStops=b||[]};return a[aU]={constructor:a,addColorStop:function(b,c){this.colorStops.push({offset:b,color:c})}},a}),aG("zrender/container/Group",[a2,aH,"../Element","../core/BoundingRect"],function(b){var d=b(aH),a=b("../Element"),f=b("../core/BoundingRect"),c=function(g){g=g||{},a.call(this,g);for(var h in g){this[h]=g[h]}this._children=[],this.__storage=null,this.__dirty=!0};return c[aU]={constructor:c,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(h){for(var j=this._children,g=0;g<j[aD];g++){if(j[g].name===h){return j[g]}}},childCount:function(){return this._children[aD]},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(h,j){if(h&&h!==this&&h.parent!==this&&j&&j.parent===this){var g=this._children,k=g[aP](j);k>=0&&(g[a8](k,0,h),this._doAdd(h))}return this},_doAdd:function(h){h.parent&&h.parent[aq](h),h.parent=this;var j=this.__storage,g=this.__zr;j&&j!==h.__storage&&(j.addToMap(h),h instanceof c&&h.addChildrenToStorage(j)),g&&g.refresh()},remove:function(h){var g=this.__zr,k=this.__storage,e=this._children,j=d[aP](e,h);return 0>j?this:(e[a8](j,1),h.parent=null,k&&(k.delFromMap(h.id),h instanceof c&&h.delChildrenFromStorage(k)),g&&g.refresh(),this)},removeAll:function(){var h,j,g=this._children,k=this.__storage;for(j=0;j<g[aD];j++){h=g[j],k&&(k.delFromMap(h.id),h instanceof c&&h.delChildrenFromStorage(k)),h.parent=null}return g[aD]=0,this},eachChild:function(h,k){for(var g=this._children,l=0;l<g[aD];l++){var j=g[l];h.call(k,j,l)}return this},traverse:function(h,j){for(var g=0;g<this._children[aD];g++){var k=this._children[g];h.call(j,k),"group"===k.type&&k.traverse(h,j)}return this},addChildrenToStorage:function(h){for(var j=0;j<this._children[aD];j++){var g=this._children[j];h.addToMap(g),g instanceof c&&g.addChildrenToStorage(h)}},delChildrenFromStorage:function(h){for(var j=0;j<this._children[aD];j++){var g=this._children[j];h.delFromMap(g.id),g instanceof c&&g.delChildrenFromStorage(h)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(q){for(var m=null,k=new f(0,0,0,0),g=q||this._children,p=[],h=0;h<g[aD];h++){var u=g[h];if(!u[bk]&&!u.invisible){var j=u[a1](),n=u.getLocalTransform(p);n?(k.copy(j),k[aK](n),m=m||k.clone(),m.union(k)):(m=m||j.clone(),m.union(j))}}return m||k}},d[aQ](c,a),c}),aG("zrender/graphic/Text",[a2,"./Displayable",aH,"../contain/text"],function(b){var d=b("./Displayable"),a=b(aH),f=b("../contain/text"),c=function(e){d.call(this,e)};return c[aU]={constructor:c,type:"text",brush:function(x){var p=this.style,m=p.x||0,g=p.y||0,v=p.text,j=p.fill,y=p[aj];if(null!=v&&(v+=""),v){if(x.save(),this.style.bind(x),this.setTransform(x),j&&(x.fillStyle=j),y&&(x.strokeStyle=y),x.font=p.textFont||p.font,x[bb]=p[bb],p.textVerticalAlign){var k=f[a1](v,x.font,p[bb],"top");switch(x.textBaseline=bc,p.textVerticalAlign){case bc:g-=k[bq]/2-k.lineHeight/2;break;case af:g-=k[bq]-k.lineHeight/2;break;default:g+=k.lineHeight/2}}else{x.textBaseline=p.textBaseline}for(var q=f.measureText("��",x.font).width,w=v.split("\n"),n=0;n<w[aD];n++){j&&x.fillText(w[n],m,g),y&&x.strokeText(w[n],m,g),g+=q}x.restore()}},getBoundingRect:function(){if(!this._rect){var h=this.style,j=h.textVerticalAlign,g=f[a1](h.text+"",h.textFont||h.font,h[bb],j?"top":h.textBaseline);switch(j){case bc:g.y-=g[bq]/2;break;case af:g.y-=g[bq]}g.x+=h.x||0,g.y+=h.y||0,this._rect=g}return this._rect}},a[aQ](c,d),c}),aG("zrender/graphic/shape/Sector",[a2,"../Path"],function(a){return a("../Path")[bs]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(q,j){var f=j.cx,b=j.cy,m=Math.max(j.r0||0,0),d=Math.max(j.r,0),v=j.startAngle,g=j.endAngle,k=j.clockwise,p=Math.cos(v),i=Math.sin(v);q[aB](p*m+f,i*m+b),q.lineTo(p*d+f,i*d+b),q.arc(f,b,d,v,g,!k),q.lineTo(Math.cos(g)*m+f,Math.sin(g)*m+b),0!==m&&q.arc(f,b,m,g,v,k),q.closePath()}})}),aG("zrender/graphic/shape/Polyline",[a2,"../Path"],function(a){return a("../Path")[bs]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null}})}),aG("zrender/core/BoundingRect",[a2,"./vector","./matrix"],function(d){function h(l,m,a,o){this.x=l,this.y=m,this.width=a,this[bq]=o}var c=d("./vector"),k=d("./matrix"),g=c[aK],b=Math.min,j=Math.abs,f=Math.max;return h[aU]={constructor:h,union:function(l){var m=b(l.x,this.x),a=b(l.y,this.y);this.width=f(l.x+l.width,this.x+this.width)-m,this[bq]=f(l.y+l[bq],this.y+this[bq])-a,this.x=m,this.y=a},applyTransform:function(){var a=[],i=[];return function(e){e&&(a[0]=this.x,a[1]=this.y,i[0]=this.x+this.width,i[1]=this.y+this[bq],g(a,a,e),g(i,i,e),this.x=b(a[0],i[0]),this.y=b(a[1],i[1]),this.width=j(i[0]-a[0]),this[bq]=j(i[1]-a[1]))}}(),calculateTransform:function(n){var p=this,m=n.width/p.width,o=n[bq]/p[bq],l=k[ad]();return k.translate(l,l,[-p.x,-p.y]),k.scale(l,l,[m,o]),k.translate(l,l,[n.x,n.y]),l},intersect:function(z){var w=this,v=w.x,q=w.x+w.width,m=w.y,y=w.y+w[bq],p=z.x,A=z.x+z.width,u=z.y,x=z.y+z[bq];return !(p>q||v>A||u>y||m>x)},contain:function(l,m){var a=this;return l>=a.x&&l<=a.x+a.width&&m>=a.y&&m<=a.y+a[bq]},clone:function(){return new h(this.x,this.y,this.width,this[bq])},copy:function(a){this.x=a.x,this.y=a.y,this.width=a.width,this[bq]=a[bq]}},h}),aG("zrender/core/PathProxy",[a2,"./curve","./vector","./bbox","./BoundingRect","../config"],function(p){var F=p("./curve"),z=p("./vector"),w=p("./bbox"),J=p("./BoundingRect"),x=p("../config").devicePixelRatio,q={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},B=[],H=[],k=[],C=[],G=Math.min,E=Math.max,D=Math.cos,j=Math.sin,A=Math.sqrt,i=Math.abs,K=typeof Float32Array!=at,I=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};return I[aU]={constructor:I,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(a,b){this._ux=i(1/x/a)||0,this._uy=i(1/x/b)||0},getContext:function(){return this._ctx},beginPath:function(a){return this._ctx=a,a&&a.beginPath(),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(a,b){return this.addData(q.M,a,b),this._ctx&&this._ctx[aB](a,b),this._x0=a,this._y0=b,this._xi=a,this._yi=b,this},lineTo:function(b,c){var a=i(b-this._xi)>this._ux||i(c-this._yi)>this._uy||0===this._len;return this.addData(q.L,b,c),this._ctx&&a&&(this._needsDash()?this._dashedLineTo(b,c):this._ctx.lineTo(b,c)),a&&(this._xi=b,this._yi=c),this},bezierCurveTo:function(d,g,c,h,f,b){return this.addData(q.C,d,g,c,h,f,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(d,g,c,h,f,b):this._ctx.bezierCurveTo(d,g,c,h,f,b)),this._xi=f,this._yi=b,this},quadraticCurveTo:function(b,c,a,d){return this.addData(q.Q,b,c,a,d),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(b,c,a,d):this._ctx.quadraticCurveTo(b,c,a,d)),this._xi=a,this._yi=d,this},arc:function(d,g,c,h,f,b){return this.addData(q.A,d,g,c,c,h,f-h,0,b?0:1),this._ctx&&this._ctx.arc(d,g,c,h,f,b),this._xi=D(f)*c+d,this._xi=j(f)*c+d,this},arcTo:function(b,d,a,f,c){return this._ctx&&this._ctx.arcTo(b,d,a,f,c),this},rect:function(b,c,a,d){return this._ctx&&this._ctx.rect(b,c,a,d),this.addData(q.R,b,c,a,d),this},closePath:function(){this.addData(q.Z);var b=this._ctx,c=this._x0,a=this._y0;return b&&(this._needsDash()&&this._dashedLineTo(c,a),b.closePath()),this._xi=c,this._yi=a,this},fill:function(a){a&&a.fill(),this.toStatic()},stroke:function(a){a&&a[aj](),this.toStatic()},setLineDash:function(b){if(b instanceof Array){this._lineDash=b,this._dashIdx=0;for(var c=0,a=0;a<b[aD];a++){c+=b[a]}this._dashSum=c}return this},setLineDashOffset:function(a){return this._dashOffset=a,this},len:function(){return this._len},setData:function(b){var c=b[aD];this.data&&this.data[aD]==c||!K||(this.data=new Float32Array(c));for(var a=0;c>a;a++){this.data[a]=b[a]}this._len=c},appendPath:function(d){d instanceof Array||(d=[d]);for(var g=d[aD],c=0,l=this._len,f=0;g>f;f++){c+=d[f].len()}K&&this.data instanceof Float32Array&&(this.data=new Float32Array(l+c));for(var f=0;g>f;f++){for(var b=d[f].data,h=0;h<b[aD];h++){this.data[l++]=b[h]}}this._len=l},addData:function(b){var c=this.data;this._len+arguments[aD]>c[aD]&&(this._expandData(),c=this.data);for(var a=0;a<arguments[aD];a++){c[this._len++]=arguments[a]}this._prevCmd=b},_expandData:function(){if(!(this.data instanceof Array)){for(var a=[],b=0;b<this._len;b++){a[b]=this.data[b]}this.data=a}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(V,O){var m,b,S=this._dashSum,f=this._dashOffset,W=this._lineDash,L=this._ctx,P=this._xi,U=this._yi,M=V-P,d=O-U,N=A(M*M+d*d),T=P,Q=U,R=W[aD];for(M/=N,d/=N,0>f&&(f=S+f),f%=S,T-=f*M,Q-=f*d;M>=0&&V>=T||0>M&&T>V;){b=this._dashIdx,m=W[b],T+=M*m,Q+=d*m,this._dashIdx=(b+1)%R,M>0&&P>T||0>M&&T>P||L[b%2?aB:"lineTo"](M>=0?G(T,V):E(T,V),d>=0?G(Q,O):E(Q,O))}M=T-V,d=Q-O,this._dashOffset=-A(M*M+d*d)},_dashedBezierTo:function(R,X,U,bA,W,T){var Y,by,Q,Z,bx,be=this._dashSum,V=this._dashOffset,ae=this._lineDash,P=this._ctx,L=this._xi,N=this._yi,bB=F.cubicAt,bz=0,O=this._dashIdx,e=ae[aD],m=0;for(0>V&&(V=be+V),V%=be,Y=0;1>Y;Y+=0.1){by=bB(L,R,U,W,Y+0.1)-bB(L,R,U,W,Y),Q=bB(N,X,bA,T,Y+0.1)-bB(N,X,bA,T,Y),bz+=A(by*by+Q*Q)}for(;e>O&&(m+=ae[O],!(m>V));O++){}for(Y=(m-V)/bz;1>=Y;){Z=bB(L,R,U,W,Y),bx=bB(N,X,bA,T,Y),O%2?P[aB](Z,bx):P.lineTo(Z,bx),Y+=ae[O]/bz,O=(O+1)%e}O%2!==0&&P.lineTo(W,T),by=W-Z,Q=T-bx,this._dashOffset=-A(by*by+Q*Q)},_dashedQuadraticTo:function(d,g,c,h){var f=c,b=h;c=(c+2*d)/3,h=(h+2*g)/3,d=(this._xi+2*d)/3,g=(this._yi+2*g)/3,this._dashedBezierTo(d,g,c,h,f,b)},toStatic:function(){var a=this.data;a instanceof Array&&(a[aD]=this._len,K&&(this.data=new Float32Array(a)))},getBoundingRect:function(){B[0]=B[1]=k[0]=k[1]=Number.MAX_VALUE,H[0]=H[1]=C[0]=C[1]=-Number.MAX_VALUE;for(var R=this.data,s=0,n=0,g=0,v=0,r=0;r<R[aD];){var a=R[r++];switch(1==r&&(s=R[r],n=R[r+1],g=s,v=n),a){case q.M:g=R[r++],v=R[r++],s=g,n=v,k[0]=g,k[1]=v,C[0]=g,C[1]=v;break;case q.L:w.fromLine(s,n,R[r],R[r+1],k,C),s=R[r++],n=R[r++];break;case q.C:w.fromCubic(s,n,R[r++],R[r++],R[r++],R[r++],R[r],R[r+1],k,C),s=R[r++],n=R[r++];break;case q.Q:w.fromQuadratic(s,n,R[r++],R[r++],R[r],R[r+1],k,C),s=R[r++],n=R[r++];break;case q.A:var h=R[r++],N=R[r++],O=R[r++],Q=R[r++],L=R[r++],P=R[r++]+L,l=(R[r++],1-R[r++]);1==r&&(g=D(L)*O+h,v=j(L)*Q+N),w.fromArc(h,N,O,Q,L,P,l,k,C),s=D(P)*O+h,n=j(P)*Q+N;break;case q.R:g=s=R[r++],v=n=R[r++];var u=R[r++],c=R[r++];w.fromLine(g,v,g+u,v+c,k,C);break;case q.Z:s=g,n=v}z.min(B,B,k),z.max(H,H,C)}return 0===r&&(B[0]=B[1]=H[0]=H[1]=0),new J(B[0],B[1],H[0]-B[0],H[1]-B[1])},rebuildPath:function(V){for(var bB,be,X,bF,ae,by,bD=this.data,U=this._ux,bz=this._uy,bC=this._len,bA=0;bC>bA;){var Z=bD[bA++];switch(1==bA&&(X=bD[bA],bF=bD[bA+1],bB=X,be=bF),Z){case q.M:bB=X=bD[bA++],be=bF=bD[bA++],V[aB](X,bF);break;case q.L:ae=bD[bA++],by=bD[bA++],(i(ae-X)>U||i(by-bF)>bz||bA===bC-1)&&(V.lineTo(ae,by),X=ae,bF=by);break;case q.C:V.bezierCurveTo(bD[bA++],bD[bA++],bD[bA++],bD[bA++],bD[bA++],bD[bA++]),X=bD[bA-2],bF=bD[bA-1];break;case q.Q:V.quadraticCurveTo(bD[bA++],bD[bA++],bD[bA++],bD[bA++]),X=bD[bA-2],bF=bD[bA-1];break;case q.A:var bx=bD[bA++],Q=bD[bA++],bG=bD[bA++],bE=bD[bA++],R=bD[bA++],s=bD[bA++],y=bD[bA++],Y=bD[bA++],W=bG>bE?bG:bE,g=bG>bE?1:bG/bE,N=bG>bE?bE/bG:1,v=Math.abs(bG-bE)>0.001,O=R+s;v?(V.translate(bx,Q),V.rotate(y),V.scale(g,N),V.arc(0,0,W,R,O,1-Y),V.scale(1/g,1/N),V.rotate(-y),V.translate(-bx,-Q)):V.arc(bx,Q,W,R,O,1-Y),1==bA&&(bB=D(R)*bG+bx,be=j(R)*bE+Q),X=D(O)*bG+bx,bF=j(O)*bE+Q;break;case q.R:bB=X=bD[bA],be=bF=bD[bA+1],V.rect(bD[bA++],bD[bA++],bD[bA++],bD[bA++]);break;case q.Z:V.closePath(),X=bB,bF=be}}}},I.CMD=q,I}),aG("zrender/contain/text",[a2,aH],function(q){function j(l,u){var f=l+":"+u;if(v[f]){return v[f]}for(var x=(l+"").split("\n"),s=0,c=0,w=x[aD];w>c;c++){s=Math.max(i.measureText(x[c],u).width,s)}return h>k&&(h=0,v={}),h++,v[f]=s,s}function g(E,A,z,x){var f=A.x,C=A.y,w=A[bq],F=A.width,y=z[bq],B=w/2-y/2,D="left";switch(E){case"left":f-=x,C+=B,D="right";break;case"right":f+=x+F,C+=B,D="left";break;case"top":f+=F/2,C-=x+y,D=bh;break;case af:f+=F/2,C+=w+x,D=bh;break;case aw:f+=F/2,C+=B,D=bh;break;case"insideLeft":f+=x,C+=B,D="left";break;case"insideRight":f+=F-x,C+=B,D="right";break;case"insideTop":f+=F/2,C+=x,D=bh;break;case"insideBottom":f+=F/2,C+=w-y-x,D=bh;break;case"insideTopLeft":f+=x,C+=x,D="left";break;case"insideTopRight":f+=F-x,C+=x,D="right";break;case"insideBottomLeft":f+=x,C+=w-y-x;break;case"insideBottomRight":f+=F-x,C+=w-y-x,D="right"}return{x:f,y:C,textAlign:D,textBaseline:"top"}}function b(e,c,x,u){if(!x){return""}u=p[bm]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:j("��",c),ascCharWidth:j("a",c)},u,!0),x-=j(u.ellipsis);for(var w=(e+"").split("\n"),f=0,a=w[aD];a>f;f++){w[f]=m(w[f],c,x,u)}return w.join("\n")}function m(o,f,x,w){for(var e=0;;e++){var u=j(o,f);if(x>u||e>=w.maxIterations){o+=w.ellipsis;break}var c=0===e?d(o,x,w):Math.floor(o[aD]*x/u);if(c<w.minCharacters){o="";break}o=o.substr(0,c)}return o}function d(l,u,f){for(var x=0,s=0,c=l[aD];c>s&&u>x;s++){var w=l.charCodeAt(s);x+=w>=0&&127>=w?f.ascCharWidth:f.cnCharWidth}return s}var v={},h=0,k=5000,p=q(aH),i={getWidth:j,getBoundingRect:aB,adjustTextPositionOnRect:g,ellipsis:b,measureText:function(c,f){var a=p.getContext();return a.font=f,a.measureText(c)}};return i}),aG("zrender/graphic/mixin/RectText",[a2,"../../contain/text"],function(d){function g(a,i){return typeof a===aa?a.lastIndexOf("%")>=0?parseFloat(a)/100*i:parseFloat(a):a}function c(a,i){a[bu](i[0],i[1],i[2],i[3],i[4],i[5])}var j=d("../../contain/text"),f=d("../../core/BoundingRect"),b=new f,h=function(){};return h[aU]={constructor:h,drawRectText:function(A,C,E){var B=this.style,G=B.text;if(null!=G&&(G+=""),G){var L,z,H=B.textPosition,K=B.textDistance,J=B[bb],D=B.textFont||B.font,I=B.textBaseline,q=B.textVerticalAlign;E=E||j[a1](G,D,J,I);var F=this[bu],i=this.invTransform;if(F&&(b.copy(C),b[aK](F),C=b,c(A,i)),H instanceof Array){if(L=C.x+g(H[0],C.width),z=C.y+g(H[1],C[bq]),J=J||"left",I=I||"top",q){switch(q){case bc:z-=E[bq]/2-E.lineHeight/2;break;case af:z-=E[bq]-E.lineHeight/2;break;default:z+=E.lineHeight/2}I=bc}}else{var k=j.adjustTextPositionOnRect(H,C,E,K);L=k.x,z=k.y,J=J||k[bb],I=I||k.textBaseline}A[bb]=J,A.textBaseline=I;var N=B.textFill,n=B.textStroke;N&&(A.fillStyle=N),n&&(A.strokeStyle=n),A.font=D,A.shadowColor=B.textShadowColor,A.shadowBlur=B.textShadowBlur,A.shadowOffsetX=B.textShadowOffsetX,A.shadowOffsetY=B.textShadowOffsetY;for(var a=G.split("\n"),e=0;e<a[aD];e++){N&&A.fillText(a[e],L,z),n&&A.strokeText(a[e],L,z),z+=E.lineHeight}F&&c(A,F)}}},h}),aG("zrender/graphic/Displayable",[a2,aH,"./Style","../Element","./mixin/RectText"],function(d){function g(a){a=a||{},f.call(this,a);for(var i in a){a.hasOwnProperty(i)&&"style"!==i&&(this[i]=a[i])}this.style=new h(a.style),this._rect=null,this.__clipPaths=[]}var c=d(aH),h=d("./Style"),f=d("../Element"),b=d("./mixin/RectText");return g[aU]={constructor:g,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(a,i){return this.rectContain(a,i)},traverse:function(a,i){a.call(i,this)},rectContain:function(j,k){var a=this.transformCoordToLocal(j,k),l=this[a1]();return l[bd](a[0],a[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(a){return this.animate("style",a)},attrKV:function(a,i){"style"!==a?f[aU].attrKV.call(this,a,i):this.style.set(i)},setStyle:function(a,i){return this.style.set(a,i),this.dirty(!1),this},useStyle:function(a){return this.style=new h(a),this.dirty(!1),this}},c[aQ](g,f),c.mixin(g,b),g}),aG("echarts/util/clazz",[a2,br],function(d){function h(l,m){var a=k.slice(arguments,2);return this.superClass[aU][m].apply(l,a)}function c(l,m,a){return this.superClass[aU][m].apply(l,a)}var k=d(br),g={},b=".",j="___EC__COMPONENT__CONTAINER___",f=g.parseClassType=function(a){var i={main:"",sub:""};return a&&(a=a.split(b),i.main=a[0]||"",i.sub=a[1]||""),i};return g.enableClassExtend=function(a,e){a[bs]=function(i){var l=function(){e&&e.apply(this,arguments),a.apply(this,arguments)};return k[bs](l[aU],i),l[bs]=this[bs],l.superCall=h,l.superApply=c,k[aQ](l,this),l.superClass=this,l}},g.enableClassManagement=function(n,p){function m(a){var i=o[a.main];return i&&i[j]||(i=o[a.main]={},i[j]=!0),i}p=p||{};var o={};if(n.registerClass=function(a,i){if(i){if(i=f(i),i.sub){if(i.sub!==j){var q=m(i);q[i.sub]=a}}else{if(o[i.main]){throw new Error(i.main+"exists.")}o[i.main]=a}}return a},n.getClass=function(q,r,a){var s=o[q];if(s&&s[j]&&(s=r?s[r]:null),a&&!s){throw new Error("Component "+q+"."+(r||"")+" not exists. Load it first.")}return s},n.getClassesByMainType=function(q){q=f(q);var r=[],a=o[q.main];return a&&a[j]?k.each(a,function(s,e){e!==j&&r.push(s)}):r.push(a),r},n.hasClass=function(a){return a=f(a),!!o[a.main]},n.getAllClassMainTypes=function(){var a=[];return k.each(o,function(r,q){a.push(q)}),a},n.hasSubTypes=function(a){a=f(a);var i=o[a.main];return i&&i[j]},n.parseClassType=f,p.registerWhenExtend){var l=n[bs];l&&(n[bs]=function(q){var a=l.call(this,q);return n.registerClass(a,q.type)})}return n},g.setReadOnly=function(){},g}),aG("echarts/model/mixin/lineStyle",[a2,"./makeStyleMapper"],function(a){var b=a("./makeStyleMapper")([[aM,"width"],[aj,"color"],[aZ],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(d){var c=b.call(this,d),e=this.getLineDash();return e&&(c.lineDash=e),c},getLineDash:function(){var c=this.get("type");return"solid"===c||null==c?null:"dashed"===c?[5,5]:[1,1]}}}),aG("echarts/model/mixin/areaStyle",[a2,"./makeStyleMapper"],function(a){return{getAreaStyle:a("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[aZ],["shadowColor"]])}}),aG("echarts/model/mixin/textStyle",[a2,"zrender/contain/text"],function(b){function c(d,f){return d&&d[ai](f)}var a=b("zrender/contain/text");return{getTextColor:function(){var d=this[a4];return this[ai]("color")||d&&d.get("textStyle.color")},getFont:function(){var e=this[a4],d=e&&e[bo](ba);return[this[ai]("fontStyle")||c(d,"fontStyle"),this[ai]("fontWeight")||c(d,"fontWeight"),(this[ai]("fontSize")||c(d,"fontSize")||12)+"px",this[ai]("fontFamily")||c(d,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(d){var f=this.get(ba)||{};return a[a1](d,this[aR](),f.align,f.baseline)},ellipsis:function(d,f,g){return a.ellipsis(d,this[aR](),f,g)}}}),aG("echarts/model/mixin/itemStyle",[a2,"./makeStyleMapper"],function(a){return{getItemStyle:a("./makeStyleMapper")([["fill","color"],[aj,"borderColor"],[aM,"borderWidth"],[aZ],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),aG("zrender/contain/path",[a2,"../core/PathProxy","./line","./arc","./util","../core/curve","./windingLine"],function(k){function H(a,d){return Math.abs(a-d)<B}function D(){var a=c[0];c[0]=c[1],c[1]=a}function A(x,S,N,K,W,M,y,P,U,i){if(i>S&&i>K&&i>M&&i>P||S>i&&K>i&&M>i&&P>i){return 0}var Q=G.cubicRootAt(S,K,M,P,i,b);if(0===Q){return 0}for(var T,L,R=0,f=-1,O=0;Q>O;O++){var X=b[O],V=G.cubicAt(x,N,W,y,X);U>V||(0>f&&(f=G.cubicExtrema(S,K,M,P,c),c[1]<c[0]&&f>1&&D(),T=G.cubicAt(S,K,M,P,c[0]),f>1&&(L=G.cubicAt(S,K,M,P,c[1]))),R+=2==f?X<c[0]?S>T?1:-1:X<c[1]?T>L?1:-1:L>P?1:-1:X<c[0]?S>T?1:-1:T>P?1:-1)}return R}function u(Q,L,y,v,f,O,m,R){if(R>L&&R>v&&R>O||L>R&&v>R&&O>R){return 0}var x=G.quadraticRootAt(L,v,O,R,b);if(0===x){return 0}var N=G.quadraticExtremum(L,v,O);if(N>=0&&1>=N){for(var P=0,K=G.quadraticAt(L,v,O,N),M=0;x>M;M++){var g=G.quadraticAt(Q,y,f,b[M]);m>g||(P+=b[M]<N?L>K?1:-1:K>O?1:-1)}return P}var g=G.quadraticAt(Q,y,f,b[0]);return m>g?0:L>O?1:-1}function J(S,O,K,x,d,Q,v,T){if(T-=O,T>K||-K>T){return 0}var y=Math.sqrt(K*K-T*T);b[0]=-y,b[1]=y;var P=Math.abs(x-d);if(0.0001>P){return 0}if(0.0001>P%j){x=0,d=j;var R=Q?1:-1;return v>=b[0]+S&&v<=b[1]+S?R:0}if(Q){var y=x;x=I(d),d=I(y)}else{x=I(x),d=I(d)}x>d&&(d+=j);for(var L=0,N=0;2>N;N++){var m=b[N];if(m+S>v){var M=Math.atan2(T,m),R=Q?1:-1;0>M&&(M=j+M),(M>=x&&d>=M||M+j>=x&&d>=M+j)&&(M>Math.PI/2&&M<1.5*Math.PI&&(R=-R),L+=R)}}return L}function z(Q,ae,W,Y,bx){for(var be=0,O=0,X=0,r=0,K=0,bz=0;bz<Q[aD];){var by=Q[bz++];if(by===q.M&&bz>1&&(W||(be+=w(O,X,r,K,Y,bx)),0!==be)){return !0}switch(1==bz&&(O=Q[bz],X=Q[bz+1],r=O,K=X),by){case q.M:r=Q[bz++],K=Q[bz++],O=r,X=K;break;case q.L:if(W){if(F(O,X,Q[bz],Q[bz+1],ae,Y,bx)){return !0}}else{be+=w(O,X,Q[bz],Q[bz+1],Y,bx)||0}O=Q[bz++],X=Q[bz++];break;case q.C:if(W){if(aI.containStroke(O,X,Q[bz++],Q[bz++],Q[bz++],Q[bz++],Q[bz],Q[bz+1],ae,Y,bx)){return !0}}else{be+=A(O,X,Q[bz++],Q[bz++],Q[bz++],Q[bz++],Q[bz],Q[bz+1],Y,bx)||0}O=Q[bz++],X=Q[bz++];break;case q.Q:if(W){if(am.containStroke(O,X,Q[bz++],Q[bz++],Q[bz],Q[bz+1],ae,Y,bx)){return !0}}else{be+=u(O,X,Q[bz++],Q[bz++],Q[bz],Q[bz+1],Y,bx)||0}O=Q[bz++],X=Q[bz++];break;case q.A:var N=Q[bz++],e=Q[bz++],h=Q[bz++],V=Q[bz++],U=Q[bz++],a=Q[bz++],n=(Q[bz++],1-Q[bz++]),g=Math.cos(U)*h+N,p=Math.sin(U)*V+e;bz>1?be+=w(O,X,g,p,Y,bx):(r=g,K=p);var Z=(Y-N)*V/h+N;if(W){if(E.containStroke(N,e,V,U,U+a,n,ae,Z,bx)){return !0}}else{be+=J(N,e,V,U,U+a,n,Z,bx)}O=Math.cos(U+a)*h+N,X=Math.sin(U+a)*V+e;break;case q.R:r=O=Q[bz++],K=X=Q[bz++];var s=Q[bz++],R=Q[bz++],g=r+s,p=K+R;if(W){if(F(r,K,g,K,ae,Y,bx)||F(g,K,g,p,ae,Y,bx)||F(g,p,r,p,ae,Y,bx)||F(r,p,g,p,ae,Y,bx)){return !0}}else{be+=w(g,K,g,p,Y,bx),be+=w(r,p,r,K,Y,bx)}break;case q.Z:if(W){if(F(O,X,r,K,ae,Y,bx)){return !0}}else{if(be+=w(O,X,r,K,Y,bx),0!==be){return !0}}O=r,X=K}}return W||H(X,K)||(be+=w(O,X,r,K,Y,bx)||0),0!==be}var q=k("../core/PathProxy").CMD,C=k("./line"),E=k("./arc"),I=k("./util").normalizeRadian,G=k("../core/curve"),w=k("./windingLine"),F=C.containStroke,j=2*Math.PI,B=0.0001,b=[-1,-1,-1],c=[-1,-1];return{contain:function(d,f,a){return z(d,0,!1,f,a)},containStroke:function(d,f,a,g){return z(d,f,!0,a,g)}}}),aG("zrender/core/curve",[a2,"./vector"],function(F){function V(a){return a>-ae&&ae>a}function Q(a){return a>ae||-ae>a}function N(d,g,c,h,f){var b=1-f;return b*b*(b*d+3*f*g)+f*f*(f*h+3*b*c)}function I(d,g,c,h,f){var b=1-f;return 3*(((g-d)*b+2*(c-g)*f)*b+(h-c)*f*f)}function Z(by,bI,bF,bB,bP,bE){var bz=bB+3*(bI-bF)-by,bH=3*(bF-2*bI+by),bN=3*(bI-by),bx=by-bP,bJ=bH*bH-3*bz*bN,bM=bH*bN-9*bz*bx,bL=bN*bN-3*bH*bx,bD=0;if(V(bJ)&&V(bM)){if(V(bH)){bE[0]=0}else{var bK=-bN/bH;bK>=0&&1>=bK&&(bE[bD++]=bK)}}else{var be=bM*bM-4*bJ*bL;if(V(be)){var bG=bM/bJ,bK=-bH/bz+bG,bQ=-bG/2;bK>=0&&1>=bK&&(bE[bD++]=bK),bQ>=0&&1>=bQ&&(bE[bD++]=bQ)}else{if(be>0){var bO=z(be),x=bJ*bH+1.5*bz*(-bM+bO),bC=bJ*bH+1.5*bz*(-bM-bO);x=0>x?-q(-x,j):q(x,j),bC=0>bC?-q(-bC,j):q(bC,j);var bK=(-bH-(x+bC))/(3*bz);bK>=0&&1>=bK&&(bE[bD++]=bK)}else{var bA=(2*bJ*bH-3*bz*bM)/(2*z(bJ*bJ*bJ)),e=Math.acos(bA)/3,y=z(bJ),w=Math.cos(e),bK=(-bH-2*y*w)/(3*bz),bQ=(-bH+y*(w+B*Math.sin(e)))/(3*bz),S=(-bH+y*(w-B*Math.sin(e)))/(3*bz);bK>=0&&1>=bK&&(bE[bD++]=bK),bQ>=0&&1>=bQ&&(bE[bD++]=bQ),S>=0&&1>=S&&(bE[bD++]=S)}}}return bD}function L(M,i,b,A,g){var S=6*b-12*i+6*M,m=9*i+3*A-3*M-9*b,y=3*i-3*M,C=0;if(V(m)){if(Q(S)){var v=-y/S;v>=0&&1>=v&&(g[C++]=v)}}else{var x=S*S-4*m*y;if(V(x)){g[0]=-S/(2*m)}else{if(x>0){var w=z(x),v=(-S+w)/(2*m),e=(-S-w)/(2*m);v>=0&&1>=v&&(g[C++]=v),e>=0&&1>=e&&(g[C++]=e)}}}return C}function G(A,v,m,f,b,x){var d=(v-A)*b+A,C=(m-v)*b+v,g=(f-m)*b+m,w=(C-d)*b+d,y=(g-C)*b+C,p=(y-w)*b+w;x[0]=A,x[1]=d,x[2]=w,x[3]=p,x[4]=p,x[5]=y,x[6]=g,x[7]=f}function P(C,bE,bA,be,bH,by,M,bz,bG,A,bB){var bF,bD,bx,bC,x,m=0.005,bI=1/0;k[0]=bG,k[1]=A;for(var n=0;1>n;n+=0.05){J[0]=N(C,bA,bH,M,n),J[1]=N(bE,be,by,bz,n),bC=O(k,J),bI>bC&&(bF=n,bI=bC)}bI=1/0;for(var b=0;32>b&&!(Y>m);b++){bD=bF-m,bx=bF+m,J[0]=N(C,bA,bH,M,bD),J[1]=N(bE,be,by,bz,bD),bC=O(J,k),bD>=0&&bI>bC?(bF=bD,bI=bC):(H[0]=N(C,bA,bH,M,bx),H[1]=N(bE,be,by,bz,bx),x=O(H,k),1>=bx&&bI>x?(bF=bx,bI=x):m*=0.5)}return bB&&(bB[0]=N(C,bA,bH,M,bF),bB[1]=N(bE,be,by,bz,bF)),z(bI)}function X(b,d,a,f){var c=1-f;return c*(c*b+2*f*d)+f*f*a}function E(b,c,a,d){return 2*((1-d)*(c-b)+d*(a-c))}function R(M,i,b,A,g){var S=M-2*i+b,m=2*(i-M),y=M-A,C=0;if(V(S)){if(Q(m)){var v=-y/m;v>=0&&1>=v&&(g[C++]=v)}}else{var x=m*m-4*S*y;if(V(x)){var v=-m/(2*S);v>=0&&1>=v&&(g[C++]=v)}else{if(x>0){var w=z(x),v=(-m+w)/(2*S),e=(-m-w)/(2*S);v>=0&&1>=v&&(g[C++]=v),e>=0&&1>=e&&(g[C++]=e)}}}return C}function W(b,c,a){var d=b+a-2*c;return 0===d?0.5:(b-c)/d}function U(d,h,c,m,g){var b=(h-d)*m+d,l=(c-h)*m+h,f=(l-b)*m+b;g[0]=d,g[1]=b,g[2]=f,g[3]=f,g[4]=l,g[5]=c}function K(w,bB,bx,S,A,bD,M,x,be){var m,by=0.005,bC=1/0;k[0]=M,k[1]=x;for(var bA=0;1>bA;bA+=0.05){J[0]=X(w,bx,A,bA),J[1]=X(bB,S,bD,bA);var C=O(k,J);bC>C&&(m=bA,bC=C)}bC=1/0;for(var bz=0;32>bz&&!(Y>by);bz++){var c=m-by,b=m+by;J[0]=X(w,bx,A,c),J[1]=X(bB,S,bD,c);var C=O(J,k);if(c>=0&&bC>C){m=c,bC=C}else{H[0]=X(w,bx,A,b),H[1]=X(bB,S,bD,b);var bE=O(H,k);1>=b&&bC>bE?(m=b,bC=bE):by*=0.5}}return be&&(be[0]=X(w,bx,A,m),be[1]=X(bB,S,bD,m)),z(bC)}var T=F("./vector"),D=T[ad],O=T.distSquare,q=Math.pow,z=Math.sqrt,ae=1e-8,Y=0.0001,B=z(3),j=1/3,k=D(),J=D(),H=D();return{cubicAt:N,cubicDerivativeAt:I,cubicRootAt:Z,cubicExtrema:L,cubicSubdivide:G,cubicProjectPoint:P,quadraticAt:X,quadraticDerivativeAt:E,quadraticRootAt:R,quadraticExtremum:W,quadraticSubdivide:U,quadraticProjectPoint:K}}),aG("zrender/config",[],function(){var a=1;typeof window!==at&&(a=Math.max(window.devicePixelRatio||1,1));var b={debugMode:0,devicePixelRatio:a};return b}),aG("zrender/core/bbox",[a2,"./vector","./curve"],function(A){var v=A("./vector"),m=A("./curve"),j={},b=Math.min,y=Math.max,g=Math.sin,B=Math.cos,k=v[ad](),x=v[ad](),z=v[ad](),p=2*Math.PI;j.fromPoints=function(E,r,h){if(0!==E[aD]){var d,a=E[0],F=a[0],f=a[0],C=a[1],D=a[1];for(d=1;d<E[aD];d++){a=E[d],F=b(F,a[0]),f=y(f,a[0]),C=b(C,a[1]),D=y(D,a[1])}r[0]=F,r[1]=C,h[0]=f,h[1]=D}},j.fromLine=function(c,f,a,l,h,d){h[0]=b(c,a),h[1]=b(f,l),d[0]=y(c,a),d[1]=y(f,l)};var w=[],q=[];return j.fromCubic=function(L,E,f,d,M,r,F,K,C,a){var D,J=m.cubicExtrema,i=m.cubicAt,G=J(L,f,M,F,w);for(C[0]=1/0,C[1]=1/0,a[0]=-1/0,a[1]=-1/0,D=0;G>D;D++){var H=i(L,f,M,F,w[D]);C[0]=b(H,C[0]),a[0]=y(H,a[0])}for(G=J(E,d,r,K,q),D=0;G>D;D++){var I=i(E,d,r,K,q[D]);C[1]=b(I,C[1]),a[1]=y(I,a[1])}C[0]=b(L,C[0]),a[0]=y(L,a[0]),C[0]=b(F,C[0]),a[0]=y(F,a[0]),C[1]=b(E,C[1]),a[1]=y(E,a[1]),C[1]=b(K,C[1]),a[1]=y(K,a[1])},j.fromQuadratic=function(L,G,r,i,M,C,I,K){var D=m.quadraticExtremum,H=m.quadraticAt,F=y(b(D(L,r,M),1),0),a=y(b(D(G,i,C),1),0),E=H(L,r,M,F),J=H(G,i,C,a);I[0]=b(L,M,E),I[1]=b(G,C,J),K[0]=y(L,M,E),K[1]=y(G,C,J)},j.fromArc=function(I,o,h,c,F,C,u,e,s){var H=v.min,l=v.max,D=Math.abs(F-C);if(0.0001>D%p&&D>0.0001){return e[0]=I-h,e[1]=o-c,s[0]=I+h,void (s[1]=o+c)}if(k[0]=B(F)*h+I,k[1]=g(F)*c+o,x[0]=B(C)*h+I,x[1]=g(C)*c+o,H(e,k,x),l(s,k,x),F%=p,0>F&&(F+=p),C%=p,0>C&&(C+=p),F>C&&!u?C+=p:C>F&&u&&(F+=p),u){var E=C;C=F,F=E}for(var G=0;C>G;G+=Math.PI/2){G>F&&(z[0]=B(G)*h+I,z[1]=g(G)*c+o,H(e,z,e),l(s,z,s))}},j}),aG("zrender/graphic/Style",[a2],function(){var b=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],d=function(e){this.extendFrom(e)};d[aU]={constructor:d,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(l,h){for(var p=this.fill,k=this[aj],g=0;g<b[aD];g++){var m=b[g];null!=this[m]&&(l[m]=this[m])}if(null!=k){var j=this[aM];l[aM]=j/(this.strokeNoScale&&h&&h.getLineScale?h.getLineScale():1)}null==p||"none"===p||p.colorStops||(l.fillStyle=p),null==k||"none"===k||k.colorStops||(l.strokeStyle=k),null!=this[aZ]&&(l.globalAlpha=this[aZ])},extendFrom:function(h,j){if(h){var g=this;for(var k in h){!h.hasOwnProperty(k)||!j&&g.hasOwnProperty(k)||(g[k]=h[k])}}},set:function(g,h){typeof g===aa?this[g]=h:this.extendFrom(g,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},createLinearGradient:function(j,m,h){var q=m.x*h.width+h.x,l=m.x2*h.width+h.x,g=m.y*h[bq]+h.y,p=m.y2*h[bq]+h.y,k=j.createLinearGradient(q,g,l,p);return k},createRadialGradient:function(v,p,m){var j=m.width,g=m[bq],u=Math.min(j,g),h=p.x*j+m.x,w=p.y*g+m.y,k=p.r*u,q=v.createRadialGradient(h,w,0,h,w,k);return q},getGradient:function(j,l,h){for(var p="radial"===l.type?"createRadialGradient":"createLinearGradient",k=this[p](j,l,h),g=l.colorStops,m=0;m<g[aD];m++){k.addColorStop(g[m].offset,g[m].color)}return k}};var a,f,c=d[aU];for(f=0;f<b[aD];f++){a=b[f],a in c||(c[a]=null)}return d}),aG("zrender/Element",[a2,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(d){var g=d("./core/guid"),c=d("./mixin/Eventful"),j=d("./mixin/Transformable"),f=d("./mixin/Animatable"),b=d("./core/util"),h=function(a){j.call(this,a),c.call(this,a),f.call(this,a),this.id=a.id||g()};return h[aU]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(k,l){switch(this.draggable){case"horizontal":l=0;break;case"vertical":k=0}var a=this[bu];a||(a=this[bu]=[1,0,0,1,0,0]),a[4]+=k,a[5]+=l,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(k,l){if(k===aW||"scale"===k||"origin"===k){if(l){var a=this[k];a||(a=this[k]=[]),a[0]=l[0],a[1]=l[1]}}else{this[k]=l}},hide:function(){this[bk]=!0,this.__zr&&this.__zr.refresh()},show:function(){this[bk]=!1,this.__zr&&this.__zr.refresh()},attr:function(k,l){if(typeof k===aa){this.attrKV(k,l)}else{if(b[aJ](k)){for(var a in k){k.hasOwnProperty(a)&&this.attrKV(a,k[a])}}}return this.dirty(),this},setClipPath:function(a){var i=this.__zr;i&&a.addSelfToZr(i),this.clipPath&&this.clipPath!==a&&this.removeClipPath(),this.clipPath=a,a.__zr=i,a.__clipTarget=this,this.dirty()},removeClipPath:function(){var a=this.clipPath;a&&(a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,a.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(a){this.__zr=a;this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;this.clipPath&&this.clipPath.removeSelfFromZr(a)}},b.mixin(h,f),b.mixin(h,j),b.mixin(h,c),h}),aG("echarts/model/mixin/makeStyleMapper",[a2,br],function(a){var b=a(br);return function(d){for(var c=0;c<d[aD];c++){d[c][1]||(d[c][1]=d[c][0])}return function(f){for(var j={},g=0;g<d[aD];g++){var e=d[g][1];if(!(f&&b[aP](f,e)>=0)){var h=this[ai](e);null!=h&&(j[d[g][0]]=h)}}return j}}}),aG("zrender/core/guid",[],function(){var a=2311;return function(){return"zr_"+a++}}),aG("zrender/mixin/Transformable",[a2,"../core/matrix","../core/vector"],function(k){function h(a){return a>j||-j>a}var g=k("../core/matrix"),d=k("../core/vector"),b=g.identity,j=0.00005,c=function(a){a=a||{},a[aW]||(this[aW]=[0,0]),null==a.rotation&&(this.rotation=0),a.scale||(this.scale=[1,1]),this.origin=this.origin||null},m=c[aU];m[bu]=null,m.needLocalTransform=function(){return h(this.rotation)||h(this[aW][0])||h(this[aW][1])||h(this.scale[0]-1)||h(this.scale[1]-1)},m.updateTransform=function(){var l=this.parent,o=l&&l[bu],p=this.needLocalTransform(),i=this[bu];return p||o?(i=i||g[ad](),p?this.getLocalTransform(i):b(i),o&&(p?g.mul(i,l[bu],i):g.copy(i,l[bu])),this[bu]=i,this.invTransform=this.invTransform||g[ad](),void g.invert(this.invTransform,i)):void (i&&b(i))},m.getLocalTransform=function(l){l=l||[],b(l);var p=this.origin,r=this.scale,i=this.rotation,q=this[aW];return p&&(l[4]-=p[0],l[5]-=p[1]),g.scale(l,l,r),i&&g.rotate(l,l,i),p&&(l[4]+=p[0],l[5]+=p[1]),l[4]+=q[0],l[5]+=q[1],l},m.setTransform=function(a){var i=this[bu];i&&a[bu](i[0],i[1],i[2],i[3],i[4],i[5])};var f=[];return m.decomposeTransform=function(){if(this[bu]){var i=this.parent,u=this[bu];i&&i[bu]&&(g.mul(f,i.invTransform,u),u=f);var p=u[0]*u[0]+u[1]*u[1],e=u[2]*u[2]+u[3]*u[3],q=this[aW],l=this.scale;h(p-1)&&(p=Math.sqrt(p)),h(e-1)&&(e=Math.sqrt(e)),u[0]<0&&(p=-p),u[3]<0&&(e=-e),q[0]=u[4],q[1]=u[5],l[0]=p,l[1]=e,this.rotation=Math.atan2(-u[1]/e,u[0]/p)}},m.getGlobalScale=function(){var l=this[bu];if(!l){return[1,1]}var n=Math.sqrt(l[0]*l[0]+l[1]*l[1]),a=Math.sqrt(l[2]*l[2]+l[3]*l[3]);return l[0]<0&&(n=-n),l[3]<0&&(a=-a),[n,a]},m.transformCoordToLocal=function(l,o){var a=[l,o],n=this.invTransform;return n&&d[aK](a,a,n),a},m.transformCoordToGlobal=function(l,o){var a=[l,o],n=this[bu];return n&&d[aK](a,a,n),a},c}),aG("zrender/mixin/Animatable",[a2,"../animation/Animator",aH],function(d){var h=d("../animation/Animator"),c=d(aH),j=c.isString,g=c.isFunction,b=c[aJ],f=function(){this.animators=[]};return f[aU]={constructor:f,animate:function(z,k){var e,x=!1,A=this,m=this.__zr;if(z){var w=z.split("."),y=A;x="shape"===w[0];for(var o=0,v=w[aD];v>o;o++){y&&(y=y[w[o]])}y&&(e=y)}else{e=A}if(!e){return void au('Property "'+z+'" is not existed in element '+A.id)}var q=A.animators,i=new h(e,k);return i.during(function(){A.dirty(x)}).done(function(){q[a8](c[aP](q,i),1)}),q.push(i),m&&m[al].addAnimator(i),i},stopAnimation:function(k){for(var l=this.animators,a=l[aD],m=0;a>m;m++){l[m].stop(k)}return l[aD]=0,this},animateTo:function(w,p,n,r,k){function x(){q--,q||k&&k()}j(n)?(k=r,r=n,n=0):g(r)?(k=r,r="linear",n=0):g(n)?(k=n,n=0):g(p)?(k=p,p=500):p||(p=500),this.stopAnimation(),this._animateToShallow("",this,w,p,n,r,k);var m=this.animators.slice(),q=m[aD];q||k&&k();for(var v=0;v<m[aD];v++){m[v].done(x).start(r)}},_animateToShallow:function(w,p,k,a,i){var x={},m=0;for(var q in k){if(null!=p[q]){b(k[q])&&!c.isArrayLike(k[q])?this._animateToShallow(w?w+"."+q:q,p[q],k[q],a,i):(x[q]=k[q],m++)}else{if(null!=k[q]){if(w){var v={};v[w]={},v[w][q]=k[q],this.attr(v)}else{this.attr(q,k[q])}}}}return m>0&&this.animate(w,!1).when(null==a?500:a,x).delay(i||0),this}},f}),aG("echarts/util/component",[a2,br,"./clazz"],function(d){var g=d(br),c=d("./clazz"),j=c.parseClassType,f=0,b={},h="_";return b.getUID=function(a){return[a||"",f++,Math.random()].join(h)},b.enableSubTypeDefaulter=function(a){var i={};return a.registerSubTypeDefaulter=function(k,e){k=j(k),i[k.main]=e},a.determineSubType=function(k,l){var e=l.type;if(!e){var m=j(k).main;a.hasSubTypes(k)&&i[m]&&(e=i[m](l))}return e},a},b.enableTopologicalTravel=function(l,k){function o(a){var p={},i=[];return g.each(a,function(r){var n=m(p,r),t=n.originalDeps=k(r),q=e(t,a);n.entryCount=q[aD],0===n.entryCount&&i.push(r),g.each(q,function(u){g[aP](n.predecessor,u)<0&&n.predecessor.push(u);var s=m(p,u);g[aP](s.successor,u)<0&&s.successor.push(r)})}),{graph:p,noEntryList:i}}function m(a,i){return a[i]||(a[i]={predecessor:[],successor:[]}),a[i]}function e(p,a){var q=[];return g.each(p,function(i){g[aP](a,i)>=0&&q.push(i)}),q}l.topologicalTravel=function(E,x,n,C){function v(a){B[a].entryCount--,0===B[a].entryCount&&D.push(a)}function F(a){y[a]=!0,v(a)}if(E[aD]){var w=o(x),B=w.graph,D=w.noEntryList,y={};for(g.each(E,function(a){y[a]=!0});D[aD];){var A=D.pop(),z=B[A],q=!!y[A];q&&(n.call(C,A,z.originalDeps.slice()),delete y[A]),g.each(z.successor,q?F:v)}g.each(y,function(){throw new Error("Circle dependency may exists")})}}},b}),aG("zrender/animation/Animator",[a2,"./Clip",aH],function(j){function F(a,c){return a[c]}function C(c,f,a){c[f]=a}function z(c,f,a){return(f-c)*a+c}function q(c,f,a){return a>0.5?f:c}function H(y,p,n,f,x){var h=y[aD];if(1==x){for(var J=0;h>J;J++){f[J]=z(y[J],p[J],n)}}else{for(var m=y[0][aD],J=0;h>J;J++){for(var u=0;m>u;u++){f[J][u]=z(y[J][u],p[J][u],n)}}}}function w(y,u,p){var h=y[aD],c=u[aD];if(h!==c){var x=h>c;if(x){y[aD]=c}else{for(var f=h;c>f;f++){y.push(1===p?u[f]:d.call(u[f]))}}}for(var J=y[0]&&y[0][aD],f=0;f<y[aD];f++){if(1===p){isNaN(y[f])&&(y[f]=u[f])}else{for(var m=0;J>m;m++){isNaN(y[f][m])&&(y[f][m]=u[f][m])}}}}function k(h,m,f){if(h===m){return !0}var s=h[aD];if(s!==m[aD]){return !1}if(1===f){for(var l=0;s>l;l++){if(h[l]!==m[l]){return !1}}}else{for(var c=h[0][aD],l=0;s>l;l++){for(var p=0;c>p;p++){if(h[l][p]!==m[l][p]){return !1}}}}return !0}function B(P,L,y,p,c,N,m,Q,x){var O=P[aD];if(1==x){for(var J=0;O>J;J++){Q[J]=G(P[J],L[J],y[J],p[J],c,N,m)}}else{for(var M=P[0][aD],J=0;O>J;J++){for(var K=0;M>K;K++){Q[J][K]=G(P[J][K],L[J][K],y[J][K],p[J][K],c,N,m)}}}}function G(y,u,p,h,c,x,f){var J=0.5*(p-y),m=0.5*(h-u);return(2*(u-p)+J+m)*f+(-3*(u-p)-2*J-m)*x+J*c+u}function g(c){if(b(c)){var f=c[aD];if(b(c[0])){for(var a=[],h=0;f>h;h++){a.push(d.call(c[h]))}return a}return d.call(c)}return c}function D(a){return a[0]=Math.floor(a[0]),a[1]=Math.floor(a[1]),a[2]=Math.floor(a[2]),"rgba("+a.join(",")+")"}function E(by,bI,bG,be,bJ){var bH=by._getter,Z=by._setter,bE="spline"===bI,Q=be[aD];if(Q){var bL,bK=be[0].value,X=b(bK),l=!1,s=!1,bD=X&&b(bK[0])?2:1;be.sort(function(f,i){return f.time-i.time}),bL=be[Q-1].time;for(var bA=[],h=[],y=be[0].value,o=!0,J=0;Q>J;J++){bA.push(be[J].time/bL);var bF=be[J].value;if(X&&k(bF,y,bD)||!X&&bF===y||(o=!1),y=bF,typeof bF==aa){var K=aE.parse(bF);K?(bF=K,l=!0):s=!0}h.push(bF)}if(!o){for(var bz=h[Q-1],J=0;Q-1>J;J++){X?w(h[J],bz,bD):!isNaN(h[J])||isNaN(bz)||s||l||(h[J]=bz)}X&&w(bH(by._target,bJ),bz,bD);var p,n,bC,bx,r,c,ae=0,Y=0;if(l){var U=[0,0,0,0]}var bB=function(m,x){var f;if(Y>x){for(p=Math.min(ae+1,Q-1),f=p;f>=0&&!(bA[f]<=x);f--){}f=Math.min(f,Q-2)}else{for(f=ae;Q>f&&!(bA[f]>x);f++){}f=Math.min(f-1,Q-2)}ae=f,Y=x;var L=bA[f+1]-bA[f];if(0!==L){if(n=(x-bA[f])/L,bE){if(bx=h[f],bC=h[0===f?f:f-1],r=h[f>Q-2?Q-1:f+1],c=h[f>Q-3?Q-1:f+2],X){B(bC,bx,r,c,n,n*n,n*n*n,bH(m,bJ),bD)}else{var u;if(l){u=B(bC,bx,r,c,n,n*n,n*n*n,U,1),u=D(U)}else{if(s){return q(bx,r,n)}u=G(bC,bx,r,c,n,n*n,n*n*n)}Z(m,bJ,u)}}else{if(X){H(h[f],h[f+1],n,bH(m,bJ),bD)}else{var u;if(l){H(h[f],h[f+1],n,U,1),u=D(U)}else{if(s){return q(h[f],h[f+1],n)}u=z(h[f],h[f+1],n)}Z(m,bJ,u)}}}},a=new v({target:by._target,life:bL,loop:by._loop,delay:by._delay,onframe:bB,ondestroy:bG});return bI&&"spline"!==bI&&(a.easing=bI),a}}}var v=j("./Clip"),A=j(aH),b=A.isArrayLike,d=Array[aU].slice,I=function(e,h,f,c){this._tracks={},this._target=e,this._loop=h||!1,this._getter=f||F,this._setter=c||C,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return I[aU]={when:function(c,h){var a=this._tracks;for(var l in h){if(!a[l]){a[l]=[];var f=this._getter(this._target,l);if(null==f){continue}0!==c&&a[l].push({time:0,value:g(f)})}a[l].push({time:c,value:h[l]})}return this},during:function(a){return this._onframeList.push(a),this},_doneCallback:function(){this._tracks={},this._clipList[aD]=0;for(var c=this._doneList,f=c[aD],a=0;f>a;a++){c[a].call(this)}},start:function(h){var p,f=this,x=0,m=function(){x--,x||f._doneCallback()};for(var c in this._tracks){var u=E(this,h,m,this._tracks[c],c);u&&(this._clipList.push(u),x++,this[al]&&this[al].addClip(u),p=u)}if(p){var l=p.onframe;p.onframe=function(a,i){l(a,i);for(var o=0;o<f._onframeList[aD];o++){f._onframeList[o](a,i)}}}return x||this._doneCallback(),this},stop:function(c){for(var h=this._clipList,a=this[al],l=0;l<h[aD];l++){var f=h[l];c&&f.onframe(this._target,1),a&&a.removeClip(f)}h[aD]=0},delay:function(a){return this._delay=a,this},done:function(a){return a&&this._doneList.push(a),this},getClips:function(){return this._clipList}},I}),aG("zrender/animation/Clip",[a2,"./easing"],function(b){function c(d){this._target=d[a6],this._life=d.life||1000,this._delay=d.delay||0,this._initialized=!1,this.loop=null==d.loop?!1:d.loop,this.gap=d.gap||0,this.easing=d.easing||"Linear",this.onframe=d.onframe,this.ondestroy=d.ondestroy,this.onrestart=d.onrestart}var a=b("./easing");return c[aU]={constructor:c,step:function(f){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var h=(f-this._startTime)/this._life;if(!(0>h)){h=Math.min(h,1);var i=this.easing,g=typeof i==aa?a[i]:i,d=typeof g===aN?g(h):h;return this.fire("frame",d),1==h?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var d=(new Date).getTime(),f=(d-this._startTime)%this._life;this._startTime=(new Date).getTime()-f+this.gap,this._needsRemove=!1},fire:function(d,f){d="on"+d,this[d]&&this[d](this._target,f)}},c}),aG("zrender/animation/easing",[],function(){var a={linear:function(b){return b},quadraticIn:function(b){return b*b},quadraticOut:function(b){return b*(2-b)},quadraticInOut:function(b){return(b*=2)<1?0.5*b*b:-0.5*(--b*(b-2)-1)},cubicIn:function(b){return b*b*b},cubicOut:function(b){return --b*b*b+1},cubicInOut:function(b){return(b*=2)<1?0.5*b*b*b:0.5*((b-=2)*b*b+2)},quarticIn:function(b){return b*b*b*b},quarticOut:function(b){return 1- --b*b*b*b},quarticInOut:function(b){return(b*=2)<1?0.5*b*b*b*b:-0.5*((b-=2)*b*b*b-2)},quinticIn:function(b){return b*b*b*b*b},quinticOut:function(b){return --b*b*b*b*b+1},quinticInOut:function(b){return(b*=2)<1?0.5*b*b*b*b*b:0.5*((b-=2)*b*b*b*b+2)},sinusoidalIn:function(b){return 1-Math.cos(b*Math.PI/2)},sinusoidalOut:function(b){return Math.sin(b*Math.PI/2)},sinusoidalInOut:function(b){return 0.5*(1-Math.cos(Math.PI*b))},exponentialIn:function(b){return 0===b?0:Math.pow(1024,b-1)},exponentialOut:function(b){return 1===b?1:1-Math.pow(2,-10*b)},exponentialInOut:function(b){return 0===b?0:1===b?1:(b*=2)<1?0.5*Math.pow(1024,b-1):0.5*(-Math.pow(2,-10*(b-1))+2)},circularIn:function(b){return 1-Math.sqrt(1-b*b)},circularOut:function(b){return Math.sqrt(1- --b*b)},circularInOut:function(b){return(b*=2)<1?-0.5*(Math.sqrt(1-b*b)-1):0.5*(Math.sqrt(1-(b-=2)*b)+1)},elasticIn:function(c){var d,b=0.1,f=0.4;return 0===c?0:1===c?1:(!b||1>b?(b=1,d=f/4):d=f*Math.asin(1/b)/(2*Math.PI),-(b*Math.pow(2,10*(c-=1))*Math.sin(2*(c-d)*Math.PI/f)))},elasticOut:function(c){var d,b=0.1,f=0.4;return 0===c?0:1===c?1:(!b||1>b?(b=1,d=f/4):d=f*Math.asin(1/b)/(2*Math.PI),b*Math.pow(2,-10*c)*Math.sin(2*(c-d)*Math.PI/f)+1)},elasticInOut:function(c){var d,b=0.1,f=0.4;return 0===c?0:1===c?1:(!b||1>b?(b=1,d=f/4):d=f*Math.asin(1/b)/(2*Math.PI),(c*=2)<1?-0.5*b*Math.pow(2,10*(c-=1))*Math.sin(2*(c-d)*Math.PI/f):b*Math.pow(2,-10*(c-=1))*Math.sin(2*(c-d)*Math.PI/f)*0.5+1)},backIn:function(b){var c=1.70158;return b*b*((c+1)*b-c)},backOut:function(b){var c=1.70158;return --b*b*((c+1)*b+c)+1},backInOut:function(b){var c=2.5949095;return(b*=2)<1?0.5*b*b*((c+1)*b-c):0.5*((b-=2)*b*((c+1)*b+c)+2)},bounceIn:function(b){return 1-a.bounceOut(1-b)},bounceOut:function(b){return 1/2.75>b?7.5625*b*b:2/2.75>b?7.5625*(b-=1.5/2.75)*b+0.75:2.5/2.75>b?7.5625*(b-=2.25/2.75)*b+0.9375:7.5625*(b-=2.625/2.75)*b+0.984375},bounceInOut:function(b){return 0.5>b?0.5*a.bounceIn(2*b):0.5*a.bounceOut(2*b-1)+0.5}};return a}),aG("zrender/contain/line",[],function(){return{containStroke:function(w,m,j,f,b,q,d){if(0===b){return !1}var x=b,g=0,p=w;if(d>m+x&&d>f+x||m-x>d&&f-x>d||q>w+x&&q>j+x||w-x>q&&j-x>q){return !1}if(w===j){return Math.abs(q-w)<=x/2}g=(m-f)/(w-j),p=(w*f-j*m)/(w-j);var v=g*q-d+p,k=v*v/(g*g+1);return x/2*x/2>=k}}}),aG("zrender/contain/arc",[a2,"./util"],function(b){var c=b("./util").normalizeRadian,a=2*Math.PI;return{containStroke:function(z,j,e,x,i,A,k,w,y){if(0===k){return !1}var m=k;w-=z,y-=j;var v=Math.sqrt(w*w+y*y);if(v-m>e||e>v+m){return !1}if(Math.abs(x-i)%a<0.0001){return !0}if(A){var q=x;x=c(i),i=c(q)}else{x=c(x),i=c(i)}x>i&&(i+=a);var g=Math.atan2(y,w);return 0>g&&(g+=a),g>=x&&i>=g||g+a>=x&&i>=g+a}}}),aG("zrender/contain/util",[a2],function(){var a=2*Math.PI;return{normalizeRadian:function(b){return b%=a,0>b&&(b+=a),b}}}),aG("zrender/contain/windingLine",[],function(){return function(k,h,g,d,b,j){if(j>h&&j>d||h>j&&d>j){return 0}if(d===h){return 0}var c=h>d?1:-1,m=(j-h)/(d-h),f=m*(g-k)+k;return f>b?c:0}}),aG("echarts/data/List",[a2,"../model/Model","./DataDiffer",br,"../util/model"],function(p){function D(a){return C[aA](a)||(a=[a]),a}function A(y,u){var m=y[ao],f=new j(C.map(m,y.getDimensionInfo,y),y.hostModel);h(f,y);for(var b=f._storage={},x=y._storage,d=0;d<m[aD];d++){var g=m[d],v=x[g];b[g]=C[aP](u,g)>=0?new v.constructor(x[g][aD]):x[g]}return f}var w=at,q=typeof window===at?global:window,H=typeof q.Float64Array===w?Array:q.Float64Array,s=typeof q.Int32Array===w?Array:q.Int32Array,F={"float":H,"int":s,ordinal:Array,number:Array,time:Array},l=p("../model/Model"),E=p("./DataDiffer"),C=p(br),B=p("../util/model"),k=C[aJ],z=["stackedOn","_nameList","_idList","_rawData"],h=function(a,b){C.each(z.concat(b.__wrappedMethods||[]),function(c){b.hasOwnProperty(c)&&(a[c]=b[c])}),a.__wrappedMethods=b.__wrappedMethods},j=function(d,g){d=d||["x","y"];for(var c={},u=[],f=0;f<d[aD];f++){var b,m={};typeof d[f]===aa?(b=d[f],m={name:b,stackable:!1,type:"number"}):(m=d[f],b=m.name,m.type=m.type||"number"),u.push(b),c[b]=m}this[ao]=u,this._dimensionInfos=c,this.hostModel=g,this.dataType,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData,this._extent},I=j[aU];I.type="list",I.getDimension=function(a){return isNaN(a)||(a=this[ao][a]||a),a},I.getDimensionInfo=function(a){return C.clone(this._dimensionInfos[this.getDimension(a)])},I.initData=function(M,W,U){if(M=M||[],!C[aA](M)){throw new Error("Invalid data.")}this._rawData=M;var Q=this._storage={},N=this.indices=[],Z=this[ao],P=M[aD],T=this._dimensionInfos,L=[],V={};W=W||[];for(var X=0;X<Z[aD];X++){var O=T[Z[X]],K=F[O.type];Q[Z[X]]=new K(P)}U=U||function(b,m,a,o){var d=B.getDataItemValue(b);return B.converDataValue(C[aA](d)?d[o]:d,T[m])};for(var R=0;R<M[aD];R++){for(var f=M[R],g=0;g<Z[aD];g++){var ae=Z[g],Y=Q[ae];Y[R]=U(f,ae,R,g)}N.push(R)}for(var X=0;X<M[aD];X++){var J="";W[X]||(W[X]=M[X].name,J=M[X].id);var c=W[X]||"";!J&&c&&(V[c]=V[c]||0,J=c,V[c]>0&&(J+="__ec__"+V[c]),V[c]++),J&&(L[X]=J)}this._nameList=W,this._idList=L},I.count=function(){return this.indices[aD]},I.get=function(v,m,g){var d=this._storage,b=this.indices[m];if(null==b){return 0/0}var u=d[v]&&d[v][b];if(g){var c=this._dimensionInfos[v];if(c&&c.stackable){for(var x=this.stackedOn;x;){var f=x.get(v,m);(u>=0&&f>0||0>=u&&0>f)&&(u+=f),x=x.stackedOn}}}return u},I.getValues=function(d,g,c){var m=[];C[aA](d)||(c=g,g=d,d=this[ao]);for(var f=0,b=d[aD];b>f;f++){m.push(this.get(d[f],g,c))}return m},I.hasValue=function(b){for(var d=this[ao],a=this._dimensionInfos,f=0,c=d[aD];c>f;f++){if(a[d[f]].type!==ay&&isNaN(this.get(d[f],b))){return !1}}return !0},I.getDataExtent=function(y,u){var m=this._storage[y],f=this.getDimensionInfo(y);u=f&&f.stackable&&u;var b,x=(this._extent||(this._extent={}))[y+!!u];if(x){return x}if(m){for(var d=1/0,J=-1/0,g=0,v=this.count();v>g;g++){b=this.get(y,g,u),d>b&&(d=b),b>J&&(J=b)}return this._extent[y+u]=[d,J]}return[1/0,-1/0]},I.getSum=function(d,g){var c=this._storage[d],u=0;if(c){for(var f=0,b=this.count();b>f;f++){var m=this.get(d,f,g);isNaN(m)||(u+=m)}}return u},I[aP]=function(d,m){var c=this._storage,v=c[d],g=this.indices;if(v){for(var b=0,u=g[aD];u>b;b++){var f=g[b];if(v[f]===m){return b}}}return -1},I.indexOfName=function(d){for(var g=this.indices,c=this._nameList,m=0,f=g[aD];f>m;m++){var b=g[m];if(c[b]===d){return m}}return -1},I.indexOfNearest=function(K,v,m){var f=this._storage,b=f[K];if(b){for(var y=Number.MAX_VALUE,d=-1,L=0,g=this.count();g>L;L++){var x=v-this.get(K,L,m),J=Math.abs(x);(y>J||J===y&&x>0)&&(y=J,d=L)}return d}return -1},I.getRawIndex=function(a){var b=this.indices[a];return null==b?-1:b},I.getRawDataItem=function(a){return this._rawData[this.getRawIndex(a)]},I[aT]=function(a){return this._nameList[this.indices[a]]||""},I.getId=function(a){return this._idList[this.indices[a]]||this.getRawIndex(a)+""},I.each=function(v,g,e,b){typeof v===aN&&(b=e,e=g,g=v,v=[]),v=C.map(D(v),this.getDimension,this);var u=[],d=v[aD],x=this.indices;b=b||this;for(var f=0;f<x[aD];f++){if(0===d){g.call(b,f)}else{if(1===d){g.call(b,this.get(v[0],f,e),f)}else{for(var m=0;d>m;m++){u[m]=this.get(v[m],f,e)}u[m]=f,g.apply(b,u)}}}},I.filterSelf=function(J,g,e,b){typeof J===aN&&(b=e,e=g,g=J,J=[]),J=C.map(D(J),this.getDimension,this);var x=[],d=[],K=J[aD],f=this.indices;b=b||this;for(var v=0;v<f[aD];v++){var y;if(1===K){y=g.call(b,this.get(J[0],v,e),v)}else{for(var m=0;K>m;m++){d[m]=this.get(J[m],v,e)}d[m]=v,y=g.apply(b,d)}y&&x.push(f[v])}return this.indices=x,this._extent={},this},I.mapArray=function(b,d,a,f){typeof b===aN&&(f=a,a=d,d=b,b=[]);var c=[];return this.each(b,function(){c.push(d&&d.apply(this,arguments))},a,f),c},I.map=function(e,u,g,d){e=C.map(D(e),this.getDimension,this);var i=A(this,e),f=i.indices=this.indices,b=i._storage,m=[];return this.each(e,function(){var x=arguments[arguments[aD]-1],t=u&&u.apply(this,arguments);if(null!=t){"number"==typeof t&&(m[0]=t,t=m);for(var v=0;v<t[aD];v++){var c=e[v],y=b[c],n=f[x];y&&(y[n]=t[v])}}},g,d),i},I.downSample=function(J,U,O,L){for(var X=A(this,[J]),N=this._storage,K=X._storage,Q=this.indices,W=X.indices=[],x=[],R=[],V=Math.floor(1/U),T=K[J],M=this.count(),S=0;S<N[J][aD];S++){K[J][S]=N[J][S]}for(var S=0;M>S;S+=V){V>M-S&&(V=M-S,x[aD]=V);for(var i=0;V>i;i++){var P=Q[S+i];x[i]=T[P],R[i]=P}var b=O(x),P=R[L(x,b)||0];T[P]=b,W.push(P)}return X},I[aC]=function(a){var b=this.hostModel;return a=this.indices[a],new l(this._rawData[a],b,b&&b[a4])},I.diff=function(b){var c=this._idList,a=b&&b._idList;return new E(b?b.indices:[],this.indices,function(d){return a[d]||d+""},function(d){return c[d]||d+""})},I.getVisual=function(a){var b=this._visual;return b&&b[a]},I.setVisual=function(b,c){if(k(b)){for(var a in b){b.hasOwnProperty(a)&&this.setVisual(a,b[a])}}else{this._visual=this._visual||{},this._visual[b]=c}},I.setLayout=function(b,c){if(k(b)){for(var a in b){b.hasOwnProperty(a)&&this.setLayout(a,b[a])}}else{this._layout[b]=c}},I.getLayout=function(a){return this._layout[a]},I.getItemLayout=function(a){return this._itemLayouts[a]},I.setItemLayout=function(b,c,a){this._itemLayouts[b]=a?C[bs](this._itemLayouts[b]||{},c):c},I.clearItemLayouts=function(){this._itemLayouts[aD]=0},I[bg]=function(b,d,a){var f=this._itemVisuals[b],c=f&&f[d];return null!=c||a?c:this.getVisual(d)},I.setItemVisual=function(b,d,a){var f=this._itemVisuals[b]||{};if(this._itemVisuals[b]=f,k(d)){for(var c in d){d.hasOwnProperty(c)&&(f[c]=d[c])}}else{f[d]=a}};var G=function(a){a[bn]=this[bn],a[a5]=this[a5],a.dataType=this.dataType};return I.setItemGraphicEl=function(b,c){var a=this.hostModel;c&&(c[a5]=b,c.dataType=this.dataType,c[bn]=a&&a[bn],"group"===c.type&&c.traverse(G,c)),this._graphicEls[b]=c},I[aV]=function(a){return this._graphicEls[a]},I.eachItemGraphicEl=function(a,b){C.each(this._graphicEls,function(c,d){c&&a&&a.call(b,c,d)})},I.cloneShallow=function(){var a=C.map(this[ao],this.getDimensionInfo,this),b=new j(a,this.hostModel);return b._storage=this._storage,h(b,this),b.indices=this.indices.slice(),b},I.wrapMethod=function(b,c){var a=this[b];typeof a===aN&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(b),this[b]=function(){var d=a.apply(this,arguments);return c.apply(this,[d].concat(C.slice(arguments)))})},I.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],I.CHANGABLE_METHODS=["filterSelf"],j}),aG("echarts/data/helper/completeDimensions",[a2,br],function(b){function d(j,m,h,n){if(!m){return j}var k=f(m[0]),g=c[aA](k)&&k[aD]||1;h=h||[],n=n||"extra";for(var p=0;g>p;p++){if(!j[p]){var i=h[p]||n+(p-h[aD]);j[p]=a(m,p)?{type:"ordinal",name:i}:i}}return j}function a(j,k){for(var h=0,g=j[aD];g>h;h++){var l=f(j[h]);if(!c[aA](l)){return !1}var l=l[k];if(null!=l&&isFinite(l)){return !1}if(c.isString(l)&&"-"!==l){return !0}}return !1}function f(e){return c[aA](e)?e:c[aJ](e)?e.value:e}var c=b(br);return d}),aG("zrender/Handler",[a2,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(C){function O(b,c,a){return{type:b,event:a,target:c,cancelBubble:!1,offsetX:a.zrX,offsetY:a.zrY,gestureEvent:a.gestureEvent,pinchX:a.pinchX,pinchY:a.pinchY,pinchScale:a.pinchScale,wheelDelta:a.zrDelta}}function K(d,g,c){var h=d._gestureMgr;"start"===c&&h.clear();var f=h.recognize(g,d.findHover(g.zrX,g.zrY,null));if("end"===c&&h.clear(),f){var b=f.type;g.gestureEvent=b,d._dispatchProxy(f[a6],b,f.event)}}function H(b){function d(g,h){return function(){return h._touching?void 0:g.apply(h,arguments)}}for(var a=A.concat(I),f=0;f<a[aD];f++){var c=a[f];b._handlers[c]=L.bind(z[c],b)}for(var f=0;f<M[aD];f++){var c=M[f];b._handlers[c]=d(z[c],b)}}function E(b,c,a){if(b[b.rectHover?"rectContain":bd](c,a)){for(var d=b;d;){if(d.silent||d.clipPath&&!d.clipPath[bd](c,a)){return !1}d=d.parent}return !0}return !1}function T(a){a._touching=!0,clearTimeout(a._touchTimer),a._touchTimer=setTimeout(function(){a._touching=!1},700)}function G(){return !1}function D(){return Q.touchEventsSupported}function J(a){return"mousewheel"===a&&Q.browser.firefox?"DOMMouseScroll":a}var Q=C("./core/env"),B=C("./core/event"),L=C("./core/util"),P=C("./mixin/Draggable"),N=C("./core/GestureMgr"),F=C("./mixin/Eventful"),M=["click","dblclick","mousewheel",bf];!G()&&M.push("mouseup","mousedown","mousemove");var A=["touchstart","touchend","touchmove"],I=["pointerdown","pointerup","pointermove"],k=300,q=B.addEventListener,U=B.removeEventListener,R=B.normalizeEvent,z={mousemove:function(b){b=R(this.root,b);var d=b.zrX,a=b.zrY,f=this.findHover(d,a,null),c=this._hovered;this._hovered=f,this.root.style.cursor=f?f.cursor:this._defaultCursorStyle,c&&f!==c&&c.__zr&&this._dispatchProxy(c,bf,b),this._dispatchProxy(f,"mousemove",b),f&&f!==c&&this._dispatchProxy(f,ab,b)},mouseout:function(a){a=R(this.root,a);var b=a.toElement||a.relatedTarget;if(b!=this.root){for(;b&&9!=b.nodeType;){if(b===this.root){return}b=b.parentNode}}this._dispatchProxy(this._hovered,bf,a),this[bj]("globalout",{event:a})},touchstart:function(a){a=R(this.root,a),this._lastTouchMoment=new Date,K(this,a,"start"),z.mousemove.call(this,a),z.mousedown.call(this,a),T(this)},touchmove:function(a){a=R(this.root,a),K(this,a,"change"),z.mousemove.call(this,a),T(this)},touchend:function(a){a=R(this.root,a),K(this,a,"end"),z.mouseup.call(this,a),+new Date-this._lastTouchMoment<k&&z.click.call(this,a),T(this)}};L.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(a){z[a]=function(c){c=R(this.root,c);var b=this.findHover(c.zrX,c.zrY,null);if("mousedown"===a){this._downel=b,this._upel=b}else{if("mosueup"===a){this._upel=b}else{if("click"===a&&this._downel!==this._upel){return}}}this._dispatchProxy(b,a,c)}});var j=function(b,d,a){function c(g,f){L.each(g,function(h){q(b,J(h),f._handlers[h])},f)}F.call(this),this.root=b,this.storage=d,this.painter=a,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new N,this._handlers=[],this._touching=!1,this._touchTimer,H(this),G()?c(I,this):D()&&c(A,this),c(M,this),P.call(this)};return j[aU]={constructor:j,resize:function(){this._hovered=null},dispatch:function(b,c){var a=this._handlers[b];a&&a.call(this,c)},dispose:function(){for(var b=this.root,c=M.concat(A),a=0;a<c[aD];a++){var d=c[a];U(b,J(d),this._handlers[d])}this.root=this.storage=this.painter=null},setDefaultCursorStyle:function(a){this._defaultCursorStyle=a},_dispatchProxy:function(d,c,g){for(var e="on"+c,b=O(c,d,g),f=d;f&&(f[e]&&(b.cancelBubble=f[e].call(f,b)),f[bj](c,b),f=f.parent,!b.cancelBubble);){}b.cancelBubble||(this[bj](c,b),this.painter&&this.painter.eachOtherLayer(function(a){typeof a[e]==aN&&a[e].call(a,b),a[bj]&&a[bj](c,b)}))},findHover:function(d,f,c){for(var g=this.storage.getDisplayList(),b=g[aD]-1;b>=0;b--){if(!g[b].silent&&g[b]!==c&&!g[b][bk]&&E(g[b],d,f)){return g[b]}}}},L.mixin(j,F),L.mixin(j,P),j}),aG("zrender/Storage",[a2,"./core/util","./container/Group"],function(b){function d(g,h){return g[aO]===h[aO]?g.z===h.z?g.z2===h.z2?g.__renderidx-h.__renderidx:g.z2-h.z2:g.z-h.z:g[aO]-h[aO]}var a=b("./core/util"),f=b("./container/Group"),c=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return c[aU]={constructor:c,getDisplayList:function(g,h){return h=h||!1,g&&this.updateDisplayList(h),this._displayList},updateDisplayList:function(h){this._displayListLen=0;for(var g=this._roots,k=this._displayList,j=0,e=g[aD];e>j;j++){this._updateAndAddDisplayable(g[j],null,h)}k[aD]=this._displayListLen;for(var j=0,e=k[aD];e>j;j++){k[j].__renderidx=j}k.sort(d)},_updateAndAddDisplayable:function(j,l,h){if(!j[bk]||h){j.beforeUpdate(),j[a0](),j.afterUpdate();var p=j.clipPath;if(p&&(p.parent=j,p.updateTransform(),l?(l=l.slice(),l.push(p)):l=[p]),"group"==j.type){for(var k=j._children,g=0;g<k[aD];g++){var m=k[g];m.__dirty=j.__dirty||m.__dirty,this._updateAndAddDisplayable(m,l,h)}j.__dirty=!1}else{j.__clipPaths=l,this._displayList[this._displayListLen++]=j}}},addRoot:function(e){this._elements[e.id]||(e instanceof f&&e.addChildrenToStorage(this),this.addToMap(e),this._roots.push(e))},delRoot:function(h){if(null==h){for(var k=0;k<this._roots[aD];k++){var j=this._roots[k];j instanceof f&&j.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void (this._displayListLen=0)}if(h instanceof Array){for(var k=0,g=h[aD];g>k;k++){this.delRoot(h[k])}}else{var l;l=typeof h==aa?this._elements[h]:h;var i=a[aP](this._roots,l);i>=0&&(this.delFromMap(l.id),this._roots[a8](i,1),l instanceof f&&l.delChildrenFromStorage(this))}},addToMap:function(e){return e instanceof f&&(e.__storage=this),e.dirty(),this._elements[e.id]=e,this},get:function(e){return this._elements[e]},delFromMap:function(h){var j=this._elements,g=j[h];return g&&(delete j[h],g instanceof f&&(g.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},c}),aG("zrender/animation/Animation",[a2,aH,"../core/event","./Animator"],function(d){var g=d(aH),c=d("../core/event").Dispatcher,h=typeof window!==at&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(a){setTimeout(a,16)},f=d("./Animator"),b=function(a){a=a||{},this.stage=a.stage||{},this.onframe=a.onframe||function(){},this._clips=[],this._running=!1,this._time=0,c.call(this)};return b[aU]={constructor:b,addClip:function(a){this._clips.push(a)},addAnimator:function(j){j[al]=this;for(var k=j.getClips(),a=0;a<k[aD];a++){this.addClip(k[a])}},removeClip:function(e){var a=g[aP](this._clips,e);a>=0&&this._clips[a8](a,1)},removeAnimator:function(j){for(var k=j.getClips(),a=0;a<k[aD];a++){this.removeClip(k[a])}j[al]=null},_update:function(){for(var w=(new Date).getTime(),u=w-this._time,q=this._clips,m=q[aD],j=[],v=[],k=0;m>k;k++){var x=q[k],p=x.step(w);p&&(j.push(p),v.push(x))}for(var k=0;m>k;){q[k]._needsRemove?(q[k]=q[m-1],q.pop(),m--):k++}m=j[aD];for(var k=0;m>k;k++){v[k].fire(j[k])}this._time=w,this.onframe(u),this[bj]("frame",u),this.stage[a0]&&this.stage[a0]()},start:function(){function a(){i._running&&(h(a),i._update())}var i=this;this._running=!0,this._time=(new Date).getTime(),h(a)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(j,k){k=k||{};var a=new f(j,k.loop,k.getter,k.setter);return a}},g.mixin(b,c),b}),aG("zrender/Painter",[a2,"./config","./core/util","./Layer"],function(w){function k(a){return parseInt(a,10)}function j(a){return a?a.isBuildin?!0:typeof a[bv]!==aN||typeof a.refresh!==aN?!1:!0:!1}function g(a){a.__unusedCount++}function b(a){a.__dirty=!1,1==a.__unusedCount&&a.clear()}function q(c,d,a){return at.copy(c[a1]()),c[bu]&&at[aK](c[bu]),aE.width=d,aE[bq]=a,!at.intersect(aE)}function f(c,d){if(!c||!d||c[aD]!==d[aD]){return !0}for(var a=0;a<c[aD];a++){if(c[a]!==d[a]){return !0}}}function x(l,s){for(var d=0;d<l[aD];d++){var v,o=l[d];o[bu]&&(v=o[bu],s[bu](v[0],v[1],v[2],v[3],v[4],v[5]));var c=o.path;c.beginPath(s),o.buildPath(c,o.shape),s.clip(),o[bu]&&(v=o.invTransform,s[bu](v[0],v[1],v[2],v[3],v[4],v[5]))}}var h=w("./config"),p=w("./core/util"),m=w("./Layer"),u=function(D,z,y){var v=!D.nodeName||"CANVAS"===D.nodeName.toUpperCase();y=y||{},this.dpr=y.devicePixelRatio||h.devicePixelRatio,this._singleCanvas=v,this.root=D;var d=D.style;if(d&&(d["-webkit-tap-highlight-color"]="transparent",d["-webkit-user-select"]="none",d["user-select"]="none",d["-webkit-touch-callout"]="none",D.innerHTML=""),this.storage=z,v){var B=D.width,l=D[bq];this._width=B,this._height=l;var E=new m(D,this,1);E.initContext(),this._layers={0:E},this._zlevelList=[0]}else{var B=this._getWidth(),l=this._getHeight();this._width=B,this._height=l;var A=document[aF]("div");this._domRoot=A;var C=A.style;C[aW]="relative",C.overflow="hidden",C.width=this._width+"px",C[bq]=this._height+"px",D.appendChild(A),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return u[aU]={constructor:u,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(l){var s=this.storage.getDisplayList(!0),d=this._zlevelList;this._paintList(s,l);for(var v=0;v<d[aD];v++){var o=d[v],c=this._layers[o];!c.isBuildin&&c.refresh&&c.refresh()}return this},_paintList:function(G,B){null==B&&(B=!1),this._updateLayerStatus(G);var r,o,D,s=this._width,C=this._height;this.eachBuildinLayer(g);for(var A=null,a=0,z=G[aD];z>a;a++){var F=G[a],n=this._singleCanvas?0:F[aO];if(o!==n&&(o=n,r=this.getLayer(o),r.isBuildin||am("ZLevel "+o+" has been used by unkown layer "+r.id),D=r.ctx,r.__unusedCount=0,(r.__dirty||B)&&r.clear()),(r.__dirty||B)&&!F.invisible&&0!==F.style[aZ]&&F.scale[0]&&F.scale[1]&&(!F.culling||!q(F,s,C))){var E=F.__clipPaths;f(E,A)&&(A&&D.restore(),E&&(D.save(),x(E,D)),A=E),F.beforeBrush&&F.beforeBrush(D),F.brush(D,!1),F.afterBrush&&F.afterBrush(D)}F.__dirty=!1}A&&D.restore(),this.eachBuildinLayer(b)},getLayer:function(a){if(this._singleCanvas){return this._layers[0]}var c=this._layers[a];return c||(c=new m("zr_"+a,this,this.dpr),c.isBuildin=!0,this._layerConfig[a]&&p.merge(c,this._layerConfig[a],!0),this.insertLayer(a,c),c.initContext()),c},insertLayer:function(C,z){var v=this._layers,d=this._zlevelList,B=d[aD],i=null,D=-1,y=this._domRoot;if(v[C]){return void am("ZLevel "+C+" has been used already")}if(!j(z)){return void am("Layer of zlevel "+C+" is not valid")}if(B>0&&C>d[0]){for(D=0;B-1>D&&!(d[D]<C&&d[D+1]>C);D++){}i=v[d[D]]}if(d[a8](D+1,0,C),i){var A=i.dom;A.nextSibling?y.insertBefore(z.dom,A.nextSibling):y.appendChild(z.dom)}else{y.firstChild?y.insertBefore(z.dom,y.firstChild):y.appendChild(z.dom)}v[C]=z},eachLayer:function(c,l){var a,o,d=this._zlevelList;for(o=0;o<d[aD];o++){a=d[o],c.call(l,this._layers[a],a)}},eachBuildinLayer:function(l,s){var d,v,o,c=this._zlevelList;for(o=0;o<c[aD];o++){v=c[o],d=this._layers[v],d.isBuildin&&l.call(s,d,v)}},eachOtherLayer:function(l,s){var d,v,o,c=this._zlevelList;for(o=0;o<c[aD];o++){v=c[o],d=this._layers[v],d.isBuildin||l.call(s,d,v)}},getLayers:function(){return this._layers},_updateLayerStatus:function(l){var z=this._layers,d={};this.eachBuildinLayer(function(a,i){d[i]=a.elCount,a.elCount=0});for(var B=0,y=l[aD];y>B;B++){var c=l[B],A=this._singleCanvas?0:c[aO],v=z[A];if(v){if(v.elCount++,v.__dirty){continue}v.__dirty=c.__dirty}}this.eachBuildinLayer(function(a,i){d[i]!==a.elCount&&(a.__dirty=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(a){a.clear()},configLayer:function(c,d){if(d){var a=this._layerConfig;a[c]?p.merge(a[c],d,!0):a[c]=d;var l=this._layers[c];l&&p.merge(l,a[c],!0)}},delLayer:function(c){var d=this._layers,a=this._zlevelList,l=d[c];l&&(l.dom.parentNode.removeChild(l.dom),delete d[c],a[a8](p[aP](a,c),1))},resize:function(c,d){var a=this._domRoot;if(a.style.display="none",c=c||this._getWidth(),d=d||this._getHeight(),a.style.display="",this._width!=c||d!=this._height){a.style.width=c+"px",a.style[bq]=d+"px";for(var l in this._layers){this._layers[l][bv](c,d)}this.refresh(!0)}return this._width=c,this._height=d,this},clearLayer:function(a){var c=this._layers[a];c&&c.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(l){if(l=l||{},this._singleCanvas){return this._layers[0].dom}var s=new m("image",this,l.pixelRatio||this.dpr);s.initContext();var d=s.ctx;s.clearColor=l.backgroundColor,s.clear();for(var v=this.storage.getDisplayList(!0),o=0;o<v[aD];o++){var c=v[o];c.invisible||(c.beforeBrush&&c.beforeBrush(d),c.brush(d,!1),c.afterBrush&&c.afterBrush(d))}return s.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var c=this.root,a=document.defaultView.getComputedStyle(c);return(c.clientWidth||k(a.width)||k(c.style.width))-(k(a.paddingLeft)||0)-(k(a.paddingRight)||0)|0},_getHeight:function(){var c=this.root,a=document.defaultView.getComputedStyle(c);return(c.clientHeight||k(a[bq])||k(c.style[bq]))-(k(a.paddingTop)||0)-(k(a.paddingBottom)||0)|0},_pathToImage:function(z,y,t,c,A){var d=document[aF]("canvas"),C=d.getContext("2d");d.width=t*A,d[bq]=c*A,C.clearRect(0,0,t*A,c*A);var v={position:y[aW],rotation:y.rotation,scale:y.scale};y[aW]=[0,0,0],y.rotation=0,y.scale=[1,1],y&&y.brush(C);var B=new p({id:z,style:{x:0,y:0,image:d}});return null!=v[aW]&&(B[aW]=y[aW]=v[aW]),null!=v.rotation&&(B.rotation=y.rotation=v.rotation),null!=v.scale&&(B.scale=y.scale=v.scale),B},_createPathToImage:function(){var a=this;return function(l,c,o,d){return a._pathToImage(l,c,o,d,a.dpr)}}},u}),aG("echarts/data/DataDiffer",[a2],function(){function b(d){return d}function c(g,d,h,f){this._old=g,this._new=d,this._oldKeyGetter=h||b,this._newKeyGetter=f||b}function a(g,j,f){for(var k=0;k<g[aD];k++){var h=f(g[k]),d=j[h];null==d?j[h]=k:(d[aD]||(j[h]=d=[d]),d.push(k))}}return c[aU]={constructor:c,add:function(d){return this._add=d,this},update:function(d){return this._update=d,this},remove:function(d){return this._remove=d,this},execute:function(){var p,i=this._old,g=this._new,d=this._oldKeyGetter,k=this._newKeyGetter,f={},q={};for(a(i,f,d),a(g,q,k),p=0;p<i[aD];p++){var h=d(i[p]),j=q[h];if(null!=j){var m=j[aD];m?(1===m&&(q[h]=null),j=j.unshift()):q[h]=null,this._update&&this._update(j,p)}else{this._remove&&this._remove(p)}}for(var h in q){if(q.hasOwnProperty(h)){var j=q[h];if(null==j){continue}if(j[aD]){for(var p=0,m=j[aD];m>p;p++){this._add&&this._add(j[p])}}else{this._add&&this._add(j)}}}}},c}),aG("zrender/core/event",[a2,"../mixin/Eventful"],function(d){function h(a){return a.getBoundingClientRect?a.getBoundingClientRect():{left:0,top:0}}function c(m,l){if(l=l||window.event,null!=l.zrX){return l}var v=l.type,q=v&&v[aP]("touch")>=0;if(q){var e="touchend"!=v?l.targetTouches[0]:l.changedTouches[0];if(e){var u=h(m);l.zrX=e.clientX-u.left,l.zrY=e.clientY-u.top}}else{var p=h(m);l.zrX=l.clientX-p.left,l.zrY=l.clientY-p.top,l.zrDelta=l.wheelDelta?l.wheelDelta/120:-(l.detail||0)/3}return l}function k(l,m,a){j?l.addEventListener(m,a):l.attachEvent("on"+m,a)}function g(l,m,a){j?l.removeEventListener(m,a):l.detachEvent("on"+m,a)}var b=d("../mixin/Eventful"),j=typeof window!==at&&!!window.addEventListener,f=j?function(a){a.preventDefault(),a.stopPropagation(),a.cancelBubble=!0}:function(a){a.returnValue=!1,a.cancelBubble=!0};return{normalizeEvent:c,addEventListener:k,removeEventListener:g,stop:f,Dispatcher:b}}),aG("zrender/mixin/Draggable",[a2],function(){function a(){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 a[aU]={constructor:a,_dragStart:function(b){var c=b[a6];c&&c.draggable&&(this._draggingTarget=c,c.dragging=!0,this._x=b.offsetX,this._y=b.offsetY,this._dispatchProxy(c,"dragstart",b.event))},_drag:function(d){var h=this._draggingTarget;if(h){var c=d.offsetX,k=d.offsetY,g=c-this._x,b=k-this._y;this._x=c,this._y=k,h.drift(g,b,d),this._dispatchProxy(h,"drag",d.event);var j=this.findHover(c,k,h),f=this._dropTarget;this._dropTarget=j,h!==j&&(f&&j!==f&&this._dispatchProxy(f,"dragleave",d.event),j&&j!==f&&this._dispatchProxy(j,"dragenter",d.event))}},_dragEnd:function(b){var c=this._draggingTarget;c&&(c.dragging=!1),this._dispatchProxy(c,"dragend",b.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",b.event),this._draggingTarget=null,this._dropTarget=null}},a}),aG("zrender/core/GestureMgr",[a2],function(){function b(g){var h=g[1][0]-g[0][0],f=g[1][1]-g[0][1];return Math.sqrt(h*h+f*f)}function c(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var a=function(){this._track=[]};a[aU]={constructor:a,recognize:function(f,g){return this._doTrack(f,g),this._recognize(f)},clear:function(){return this._track[aD]=0,this},_doTrack:function(h,k){var g=h.touches;if(g){for(var m={points:[],touches:[],target:k,event:h},j=0,f=g[aD];f>j;j++){var l=g[j];m.points.push([l.clientX,l.clientY]),m.touches.push(l)}this._track.push(m)}},_recognize:function(g){for(var h in d){if(d.hasOwnProperty(h)){var f=d[h](this._track,g);if(f){return f}}}}};var d={pinch:function(g,m){var j=g[aD];if(j){var f=(g[j-1]||{}).points,k=(g[j-2]||{}).points||f;if(k&&k[aD]>1&&f&&f[aD]>1){var h=b(f)/b(k);!isFinite(h)&&(h=1),m.pinchScale=h;var e=c(f);return m.pinchX=e[0],m.pinchY=e[1],{type:"pinch",target:g[0][a6],event:m}}}}};return a}),aG("zrender/Layer",[a2,"./core/util","./config"],function(d){function g(){return !1}function c(l,q,k,v){var p=document[aF](q),j=k[bl](),u=k[ag](),m=p.style;return m[aW]="absolute",m.left=0,m.top=0,m.width=j+"px",m[bq]=u+"px",p.width=j*v,p[bq]=u*v,p.setAttribute("data-zr-dom-id",l),p}var h=d("./core/util"),f=d("./config"),b=function(j,i,m){var k;m=m||f.devicePixelRatio,typeof j===aa?k=c(j,"canvas",i,m):h[aJ](j)&&(k=j,j=k.id),this.id=j,this.dom=k;var e=k.style;e&&(k.onselectstart=g,e["-webkit-user-select"]="none",e["user-select"]="none",e["-webkit-touch-callout"]="none",e["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=i,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=0.7,this.dpr=m};return b[aU]={constructor:b,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d");var a=this.dpr;1!=a&&this.ctx.scale(a,a)},createBackBuffer:function(){var a=this.dpr;this.domBack=c("back-"+this.id,"canvas",this.painter,a),this.ctxBack=this.domBack.getContext("2d"),1!=a&&this.ctxBack.scale(a,a)},resize:function(l,o){var k=this.dpr,p=this.dom,m=p.style,j=this.domBack;m.width=l+"px",m[bq]=o+"px",p.width=l*k,p[bq]=o*k,1!=k&&this.ctx.scale(k,k),j&&(j.width=l*k,j[bq]=o*k,1!=k&&this.ctxBack.scale(k,k))},clear:function(x){var u=this.dom,q=this.ctx,m=u.width,j=u[bq],w=this.clearColor,k=this.motionBlur&&!x,y=this.lastFrameAlpha,p=this.dpr;if(k&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(u,0,0,m/p,j/p)),q.clearRect(0,0,m/p,j/p),w&&(q.save(),q.fillStyle=this.clearColor,q.fillRect(0,0,m/p,j/p),q.restore()),k){var v=this.domBack;q.save(),q.globalAlpha=y,q.drawImage(v,0,0,m/p,j/p),q.restore()}}},b}),aG("echarts/preprocessor/helper/compatStyle",[a2,br],function(b){function c(f){var g=f&&f.itemStyle;g&&a.each(d,function(i){var h=g[a3],e=g[bi];h&&h[i]&&(f[i]=f[i]||{},f[i][a3]?a.merge(f[i][a3],h[i]):f[i][a3]=h[i],h[i]=null),e&&e[i]&&(f[i]=f[i]||{},f[i][bi]?a.merge(f[i][bi],e[i]):f[i][bi]=e[i],e[i]=null)})}var a=b(br),d=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(g){if(g){c(g),c(g.markPoint),c(g.markLine);var k=g.data;if(k){for(var i=0;i<k[aD];i++){c(k[i])}var f=g.markPoint;if(f&&f.data){for(var j=f.data,i=0;i<j[aD];i++){c(j[i])}}var h=g.markLine;if(h&&h.data){for(var e=h.data,i=0;i<e[aD];i++){a[aA](e[i])?(c(e[i][0]),c(e[i][1])):c(e[i])}}}}}}),aG("echarts/component/tooltip/TooltipContent",[a2,br,"zrender/core/event","../../util/format","zrender/core/env"],function(A){function n(c){var d="cubic-bezier(0.23, 1, 0.32, 1)",a="left "+c+"s "+d+",top "+c+"s "+d;return B.map(m,function(e){return e+"transition:"+a}).join(";")}function k(c){var d=[],a=c.get("fontSize"),g=c.getTextColor();return g&&d.push("color:"+g),d.push("font:"+c[aR]()),a&&d.push("line-height:"+Math.round(3*a/2)+"px"),l(["decoration","align"],function(e){var h=c.get(e);h&&d.push("text-"+e+":"+h)}),d.join(";")}function b(e){e=e;var h=[],d=e.get("transitionDuration"),i=e.get("backgroundColor"),g=e[bo](ba),p=e.get("padding");return d&&h.push(n(d)),i&&(f.canvasSupported?h.push("background-Color:"+i):(h.push("background-Color:#"+ay.toHex(i)),h.push("filter:alpha(opacity=70)"))),l(["width","color",av],function(r){var o="border-"+r,s=q(o),c=e.get(s);null!=c&&h.push(o+":"+c+("color"===r?"":"px"))}),h.push(k(g)),null!=p&&h.push("padding:"+z.normalizeCssArray(p).join("px ")+"px"),h.join(";")+";"}function x(c,g){var a=document[aF]("div"),h=g.getZr();this.el=a,this._x=g[bl]()/2,this._y=g[ag]()/2,c.appendChild(a),this._container=c,this._show=!1,this._hideTimeout;var d=this;a.onmouseenter=function(){d.enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0},a.onmousemove=function(p){if(!d.enterable){var o=h.handler;w.normalizeEvent(c,p),o.dispatch("mousemove",p)}},a.onmouseleave=function(){d.enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1},j(a,c)}function j(c,d){function a(e){g(e[a6])&&e.preventDefault()}function g(e){for(;e&&e!==d;){if(e===c){return !0}e=e.parentNode}}w.addEventListener(d,"touchstart",a),w.addEventListener(d,"touchmove",a),w.addEventListener(d,"touchend",a)}var B=A(br),w=A("zrender/core/event"),z=A("../../util/format"),l=B.each,q=z.toCamelCase,f=A("zrender/core/env"),m=["","-webkit-","-moz-","-o-"],y="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return x[aU]={constructor:x,enterable:!0,update:function(){var c=this._container,d=c.currentStyle||document.defaultView.getComputedStyle(c),a=c.style;"absolute"!==a[aW]&&"absolute"!==d[aW]&&(a[aW]="relative")},show:function(a){clearTimeout(this._hideTimeout),this.el.style.cssText=y+b(a)+";left:"+this._x+"px;top:"+this._y+"px;"+(a.get("extraCssText")||""),this._show=!0},setContent:function(a){var c=this.el;c.innerHTML=a,c.style.display=a?"block":"none"},moveTo:function(c,d){var a=this.el.style;a.left=c+"px",a.top=d+"px",this._x=c,this._y=d},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(a){!this._show||this._inContent&&this.enterable||(a?(this._hideDelay=a,this._show=!1,this._hideTimeout=setTimeout(B.bind(this.hide,this),a)):this.hide())},isShow:function(){return this._show}},x}),aG("echarts/component/helper/selectableMixin",[a2,br],function(a){var b=a(br);return{updateSelectedMap:function(c){this._selectTargetMap=b.reduce(c||[],function(d,f){return d[f.name]=f,d},{})},select:function(d){var c=this._selectTargetMap,f=c[d],e=this.get("selectedMode");"single"===e&&b.each(c,function(g){g.selected=!1}),f&&(f.selected=!0)},unSelect:function(c){var d=this._selectTargetMap[c];d&&(d.selected=!1)},toggleSelected:function(c){var d=this._selectTargetMap[c];return null!=d?(this[d.selected?"unSelect":"select"](c),d.selected):void 0},isSelected:function(c){var d=this._selectTargetMap[c];return d&&d.selected}}}),aG("echarts/chart/pie/labelLayout",[a2,"zrender/contain/text"],function(b){function c(F,A,w,q,j,D,m){function G(h,f,l){for(var g=h;f>g;g++){if(F[g].y+=l,g>h&&f>g+1&&F[g+1].y>F[g].y+F[g][bq]){return void v(g,l/2)}}v(f-1,l/2)}function v(g,f){for(var h=g;h>=0&&(F[h].y-=f,!(h>0&&F[h].y>F[h-1].y+F[h-1][bq]));h--){}}function C(P,K,I,p,f,N){for(var g=N>0?K?Number.MAX_VALUE:0:K?Number.MAX_VALUE:0,Q=0,H=P[aD];H>Q;Q++){if(P[Q][aW]!==bh){var M=Math.abs(P[Q].y-p),O=P[Q].len,J=P[Q].len2,L=f+O>M?Math.sqrt((f+O+J)*(f+O+J)-M*M):Math.abs(P[Q].x-I);K&&L>=g&&(L=g-10),!K&&g>=L&&(L=g+10),P[Q].x=I+L*N,g=L}}}F.sort(function(f,g){return f.y-g.y});for(var E,x=0,B=F[aD],z=[],k=[],y=0;B>y;y++){E=F[y].y-x,0>E&&G(y,B,-E,j),x=F[y].y+F[y][bq]}0>m-x&&v(B-1,x-m);for(var y=0;B>y;y++){F[y].y>=w?k.push(F[y]):z.push(F[y])}C(z,!1,A,w,q,j),C(k,!0,A,w,q,j)}function a(w,k,g,e,q,f){for(var x=[],j=[],p=0;p<w[aD];p++){w[p].x<k?x.push(w[p]):j.push(w[p])}c(j,k,g,e,1,q,f),c(x,k,g,e,-1,q,f);for(var p=0;p<w[aD];p++){var v=w[p].linePoints;if(v){var m=v[1][0]-v[2][0];v[2][0]=w[p].x<k?w[p].x+3:w[p].x-3,v[1][1]=v[2][1]=w[p].y,v[1][0]=v[2][0]+m}}}var d=b("zrender/contain/text");return function(n,i,f,k){var g,p,h=n[ax](),j=[],m=!1;h.each(function(V){var Q,ae,Y,X,T=h.getItemLayout(V),W=h[aC](V),H=W[bo]("label.normal"),t=H.get(aW)||W.get("label.emphasis.position"),B=W[bo]("labelLine.normal"),be=B.get(aD),Z=B.get("length2"),G=(T.startAngle+T.endAngle)/2,e=Math.cos(G),R=Math.sin(G);g=T.cx,p=T.cy;var N=t===aw||"inner"===t;if(t===bh){Q=T.cx,ae=T.cy,X=bh}else{var q=(N?(T.r+T.r0)/2*e:T.r*e)+g,l=(N?(T.r+T.r0)/2*R:T.r*R)+p;if(Q=q+3*e,ae=l+3*R,!N){var s=q+e*(be+i-T.r),U=l+R*(be+i-T.r),u=s+(0>e?-1:1)*Z,M=U;Q=u+(0>e?-5:5),ae=M,Y=[[q,l],[s,U],[u,M]]}X=N?bh:e>0?"left":"right"}var o=H[bo](ba)[aR](),K=H.get("rotate")?0>e?-G+Math.PI:-G:0,J=n.getFormattedLabel(V,a3)||h[aT](V);m=!!K,T.label={x:Q,y:ae,position:t,height:a9[bq],len:be,len2:Z,linePoints:Y,textAlign:X,verticalAlign:"middle",font:o,rotation:K},N||j.push(T.label)}),!m&&n.get("avoidLabelOverlap")&&a(j,g,p,i,f,k)}}),aG("zrender",["zrender/zrender"],function(a){return a}),aG("echarts",["echarts/echarts"],function(a){return a});var bp=an("echarts");return bp.graphic=an("echarts/util/graphic"),bp.number=an("echarts/util/number"),bp.format=an("echarts/util/format"),an("echarts/chart/pie"),an("echarts/component/tooltip"),bp});