text: !function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexOf(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof Array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],c=0,h=Math.min(e.length,n.length);h>c;c++){var u,d=i(e[c],r);switch(d){case"require":u=l&&l.require||t;break;case"exports":u=l.exports;break;case"module":u=l;break;default:u=a(d)}s.push(u)}return s}function a(t){var e=o[t];if(!e)throw new Error("No "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){if(2===arguments.length&&(i=e,e=[],"function"!=typeof i)){var r=i;i=function(){return r}}o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="padding",n="../../echarts",r="getRect",a="dataToCoord",o="getLabel",s="../echarts",l="getLineStyle",c="isHorizontal",h="getAxis",u="dataToPoint",d="getExtent",f="getOtherAxis",p="getBaseAxis",v="execute",m="getFormattedLabel",g="getItemStyle",y="circle",_="symbol",x="symbolSize",b="createSymbol",w="updateData",M="../../util/number",S="../../util/graphic",k="../../util/symbol",A="category",C="coordinateSystem",T="../../util/model",D="setItemGraphicEl",L="getItemVisual",z="setItemLayout",P="getItemLayout",I="getVisual",O="mapArray",R="getDataExtent",B="dimensions",Z="extendComponentView",E="extendComponentModel",N="registerVisualCoding",V="registerLayout",F="registerAction",G="registerProcessor",H="hostModel",W="eachComponent",q="dataZoom",j="itemStyle",U="eachSeries",X="eachSeriesByType",$="setItemVisual",Y="setVisual",Q="dispose",K="canvasSupported",J="clientHeight",tt="backgroundColor",et="appendChild",it="innerHTML",nt="intersect",rt="resize",at="update",ot="zlevel",st="getDisplayList",lt="storage",ct="parentNode",ht="offsetY",ut="offsetX",dt="mousemove",ft="zrender/core/event",pt="initProps",vt="updateProps",mt="getTextColor",gt="mouseout",yt="mouseover",_t="setHoverStyle",xt="hoverStyle",bt="setStyle",wt="subPixelOptimizeRect",Mt="extendShape",St="Polyline",kt="Sector",At="points",Ct="setShape",Tt="restore",Dt="buildPath",Lt="closePath",zt="bezierCurveTo",Pt="lineTo",It="moveTo",Ot="beginPath",Rt="contain",Bt="textBaseline",Zt="textAlign",Et="textPosition",Nt="eachItemGraphicEl",Vt="indexOfName",Ft="getItemGraphicEl",Gt="dataIndex",Ht="trigger",Wt="render",qt="removeAll",jt="updateLayout",Ut="invisible",Xt="traverse",$t="delFromMap",Yt="addToMap",Qt="remove",Kt="__dirty",Jt="refresh",te="ignore",ee="draggable",ie="animate",ne="stopAnimation",re="animation",ae="zrender/tool/color",oe="target",se="transformCoordToLocal",le="rotate",ce="getLocalTransform",he="parent",ue="transform",de="rotation",fe="zrender/mixin/Eventful",pe="addCommas",ve="getDataParams",me="getItemModel",ge="getName",ye="getRawIndex",_e="getRawValue",xe="ordinal",be="getData",we="seriesIndex",Me="normal",Se="emphasis",ke="axisIndex",Ae="radius",Ce="getComponent",Te="register",De="dispatchAction",Le="getHeight",ze="getWidth",Pe="getDom",Ie="splice",Oe="findComponents",Re="isString",Be="series",Ze="mergeOption",Ee="isObject",Ne="mergeDefaultAndTheme",Ve="getLayoutRect",Fe="vertical",Ge="childAt",He="position",We="eachChild",qe="toUpperCase",je="toLowerCase",Ue="getPixelPrecision",Xe="toFixed",$e="parsePercent",Ye="linearMap",Qe="replace",Ke="option",Je="../util/clazz",ti="getFont",ei="getBoundingRect",ii="textStyle",ni="getModel",ri="ecModel",ai="substr",oi="defaults",si="inside",li="center",ci="middle",hi="bottom",ui="../core/BoundingRect",di="../core/util",fi="zrender/contain/text",pi="create",vi="height",mi="applyTransform",gi="zrender/core/BoundingRect",yi="distance",_i="undefined",xi="zrender/core/vector",bi="opacity",wi="stroke",Mi="lineWidth",Si="getShallow",ki="isArray",Ai="getClass",Ci="enableClassManagement",Ti="inherits",Di="extend",Li="enableClassExtend",zi="parseClassType",Pi="function",Ii="concat",Oi="number",Ri="string",Bi="indexOf",Zi="getContext",Ei="canvas",Ni="createElement",Vi="length",Fi="object",Gi="filter",Hi="zrender/core/util",Wi="prototype",qi="require";e("zrender/graphic/Gradient",[qi],function(t){var e=function(t){this.colorStops=t||[]};return e[Wi]={constructor:e,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},e}),e(Hi,[qi,"../graphic/Gradient"],function(t){function e(t){if(typeof t==Fi&&null!==t){var i=t;if(t instanceof Array){i=[];for(var n=0,r=t[Vi];r>n;n++)i[n]=e(t[n])}else if(!M(t)&&!S(t)){i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e(t[a]))}return i}return t}function i(t,n,r){if(t){if(!n)return t;for(var a in n)if(n.hasOwnProperty(a)){var o=t[a],s=n[a];!w(s)||!w(o)||_(s)||_(o)||S(s)||S(o)||M(s)||M(o)?!r&&a in t||(t[a]=e(n[a],!0)):i(o,s,r)}return t}}function n(t,e){for(var n=t[0],r=1,a=t[Vi];a>r;r++)n=i(n,t[r],e);return n}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function o(){return document[Ni](Ei)}function s(){return T||(T=E.createCanvas()[Zi]("2d")),T}function l(t,e){if(t){if(t[Bi])return t[Bi](e);for(var i=0,n=t[Vi];n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t[Wi];i[Wi]=e[Wi],t[Wi]=new i;for(var r in n)t[Wi][r]=n[r];t[Wi].constructor=t,t.superClass=e}function h(t,e,i){t=Wi in t?t[Wi]:t,e=Wi in e?e[Wi]:e,a(t,e,i)}function u(t){return t?typeof t==Ri?!1:typeof t[Vi]==Oi:void 0}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===I)t.forEach(e,i);else if(t[Vi]===+t[Vi])for(var n=0,r=t[Vi];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function f(t,e,i){if(t&&e){if(t.map&&t.map===B)return t.map(e,i);for(var n=[],r=0,a=t[Vi];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===Z)return t.reduce(e,i,n);for(var r=0,a=t[Vi];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function v(t,e,i){if(t&&e){if(t[Gi]&&t[Gi]===O)return t[Gi](e,i);for(var n=[],r=0,a=t[Vi];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function m(t,e,i){if(t&&e)for(var n=0,r=t[Vi];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function g(t,e){var i=R.call(arguments,2);return function(){return t.apply(e,i[Ii](R.call(arguments)))}}function y(t){var e=R.call(arguments,1);return function(){return t.apply(this,e[Ii](R.call(arguments)))}}function _(t){return"[object Array]"===z.call(t)}function x(t){return typeof t===Pi}function b(t){return"[object String]"===z.call(t)}function w(t){var e=typeof t;return e===Pi||!!t&&e==Fi}function M(t){return!!L[z.call(t)]||t instanceof D}function S(t){return t&&1===t.nodeType&&typeof t.nodeName==Ri}function k(t){for(var e=0,i=arguments[Vi];i>e;e++)if(null!=arguments[e])return arguments[e]}function A(){return Function.call.apply(R,arguments)}function C(t,e){if(!t)throw new Error(e)}var T,D=t("../graphic/Gradient"),L={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},z=Object[Wi].toString,P=Array[Wi],I=P.forEach,O=P[Gi],R=P.slice,B=P.map,Z=P.reduce,E={inherits:c,mixin:h,clone:e,merge:i,mergeAll:n,extend:r,defaults:a,getContext:s,createCanvas:o,indexOf:l,slice:A,find:m,isArrayLike:u,each:d,map:f,reduce:p,filter:v,bind:g,curry:y,isArray:_,isString:b,isObject:w,isFunction:x,isBuildInObject:M,isDom:S,retrieve:k,assert:C,noop:function(){}};return E}),e("echarts/util/clazz",[qi,Hi],function(t){function e(t,e){for(var i,n=t.constructor,r=t[e];(n=n.$superClass)&&(i=n[Wi][e])&&i===r;);return i}var i=t(Hi),n={},r=".",a="___EC__COMPONENT__CONTAINER___",o=n[zi]=function(t){var e={main:"",sub:""};return t&&(t=t.split(r),e.main=t[0]||"",e.sub=t[1]||""),e};return n[Li]=function(t,n){t[Di]=function(r){var a=function(){n&&n.apply(this,arguments),t.apply(this,arguments)};return i[Di](a[Wi],i[Di]({$superCall:function(t){var n=i.slice(arguments,1);return e(this,t).apply(this,n)},$superApply:function(t,i){return e(this,t).apply(this,i)}},r)),a[Di]=this[Di],i[Ti](a,this),a.$superClass=this,a}},n[Ci]=function(t,e){function n(t){var e=r[t.main];return e&&e[a]||(e=r[t.main]={},e[a]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(e=o(e),e.sub){if(e.sub!==a){var i=n(e);i[e.sub]=t}}else{if(r[e.main])throw new Error(e.main+"exists");r[e.main]=t}return t},t[Ai]=function(t,e,i){var n=r[t];if(n&&n[a]&&(n=e?n[e]:null),i&&!n)throw new Error("Component "+t+"."+(e||"")+" not exists");return n},t.getClassesByMainType=function(t){t=o(t);var e=[],n=r[t.main];return n&&n[a]?i.each(n,function(t,i){i!==a&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=o(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(r,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=o(t);var e=r[t.main];return e&&e[a]},t[zi]=o,e.registerWhenExtend){var s=t[Di];s&&(t[Di]=function(e){var i=s.call(this,e);return t.registerClass(i,e.type)})}return t},n.setReadOnly=function(t,e){i[ki](e)||(e=null!=e?[e]:[]),i.each(e,function(e){var n=t[e];Object.defineProperty&&Object.defineProperty(t,e,{value:n,writable:!1}),i[ki](t[e])&&Object.freeze&&Object.freeze(t[e])})},n}),e("echarts/model/mixin/makeStyleMapper",[qi,Hi],function(t){var e=t(Hi);return function(t){for(var i=0;i<t[Vi];i++)t[i][1]||(t[i][1]=t[i][0]);return function(i){for(var n={},r=0;r<t[Vi];r++){var a=t[r][1];if(!(i&&e[Bi](i,a)>=0)){var o=this[Si](a);null!=o&&(n[t[r][0]]=o)}}return n}}}),e("echarts/model/mixin/lineStyle",[qi,"./makeStyleMapper"],function(t){var e=t("./makeStyleMapper")([[Mi,"width"],[wi,"color"],[bi],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);return{getLineStyle:function(t){var i=e.call(this,t),n=this.getLineDash();return n&&(i.lineDash=n),i},getLineDash:function(){var t=this.get("type");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("echarts/model/mixin/areaStyle",[qi,"./makeStyleMapper"],function(t){return{getAreaStyle:t("./makeStyleMapper")([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],[bi],["shadowColor"]])}}),e(xi,[],function(){var t=typeof Float32Array===_i?Array:Float32Array,e={create:function(e,i){var n=new t(2);return n[0]=e||0,n[1]=i||0,n},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(e){var i=new t(2);return i[0]=e[0],i[1]=e[1],i},set:function(t,e,i){return t[0]=e,t[1]=i,t},add:function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t},scaleAndAdd:function(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t},sub:function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t},normalize:function(t,i){var n=e.len(i);return 0===n?(t[0]=0,t[1]=0):(t[0]=i[0]/n,t[1]=i[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t},applyTransform:function(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t},min:function(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t},max:function(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}};return e[Vi]=e.len,e.lengthSquare=e.lenSquare,e.dist=e[yi],e.distSquare=e.distanceSquare,e}),e("zrender/core/matrix",[],function(){var t=typeof Float32Array===_i?Array:Float32Array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],c=Math.sin(i),h=Math.cos(i);return t[0]=n*h+o*c,t[1]=-n*c+o*h,t[2]=r*h+s*c,t[3]=-r*c+h*s,t[4]=h*a+c*l,t[5]=h*l-c*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e(gi,[qi,"./vector","./matrix"],function(t){function e(t,e,i,n){this.x=t,this.y=e,this.width=i,this[vi]=n}var i=t("./vector"),n=t("./matrix"),r=i[mi],a=Math.min,o=Math.abs,s=Math.max;return e[Wi]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=s(t.x+t.width,this.x+this.width)-e,this[vi]=s(t.y+t[vi],this.y+this[vi])-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[];return function(i){i&&(t[0]=this.x,t[1]=this.y,e[0]=this.x+this.width,e[1]=this.y+this[vi],r(t,t,i),r(e,e,i),this.x=a(t[0],e[0]),this.y=a(t[1],e[1]),this.width=o(e[0]-t[0]),this[vi]=o(e[1]-t[1]))}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,r=t[vi]/e[vi],a=n[pi]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){var e=this,i=e.x,n=e.x+e.width,r=e.y,a=e.y+e[vi],o=t.x,s=t.x+t.width,l=t.y,c=t.y+t[vi];return!(o>n||i>s||l>a||r>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[vi]},clone:function(){return new e(this.x,this.y,this.width,this[vi])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[vi]=t[vi]}},e}),e(fi,[qi,di,ui],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[Vi];o>a;a++)r=Math.max(d.measureText(n[a],e).width,r);return l>c&&(l=0,s={}),l++,s[i]=r,r}function i(t,i,n,r){var a=((t||"")+"").split("\n")[Vi],o=e(t,i),s=e("国",i),l=a*s,c=new u(0,0,o,l);switch(c.lineHeight=s,r){case hi:case"alphabetic":c.y-=s;break;case ci:c.y-=s/2}switch(n){case"end":case"right":c.x-=c.width;break;case li:c.x-=c.width/2}return c}function n(t,e,i,n){var r=e.x,a=e.y,o=e[vi],s=e.width,l=i[vi],c=o/2-l/2,h="left";switch(t){case"left":r-=n,a+=c,h="right";break;case"right":r+=n+s,a+=c,h="left";break;case"top":r+=s/2,a-=n+l,h=li;break;case hi:r+=s/2,a+=o+n,h=li;break;case si:r+=s/2,a+=c,h=li;break;case"insideLeft":r+=n,a+=c,h="left";break;case"insideRight":r+=s-n,a+=c,h="right";break;case"insideTop":r+=s/2,a+=n,h=li;break;case"insideBottom":r+=s/2,a+=o-l-n,h=li;break;case"insideTopLeft":r+=n,a+=n,h="left";break;case"insideTopRight":r+=s-n,a+=n,h="right";break;case"insideBottomLeft":r+=n,a+=o-l-n;break;case"insideBottomRight":r+=s-n,a+=o-l-n,h="right"}return{x:r,y:a,textAlign:h,textBaseline:"top"}}function r(t,i,n,r){if(!n)return"";r=h[oi]({ellipsis:"...",minCharacters:3,maxIterations:3,cnCharWidth:e("国",i),ascCharWidth:e("a",i)},r,!0),n-=e(r.ellipsis);for(var o=(t+"").split("\n"),s=0,l=o[Vi];l>s;s++)o[s]=a(o[s],i,n,r);return o.join("\n")}function a(t,i,n,r){for(var a=0;;a++){var s=e(t,i);if(n>s||a>=r.maxIterations){t+=r.ellipsis;break}var l=0===a?o(t,n,r):Math.floor(t[Vi]*n/s);if(l<r.minCharacters){t="";break}t=t[ai](0,l)}return t}function o(t,e,i){for(var n=0,r=0,a=t[Vi];a>r&&e>n;r++){var o=t.charCodeAt(r);n+=o>=0&&127>=o?i.ascCharWidth:i.cnCharWidth}return r}var s={},l=0,c=5e3,h=t(di),u=t(ui),d={getWidth:e,getBoundingRect:i,adjustTextPositionOnRect:n,ellipsis:r,measureText:function(t,e){var i=h[Zi]();return i.font=e,i.measureText(t)}};return d}),e("echarts/model/mixin/textStyle",[qi,fi],function(t){function e(t,e){return t&&t[Si](e)}var i=t(fi);return{getTextColor:function(){var t=this[ri];return this[Si]("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this[ri],i=t&&t[ni](ii);return[this[Si]("fontStyle")||e(i,"fontStyle"),this[Si]("fontWeight")||e(i,"fontWeight"),(this[Si]("fontSize")||e(i,"fontSize")||12)+"px",this[Si]("fontFamily")||e(i,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){var e=this.get(ii)||{};return i[ei](t,this[ti](),e.align,e.baseline)},ellipsis:function(t,e,n){return i.ellipsis(t,this[ti](),e,n)}}}),e("echarts/model/mixin/itemStyle",[qi,"./makeStyleMapper"],function(t){return{getItemStyle:t("./makeStyleMapper")([["fill","color"],[wi,"borderColor"],[Mi,"borderWidth"],[bi],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/model/Model",[qi,Hi,Je,"./mixin/lineStyle","./mixin/areaStyle","./mixin/textStyle","./mixin/itemStyle"],function(t){function e(t,e,i){this.parentModel=e||null,this[ri]=i||null,this[Ke]=t,this.init.apply(this,arguments)}var i=t(Hi),n=t(Je);e[Wi]={constructor:e,init:function(t){},mergeOption:function(t){i.merge(this[Ke],t,!0)},get:function(t,e){if(!t)return this[Ke];typeof t===Ri&&(t=t.split("."));for(var i=this[Ke],n=this.parentModel,r=0;r<t[Vi]&&(i=i&&typeof i===Fi?i[t[r]]:null,null!=i);r++);return null==i&&n&&!e&&(i=n.get(t)),i},getShallow:function(t,e){var i=this[Ke],n=i&&i[t],r=this.parentModel;return null==n&&r&&!e&&(n=r[Si](t)),n},getModel:function(t,i){var n=this.get(t,!0),r=this.parentModel,a=new e(n,i||r&&r[ni](t),this[ri]);return a},isEmpty:function(){return null==this[Ke]},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i.clone(this[Ke]))},setReadOnly:function(t){n.setReadOnly(this,t)}},n[Li](e);var r=i.mixin;return r(e,t("./mixin/lineStyle")),r(e,t("./mixin/areaStyle")),r(e,t("./mixin/textStyle")),r(e,t("./mixin/itemStyle")),e}),e("echarts/util/component",[qi,Hi,"./clazz"],function(t){var e=t(Hi),i=t("./clazz"),n=i[zi],r=0,a={},o="_";return a.getUID=function(t){return[t||"",r++,Math.random()].join(o)},a.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=n(t),e[t.main]=i},t.determineSubType=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enableTopologicalTravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),c=l.originalDeps=i(s),h=a(c,t);l.entryCount=h[Vi],0===l.entryCount&&o.push(s),e.each(h,function(t){e[Bi](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[Bi](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[Bi](i,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,i,r,a){function o(t){c[t].entryCount--,0===c[t].entryCount&&h.push(t)}function s(t){u[t]=!0,o(t)}if(t[Vi]){var l=n(i),c=l.graph,h=l.noEntryList,u={};for(e.each(t,function(t){u[t]=!0});h[Vi];){var d=h.pop(),f=c[d],p=!!u[d];p&&(r.call(a,d,f.originalDeps.slice()),delete u[d]),e.each(f.successor,p?s:o)}e.each(u,function(){throw new Error("Circle dependency may exists")})}}},a}),e("echarts/util/number",[qi,Hi],function(t){function e(t){return t[Qe](/^\s+/,"")[Qe](/\s+$/,"")}var i=t(Hi),n={},r=1e-4;return n[Ye]=function(t,e,r,a){if(i[ki](t))return i.map(t,function(t){return n[Ye](t,e,r,a)});var o=e[1]-e[0];if(0===o)return(r[0]+r[1])/2;var s=(t-e[0])/o;return a&&(s=Math.min(Math.max(s,0),1)),s*(r[1]-r[0])+r[0]},n[$e]=function(t,i){switch(t){case li:case ci:t="50%";break;case"left":case"top":t="0%";break;case"right":case hi:t="100%"}return typeof t===Ri?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):null==t?NaN:+t},n.round=function(t){return+(+t)[Xe](12)},n.asc=function(t){return t.sort(function(t,e){return t-e}),t},n.getPrecision=function(t){for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},n[Ue]=function(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),a=Math.round(i(Math.abs(e[1]-e[0]))/n);return Math.max(-r+a,0)},n.MAX_SAFE_INTEGER=9007199254740991,n.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},n.isRadianAroundZero=function(t){return t>-r&&r>t},n.parseDate=function(t){return t instanceof Date?t:new Date(typeof t===Ri?t[Qe](/-/g,"/"):t)},n}),e("echarts/util/format",[qi,Hi],function(t){function e(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0][Qe](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[Vi]>1?"."+t[1]:""))}function i(t){return t[je]()[Qe](/-(.)/g,function(t,e){return e[qe]()})}function n(t){var e=t[Vi];return typeof t===Oi?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function r(t){return String(t)[Qe](/&/g,"&amp;")[Qe](/</g,"&lt;")[Qe](/>/g,"&gt;")[Qe](/"/g,"&quot;")[Qe](/'/g,"&#39;")}function a(t,e){return"{"+t+(null==e?"":e)+"}"}function o(t,e){s[ki](e)||(e=[e]);var i=e[Vi];if(!i)return"";for(var n=e[0].$vars,r=0;r<n[Vi];r++){var o=l[r];t=t[Qe](a(o),a(o,0))}for(var c=0;i>c;c++)for(var h=0;h<n[Vi];h++)t=t[Qe](a(l[h],c),e[c][n[h]]);return t}var s=t(Hi),l=["a","b","c","d","e","f","g"];return{normalizeCssArray:n,addCommas:e,toCamelCase:i,encodeHTML:r,formatTpl:o}}),e("echarts/util/layout",[qi,Hi,gi,"./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e[We](function(l,c){var h,u,d=l[He],f=l[ei](),p=e[Ge](c+1),v=p&&p[ei]();if("horizontal"===t){var m=f.width+(v?-v.x+f.x:0);h=a+m,h>n||l.newline?(a=0,h=m,o+=s+i,s=0):s=Math.max(s,f[vi])}else{var g=f[vi]+(v?-v.y+f.y:0);u=o+g,u>r||l.newline?(a+=s+i,o=0,u=g,s=0):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=h+i:o=u+i)})}var i=t(Hi),n=t(gi),r=t("./number"),a=t("./format"),o=r[$e],s=i.each,l={};return l.box=e,l.vbox=i.curry(e,Fe),l.hbox=i.curry(e,"horizontal"),l.getAvailableSize=function(t,e,i){var n=e.width,r=e[vi],s=o(t.x,n),l=o(t.y,r),c=o(t.x2,n),h=o(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=r),i=a.normalizeCssArray(i||0),{width:Math.max(c-s-i[1]-i[3],0),height:Math.max(h-l-i[0]-i[2],0)}},l[Ve]=function(t,e,i){i=a.normalizeCssArray(i||0);var r=e.width,s=e[vi],l=o(t.left,r),c=o(t.top,s),h=o(t.right,r),u=o(t[hi],s),d=o(t.width,r),f=o(t[vi],s),p=i[2]+i[0],v=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=r-h-v-l),isNaN(f)&&(f=s-u-p-c),isNaN(d)&&isNaN(f)&&(m>r/s?d=.8*r:f=.8*s),null!=m&&(isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=r-h-d-v),isNaN(c)&&(c=s-u-f-p),t.left||t.right){case li:l=r/2-d/2-i[3];break;case"right":l=r-d-v}switch(t.top||t[hi]){case ci:case li:c=s/2-f/2-i[0];break;case hi:c=s-f-p}var g=new n(l+i[3],c+i[0],d,f);return g.margin=i,g},l.positionGroup=function(t,e,n,r){var a=t[ei]();e=i[Di](i.clone(e),{width:a.width,height:a[vi]}),e=l[Ve](e,n,r),t[He]=[e.x-a.x,e.y-a.y]},l.mergeLayoutParam=function(t,e,i){function n(n){var o={},l=0,c={},h=0,u=i.ignoreSize?1:2;if(s(n,function(e){c[e]=t[e]}),s(n,function(t){r(e,t)&&(o[t]=c[t]=e[t]),a(o,t)&&l++,a(c,t)&&h++}),h!==u&&l){if(u>h){var d=0;return s(n,function(t){"auto"===c[t]&&(u-h>d?d++:c[t]=null)}),c}if(l>=u)return o;for(var f=0;f<n[Vi];f++){var p=n[f];if(!r(o,p)&&r(t,p)){o[p]=t[p];break}}return o}return c}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function o(t,e,i){s(t,function(t){e[t]=i[t]})}i=i||{};var l=["width","left","right"],c=[vi,"top",hi],h=n(l),u=n(c);o(l,t,h),o(c,t,u)},l.getLayoutParams=function(t){var e={};return t&&s(["left","right","top",hi,"width",vi],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e},l}),e("echarts/model/mixin/boxLayout",[qi],function(t){return{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(hi),width:this.get("width"),height:this.get(vi)}}}}),e("echarts/model/Component",[qi,"./Model",Hi,"../util/component",Je,"../util/layout","./mixin/boxLayout"],function(t){function e(t){var e=[];return n.each(l.getClassesByMainType(t),function(t){r.apply(e,t[Wi].dependencies||[])}),n.map(e,function(t){return o[zi](t).main})}var i=t("./Model"),n=t(Hi),r=Array[Wi].push,a=t("../util/component"),o=t(Je),s=t("../util/layout"),l=i[Di]({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,init:function(t,e,i,n){this[Ne](this[Ke],this[ri])},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?s.getLayoutParams(t):{},a=e.getTheme();n.merge(t,a.get(this.mainType)),n.merge(t,this.getDefaultOption()),i&&s.mergeLayoutParam(t,r,i)},mergeOption:function(t){n.merge(this[Ke],t,!0);var e=this.layoutMode;e&&s.mergeLayoutParam(this[Ke],t,e)},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var t=[],e=this.constructor;e;){var i=e[Wi].defaultOption;i&&t.push(i),e=e.superClass}for(var r={},a=t[Vi]-1;a>=0;a--)r=n.merge(r,t[a],!0);this.__defaultOption=r}return this.__defaultOption}});return o[Li](l,function(t,e,i,r){n[Di](this,r),this.uid=a.getUID("componentModel"),this.setReadOnly(["type","id","uid","name","mainType","subType","dependentModels","componentIndex"])}),o[Ci](l,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(l),a.enableTopologicalTravel(l,e),n.mixin(l,t("./mixin/boxLayout")),l}),e("echarts/model/globalDefault",[],function(){var t="";return typeof navigator!==_i&&(t=navigator.platform||""),{color:["#c23531","#314656","#61a0a8","#dd8668","#91c7ae","#6e7074","#61a0a8","#bda29a","#44525d","#c4ccd3"],grid:{},textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},animation:!0,animationThreshold:2e3,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut"}}),e("echarts/model/Global",[qi,Hi,"./Model","./Component","./globalDefault"],function(t){function e(t,e){for(var i in e)_.hasClass(i)||(typeof e[i]===Fi?t[i]=t[i]?u.merge(t[i],e[i],!1):u.clone(e[i]):t[i]=e[i])}function i(t){t=t,this[Ke]={},this._componentsMap={},this._seriesIndices=null,e(t,this._theme[Ke]),u.merge(t,x,!1),this[Ze](t)}function n(t,e){u[ki](e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e){t=(t||[]).slice();var i=[];return f(e,function(e,n){if(y(e)&&e.id)for(var r=0,a=t[Vi];a>r;r++)if(t[r].id===e.id)return void(i[n]=t[Ie](r,1)[0])}),f(e,function(e,n){if(y(e)&&e.name&&!c(e))for(var r=0,a=t[Vi];a>r;r++)if(t[r].name===e.name)return void(i[n]=t[Ie](r,1)[0])}),f(e,function(e,n){i[n]||!t[n]||c(e)||(i[n]=t[n])}),i}function a(t,e,i){function n(n){f(e,function(e,a){if(y(e)){var o=i[a],s=r[a],l=t+"."+s.subType;n(s,e,o,l)}})}var r=[],a="\x00",s={},l={};return f(e,function(e,n){if(y(e)){var a=i[n],s=o(t,e,a),l={mainType:t,subType:s};r[n]=l}}),n(function(t,e,i,n){t.name=i?i.name:null!=e.name?e.name:a+"-",l[t.name]=0}),n(function(t,e,i,n){var r=t.name;if(t.id=i?i.id:null!=e.id?e.id:a+[n,r,l[r]++].join("|"),s[t.id])throw new Error("id duplicates: "+t.id);s[t.id]=1}),r}function o(t,e,i){var n=e.type?e.type:i?i.subType:_.determineSubType(t,e);return n}function s(t){return v(t,function(t){return t.componentIndex})||[]}function l(t,e){return e.hasOwnProperty("subType")?p(t,function(t){return t.subType===e.subType}):t}function c(t){return t.id&&0===(t.id+"")[Bi]("\x00_ec_\x00")}function h(t){if(!t._seriesIndices)throw new Error("Series is not initialized. Please depends sereis.")}var u=t(Hi),d=t("./Model"),f=u.each,p=u[Gi],v=u.map,m=u[ki],g=u[Bi],y=u[Ee],_=t("./Component"),x=t("./globalDefault"),b=d[Di]({constructor:b,init:function(t,e,i,n){i=i||{},this[Ke]=null,this._theme=new d(i),this._optionManager=n},setOption:function(t,e){this._optionManager.setOption(t,e),this.resetOption()},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption();this[Ke]&&"recreate"!==t?(this.restoreData(),this[Ze](r)):i.call(this,r),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this[Ze](a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o[Vi]&&f(o,function(t){this[Ze](t,e=!0)},this)}return e},mergeOption:function(t){function e(e,n){var r=t[e];r?o.call(this,e,r,n):i.call(this,e),e===Be&&(this._seriesIndices=s(c[Be]))}function i(t){f(c[t],function(t){t[Ze]({},this)},this)}function o(t,e,i){u[ki](e)||(e=[e]),c[t]||(c[t]=[]);var o=r(c[t],e),s=a(t,e,o),h=n(c,i);l[t]=[],f(e,function(e,i){if(y(e)){var n=o[i],r=_[Ai](t,s[i].subType,!0);n&&n instanceof r?n[Ze](e,this):(n=new r(e,this,this,u[Di]({dependentModels:h,componentIndex:i},s[i])),c[t][i]=n),l[t][i]=n[Ke]}},this)}var l=this[Ke],c=this._componentsMap,h=[];f(t,function(t,e){null!=t&&(_.hasClass(e)?h.push(e):l[e]=null==l[e]?u.clone(t):u.merge(l[e],t,!0))}),_.topologicalTravel(h,_.getAllClassMainTypes(),e,this)},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsMap[e];if(!a||!a[Vi])return[];var o;if(null!=i)m(i)||(i=[i]),o=p(v(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var s=m(n);o=p(a,function(t){return s&&g(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var c=m(r);o=p(a,function(t){return c&&g(r,t.name)>=0||!c&&t.name===r})}return l(o,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return t&&(t.hasOwnProperty(e)||t.hasOwnProperty(i)||t.hasOwnProperty(n))?{mainType:r,index:t[e],id:t[i],name:t[n]}:null}function i(e){return t[Gi]?p(e,t[Gi]):e}var n=t.query,r=t.mainType,a=e(n),o=a?this.queryComponents(a):this._componentsMap[r];return i(l(o,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if(typeof t===Pi)i=e,e=t,f(n,function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(u[Re](t))f(n[t],e,i);else if(y(t)){var r=this[Oe](t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap[Be];return p(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap[Be][t]},getSeriesByType:function(t){var e=this._componentsMap[Be];return p(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap[Be].slice()},eachSeries:function(t,e){h(this),f(this._seriesIndices,function(i){var n=this._componentsMap[Be][i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap[Be],t,e)},eachSeriesByType:function(t,e,i){h(this),f(this._seriesIndices,function(n){var r=this._componentsMap[Be][n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return h(this),u[Bi](this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){h(this);var i=p(this._componentsMap[Be],t,e);this._seriesIndices=s(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t[Be]);var e=[];f(t,function(t,i){e.push(i)}),_.topologicalTravel(e,_.getAllClassMainTypes(),function(e,i){f(t[e],function(t){t.restoreData()})})}});return b}),e("echarts/ExtensionAPI",[qi,Hi],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(Hi),n=[Pe,"getZr",ze,Le,De,"on","off","getDataURL","getConnectedDataURL"];return e}),e("echarts/CoordinateSystem",[qi],function(t){function e(){this._coordinateSystems={},this._coordinateSystemsList=[]}var i={};return e[Wi]={constructor:e,update:function(t,e){var n={};for(var r in i)n[r]=i[r][pi](t,e);this._coordinateSystems=n},get:function(t,e){var i=this._coordinateSystems[t];return i?i[e||0]:void 0;
  }},e[Te]=function(t,e){i[t]=e},e}),e("echarts/model/OptionManager",[qi,Hi],function(t){function e(t){this._api=t,this._timelineOptions,this._mediaList,this._mediaDefault,this._currentMediaIndices=[],this._optionBackup}function i(t,e){var i,n,r=[],a=[],l=t.timeline;if((l||t.options)&&(n=t.baseOption||{},r=(t.options||[]).slice()),t.media){n=t.baseOption||{};var c=t.media;s(c,function(t){t&&t[Ke]&&(t.query?a.push(t):i||(i=t))})}return n||(n=t),n.timeline||(n.timeline=l),s([n][Ii](r)[Ii](o.map(a,function(t){return t[Ke]})),function(t){s(e,function(e){e(t)})}),{baseOption:n,timelineOptions:r,mediaDefault:i,mediaList:a}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return o.each(t,function(t,e){var i=e.match(h);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][je]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}var o=t(Hi),s=o.each,l=o.clone,c=o.map,h=/^(min|max)?(.+)$/;return e[Wi]={constructor:e,setOption:function(t,e){t=l(t,!0),this._optionBackup=i.call(this,t,e)},mountOption:function(){var t=this._optionBackup;return this._timelineOptions=c(t.timelineOptions,l),this._mediaList=c(t.mediaList,l),this._mediaDefault=l(t.mediaDefault),this._currentMediaIndices=[],l(t.baseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i[Vi]){var n=t[Ce]("timeline");n&&(e=l(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api[ze](),i=this._api[Le](),r=this._mediaList,o=this._mediaDefault,s=[],h=[];if(!r[Vi]&&!o)return h;for(var u=0,d=r[Vi];d>u;u++)n(r[u].query,e,i)&&s.push(u);return!s[Vi]&&o&&(s=[-1]),s[Vi]&&!a(s,this._currentMediaIndices)&&(h=c(s,function(t){return l(-1===t?o[Ke]:r[t][Ke])})),this._currentMediaIndices=s,h}},e}),e("echarts/util/model",[qi,"./format","./number",Hi,"../model/Model"],function(t){var e=t("./format"),i=t("./number"),n=t(Hi),r=t("../model/Model"),a=["x","y","z",Ae,"angle"],o={};return o.createNameEach=function(t,e){t=t.slice();var i=n.map(t,o.capitalFirst);e=(e||[]).slice();var r=n.map(e,o.capitalFirst);return function(a,o){n.each(t,function(t,n){for(var s={name:t,capital:i[n]},l=0;l<e[Vi];l++)s[e[l]]=t+r[l];a.call(o,s)})}},o.capitalFirst=function(t){return t?t.charAt(0)[qe]()+t[ai](1):t},o.eachAxisDim=o.createNameEach(a,[ke,"axis","index"]),o.normalizeToArray=function(t){return n[ki](t)?t:null==t?[]:[t]},o.createLinkedNodesFinder=function(t,e,i){function r(t,e){return n[Bi](e.nodes,t)>=0}function a(t,r){var a=!1;return e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]&&(a=!0)})}),a}function o(t,r){r.nodes.push(t),e(function(e){n.each(i(t,e)||[],function(t){r.records[e.name][t]=!0})})}return function(i){function n(t){!r(t,s)&&a(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(n);while(l);return s}},o.defaultEmphasis=function(t,e){if(t){var i=t[Se]=t[Se]||{},r=t[Me]=t[Me]||{};n.each(e,function(t){var e=n.retrieve(i[t],r[t]);null!=e&&(i[t]=e)})}},o.createDataFormatModel=function(t,e,i){var a=new r;return n.mixin(a,o.dataFormatMixin),a[we]=t[we],a.name=t.name||"",a[be]=function(){return e},a.getRawDataArray=function(){return i},a},o.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},o.converDataValue=function(t,e){var n=e&&e.type;return n===xe?t:("time"!==n||isFinite(t)||null==t||"-"===t||(t=+i.parseDate(t)),null==t||""===t?NaN:+t)},o.dataFormatMixin={getDataParams:function(t){var e=this[be](),i=this[we],n=this.name,r=this[_e](t),a=e[ye](t),o=e[ge](t,!0),s=this.getRawDataArray(),l=s&&s[a];return{seriesIndex:i,seriesName:n,name:o,dataIndex:a,data:l,value:r,$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,i,n){i=i||Me;var r=this[be](),a=r[me](t),o=this[ve](t);return n||(n=a.get(["label",i,"formatter"])),typeof n===Pi?(o.status=i,n(o)):typeof n===Ri?e.formatTpl(n,o):void 0},getRawValue:function(t){var e=this[be]()[me](t);if(e&&e[Ke]){var i=e[Ke];return n[Ee](i)&&!n[ki](i)?i.value:i}}},o}),e("echarts/model/Series",[qi,Hi,"../util/format","../util/model","./Component"],function(t){var e=t(Hi),i=t("../util/format"),n=t("../util/model"),r=t("./Component"),a=i.encodeHTML,o=i[pe],s=r[Di]({type:"series",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,init:function(t,e,i,n){this[we]=this.componentIndex,this[Ne](t,i),this._dataBeforeProcessed=this.getInitialData(t,i),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(t,i){e.merge(t,i.getTheme().get(this.subType)),e.merge(t,this.getDefaultOption()),n.defaultEmphasis(t.label,[He,"show",ii,yi,"formatter"])},mergeOption:function(t,i){t=e.merge(this[Ke],t,!0);var n=this.getInitialData(t,i);n&&(this._data=n,this._dataBeforeProcessed=n.cloneShallow())},getInitialData:function(){},getData:function(){return this._data},setData:function(t){this._data=t},getRawData:function(){return this._dataBeforeProcessed},getRawDataArray:function(){return this[Ke].data},getDimensionsOnAxis:function(t){return[t]},formatTooltip:function(t,i){var n=this._data,r=this[_e](t),s=e[ki](r)?e.map(r,o).join(", "):o(r),l=n[ge](t);return i?a(this.name)+" : "+s:a(this.name)+"<br />"+(l?a(l)+" : "+s:s)},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()}});return e.mixin(s,n.dataFormatMixin),s}),e("zrender/core/guid",[],function(){var t=2311;return function(){return"zr_"+t++}}),e(fe,[qi,di],function(t){var e=Array[Wi].slice,i=t(di),n=i[Bi],r=function(){this._$handlers={}};return r[Wi]={constructor:r,one:function(t,e,i){var r=this._$handlers;return e&&t?(r[t]||(r[t]=[]),n(r[t],t)>=0?this:(r[t].push({h:e,one:!0,ctx:i||this}),this)):this},on:function(t,e,i){var n=this._$handlers;return e&&t?(n[t]||(n[t]=[]),n[t].push({h:e,one:!1,ctx:i||this}),this):this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t][Vi]},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,a=i[t][Vi];a>r;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][Vi]&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var i=arguments,n=i[Vi];n>3&&(i=e.call(i,1));for(var r=this._$handlers[t],a=r[Vi],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[Ie](o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var i=arguments,n=i[Vi];n>4&&(i=e.call(i,1,i[Vi]-1));for(var r=i[i[Vi]-1],a=this._$handlers[t],o=a[Vi],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[Ie](s,1),o--):s++}}return this}},r}),e("zrender/mixin/Transformable",[qi,"../core/matrix","../core/vector"],function(t){function e(t){return t>a||-a>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,a=5e-5,o=function(t){t=t||{},t[He]||(this[He]=[0,0]),null==t[de]&&(this[de]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},s=o[Wi];s[ue]=null,s.needLocalTransform=function(){return e(this[de])||e(this[He][0])||e(this[He][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},s.updateTransform=function(){var t=this[he],e=t&&t[ue],n=this.needLocalTransform(),a=this[ue];return n||e?(a=a||i[pi](),n?this[ce](a):r(a),e&&(n?i.mul(a,t[ue],a):i.copy(a,t[ue])),this[ue]=a,this.invTransform=this.invTransform||i[pi](),void i.invert(this.invTransform,a)):void(a&&r(a))},s[ce]=function(t){t=t||[],r(t);var e=this.origin,n=this.scale,a=this[de],o=this[He];return e&&(t[4]-=e[0],t[5]-=e[1]),i.scale(t,t,n),a&&i[le](t,t,a),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},s.setTransform=function(t){var e=this[ue];e&&t[ue](e[0],e[1],e[2],e[3],e[4],e[5])};var l=[];return s.decomposeTransform=function(){if(this[ue]){var t=this[he],n=this[ue];t&&t[ue]&&(i.mul(l,t.invTransform,n),n=l);var r=n[0]*n[0]+n[1]*n[1],a=n[2]*n[2]+n[3]*n[3],o=this[He],s=this.scale;e(r-1)&&(r=Math.sqrt(r)),e(a-1)&&(a=Math.sqrt(a)),n[0]<0&&(r=-r),n[3]<0&&(a=-a),o[0]=n[4],o[1]=n[5],s[0]=r,s[1]=a,this[de]=Math.atan2(-n[1]/a,n[0]/r)}},s[se]=function(t,e){var i=[t,e],r=this.invTransform;return r&&n[mi](i,i,r),i},s.transformCoordToGlobal=function(t,e){var i=[t,e],r=this[ue];return r&&n[mi](i,i,r),i},o}),e("zrender/animation/easing",[],function(){var t={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(e){return.5>e?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};return t}),e("zrender/animation/Clip",[qi,"./easing"],function(t){function e(t){this._target=t[oe],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var i=t("./easing");return e[Wi]={constructor:e,step:function(t){this._initialized||(this._startTime=(new Date).getTime()+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(0>e)){e=Math.min(e,1);var n=this.easing,r=typeof n==Ri?i[n]:n,a=typeof r===Pi?r(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(){var t=(new Date).getTime(),e=(t-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},e}),e(ae,[qi],function(t){function e(t){return t=Math.round(t),0>t?0:t>255?255:t}function i(t){return t=Math.round(t),0>t?0:t>360?360:t}function n(t){return 0>t?0:t>1?1:t}function r(t){return e(t[Vi]&&"%"===t.charAt(t[Vi]-1)?parseFloat(t)/100*255:parseInt(t,10))}function a(t){return n(t[Vi]&&"%"===t.charAt(t[Vi]-1)?parseFloat(t)/100:parseFloat(t))}function o(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function s(t,e,i){return t+(e-t)*i}function l(t){if(t){t+="";var e=t[Qe](/ /g,"")[je]();if(e in _)return _[e].slice();if("#"!==e.charAt(0)){var i=e[Bi]("("),n=e[Bi](")");if(-1!==i&&n+1===e[Vi]){var o=e[ai](0,i),s=e[ai](i+1,n-(i+1)).split(","),l=1;switch(o){case"rgba":if(4!==s[Vi])return;l=a(s.pop());case"rgb":if(3!==s[Vi])return;return[r(s[0]),r(s[1]),r(s[2]),l];case"hsla":if(4!==s[Vi])return;return s[3]=a(s[3]),c(s);case"hsl":if(3!==s[Vi])return;return c(s);default:return}}}else{if(4===e[Vi]){var h=parseInt(e[ai](1),16);if(!(h>=0&&4095>=h))return;return[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]}if(7===e[Vi]){var h=parseInt(e[ai](1),16);if(!(h>=0&&16777215>=h))return;return[(16711680&h)>>16,(65280&h)>>8,255&h,1]}}}}function c(t){var i=(parseFloat(t[0])%360+360)%360/360,n=a(t[1]),r=a(t[2]),s=.5>=r?r*(n+1):r+n-r*n,l=2*r-s,c=[e(255*o(l,s,i+1/3)),e(255*o(l,s,i)),e(255*o(l,s,i-1/3))];return 4===t[Vi]&&(c[3]=t[3]),c}function h(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(n,r,a),s=Math.max(n,r,a),l=s-o,c=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>c?l/(s+o):l/(2-s-o);var h=((s-n)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;n===s?e=d-u:r===s?e=1/3+h-d:a===s&&(e=2/3+u-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,c];return null!=t[3]&&f.push(t[3]),f}}function u(t,e){var i=l(t);if(i){for(var n=0;3>n;n++)0>e?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0;return y(i,4===i[Vi]?"rgba":"rgb")}}function d(t,e){var i=l(t);return i?((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1):void 0}function f(t,i,n){if(i&&i[Vi]&&t>=0&&1>=t){n=n||[0,0,0,0];var r=t*(i[Vi]-1),a=Math.floor(r),o=Math.ceil(r),l=i[a],c=i[o],h=r-a;return n[0]=e(s(l[0],c[0],h)),n[1]=e(s(l[1],c[1],h)),n[2]=e(s(l[2],c[2],h)),n[3]=e(s(l[3],c[3],h)),n}}function p(t,i,r){if(i&&i[Vi]&&t>=0&&1>=t){var a=t*(i[Vi]-1),o=Math.floor(a),c=Math.ceil(a),h=l(i[o]),u=l(i[c]),d=a-o,f=y([e(s(h[0],u[0],d)),e(s(h[1],u[1],d)),e(s(h[2],u[2],d)),n(s(h[3],u[3],d))],"rgba");return r?{color:f,leftIndex:o,rightIndex:c,value:a}:f}}function v(t,e){if(!(2!==t[Vi]||t[1]<t[0])){for(var i=p(t[0],e,!0),n=p(t[1],e,!0),r=[{color:i.color,offset:0}],a=n.value-i.value,o=Math.max(i.value,i.rightIndex),s=Math.min(n.value,n.leftIndex),l=o;a>0&&s>=l;l++)r.push({color:e[l],offset:(l-i.value)/a});return r.push({color:n.color,offset:1}),r}}function m(t,e,n,r){return t=l(t),t?(t=h(t),null!=e&&(t[0]=i(e)),null!=n&&(t[1]=a(n)),null!=r&&(t[2]=a(r)),y(c(t),"rgba")):void 0}function g(t,e){return t=l(t),t&&null!=e?(t[3]=n(e),y(t,"rgba")):void 0}function y(t,e){return("rgb"===e||"hsv"===e||"hsl"===e)&&(t=t.slice(0,3)),e+"("+t.join(",")+")"}var _={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};return{parse:l,lift:u,toHex:d,fastMapToColor:f,mapToColor:p,mapIntervalToColor:v,modifyHSL:m,modifyAlpha:g,stringify:y}}),e("zrender/animation/Animator",[qi,"./Clip","../tool/color",di],function(t){function e(t,e){return t[e]}function i(t,e,i){t[e]=i}function n(t,e,i){return(e-t)*i+t}function r(t,e,i){return i>.5?e:t}function a(t,e,i,r,a){var o=t[Vi];if(1==a)for(var s=0;o>s;s++)r[s]=n(t[s],e[s],i);else for(var l=t[0][Vi],s=0;o>s;s++)for(var c=0;l>c;c++)r[s][c]=n(t[s][c],e[s][c],i)}function o(t,e,i){var n=t[Vi],r=e[Vi];if(n!==r){var a=n>r;if(a)t[Vi]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:g.call(e[o]))}}function s(t,e,i){if(t===e)return!0;var n=t[Vi];if(n!==e[Vi])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][Vi],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function l(t,e,i,n,r,a,o,s,l){var h=t[Vi];if(1==l)for(var u=0;h>u;u++)s[u]=c(t[u],e[u],i[u],n[u],r,a,o);else for(var d=t[0][Vi],u=0;h>u;u++)for(var f=0;d>f;f++)s[u][f]=c(t[u][f],e[u][f],i[u][f],n[u][f],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function h(t){if(m(t)){var e=t[Vi];if(m(t[0])){for(var i=[],n=0;e>n;n++)i.push(g.call(t[n]));return i}return g.call(t)}return t}function u(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,h,d){var v=t._getter,g=t._setter,y="spline"===e,_=h[Vi];if(_){var x,b=h[0].value,w=m(b),M=!1,S=!1,k=w&&m(b[0])?2:1;h.sort(function(t,e){return t.time-e.time}),x=h[_-1].time;for(var A=[],C=[],T=h[0].value,D=!0,L=0;_>L;L++){A.push(h[L].time/x);var z=h[L].value;if(w&&s(z,T,k)||!w&&z===T||(D=!1),T=z,typeof z==Ri){var P=p.parse(z);P?(z=P,M=!0):S=!0}C.push(z)}if(!D){if(w){for(var I=C[_-1],L=0;_-1>L;L++)o(C[L],I,k);o(v(t._target,d),I,k)}var O,R,B,Z,E,N,V=0,F=0;if(M)var G=[0,0,0,0];var H=function(t,e){var i;if(F>e){for(O=Math.min(V+1,_-1),i=O;i>=0&&!(A[i]<=e);i--);i=Math.min(i,_-2)}else{for(i=V;_>i&&!(A[i]>e);i++);i=Math.min(i-1,_-2)}V=i,F=e;var o=A[i+1]-A[i];if(0!==o)if(R=(e-A[i])/o,y)if(Z=C[i],B=C[0===i?i:i-1],E=C[i>_-2?_-1:i+1],N=C[i>_-3?_-1:i+2],w)l(B,Z,E,N,R,R*R,R*R*R,v(t,d),k);else{var s;if(M)s=l(B,Z,E,N,R,R*R,R*R*R,G,1),s=u(G);else{if(S)return r(Z,E,R);s=c(B,Z,E,N,R,R*R,R*R*R)}g(t,d,s)}else if(w)a(C[i],C[i+1],R,v(t,d),k);else{var s;if(M)a(C[i],C[i+1],R,G,1),s=u(G);else{if(S)return r(C[i],C[i+1],R);s=n(C[i],C[i+1],R)}g(t,d,s)}},W=new f({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:H,ondestroy:i});return e&&"spline"!==e&&(W.easing=e),W}}}var f=t("./Clip"),p=t("../tool/color"),v=t(di),m=v.isArrayLike,g=Array[Wi].slice,y=function(t,n,r,a){this._tracks={},this._target=t,this._loop=n||!1,this._getter=r||e,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y[Wi]={when:function(t,e){var i=this._tracks;for(var n in e){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:h(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList[Vi]=0;for(var t=this._doneList,e=t[Vi],i=0;e>i;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._doneCallback()};for(var a in this._tracks){var o=d(this,t,r,this._tracks[a],a);o&&(this._clipList.push(o),n++,this[re]&&this[re].addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;n<i._onframeList[Vi];n++)i._onframeList[n](t,e)}}return n||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this[re],n=0;n<e[Vi];n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e[Vi]=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},y}),e("zrender/config",[],function(){var t=1;typeof window!==_i&&(t=Math.max(window.devicePixelRatio||1,1));var e={debugMode:0,devicePixelRatio:t};return e}),e("zrender/core/log",[qi,"../config"],function(t){var e=t("../config");return function(){if(0!==e.debugMode)if(1==e.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(e.debugMode>1)for(var t in arguments)console.log(arguments[t])}}),e("zrender/mixin/Animatable",[qi,"../animation/Animator",di,"../core/log"],function(t){var e=t("../animation/Animator"),i=t(di),n=i[Re],r=i.isFunction,a=i[Ee],o=t("../core/log"),s=function(){this.animators=[]};return s[Wi]={constructor:s,animate:function(t,n){var r,a=!1,s=this,l=this.__zr;if(t){var c=t.split("."),h=s;a="shape"===c[0];for(var u=0,d=c[Vi];d>u;u++)h&&(h=h[c[u]]);h&&(r=h)}else r=s;if(!r)return void o('Property "'+t+'" is not existed in element '+s.id);var f=s.animators,p=new e(r,n);return p.during(function(t){s.dirty(a)}).done(function(){f[Ie](i[Bi](f,p),1)}),f.push(p),l&&l[re].addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,i=e[Vi],n=0;i>n;n++)e[n].stop(t);return e[Vi]=0,this},animateTo:function(t,e,i,a,o){function s(){c--,c||o&&o()}n(i)?(o=a,a=i,i=0):r(a)?(o=a,a="linear",i=0):r(i)?(o=i,i=0):r(e)?(o=e,e=500):e||(e=500),this[ne](),this._animateToShallow("",this,t,e,i,a,o);var l=this.animators.slice(),c=l[Vi];c||o&&o();for(var h=0;h<l[Vi];h++)l[h].done(s).start(a)},_animateToShallow:function(t,e,n,r,o){var s={},l=0;for(var c in n)if(null!=e[c])a(n[c])&&!i.isArrayLike(n[c])?this._animateToShallow(t?t+"."+c:c,e[c],n[c],r,o):(s[c]=n[c],l++);else if(null!=n[c])if(t){var h={};h[t]={},h[t][c]=n[c],this.attr(h)}else this.attr(c,n[c]);return l>0&&this[ie](t,!1).when(null==r?500:r,s).delay(o||0),this}},s}),e("zrender/Element",[qi,"./core/guid","./mixin/Eventful","./mixin/Transformable","./mixin/Animatable","./core/util"],function(t){var e=t("./core/guid"),i=t("./mixin/Eventful"),n=t("./mixin/Transformable"),r=t("./mixin/Animatable"),a=t("./core/util"),o=function(t){n.call(this,t),i.call(this,t),r.call(this,t),this.id=t.id||e()};return o[Wi]={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this[ee]){case"horizontal":e=0;break;case Fe:t=0}var i=this[ue];i||(i=this[ue]=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty()},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if(t===He||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this[te]=!0,this.__zr&&this.__zr[Jt]()},show:function(){this[te]=!1,this.__zr&&this.__zr[Jt]()},attr:function(t,e){if(typeof t===Ri)this.attrKV(t,e);else if(a[Ee](t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty()},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty())},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e[Vi];i++)t[re].addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e[Vi];i++)t[re].removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},a.mixin(o,r),a.mixin(o,n),a.mixin(o,i),o}),e("zrender/container/Group",[qi,di,"../Element",ui],function(t){var e=t(di),i=t("../Element"),n=t(ui),r=function(t){t=t||{},i.call(this,t);for(var e in t)this[e]=t[e];this._children=[],this.__storage=null,this[Kt]=!0};return r[Wi]={constructor:r,type:"group",children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e[Vi];i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children[Vi]},add:function(t){return t&&t!==this&&t[he]!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t[he]!==this&&e&&e[he]===this){var i=this._children,n=i[Bi](e);n>=0&&(i[Ie](n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t[he]&&t[he][Qt](t),t[he]=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e[Yt](t),t instanceof r&&t.addChildrenToStorage(e)),i&&i[Jt]()},remove:function(t){var i=this.__zr,n=this.__storage,a=this._children,o=e[Bi](a,t);return 0>o?this:(a[Ie](o,1),t[he]=null,n&&(n[$t](t.id),t instanceof r&&t.delChildrenFromStorage(n)),i&&i[Jt](),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i[Vi];e++)t=i[e],n&&(n[$t](t.id),t instanceof r&&t.delChildrenFromStorage(n)),t[he]=null;return i[Vi]=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i[Vi];n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children[Vi];i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n[Xt](t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children[Vi];e++){var i=this._children[e];t[Yt](i),i instanceof r&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children[Vi];e++){var i=this._children[e];t[$t](i.id),i instanceof r&&i.delChildrenFromStorage(t)}},dirty:function(){return this[Kt]=!0,this.__zr&&this.__zr[Jt](),this},getBoundingRect:function(t){for(var e=null,i=new n(0,0,0,0),r=t||this._children,a=[],o=0;o<r[Vi];o++){var s=r[o];if(!s[te]&&!s[Ut]){var l=s[ei](),c=s[ce](a);c?(i.copy(l),i[mi](c),e=e||i.clone(),e.union(i)):(e=e||l.clone(),e.union(l))}}return e||i}},e[Ti](r,i),r}),e("echarts/view/Component",[qi,"zrender/container/Group","../util/component",Je],function(t){var e=t("zrender/container/Group"),i=t("../util/component"),n=t(Je),r=function(){this.group=new e,this.uid=i.getUID("viewComponent")};r[Wi]={constructor:r,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var a=r[Wi];return a.updateView=a[jt]=a.updateVisual=function(t,e,i,n){},n[Li](r),n[Ci](r,{registerWhenExtend:!0}),r}),e("echarts/view/Chart",[qi,"zrender/container/Group","../util/component",Je],function(t){function e(){this.group=new r,this.uid=a.getUID("viewChart")}function i(t,e){if(t&&(t[Ht](e),"group"===t.type))for(var n=0;n<t.childCount();n++)i(t[Ge](n),e)}function n(t,e,n){if(null!=e[Gt]){var r=t[Ft](e[Gt]);i(r,n)}else if(e.name){var a=t[Vt](e.name),r=t[Ft](a);i(r,n)}else t[Nt](function(t){i(t,n)})}var r=t("zrender/container/Group"),a=t("../util/component"),o=t(Je);e[Wi]={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,r){n(t[be](),r,Se)},downplay:function(t,e,i,r){n(t[be](),r,Me)},remove:function(t,e){this.group[qt]()},dispose:function(){}};var s=e[Wi];return s.updateView=s[jt]=s.updateVisual=function(t,e,i,n){this[Wt](t,e,i,n)},o[Li](e),o[Ci](e,{registerWhenExtend:!0}),e}),e("zrender/graphic/Style",[qi],function(t){var e=["lineCap","lineJoin","miterLimit","shadowBlur","shadowOffsetX","shadowOffsetY","shadowColor"],i=function(t){this.extendFrom(t)};i[Wi]={constructor:i,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,bind:function(t,i){for(var n=this.fill,r=this[wi],a=0;a<e[Vi];a++){var o=e[a];null!=this[o]&&(t[o]=this[o])}if(null!=r){var s=this[Mi];t[Mi]=s/(this.strokeNoScale&&i&&i.getLineScale?i.getLineScale():1)}null!=n&&(t.fillStyle=n.canvasGradient?n.canvasGradient:n),null!=r&&(t.strokeStyle=r.canvasGradient?r.canvasGradient:r),null!=this[bi]&&(t.globalAlpha=this[bi])},extendFrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasOwnProperty(n)||!e&&i.hasOwnProperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===Ri?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t}};var n,r,a=i[Wi];for(r=0;r<e[Vi];r++)n=e[r],n in a||(a[n]=null);return i}),e("zrender/graphic/mixin/RectText",[qi,"../../contain/text","../../core/BoundingRect"],function(t){function e(t,e){return typeof t===Ri?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function i(t,e){t[ue](e[0],e[1],e[2],e[3],e[4],e[5])}var n=t("../../contain/text"),r=t("../../core/BoundingRect"),a=new r,o=function(){};return o[Wi]={constructor:o,drawRectText:function(t,r,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){var c,h,u=s[Et],d=s.textDistance,f=s[Zt],p=s.textFont||s.font,v=s[Bt];o=o||n[ei](l,p,f,v);var m=this[ue],g=this.invTransform;if(m&&(a.copy(r),a[mi](m),r=a,i(t,g)),u instanceof Array)c=r.x+e(u[0],r.width),h=r.y+e(u[1],r[vi]),f=f||"left",v=v||"top";else{var y=n.adjustTextPositionOnRect(u,r,o,d);c=y.x,h=y.y,f=f||y[Zt],v=v||y[Bt]}t[Zt]=f,t[Bt]=v;var _=s.textFill,x=s.textStroke;_&&(t.fillStyle=_),x&&(t.strokeStyle=x),t.font=p,t.shadowColor=s.textShadowColor,t.shadowBlur=s.textShadowBlur,t.shadowOffsetX=s.textShadowOffsetX,t.shadowOffsetY=s.textShadowOffsetY;for(var b=l.split("\n"),w=0;w<b[Vi];w++)_&&t.fillText(b[w],c,h),x&&t.strokeText(b[w],c,h),h+=o.lineHeight;m&&i(t,m)}}},o}),e("zrender/graphic/Displayable",[qi,di,"./Style","../Element","./mixin/RectText"],function(t){function e(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new n(t.style),this._rect=null,this.__clipPaths=[]}var i=t(di),n=t("./Style"),r=t("../Element"),a=t("./mixin/RectText");return e[Wi]={constructor:e,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,
  draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this[se](t,e),n=this[ei]();return n[Rt](i[0],i[1])},dirty:function(){this[Kt]=!0,this._rect=null,this.__zr&&this.__zr[Jt]()},animateStyle:function(t){return this[ie]("style",t)},attrKV:function(t,e){"style"!==t?r[Wi].attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(),this}},i[Ti](e,r),i.mixin(e,a),e}),e("zrender/core/curve",[qi,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),c=3*(i-t),h=t-a,u=l*l-3*s*c,d=l*c-9*s*h,f=c*c-3*l*h,p=0;if(e(u)&&e(d))if(e(l))o[0]=0;else{var v=-c/l;v>=0&&1>=v&&(o[p++]=v)}else{var m=d*d-4*u*f;if(e(m)){var g=d/u,v=-l/s+g,x=-g/2;v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x)}else if(m>0){var M=_(m),S=u*l+1.5*s*(-d+M),k=u*l+1.5*s*(-d-M);S=0>S?-y(-S,w):y(S,w),k=0>k?-y(-k,w):y(k,w);var v=(-l-(S+k))/(3*s);v>=0&&1>=v&&(o[p++]=v)}else{var A=(2*u*l-3*s*d)/(2*_(u*u*u)),C=Math.acos(A)/3,T=_(u),D=Math.cos(C),v=(-l-2*T*D)/(3*s),x=(-l+T*(D+b*Math.sin(C)))/(3*s),L=(-l+T*(D-b*Math.sin(C)))/(3*s);v>=0&&1>=v&&(o[p++]=v),x>=0&&1>=x&&(o[p++]=x),L>=0&&1>=L&&(o[p++]=L)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,c=3*n-3*t,h=0;if(e(l)){if(i(s)){var u=-c/s;u>=0&&1>=u&&(o[h++]=u)}}else{var d=s*s-4*l*c;if(e(d))o[0]=-s/(2*l);else if(d>0){var f=_(d),u=(-s+f)/(2*l),p=(-s-f)/(2*l);u>=0&&1>=u&&(o[h++]=u),p>=0&&1>=p&&(o[h++]=p)}}return h}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,c=(s-o)*r+o,h=(l-s)*r+s,u=(h-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=u,a[4]=u,a[5]=h,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,c,h,u){var d,f,p,v,m,y=.005,b=1/0;M[0]=c,M[1]=h;for(var w=0;1>w;w+=.05)S[0]=n(t,i,a,s,w),S[1]=n(e,r,o,l,w),v=g(M,S),b>v&&(d=w,b=v);b=1/0;for(var A=0;32>A&&!(x>y);A++)f=d-y,p=d+y,S[0]=n(t,i,a,s,f),S[1]=n(e,r,o,l,f),v=g(S,M),f>=0&&b>v?(d=f,b=v):(k[0]=n(t,i,a,s,p),k[1]=n(e,r,o,l,p),m=g(k,M),1>=p&&b>m?(d=p,b=m):y*=.5);return u&&(u[0]=n(t,i,a,s,d),u[1]=n(e,r,o,l,d)),_(b)}function c(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function h(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function u(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),c=t-a,h=0;if(e(s)){if(i(l)){var u=-c/l;u>=0&&1>=u&&(o[h++]=u)}}else{var d=l*l-4*s*c;if(e(d)){var u=-l/(2*s);u>=0&&1>=u&&(o[h++]=u)}else if(d>0){var f=_(d),u=(-l+f)/(2*s),p=(-l-f)/(2*s);u>=0&&1>=u&&(o[h++]=u),p>=0&&1>=p&&(o[h++]=p)}}return h}function d(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function f(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var h,u=.005,d=1/0;M[0]=o,M[1]=s;for(var f=0;1>f;f+=.05){S[0]=c(t,i,r,f),S[1]=c(e,n,a,f);var p=g(M,S);d>p&&(h=f,d=p)}d=1/0;for(var v=0;32>v&&!(x>u);v++){var m=h-u,y=h+u;S[0]=c(t,i,r,m),S[1]=c(e,n,a,m);var p=g(S,M);if(m>=0&&d>p)h=m,d=p;else{k[0]=c(t,i,r,y),k[1]=c(e,n,a,y);var b=g(k,M);1>=y&&d>b?(h=y,d=b):u*=.5}}return l&&(l[0]=c(t,i,r,h),l[1]=c(e,n,a,h)),_(d)}var v=t("./vector"),m=v[pi],g=v.distSquare,y=Math.pow,_=Math.sqrt,x=1e-4,b=_(3),w=1/3,M=m(),S=m(),k=m();return{cubicAt:n,cubicDerivativeAt:r,cubicRootAt:a,cubicExtrema:o,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:c,quadraticDerivativeAt:h,quadraticRootAt:u,quadraticExtremum:d,quadraticSubdivide:f,quadraticProjectPoint:p}}),e("zrender/core/bbox",[qi,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=Math.min,a=Math.max,o=Math.sin,s=Math.cos,l=e[pi](),c=e[pi](),h=e[pi](),u=2*Math.PI;return n.fromPoints=function(t,e,i){if(0!==t[Vi]){var n,o=t[0],s=o[0],l=o[0],c=o[1],h=o[1];for(n=1;n<t[Vi];n++)o=t[n],s=r(s,o[0]),l=a(l,o[0]),c=r(c,o[1]),h=a(h,o[1]);e[0]=s,e[1]=c,i[0]=l,i[1]=h}},n.fromLine=function(t,e,i,n,o,s){o[0]=r(t,i),o[1]=r(e,n),s[0]=a(t,i),s[1]=a(e,n)},n.fromCubic=function(t,e,n,o,s,l,c,h,u,d){var f,p,v,m,g,y=[],_=[],x=i.cubicExtrema,b=i.cubicAt,w=x(t,n,s,c,y);for(g=0;w>g;g++)y[g]=b(t,n,s,c,y[g]);for(w=x(e,o,l,h,_),g=0;w>g;g++)_[g]=b(e,o,l,h,_[g]);y.push(t,c),_.push(e,h),f=r.apply(null,y),p=a.apply(null,y),v=r.apply(null,_),m=a.apply(null,_),u[0]=f,u[1]=v,d[0]=p,d[1]=m},n.fromQuadratic=function(t,e,n,o,s,l,c,h){var u=i.quadraticExtremum,d=i.quadraticAt,f=a(r(u(t,n,s),1),0),p=a(r(u(e,o,l),1),0),v=d(t,n,s,f),m=d(e,o,l,p);c[0]=r(t,s,v),c[1]=r(e,l,m),h[0]=a(t,s,v),h[1]=a(e,l,m)},n.fromArc=function(t,i,n,r,a,d,f,p,v){var m=e.min,g=e.max;if(Math.abs(a-d)%u<1e-4)return p[0]=t-n,p[1]=i-r,v[0]=t+n,void(v[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,c[0]=s(d)*n+t,c[1]=o(d)*r+i,m(p,l,c),g(v,l,c),a%=u,0>a&&(a+=u),d%=u,0>d&&(d+=u),a>d&&!f?d+=u:d>a&&f&&(a+=u),f){var y=d;d=a,a=y}for(var _=0;d>_;_+=Math.PI/2)_>a&&(h[0]=s(_)*n+t,h[1]=o(_)*r+i,m(p,h,p),g(v,h,v))},n}),e("zrender/core/PathProxy",[qi,"./curve","./vector","./bbox","./BoundingRect"],function(t){var e=t("./curve"),i=t("./vector"),n=t("./bbox"),r=t("./BoundingRect"),a={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o=[],s=[],l=[],c=[],h=Math.min,u=Math.max,d=Math.cos,f=Math.sin,p=Math.sqrt,v=typeof Float32Array!=_i,m=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0};return m[Wi]={constructor:m,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t[Ot](),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(a.M,t,e),this._ctx&&this._ctx[It](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){return this.addData(a.L,t,e),this._ctx&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx[Pt](t,e)),this._xi=t,this._yi=e,this},bezierCurveTo:function(t,e,i,n,r,o){return this.addData(a.C,t,e,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,o):this._ctx[zt](t,e,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(a.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,o){return this.addData(a.A,t,e,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=d(r)*i+t,this._xi=f(r)*i+t,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(a.R,t,e,i,n),this},closePath:function(){this.addData(a.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t[Lt]()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t[wi](),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t[Vi];i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t[Vi];this.data&&this.data[Vi]==e||!v||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t[Vi],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();v&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a[Vi];o++)this.data[n++]=a[o];this._len=n},addData:function(t){var e=this.data;this._len+arguments[Vi]>e[Vi]&&(this._expandData(),e=this.data);for(var i=0;i<arguments[Vi];i++)e[this._len++]=arguments[i];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,c=this._yi,d=t-l,f=e-c,v=p(d*d+f*f),m=l,g=c,y=o[Vi];for(d/=v,f/=v,0>a&&(a=r+a),a%=r,m-=a*d,g-=a*f;d>=0&&t>=m||0>d&&m>t;)n=this._dashIdx,i=o[n],m+=d*i,g+=f*i,this._dashIdx=(n+1)%y,d>0&&l>m||0>d&&m>l||s[n%2?It:Pt](d>=0?h(m,t):u(m,t),f>=0?h(g,e):u(g,e));d=m-t,f=g-e,this._dashOffset=-p(d*d+f*f)},_dashedBezierTo:function(t,i,n,r,a,o){var s,l,c,h,u,d=this._dashSum,f=this._dashOffset,v=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,_=e.cubicAt,x=0,b=this._dashIdx,w=v[Vi],M=0;for(0>f&&(f=d+f),f%=d,s=0;1>s;s+=.1)l=_(g,t,n,a,s+.1)-_(g,t,n,a,s),c=_(y,i,r,o,s+.1)-_(y,i,r,o,s),x+=p(l*l+c*c);for(;w>b&&(M+=v[b],!(M>f));b++);for(s=(M-f)/x;1>=s;)h=_(g,t,n,a,s),u=_(y,i,r,o,s),b%2?m[It](h,u):m[Pt](h,u),s+=v[b]/x,b=(b+1)%w;b%2!==0&&m[Pt](a,o),l=a-h,c=o-u,this._dashOffset=-p(l*l+c*c)},_dashedQuadraticTo:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,a)},toStatic:function(){this.data[Vi]=this._len,v&&this.data instanceof Array&&(this.data=new Float32Array(this.data))},getBoundingRect:function(){o[0]=o[1]=l[0]=l[1]=Number.MAX_VALUE,s[0]=s[1]=c[0]=c[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,h=0,u=0,p=0,v=0;v<t[Vi];){var m=t[v++];switch(1==v&&(e=t[v],h=t[v+1],u=e,p=h),m){case a.M:u=t[v++],p=t[v++],e=u,h=p,l[0]=u,l[1]=p,c[0]=u,c[1]=p;break;case a.L:n.fromLine(e,h,t[v],t[v+1],l,c),e=t[v++],h=t[v++];break;case a.C:n.fromCubic(e,h,t[v++],t[v++],t[v++],t[v++],t[v],t[v+1],l,c),e=t[v++],h=t[v++];break;case a.Q:n.fromQuadratic(e,h,t[v++],t[v++],t[v],t[v+1],l,c),e=t[v++],h=t[v++];break;case a.A:var g=t[v++],y=t[v++],_=t[v++],x=t[v++],b=t[v++],w=t[v++]+b,M=(t[v++],1-t[v++]);1==v&&(u=d(b)*_+g,p=f(b)*x+y),n.fromArc(g,y,_,x,b,w,M,l,c),e=d(w)*_+g,h=f(w)*x+y;break;case a.R:u=e=t[v++],p=h=t[v++];var S=t[v++],k=t[v++];n.fromLine(u,p,u+S,p+k,l,c);break;case a.Z:e=u,h=p}i.min(o,o,l),i.max(s,s,c)}return 0===v&&(o[0]=o[1]=s[0]=s[1]=0),new r(o[0],o[1],s[0]-o[0],s[1]-o[1])},rebuildPath:function(t){for(var e=this.data,i=0;i<this._len;){var n=e[i++];switch(n){case a.M:t[It](e[i++],e[i++]);break;case a.L:t[Pt](e[i++],e[i++]);break;case a.C:t[zt](e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);break;case a.Q:t.quadraticCurveTo(e[i++],e[i++],e[i++],e[i++]);break;case a.A:var r=e[i++],o=e[i++],s=e[i++],l=e[i++],c=e[i++],h=e[i++],u=e[i++],d=e[i++],f=s>l?s:l,p=s>l?1:s/l,v=s>l?l/s:1,m=Math.abs(s-l)>.001;m?(t.translate(r,o),t[le](u),t.scale(p,v),t.arc(0,0,f,c,c+h,1-d),t.scale(1/p,1/v),t[le](-u),t.translate(-r,-o)):t.arc(r,o,f,c,c+h,1-d);break;case a.R:t.rect(e[i++],e[i++],e[i++],e[i++]);break;case a.Z:t[Lt]()}}}},m.CMD=a,m}),e("zrender/contain/line",[],function(){return{containStroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,c=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return Math.abs(a-t)<=s/2;l=(e-n)/(t-i),c=(t*n-i*e)/(t-i);var h=l*a-o+c,u=h*h/(l*l+1);return s/2*s/2>=u}}}),e("zrender/contain/cubic",[qi,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c,h,u){if(0===c)return!1;var d=c;if(u>i+d&&u>r+d&&u>o+d&&u>l+d||i-d>u&&r-d>u&&o-d>u&&l-d>u||h>t+d&&h>n+d&&h>a+d&&h>s+d||t-d>h&&n-d>h&&a-d>h&&s-d>h)return!1;var f=e.cubicProjectPoint(t,i,n,r,a,o,s,l,h,u,null);return d/2>=f}}}),e("zrender/contain/quadratic",[qi,"../core/curve"],function(t){var e=t("../core/curve");return{containStroke:function(t,i,n,r,a,o,s,l,c){if(0===s)return!1;var h=s;if(c>i+h&&c>r+h&&c>o+h||i-h>c&&r-h>c&&o-h>c||l>t+h&&l>n+h&&l>a+h||t-h>l&&n-h>l&&a-h>l)return!1;var u=e.quadraticProjectPoint(t,i,n,r,a,o,l,c,null);return h/2>=u}}}),e("zrender/contain/util",[qi],function(t){var e=2*Math.PI;return{normalizeRadian:function(t){return t%=e,0>t&&(t+=e),t}}}),e("zrender/contain/arc",[qi,"./util"],function(t){var e=t("./util").normalizeRadian,i=2*Math.PI;return{containStroke:function(t,n,r,a,o,s,l,c,h){if(0===l)return!1;var u=l;c-=t,h-=n;var d=Math.sqrt(c*c+h*h);if(d-u>r||r>d+u)return!1;if(Math.abs(a-o)%i<1e-4)return!0;if(s){var f=a;a=e(o),o=e(f)}else a=e(a),o=e(o);a>o&&(o+=i);var p=Math.atan2(h,c);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/windingLine",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e),l=s*(i-t)+t;return l>r?o:0}}),e("zrender/contain/path",[qi,"../core/PathProxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingLine"],function(t){function e(t,e){return Math.abs(t-e)<g}function i(){var t=_[0];_[0]=_[1],_[1]=t}function n(t,e,n,r,a,o,s,l,c,h){if(h>e&&h>r&&h>o&&h>l||e>h&&r>h&&o>h&&l>h)return 0;var u=f.cubicRootAt(e,r,o,l,h,y);if(0===u)return 0;for(var d,p,v=0,m=-1,g=0;u>g;g++){var x=y[g],b=f.cubicAt(t,n,a,s,x);c>b||(0>m&&(m=f.cubicExtrema(e,r,o,l,_),_[1]<_[0]&&m>1&&i(),d=f.cubicAt(e,r,o,l,_[0]),m>1&&(p=f.cubicAt(e,r,o,l,_[1]))),v+=2==m?x<_[0]?e>d?1:-1:x<_[1]?d>p?1:-1:p>l?1:-1:x<_[0]?e>d?1:-1:d>l?1:-1)}return v}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=f.quadraticRootAt(e,n,a,s,y);if(0===l)return 0;var c=f.quadraticExtremum(e,n,a);if(c>=0&&1>=c){for(var h=0,u=f.quadraticAt(e,n,a,c),d=0;l>d;d++){var p=f.quadraticAt(t,i,r,y[d]);p>o||(h+=y[d]<c?e>u?1:-1:u>a?1:-1)}return h}var p=f.quadraticAt(t,i,r,y[0]);return p>o?0:e>a?1:-1}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);if(y[0]=-l,y[1]=l,Math.abs(n-r)%m<1e-4){n=0,r=m;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=d(r),r=d(l)}else n=d(n),r=d(r);n>r&&(r+=m);for(var h=0,u=0;2>u;u++){var f=y[u];if(f+t>o){var p=Math.atan2(s,f),c=a?1:-1;0>p&&(p=m+p),(p>=n&&r>=p||p+m>=n&&r>=p+m)&&(p>Math.PI/2&&p<1.5*Math.PI&&(c=-c),h+=c)}}return h}function o(t,i,o,l,d){for(var f=0,m=0,g=0,y=0,_=0,x=0;x<t[Vi];){var b=t[x++];if(b===s.M&&x>1&&(o||(f+=p(m,g,y,_,l,d)),0!==f))return!0;switch(1==x&&(m=t[x],g=t[x+1],y=m,_=g),b){case s.M:y=t[x++],_=t[x++],m=y,g=_;break;case s.L:if(o){if(v(m,g,t[x],t[x+1],i,l,d))return!0}else f+=p(m,g,t[x],t[x+1],l,d)||0;m=t[x++],g=t[x++];break;case s.C:if(o){if(c.containStroke(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l,d))return!0}else f+=n(m,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,d)||0;m=t[x++],g=t[x++];break;case s.Q:if(o){if(h.containStroke(m,g,t[x++],t[x++],t[x],t[x+1],i,l,d))return!0}else f+=r(m,g,t[x++],t[x++],t[x],t[x+1],l,d)||0;m=t[x++],g=t[x++];break;case s.A:var w=t[x++],M=t[x++],S=t[x++],k=t[x++],A=t[x++],C=t[x++],T=(t[x++],1-t[x++]),D=Math.cos(A)*S+w,L=Math.sin(A)*k+M;x>1?f+=p(m,g,D,L,l,d):(y=D,_=L);var z=(l-w)*k/S+w;if(o){if(u.containStroke(w,M,k,A,A+C,T,i,z,d))return!0}else f+=a(w,M,k,A,A+C,T,z,d);m=Math.cos(A+C)*S+w,g=Math.sin(A+C)*k+M;break;case s.R:y=m=t[x++],_=g=t[x++];var P=t[x++],I=t[x++],D=y+P,L=_+I;if(o){if(v(y,_,D,_,i,l,d)||v(D,_,D,L,i,l,d)||v(D,L,y,L,i,l,d)||v(y,L,D,L,i,l,d))return!0}else f+=p(D,_,D,L,l,d),f+=p(y,L,y,_,l,d);break;case s.Z:if(o){if(v(m,g,y,_,i,l,d))return!0}else if(f+=p(m,g,y,_,l,d),0!==f)return!0;m=y,g=_}}return o||e(g,_)||(f+=p(m,g,y,_,l,d)||0),0!==f}var s=t("../core/PathProxy").CMD,l=t("./line"),c=t("./cubic"),h=t("./quadratic"),u=t("./arc"),d=t("./util").normalizeRadian,f=t("../core/curve"),p=t("./windingLine"),v=l.containStroke,m=2*Math.PI,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containStroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/graphic/Path",[qi,"./Displayable",di,"../core/PathProxy","../contain/path","./Gradient"],function(t){function e(t){var e=t.fill;return null!=e&&"none"!==e}function i(t){var e=t[wi];return null!=e&&"none"!==e&&t[Mi]>0}function n(t){r.call(this,t),this.path=new o}var r=t("./Displayable"),a=t(di),o=t("../core/PathProxy"),s=t("../contain/path"),l=t("./Gradient"),c=Math.abs;return n[Wi]={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t){t.save();var n=this.style,r=this.path,a=i(n),o=e(n);this.__dirtyPath&&(o&&n.fill instanceof l&&n.fill.updateCanvasGradient(this,t),a&&n[wi]instanceof l&&n[wi].updateCanvasGradient(this,t)),n.bind(t,this),this.setTransform(t);var s=n.lineDash,c=n.lineDashOffset,h=!!t.setLineDash;this.__dirtyPath||s&&!h&&a?(r=this.path[Ot](t),s&&!h&&(r.setLineDash(s),r.setLineDashOffset(c)),this[Dt](r,this.shape),this.__dirtyPath=!1):(t[Ot](),this.path.rebuildPath(t)),o&&r.fill(t),s&&h&&(t.setLineDash(s),t.lineDashOffset=c),a&&r[wi](t),null!=n.text&&this.drawRectText(t,this[ei]()),t[Tt]()},buildPath:function(t,e){},getBoundingRect:function(){var t=this._rect,e=this.style;if(!t){var n=this.path;this.__dirtyPath&&(n[Ot](),this[Dt](n,this.shape)),t=n[ei]()}if(i(e)&&(this[Kt]||!this._rect)){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());r.copy(t);var a=e[Mi],o=e.strokeNoScale?this.getLineScale():1;return a=Math.max(a,this.strokeContainThreshold),o>1e-10&&(r.width+=a/o,r[vi]+=a/o,r.x-=a/o/2,r.y-=a/o/2),r}return this._rect=t,t},contain:function(t,n){var r=this[se](t,n),a=this[ei](),o=this.style;if(t=r[0],n=r[1],a[Rt](t,n)){var l=this.path.data;if(i(o)){var c=o[Mi],h=o.strokeNoScale?this.getLineScale():1;if(1e-10>h)return!1;if(c=Math.max(c,this.strokeContainThreshold),s.containStroke(l,c/h,t,n))return!0}if(e(o))return s[Rt](l,t,n)}return!1},dirty:function(t){0===arguments[Vi]&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this[Kt]=!0,this.__zr&&this.__zr[Jt](),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this[ie]("shape",t)},attrKV:function(t,e){"shape"===t?this[Ct](e):r[Wi].attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(a[Ee](t))for(var n in t)i[n]=t[n];else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this[ue];return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},n[Di]=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var r=this.shape;for(var a in i)!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(r[a]=i[a])}t.init&&t.init.call(this,e)};a[Ti](e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e[Wi][i]=t[i]);return e},a[Ti](n,r),n}),e("zrender/tool/transformPath",[qi,"../core/PathProxy","../core/vector"],function(t){function e(t,e){var n,l,c,h,u,d=t.data,f=i.M,p=i.C,v=i.L,m=i.R,g=i.A,y=i.Q;for(c=0,h=0;c<d[Vi];){switch(n=d[c++],h=c,l=0,n){case f:l=1;break;case v:l=1;break;case p:l=3;break;case y:l=2;break;case g:var _=e[4],x=e[5],b=o(e[0]*e[0]+e[1]*e[1]),w=o(e[2]*e[2]+e[3]*e[3]),M=s(-e[1]/w,e[0]/b);d[c+7];d[c++]+=_,d[c++]+=x,d[c++]*=b,d[c++]*=w,d[c++]+=M,d[c++]+=M,c+=2,h=c;break;case m:S[0]=d[c++],S[1]=d[c++],r(S,S,e),d[h++]=S[0],d[h++]=S[1],S[0]+=d[c++],S[1]+=d[c++],r(S,S,e),d[h++]=S[0],d[h++]=S[1]}for(u=0;l>u;u++){var S=a[u];S[0]=d[c++],S[1]=d[c++],r(S,S,e),d[h++]=S[0],d[h++]=S[1]}}}var i=t("../core/PathProxy").CMD,n=t("../core/vector"),r=n[mi],a=[[],[],[]],o=Math.sqrt,s=Math.atan2;return e}),e("zrender/tool/path",[qi,"../graphic/Path","../core/PathProxy","./transformPath","../core/matrix"],function(t){function e(t,e,i,n,r,a,o,s,l,f,m){var g=l*(d/180),y=u(g)*(t-i)/2+h(g)*(e-n)/2,_=-1*h(g)*(t-i)/2+u(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=c(x),s*=c(x));var b=(r===a?-1:1)*c((o*o*(s*s)-o*o*(_*_)-s*s*(y*y))/(o*o*(_*_)+s*s*(y*y)))||0,w=b*o*_/s,M=b*-s*y/o,S=(t+i)/2+u(g)*w-h(g)*M,k=(e+n)/2+h(g)*w+u(g)*M,A=v([1,0],[(y-w)/o,(_-M)/s]),C=[(y-w)/o,(_-M)/s],T=[(-1*y-w)/o,(-1*_-M)/s],D=v(C,T);p(C,T)<=-1&&(D=d),p(C,T)>=1&&(D=0),0===a&&D>0&&(D-=2*d),1===a&&0>D&&(D+=2*d),m.addData(f,S,k,o,s,A,D,g,a)}function i(t){if(!t)return[];var i,n=t[Qe](/-/g," -")[Qe](/  /g," ")[Qe](/ /g,",")[Qe](/,,/g,",");for(i=0;i<l[Vi];i++)n=n[Qe](new RegExp(l[i],"g"),"|"+l[i]);var r,o=n.split("|"),s=0,c=0,h=new a,u=a.CMD;for(i=1;i<o[Vi];i++){var d,f=o[i],p=f.charAt(0),v=0,m=f.slice(1)[Qe](/e,-/g,"e-").split(",");m[Vi]>0&&""===m[0]&&m.shift();for(var g=0;g<m[Vi];g++)m[g]=parseFloat(m[g]);for(;v<m[Vi]&&!isNaN(m[v])&&!isNaN(m[0]);){var y,_,x,b,w,M,S,k=s,A=c;switch(p){case"l":s+=m[v++],c+=m[v++],d=u.L,h.addData(d,s,c);break;case"L":s=m[v++],c=m[v++],d=u.L,h.addData(d,s,c);break;case"m":s+=m[v++],c+=m[v++],d=u.M,h.addData(d,s,c),p="l";break;case"M":s=m[v++],c=m[v++],d=u.M,h.addData(d,s,c),p="L";break;case"h":s+=m[v++],d=u.L,h.addData(d,s,c);break;case"H":s=m[v++],d=u.L,h.addData(d,s,c);break;case"v":c+=m[v++],d=u.L,h.addData(d,s,c);break;case"V":c=m[v++],d=u.L,h.addData(d,s,c);break;case"C":d=u.C,h.addData(d,m[v++],m[v++],m[v++],m[v++],m[v++],m[v++]),s=m[v-2],c=m[v-1];break;case"c":d=u.C,h.addData(d,m[v++]+s,m[v++]+c,m[v++]+s,m[v++]+c,m[v++]+s,m[v++]+c),s+=m[v-2],c+=m[v-1];break;case"S":y=s,_=c;var C=h.len(),T=h.data;r===u.C&&(y+=s-T[C-4],_+=c-T[C-3]),d=u.C,k=m[v++],A=m[v++],s=m[v++],c=m[v++],h.addData(d,y,_,k,A,s,c);break;case"s":y=s,_=c;var C=h.len(),T=h.data;r===u.C&&(y+=s-T[C-4],_+=c-T[C-3]),d=u.C,k=s+m[v++],A=c+m[v++],s+=m[v++],c+=m[v++],h.addData(d,y,_,k,A,s,c);break;case"Q":k=m[v++],A=m[v++],s=m[v++],c=m[v++],d=u.Q,h.addData(d,k,A,s,c);break;case"q":k=m[v++]+s,A=m[v++]+c,s+=m[v++],c+=m[v++],d=u.Q,h.addData(d,k,A,s,c);break;case"T":y=s,_=c;var C=h.len(),T=h.data;r===u.Q&&(y+=s-T[C-4],_+=c-T[C-3]),s=m[v++],c=m[v++],d=u.Q,h.addData(d,y,_,s,c);break;case"t":y=s,_=c;var C=h.len(),T=h.data;r===u.Q&&(y+=s-T[C-4],_+=c-T[C-3]),s+=m[v++],c+=m[v++],d=u.Q,h.addData(d,y,_,s,c);break;case"A":x=m[v++],b=m[v++],w=m[v++],M=m[v++],S=m[v++],k=s,A=c,s=m[v++],c=m[v++],d=u.A,e(k,A,s,c,M,S,x,b,w,d,h);break;case"a":x=m[v++],b=m[v++],w=m[v++],M=m[v++],S=m[v++],k=s,A=c,s+=m[v++],c+=m[v++],d=u.A,e(k,A,s,c,M,S,x,b,w,d,h)}}("z"===p||"Z"===p)&&(d=u.Z,h.addData(d)),r=d}return h.toStatic(),h}function n(t,e){var n,r=i(t);return e=e||{},e[Dt]=function(t){t.setData(r.data),n&&o(t,n);var e=t[Zi]();e&&t.rebuildPath(e)},e[mi]=function(t){n||(n=s[pi]()),s.mul(n,t,n)},e}var r=t("../graphic/Path"),a=t("../core/PathProxy"),o=t("./transformPath"),s=t("../core/matrix"),l=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,h=Math.sin,u=Math.cos,d=Math.PI,f=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},p=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))};return{createFromString:function(t,e){return new r(n(t,e))},extendFromString:function(t,e){return r[Di](n(t,e))},mergePath:function(t,e){var i,n,a=[],o=t[Vi];for(n=0;o>n;n++)i=t[n],i[Kt]&&i[Dt](i.path,i.shape),a.push(i.path);var s=new r(e);return s[Dt]=function(t){t.appendPath(a);var e=t[Zi]();e&&t.rebuildPath(e)},s}}}),e("zrender/graphic/helper/roundRect",[qi],function(t){return{buildPath:function(t,e){var i,n,r,a,o=e.x,s=e.y,l=e.width,c=e[vi],h=e.r;typeof h===Oi?i=n=r=a=h:h instanceof Array?1===h[Vi]?i=n=r=a=h[0]:2===h[Vi]?(i=r=h[0],n=a=h[1]):3===h[Vi]?(i=h[0],n=a=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],a=h[3]):i=n=r=a=0;var u;i+n>l&&(u=i+n,i*=l/u,n*=l/u),r+a>l&&(u=r+a,r*=l/u,a*=l/u),n+r>c&&(u=n+r,n*=c/u,r*=c/u),i+a>c&&(u=i+a,i*=c/u,a*=c/u),t[It](o+i,s),t[Pt](o+l-n,s),0!==n&&t.quadraticCurveTo(o+l,s,o+l,s+n),t[Pt](o+l,s+c-r),0!==r&&t.quadraticCurveTo(o+l,s+c,o+l-r,s+c),t[Pt](o+a,s+c),0!==a&&t.quadraticCurveTo(o,s+c,o,s+c-a),t[Pt](o,s+i),0!==i&&t.quadraticCurveTo(o,s,o+i,s)}}}),e("zrender/core/LRU",[qi],function(t){var e=function(){this.head=null,this.tail=null,this._len=0},i=e[Wi];i.insert=function(t){var e=new n(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},i[Qt]=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len};var n=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new e,this._map={},this._maxSize=t||10},a=r[Wi];return a.put=function(t,e){var i=this._list,n=this._map;if(null==n[t]){var r=i.len();if(r>=this._maxSize&&r>0){var a=i.head;i[Qt](a),delete n[a.key]}var o=i.insert(e);o.key=t,n[t]=o}},a.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i[Qt](e),i.insertEntry(e)),e.value):void 0},a.clear=function(){this._list.clear(),this._map={}},r}),e("zrender/graphic/Image",[qi,"./Displayable",ui,di,"./helper/roundRect","../core/LRU"],function(t){var e=t("./Displayable"),i=t(ui),n=t(di),r=t("./helper/roundRect"),a=t("../core/LRU"),o=new a(50),s=function(t){e.call(this,t)};return s[Wi]={constructor:s,type:"image",brush:function(t){var e,i=this.style,n=i.image;if(e=typeof n===Ri?this._image:n,!e&&n){var a=o.get(n);if(!a)return e=new Image,e.onload=function(){e.onload=null;for(var t=0;t<a.pending[Vi];t++)a.pending[t].dirty()},a={image:e,pending:[this]},e.src=n,o.put(n,a),void(this._image=e);if(e=a.image,this._image=e,!e.width||!e[vi])return void a.pending.push(this)}if(e){var s=i.width||e.width,l=i[vi]||e[vi],c=i.x||0,h=i.y||0;if(!e.width||!e[vi])return;if(t.save(),i.bind(t),this.setTransform(t),i.r&&(t[Ot](),r[Dt](t,i),t.clip()),i.sWidth&&i.sHeight){var u=i.sx||0,d=i.sy||0;t.drawImage(e,u,d,i.sWidth,i.sHeight,c,h,s,l)}else if(i.sx&&i.sy){var u=i.sx,d=i.sy,f=s-u,p=l-d;t.drawImage(e,u,d,f,p,c,h,s,l)}else t.drawImage(e,c,h,s,l);null==i.width&&(i.width=s),null==i[vi]&&(i[vi]=l),null!=i.text&&this.drawRectText(t,this[ei]()),t[Tt]()}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new i(t.x||0,t.y||0,t.width||0,t[vi]||0)),this._rect}},n[Ti](s,e),s}),e("zrender/graphic/Text",[qi,"./Displayable",di,"../contain/text"],function(t){var e=t("./Displayable"),i=t(di),n=t("../contain/text"),r=function(t){e.call(this,t)};return r[Wi]={constructor:r,type:"text",brush:function(t){var e=this.style,i=e.x||0,r=e.y||0,a=e.text,o=e.fill,s=e[wi];if(null!=a&&(a+=""),a){t.save(),this.style.bind(t),this.setTransform(t),o&&(t.fillStyle=o),s&&(t.strokeStyle=s),t.font=e.textFont||e.font,t[Zt]=e[Zt],t[Bt]=e[Bt];for(var l=n.measureText("国",t.font).width,c=a.split("\n"),h=0;h<c[Vi];h++)o&&t.fillText(c[h],i,r),s&&t.strokeText(c[h],i,r),r+=l;t[Tt]()}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=n[ei](t.text+"",t.textFont,t[Zt],t[Bt]);e.x+=t.x||0,e.y+=t.y||0,this._rect=e}return this._rect}},i[Ti](r,e),r}),e("zrender/graphic/shape/Circle",[qi,"../Path"],function(t){return t("../Path")[Di]({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e){t[It](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})}),e("zrender/graphic/shape/Sector",[qi,"../Path"],function(t){return t("../Path")[Di]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.r0||0,a=e.r,o=e.startAngle,s=e.endAngle,l=e.clockwise,c=Math.cos(o),h=Math.sin(o);t[It](c*r+i,h*r+n),t[Pt](c*a+i,h*a+n),t.arc(i,n,a,o,s,!l),t[Pt](Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,o,l),t[Lt]()}})}),e("zrender/graphic/helper/smoothSpline",[qi,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[Vi],a=[],o=0,s=1;r>s;s++)o+=i[yi](t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var c,h,u,d=s/(l-1)*(n?r:r-1),f=Math.floor(d),p=d-f,v=t[f%r];n?(c=t[(f-1+r)%r],h=t[(f+1)%r],u=t[(f+2)%r]):(c=t[0===f?f:f-1],h=t[f>r-2?r-1:f+1],u=t[f>r-3?r-1:f+2]);var m=p*p,g=p*m;a.push([e(c[0],v[0],h[0],u[0],p,m,g),e(c[1],v[1],h[1],u[1],p,m,g)])}return a}}),e("zrender/graphic/helper/smoothBezier",[qi,"../../core/vector"],function(t){var e=t("../../core/vector"),i=e.min,n=e.max,r=e.scale,a=e[yi],o=e.add;return function(t,s,l,c){var h,u,d,f,p=[],v=[],m=[],g=[];if(c){d=[1/0,1/0],f=[-(1/0),-(1/0)];for(var y=0,_=t[Vi];_>y;y++)i(d,d,t[y]),n(f,f,t[y]);i(d,d,c[0]),n(f,f,c[1])}for(var y=0,_=t[Vi];_>y;y++){var x=t[y];if(l)h=t[y?y-1:_-1],u=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}h=t[y-1],u=t[y+1]}e.sub(v,u,h),r(v,v,s);var b=a(x,h),w=a(x,u),M=b+w;0!==M&&(b/=M,w/=M),r(m,v,-b),r(g,v,w);var S=o([],x,m),k=o([],x,g);c&&(n(S,S,d),i(S,S,f),n(k,k,d),i(k,k,f)),p.push(S),p.push(k)}return l&&p.push(p.shift()),p}}),e("zrender/graphic/helper/poly",[qi,"./smoothSpline","./smoothBezier"],function(t){var e=t("./smoothSpline"),i=t("./smoothBezier");return{buildPath:function(t,n,r){var a=n[At],o=n.smooth;if(a&&a[Vi]>=2){if(o&&"spline"!==o){var s=i(a,o,r,n.smoothConstraint);t[It](a[0][0],a[0][1]);for(var l=a[Vi],c=0;(r?l:l-1)>c;c++){var h=s[2*c],u=s[2*c+1],d=a[(c+1)%l];t[zt](h[0],h[1],u[0],u[1],d[0],d[1])}}else{"spline"===o&&(a=e(a,r)),t[It](a[0][0],a[0][1]);for(var c=1,f=a[Vi];f>c;c++)t[Pt](a[c][0],a[c][1])}r&&t[Lt]()}}}}),e("zrender/graphic/shape/Polygon",[qi,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Di]({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,i){e[Dt](t,i,!0)}})}),e("zrender/graphic/shape/Polyline",[qi,"../helper/poly","../Path"],function(t){var e=t("../helper/poly");return t("../Path")[Di]({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,i){e[Dt](t,i,!1)}})}),e("zrender/graphic/shape/Rect",[qi,"../helper/roundRect","../Path"],function(t){var e=t("../helper/roundRect");return t("../Path")[Di]({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,i){var n=i.x,r=i.y,a=i.width,o=i[vi];i.r?e[Dt](t,i):t.rect(n,r,a,o),t[Lt]()}})}),e("zrender/graphic/shape/Line",[qi,"../Path"],function(t){return t("../Path")[Di]({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t[It](i,n),1>o&&(r=i*(1-o)+r*o,a=n*(1-o)+a*o),t[Pt](r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/shape/BezierCurve",[qi,"../../core/curve","../Path"],function(t){var e=t("../../core/curve"),i=e.quadraticSubdivide,n=e.cubicSubdivide,r=e.quadraticAt,a=e.cubicAt,o=[];return t("../Path")[Di]({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,a=e.y1,s=e.x2,l=e.y2,c=e.cpx1,h=e.cpy1,u=e.cpx2,d=e.cpy2,f=e.percent;0!==f&&(t[It](r,a),null==u||null==d?(1>f&&(i(r,c,s,f,o),c=o[1],s=o[2],i(a,h,l,f,o),h=o[1],l=o[2]),t.quadraticCurveTo(c,h,s,l)):(1>f&&(n(r,c,u,s,f,o),c=o[1],u=o[2],s=o[3],n(a,h,d,l,f,o),h=o[1],d=o[2],l=o[3]),t[zt](c,h,u,d,s,l)))},pointAt:function(t){var e=this.shape,i=e.cpx2,n=e.cpy2;return null===i||null===n?[r(e.x1,e.cpx1,e.x2,t),r(e.y1,e.cpy1,e.y2,t)]:[a(e.x1,e.cpx1,e.cpx1,e.x2,t),a(e.y1,e.cpy1,e.cpy1,e.y2,t)]}})}),e("zrender/graphic/shape/Arc",[qi,"../Path"],function(t){return t("../Path")[Di]({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),c=Math.sin(a);t[It](l*r+i,c*r+n),t.arc(i,n,r,a,o,!s)}})}),e("zrender/graphic/LinearGradient",[qi,di,"./Gradient"],function(t){var e=t(di),i=t("./Gradient"),n=function(t,e,n,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==r?0:r,i.call(this,a)};return n[Wi]={constructor:n,type:"linear",updateCanvasGradient:function(t,e){for(var i=t[ei](),n=this.x*i.width+i.x,r=this.x2*i.width+i.x,a=this.y*i[vi]+i.y,o=this.y2*i[vi]+i.y,s=e.createLinearGradient(n,a,r,o),l=this.colorStops,c=0;c<l[Vi];c++)s.addColorStop(l[c].offset,l[c].color);this.canvasGradient=s}},e[Ti](n,i),n}),e("zrender/graphic/RadialGradient",[qi,di,"./Gradient"],function(t){var e=t(di),i=t("./Gradient"),n=function(t,e,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,i.call(this,r)};return n[Wi]={constructor:n,type:"radial",updateCanvasGradient:function(t,e){for(var i=t[ei](),n=i.width,r=i[vi],a=Math.min(n,r),o=this.x*n+i.x,s=this.y*r+i.y,l=this.r*a,c=e.createRadialGradient(o,s,0,o,s,l),h=this.colorStops,u=0;u<h[Vi];u++)c.addColorStop(h[u].offset,h[u].color);this.canvasGradient=c}},e[Ti](n,i),n}),e("echarts/util/graphic",[qi,Hi,"zrender/tool/path","zrender/graphic/Path",ae,"zrender/core/matrix",xi,"zrender/graphic/Gradient","zrender/container/Group","zrender/graphic/Image","zrender/graphic/Text","zrender/graphic/shape/Circle","zrender/graphic/shape/Sector","zrender/graphic/shape/Polygon","zrender/graphic/shape/Polyline","zrender/graphic/shape/Rect","zrender/graphic/shape/Line","zrender/graphic/shape/BezierCurve","zrender/graphic/shape/Arc","zrender/graphic/LinearGradient","zrender/graphic/RadialGradient"],function(t){
  function e(t){if(!t.__isHover){if(t.__hoverStlDirty){var e=t.style[wi],i=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(i instanceof y?i:v.lift(i,-.1)),n[wi]=n[wi]||(e instanceof y?e:v.lift(e,-.1));var r={};for(var a in n)n.hasOwnProperty(a)&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}t[bt](t.__hoverStl),t.z2+=1,t.__isHover=!0}}function i(t){if(t.__isHover){var e=t.__normalStl;e&&t[bt](e),t.z2-=1,t.__isHover=!1}}function n(t){"group"===t.type?t[Xt](function(t){"group"!==t.type&&e(t)}):e(t)}function r(t){"group"===t.type?t[Xt](function(t){"group"!==t.type&&i(t)}):i(t)}function a(t,e){t.__hoverStl=t[xt]||e,t.__hoverStlDirty=!0}function o(){!this.__isEmphasis&&n(this)}function s(){!this.__isEmphasis&&r(this)}function l(){this.__isEmphasis=!0,n(this)}function c(){this.__isEmphasis=!1,r(this)}function h(t,e,i,n,r){var a=t?"Update":"",o=n&&n[Si]("animationDuration"+a),s=n&&n[Si]("animationEasing"+a);n&&n[Si](re)?e.animateTo(i,o,s,r):(e.attr(i),r&&r())}var u=t(Hi),d=t("zrender/tool/path"),f=Math.round,p=t("zrender/graphic/Path"),v=t(ae),m=t("zrender/core/matrix"),g=t(xi),y=t("zrender/graphic/Gradient"),_={};return _.Group=t("zrender/container/Group"),_.Image=t("zrender/graphic/Image"),_.Text=t("zrender/graphic/Text"),_.Circle=t("zrender/graphic/shape/Circle"),_[kt]=t("zrender/graphic/shape/Sector"),_.Polygon=t("zrender/graphic/shape/Polygon"),_[St]=t("zrender/graphic/shape/Polyline"),_.Rect=t("zrender/graphic/shape/Rect"),_.Line=t("zrender/graphic/shape/Line"),_.BezierCurve=t("zrender/graphic/shape/BezierCurve"),_.Arc=t("zrender/graphic/shape/Arc"),_.LinearGradient=t("zrender/graphic/LinearGradient"),_.RadialGradient=t("zrender/graphic/RadialGradient"),_[Mt]=function(t){return p[Di](t)},_.extendPath=function(t,e){return d.extendFromString(t,e)},_.makePath=function(t,e,i,n){var r=d.createFromString(t,e),a=r[ei]();if(i){var o=a.width/a[vi];if(n===li){var s,l=i[vi]*o;l<=i.width?s=i[vi]:(l=i.width,s=l/o);var c=i.x+i.width/2,h=i.y+i[vi]/2;i.x=c-l/2,i.y=h-s/2,i.width=l,i[vi]=s}this.resizePath(r,i)}return r},_.mergePath=d.mergePath,_.resizePath=function(t,e){if(t[mi]){var i=t[ei](),n=i.calculateTransform(e);t[mi](n)}},_.subPixelOptimizeLine=function(t){var e=_.subPixelOptimize,i=t.shape,n=t.style[Mi];return f(2*i.x1)===f(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),f(2*i.y1)===f(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},_[wt]=function(t){var e=_.subPixelOptimize,i=t.shape,n=t.style[Mi],r=i.x,a=i.y,o=i.width,s=i[vi];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[vi]=Math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},_.subPixelOptimize=function(t,e,i){var n=f(2*t);return(n+f(e))%2===0?n/2:(n+(i?1:-1))/2},_[_t]=function(t,e){e=e||{},"group"===t.type?t[Xt](function(t){"group"!==t.type&&a(t,e)}):a(t,e),t.on(yt,o).on(gt,s),t.on(Se,l).on(Me,c)},_.setText=function(t,e,i){var n=e[Si](He)||si,r=n[Bi](si)>=0?"white":i,a=e[ni](ii);u[Di](t,{textDistance:e[Si](yi)||5,textFont:a[ti](),textPosition:n,textFill:a[mt]()||r})},_[vt]=u.curry(h,!0),_[pt]=u.curry(h,!1),_.getTransform=function(t,e){for(var i=m.identity([]);t&&t!==e;)m.mul(i,t[ce](),i),t=t[he];return i},_[mi]=function(t,e,i){return i&&(e=m.invert([],e)),g[mi]([],t,e)},_.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===hi?r:0];return a=_[mi](a,e,i),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?hi:"top"},_}),e("zrender/core/env",[],function(){function t(t){var e=this.os={},i=this.browser={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=t.match(/(Android);?[\s\/]+([\d.]+)?/),a=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),s=!a&&t.match(/(iPhone\sOS)\s([\d_]+)/),l=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),c=l&&t.match(/TouchPad/),h=t.match(/Kindle\/([\d.]+)/),u=t.match(/Silk\/([\d._]+)/),d=t.match(/(BlackBerry).*Version\/([\d.]+)/),f=t.match(/(BB10).*Version\/([\d.]+)/),p=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),y=t.match(/MSIE ([\d.]+)/),_=n&&t.match(/Mobile\//)&&!m,x=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,y=t.match(/MSIE\s([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),r&&(e.android=!0,e.version=r[2]),s&&!o&&(e.ios=e.iphone=!0,e.version=s[2][Qe](/_/g,".")),a&&(e.ios=e.ipad=!0,e.version=a[2][Qe](/_/g,".")),o&&(e.ios=e.ipod=!0,e.version=o[3]?o[3][Qe](/_/g,"."):null),l&&(e.webos=!0,e.version=l[2]),c&&(e.touchpad=!0),d&&(e.blackberry=!0,e.version=d[2]),f&&(e.bb10=!0,e.version=f[2]),p&&(e.rimtabletos=!0,e.version=p[2]),v&&(i.playbook=!0),h&&(e.kindle=!0,e.version=h[1]),u&&(i.silk=!0,i.version=u[1]),!u&&e.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),g&&(i.firefox=!0,i.version=g[1]),y&&(i.ie=!0,i.version=y[1]),_&&(t.match(/Safari/)||e.ios)&&(i.safari=!0),x&&(i.webview=!0),y&&(i.ie=!0,i.version=y[1]),e.tablet=!!(a||v||r&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||y&&!t.match(/Phone/)&&t.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||s||l||d||f||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||y&&t.match(/Touch/))),{browser:i,os:e,node:!1,canvasSupported:document[Ni](Ei)[Zi]?!0:!1}}return typeof navigator===_i?{browser:{},os:{},node:!0,canvasSupported:!0}:t(navigator.userAgent)}),e(ft,[qi,"../mixin/Eventful"],function(t){function e(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function i(t,i){if(i=i||window.event,null!=i.zrX)return i;var n=i.type,r=n&&n[Bi]("touch")>=0;if(r){var a="touchend"!=n?i.targetTouches[0]:i.changedTouches[0];if(a){var o=e(t);i.zrX=a.clientX-o.left,i.zrY=a.clientY-o.top}}else{var s=0,l=0;i.pageX||i.pageY?(s=i.pageX,l=i.pageY):(s=i.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,l=i.clientY+document.body.scrollTop+document.documentElement.scrollTop);var c=e(t),h=c.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),u=c.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0);i.zrX=s-u,i.zrY=l-h,i.zrDelta=i.wheelDelta?i.wheelDelta/120:-(i.detail||0)/3}return i}function n(t,e,i){o?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function r(t,e,i){o?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}var a=t("../mixin/Eventful"),o=typeof window!==_i&&!!window.addEventListener,s=o?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};return{normalizeEvent:i,addEventListener:n,removeEventListener:r,stop:s,Dispatcher:a}}),e("zrender/mixin/Draggable",[qi],function(t){function e(){this.on("mousedown",this._dragStart,this),this.on(dt,this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}return e[Wi]={constructor:e,_dragStart:function(t){var e=t[oe];e&&e[ee]&&(this._draggingTarget=e,e.dragging=!0,this._x=t[ut],this._y=t[ht],this._dispatchProxy(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t[ut],n=t[ht],r=i-this._x,a=n-this._y;this._x=i,this._y=n,e.drift(r,a,t),this._dispatchProxy(e,"drag",t.event);var o=this._findHover(i,n,e),s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this._dispatchProxy(s,"dragleave",t.event),o&&o!==s&&this._dispatchProxy(o,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this._dispatchProxy(e,"dragend",t.event),this._dropTarget&&this._dispatchProxy(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},e}),e("zrender/core/GestureMgr",[qi],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=function(){this._track=[]};n[Wi]={constructor:n,recognize:function(t,e){return this._doTrack(t,e),this._recognize(t)},clear:function(){return this._track[Vi]=0,this},_doTrack:function(t,e){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},r=0,a=i[Vi];a>r;r++){var o=i[r];n[At].push([o.clientX,o.clientY]),n.touches.push(o)}this._track.push(n)}},_recognize:function(t){for(var e in r)if(r.hasOwnProperty(e)){var i=r[e](this._track,t);if(i)return i}}};var r={pinch:function(t,n){var r=t[Vi];if(r){var a=(t[r-1]||{})[At],o=(t[r-2]||{})[At]||a;if(o&&o[Vi]>1&&a&&a[Vi]>1){var s=e(a)/e(o);!isFinite(s)&&(s=1),n.pinchScale=s;var l=i(a);return n.pinchX=l[0],n.pinchY=l[1],{type:"pinch",target:t[0][oe],event:n}}}}};return n}),e("zrender/Handler",[qi,"./core/env","./core/event","./core/util","./mixin/Draggable","./core/GestureMgr","./mixin/Eventful"],function(t){function e(t){return"_"+t+"Handler"}function i(t,e,i){return{type:t,event:i,target:e,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta}}function n(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t._findHover(e.zrX,e.zrY,null));if("end"===i&&n.clear(),r){var a=r.type;e.gestureEvent=a,t._dispatchProxy(r[oe],a,r.event)}}function r(t){for(var i=d[Ii](f),n=i[Vi];n--;){var r=i[n];t[e(r)]=l.bind(y[r],t)}}function a(t,e,i){if(t[t.rectHover?"rectContain":Rt](e,i)){for(var n=t[he];n;){if(n.clipPath&&!n.clipPath[Rt](e,i))return!1;n=n[he]}return!0}return!1}var o=t("./core/env"),s=t("./core/event"),l=t("./core/util"),c=t("./mixin/Draggable"),h=t("./core/GestureMgr"),u=t("./mixin/Eventful"),d=["click","dblclick","mousewheel",dt,gt,"mouseup","mousedown"],f=["touchstart","touchend","touchmove"],p=300,v=s.addEventListener,m=s.removeEventListener,g=s.normalizeEvent,y={mousemove:function(t){t=g(this.root,t);var e=t.zrX,i=t.zrY,n=this._findHover(e,i,null),r=this._hovered;this._hovered=n,this.root.style.cursor=n?n.cursor:this._defaultCursorStyle,r&&n!==r&&r.__zr&&this._dispatchProxy(r,gt,t),this._dispatchProxy(n,dt,t),n&&n!==r&&this._dispatchProxy(n,yt,t)},mouseout:function(t){t=g(this.root,t);var e=t.toElement||t.relatedTarget;if(e!=this.root)for(;e&&9!=e.nodeType;){if(e===this.root)return;e=e[ct]}this._dispatchProxy(this._hovered,gt,t),this[Ht]("globalout",{event:t})},touchstart:function(t){t=g(this.root,t),this._lastTouchMoment=new Date,n(this,t,"start"),this._mousemoveHandler(t),this._mousedownHandler(t)},touchmove:function(t){t=g(this.root,t),n(this,t,"change"),this._mousemoveHandler(t)},touchend:function(t){t=g(this.root,t),n(this,t,"end"),this._mouseupHandler(t),+new Date-this._lastTouchMoment<p&&this._clickHandler(t)}};l.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(t){y[t]=function(e){e=g(this.root,e);var i=this._findHover(e.zrX,e.zrY,null);this._dispatchProxy(i,t,e)}});var _=function(t,i,n){u.call(this),this.root=t,this[lt]=i,this.painter=n,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,this._defaultCursorStyle="default",this._gestureMgr=new h,r(this),o.os.tablet||o.os.phone?(l.each(f,function(i){v(t,i,this[e(i)])},this),v(t,gt,this._mouseoutHandler)):(l.each(d,function(i){v(t,i,this[e(i)])},this),v(t,"DOMMouseScroll",this._mousewheelHandler)),c.call(this)};return _[Wi]={constructor:_,resize:function(t){this._hovered=null},dispatch:function(t,i){var n=this[e(t)];n&&n(i)},dispose:function(){for(var t=this.root,i=d[Ii](f),n=0;n<i[Vi];n++){var r=i[n];m(t,r,this[e(r)])}m(t,"DOMMouseScroll",this._mousewheelHandler),this.root=this[lt]=this.painter=null},setDefaultCursorStyle:function(t){this._defaultCursorStyle=t},_dispatchProxy:function(t,e,n){for(var r="on"+e,a=i(e,t,n),o=t;o&&(o[r]&&(a.cancelBubble=o[r].call(o,a)),o[Ht](e,a),o=o[he],!a.cancelBubble););a.cancelBubble||(this[Ht](e,a),this.painter&&this.painter.eachOtherLayer(function(t){typeof t[r]==Pi&&t[r].call(t,a),t[Ht]&&t[Ht](e,a)}))},_findHover:function(t,e,i){for(var n=this[lt][st](),r=n[Vi]-1;r>=0;r--)if(!n[r].silent&&n[r]!==i&&a(n[r],t,e))return n[r]}},l.mixin(_,u),l.mixin(_,c),_}),e("zrender/Storage",[qi,"./core/util","./container/Group"],function(t){function e(t,e){return t[ot]===e[ot]?t.z===e.z?t.z2===e.z2?t.__renderidx-e.__renderidx:t.z2-e.z2:t.z-e.z:t[ot]-e[ot]}var i=t("./core/util"),n=t("./container/Group"),r=function(){this._elements={},this._roots=[],this._displayList=[],this._displayListLen=0};return r[Wi]={constructor:r,getDisplayList:function(t){return t&&this.updateDisplayList(),this._displayList},updateDisplayList:function(){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t[Vi];r>n;n++){var a=t[n];this._updateAndAddDisplayable(a)}i[Vi]=this._displayListLen;for(var n=0,r=i[Vi];r>n;n++)i[n].__renderidx=n;i.sort(e)},_updateAndAddDisplayable:function(t,e){if(!t[te]){t.beforeUpdate(),t[at](),t.afterUpdate();var i=t.clipPath;if(i&&(i[he]=t,i.updateTransform(),e?(e=e.slice(),e.push(i)):e=[i]),"group"==t.type){for(var n=t._children,r=0;r<n[Vi];r++){var a=n[r];a[Kt]=t[Kt]||a[Kt],this._updateAndAddDisplayable(a,e)}t[Kt]=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){this._elements[t.id]||(t instanceof n&&t.addChildrenToStorage(this),this[Yt](t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots[Vi];e++){var r=this._roots[e];r instanceof n&&r.delChildrenFromStorage(this)}return this._elements={},this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,a=t[Vi];a>e;e++)this.delRoot(t[e]);else{var o;o=typeof t==Ri?this._elements[t]:t;var s=i[Bi](this._roots,o);s>=0&&(this[$t](o.id),this._roots[Ie](s,1),o instanceof n&&o.delChildrenFromStorage(this))}},addToMap:function(t){return t instanceof n&&(t.__storage=this),t.dirty(),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,i=e[t];return i&&(delete e[t],i instanceof n&&(i.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null}},r}),e("zrender/animation/Animation",[qi,di,"../core/event","./Animator"],function(t){var e=t(di),i=t("../core/event").Dispatcher,n=typeof window!==_i&&(window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},r=t("./Animator"),a=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time=0,i.call(this)};return a[Wi]={constructor:a,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t[re]=this;for(var e=t.getClips(),i=0;i<e[Vi];i++)this.addClip(e[i])},removeClip:function(t){var i=e[Bi](this._clips,t);i>=0&&this._clips[Ie](i,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e[Vi];i++)this.removeClip(e[i]);t[re]=null},_update:function(){for(var t=(new Date).getTime(),e=t-this._time,i=this._clips,n=i[Vi],r=[],a=[],o=0;n>o;o++){var s=i[o],l=s.step(t);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[Vi];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[Ht]("frame",e),this.stage[at]&&this.stage[at]()},start:function(){function t(){e._running&&(n(t),e._update())}var e=this;this._running=!0,this._time=(new Date).getTime(),n(t)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new r(t,e.loop,e.getter,e.setter);return i}},e.mixin(a,i),a}),e("zrender/Layer",[qi,"./core/util","./config"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[Ni](e),a=i[ze](),o=i[Le](),s=r.style;return s[He]="absolute",s.left=0,s.top=0,s.width=a+"px",s[vi]=o+"px",r.width=a*n,r[vi]=o*n,r.setAttribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=function(t,a,o){var s;o=o||r.devicePixelRatio,typeof t===Ri?s=i(t,Ei,a,o):n[Ee](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=o};return a[Wi]={constructor:a,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom[Zi]("2d");var t=this.dpr;1!=t&&this.ctx.scale(t,t)},createBackBuffer:function(){var t=this.dpr;this.domBack=i("back-"+this.id,Ei,this.painter,t),this.ctxBack=this.domBack[Zi]("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domBack;r.width=t+"px",r[vi]=e+"px",n.width=t*i,n[vi]=e*i,1!=i&&this.ctx.scale(i,i),a&&(a.width=t*i,a[vi]=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[vi],a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/l,r/l)),i.clearRect(0,0,n/l,r/l),a&&(i.save(),i.fillStyle=this.clearColor,i.fillRect(0,0,n/l,r/l),i[Tt]()),o){var c=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(c,0,0,n/l,r/l),i[Tt]()}}},a}),e("zrender/Painter",[qi,"./config","./core/util","./core/log","./core/BoundingRect","./Layer","./graphic/Image"],function(t){function e(t){return parseInt(t,10)}function i(t){return t?t.isBuildin?!0:typeof t[rt]!==Pi||typeof t[Jt]!==Pi?!1:!0:!1}function n(t){t.__unusedCount++}function r(t){t[Kt]=!1,1==t.__unusedCount&&t.clear()}function a(t,e,i){return f.copy(t[ei]()),t[ue]&&f[mi](t[ue]),p.width=e,p[vi]=i,!f[nt](p)}function o(t,e){if(!t||!e||t[Vi]!==e[Vi])return!0;for(var i=0;i<t[Vi];i++)if(t[i]!==e[i])return!0}function s(t,e){for(var i=0;i<t[Vi];i++){var n,r=t[i];r[ue]&&(n=r[ue],e[ue](n[0],n[1],n[2],n[3],n[4],n[5]));var a=r.path;a[Ot](e),r[Dt](a,r.shape),e.clip(),r[ue]&&(n=r.invTransform,e[ue](n[0],n[1],n[2],n[3],n[4],n[5]))}}var l=t("./config"),c=t("./core/util"),h=t("./core/log"),u=t("./core/BoundingRect"),d=t("./Layer"),f=new u(0,0,0,0),p=new u(0,0,0,0),v=function(t,e,i){var n=!t.nodeName||"CANVAS"===t.nodeName[qe]();i=i||{},this.dpr=i.devicePixelRatio||l.devicePixelRatio,this._singleCanvas=n,this.root=t;var r=t.style;if(r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",t[it]=""),this[lt]=e,n){var a=t.width,o=t[vi];this._width=a,this._height=o;var s=new d(t,this,1);s.initContext(),this._layers={0:s},this._zlevelList=[0]}else{var a=this._getWidth(),o=this._getHeight();this._width=a,this._height=o;var c=document[Ni]("div");this._domRoot=c;var h=c.style;h[He]="relative",h.overflow="hidden",h.width=this._width+"px",h[vi]=this._height+"px",t[et](c),this._layers={},this._zlevelList=[]}this._layerConfig={},this.pathToImage=this._createPathToImage()};return v[Wi]={constructor:v,isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._singleCanvas?this._layers[0].dom:this._domRoot},refresh:function(t){var e=this[lt][st](!0),i=this._zlevelList;this._paintList(e,t);for(var n=0;n<i[Vi];n++){var r=i[n],a=this._layers[r];!a.isBuildin&&a[Jt]&&a[Jt]()}return this},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t);var i,l,c,u=this._width,d=this._height;this.eachBuildinLayer(n);for(var f=null,p=0,v=t[Vi];v>p;p++){var m=t[p],g=this._singleCanvas?0:m[ot];if(l!==g&&(l=g,i=this.getLayer(l),i.isBuildin||h("ZLevel "+l+" has been used by unkown layer "+i.id),c=i.ctx,i.__unusedCount=0,(i[Kt]||e)&&i.clear()),(i[Kt]||e)&&!m[Ut]&&0!==m.style[bi]&&m.scale[0]&&m.scale[1]&&(!m.culling||!a(m,u,d))){var y=m.__clipPaths;o(y,f)&&(f&&c[Tt](),y&&(c.save(),s(y,c)),f=y),m.beforeBrush&&m.beforeBrush(c),m.brush(c,!1),m.afterBrush&&m.afterBrush(c)}m[Kt]=!1}f&&c[Tt](),this.eachBuildinLayer(r)},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new d("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&c.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,r=this._zlevelList,a=r[Vi],o=null,s=-1,l=this._domRoot;if(n[t])return void h("ZLevel "+t+" has been used already");if(!i(e))return void h("Layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]<t&&r[s+1]>t);s++);o=n[r[s]]}if(r[Ie](s+1,0,t),o){var c=o.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l[et](e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l[et](e.dom);n[t]=e},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r[Vi];n++)i=r[n],t.call(e,this._layers[i],i)},eachBuildinLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[Vi];r++)n=a[r],i=this._layers[n],i.isBuildin&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,a=this._zlevelList;for(r=0;r<a[Vi];r++)n=a[r],i=this._layers[n],i.isBuildin||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){var e=this._layers,i={};this.eachBuildinLayer(function(t,e){i[e]=t.elCount,t.elCount=0});for(var n=0,r=t[Vi];r>n;n++){var a=t[n],o=this._singleCanvas?0:a[ot],s=e[o];if(s){if(s.elCount++,s[Kt])continue;s[Kt]=a[Kt]}}this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t[Kt]=!0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?c.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&c.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom[ct].removeChild(n.dom),delete e[t],i[Ie](c[Bi](i,t),1))},resize:function(t,e){var i=this._domRoot;if(i.style.display="none",t=t||this._getWidth(),e=e||this._getHeight(),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[vi]=e+"px";for(var n in this._layers)this._layers[n][rt](t,e);this[Jt](!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root[it]="",this.root=this[lt]=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new d("image",this,t.pixelRatio||this.dpr);e.initContext();var i=e.ctx;e.clearColor=t[tt],e.clear();for(var n=this[lt][st](!0),r=0;r<n[Vi];r++){var a=n[r];a[Ut]||(a.beforeBrush&&a.beforeBrush(i),a.brush(i,!1),a.afterBrush&&a.afterBrush(i))}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t.clientWidth||e(i.width)||e(t.style.width))-(e(i.paddingLeft)||0)-(e(i.paddingRight)||0)|0},_getHeight:function(){var t=this.root,i=document.defaultView.getComputedStyle(t);return(t[J]||e(i[vi])||e(t.style[vi]))-(e(i.paddingTop)||0)-(e(i.paddingBottom)||0)|0},_pathToImage:function(e,i,n,r,a){var o=document[Ni](Ei),s=o[Zi]("2d");o.width=n*a,o[vi]=r*a,s.clearRect(0,0,n*a,r*a);var l={position:i[He],rotation:i[de],scale:i.scale};i[He]=[0,0,0],i[de]=0,i.scale=[1,1],i&&i.brush(s);var c=t("./graphic/Image"),h=new c({id:e,style:{x:0,y:0,image:o}});return null!=l[He]&&(h[He]=i[He]=l[He]),null!=l[de]&&(h[de]=i[de]=l[de]),null!=l.scale&&(h.scale=i.scale=l.scale),h},_createPathToImage:function(){var t=this;return function(e,i,n,r){return t._pathToImage(e,i,n,r,t.dpr)}}},v}),e("zrender/zrender",[qi,"./core/guid","./core/env","./Handler","./Storage","./animation/Animation","./Painter"],function(t){function e(t){delete c[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./Handler"),a=t("./Storage"),o=t("./animation/Animation"),s=!n[K],l={canvas:t("./Painter")},c={},h={};h.version="3.0.0",h.init=function(t,e){var n=new u(i(),t,e);return c[n.id]=n,n},h[Q]=function(t){if(t)t[Q]();else{for(var e in c)c[e][Q]();c={}}return h},h.getInstance=function(t){return c[t]},h.registerPainter=function(t,e){l[t]=e};var u=function(t,e,i){i=i||{},this.dom=e,this.id=t;var c=this,h=new a,u=i.renderer;if(s){if(!l.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");u="vml"}else u&&l[u]||(u=Ei);var d=new l[u](e,h,i);this[lt]=h,this.painter=d,n.node||(this.handler=new r(d.getViewportRoot(),h,d)),this[re]=new o({stage:{update:function(){c._needsRefresh&&c.refreshImmediately()}}}),this[re].start(),this._needsRefresh;var f=h[$t],p=h[Yt];h[$t]=function(t){var e=h.get(t);f.call(h,t),e&&e.removeSelfFromZr(c)},h[Yt]=function(t){p.call(h,t),t.addSelfToZr(c)}};return u[Wi]={constructor:u,getId:function(){return this.id},add:function(t){this[lt].addRoot(t),this._needsRefresh=!0},remove:function(t){this[lt].delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter[Jt](),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter[rt](),this.handler&&this.handler[rt]()},clearAnimation:function(){this[re].clear()},getWidth:function(){return this.painter[ze]()},getHeight:function(){return this.painter[Le]()},toDataURL:function(t,e,i){return this.painter.toDataURL(t,e,i)},pathToImage:function(t,e,n){var r=i();return this.painter.pathToImage(r,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,i){this.handler&&this.handler.on(t,e,i)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler[Ht](t,e)},clear:function(){this[lt].delRoot(),this.painter.clear()},dispose:function(){this[re].stop(),this.clear(),this[lt][Q](),this.painter[Q](),this.handler&&this.handler[Q](),this[re]=this[lt]=this.painter=this.handler=null,e(this.id)}},h}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts/loading/default",[qi,"../util/graphic",Hi],function(t){var e=t("../util/graphic"),i=t(Hi),n=Math.PI;return function(t,r){r=r||{},i[oi](r,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var a=new e.Rect({style:{fill:r.maskColor},zlevel:r[ot],z:1e4}),o=new e.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:r.color,lineCap:"round",lineWidth:5},zlevel:r[ot],z:10001}),s=new e.Rect({style:{fill:"none",text:r.text,textPosition:"right",textDistance:10,textFill:r.textColor},zlevel:r[ot],z:10001});o.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var l=new e.Group;return l.add(o),l.add(s),l.add(a),l[rt]=function(){var e=t[ze]()/2,i=t[Le]()/2;o[Ct]({cx:e,cy:i});var n=o.shape.r;s[Ct]({x:e-n,y:i-n,width:2*n,height:2*n}),a[Ct]({x:0,y:0,width:t[ze](),height:t[Le]()})},l[rt](),l}}),e("echarts/visual/seriesColor",[qi,"zrender/graphic/Gradient"],function(t){var e=t("zrender/graphic/Gradient");return function(t,i,n){function r(t){var r=[i,Me,"color"],a=n.get("color"),o=t[be](),s=t.get(r)||a[t[we]%a[Vi]];o[Y]("color",s),n.isSeriesFiltered(t)||(typeof s!==Pi||s instanceof e||o.each(function(e){o[$](e,"color",s(t[ve](e)))}),o.each(function(t){var e=o[me](t),i=e.get(r,!0);null!=i&&o[$](t,"color",i)}))}t?n[X](t,r):n[U](r)}}),e("echarts/preprocessor/helper/compatStyle",[qi,Hi],function(t){function e(t){var e=t&&t[j];e&&i.each(n,function(n){var r=e[Me],a=e[Se];r&&r[n]&&(t[n]=t[n]||{},t[n][Me]?i.merge(t[n][Me],r[n]):t[n][Me]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][Se]?i.merge(t[n][Se],a[n]):t[n][Se]=a[n],a[n]=null)})}var i=t(Hi),n=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];return function(t){e(t);var n=t.data;if(n){for(var r=0;r<n[Vi];r++)e(n[r]);var a=t.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o[Vi];r++)e(o[r]);var s=t.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l[Vi];r++)i[ki](l[r])?(e(l[r][0]),e(l[r][1])):e(l[r])}}}),e("echarts/preprocessor/backwardCompat",[qi,Hi,"./helper/compatStyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n<e[Vi]&&(i=i&&i[e[n]],null!=i);n++);return i}function i(t,e,i,n){e=e.split(",");for(var r,a=t,o=0;o<e[Vi]-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[e[o]])&&(a[e[o]]=i)}function n(t){c(o,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var r=t(Hi),a=t("./helper/compatStyle"),o=[["x","left"],["y","top"],["x2","right"],["y2",hi]],s=["grid","geo","parallel","legend","toolbox","title","visualMap",q,"timeline"],l=["bar","boxplot","candlestick","chord","effectScatter","funnel","gauge","lines","graph","heatmap","line","map","parallel","pie","radar","sankey","scatter","treemap"],c=r.each;return function(t){c(t[Be],function(t){if(r[Ee](t)){var o=t.type;if(a(t),("pie"===o||"gauge"===o)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===o){var s=e(t,"pointer.color");null!=s&&i(t,"itemStyle.normal.color",s)}for(var c=0;c<l[Vi];c++)if(l[c]===t.type){n(t);break}}}),t.dataRange&&(t.visualMap=t.dataRange),c(s,function(e){var i=t[e];i&&(r[ki](i)||(i=[i]),c(i,function(t){n(t)}))})}}),e("echarts/echarts",[qi,"./model/Global","./ExtensionAPI","./CoordinateSystem","./model/OptionManager","./model/Component","./model/Series","./view/Component","./view/Chart","./util/graphic","zrender",Hi,ae,"zrender/core/env",fe,"./loading/default","./visual/seriesColor","./preprocessor/backwardCompat","echarts/util/graphic","echarts/util/number","echarts/util/format"],function(t){function e(t,e,i){t=t&&t[je](),A[Wi].on.call(this,t,e,i)}function i(){A.call(this)}function n(t,e,n){n=n||{},e&&C(X,function(t){t(e)}),this.id,this.group,this._dom=t,this._zr=w.init(t,{renderer:n.renderer||Ei,devicePixelRatio:n.devicePixelRatio}),typeof e===Ri&&(e=Y[e]),this._theme=M.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new p(this),this._coordinateSystem=new v,A.call(this),this._messageCenter=new i,this._initEvents(),this[rt]=M.bind(this[rt],this)}function r(t,e){var i=this._model;i&&i[W]({mainType:"series",query:e},function(n,r){var a=this._chartsMap[n.__viewId];a&&a[t](n,i,this._api,e)},this)}function a(t,e,i){var n=this._api;C(this._componentsViews,function(r){var a=r.__model;r[t](a,e,n,i),d(a,r)},this),e[U](function(r,a){var o=this._chartsMap[r.__viewId];o[t](r,e,n,i),d(r,o)},this)}function o(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,r=i?this._componentsMap:this._chartsMap,a=this._zr,o=0;o<n[Vi];o++)n[o].__keepAlive=!1;e[i?W:U](function(t,o){if(i){if(t===Be)return}else o=t;var s=o.id+"_"+o.type,l=r[s];if(!l){var c=g[zi](o.type),h=i?_[Ai](c.main,c.sub):x[Ai](c.sub);if(!h)return;l=new h,l.init(e,this._api),r[s]=l,n.push(l),a.add(l.group)}o.__viewId=s,l.__keepAlive=!0,l.__id=s,l.__model=o},this);for(var o=0;o<n[Vi];){var s=n[o];s.__keepAlive?o++:(a[Qt](s.group),s[Q](e,this._api),n[Ie](o,1),delete r[s.__id])}}function s(t){C(D,function(e){C(q[e]||[],function(e){e(t)})})}function l(t){var e={};t[U](function(t){var i=t.get("stack"),n=t[be]();if(i&&"list"===n.type){var r=e[i];r&&(n.stackedOn=r),e[i]=n}})}function c(t,e){var i=this._api;C(B,function(n){n(t,i,e)})}function h(t,e){C(T,function(i){C($[i]||[],function(i){i(t,e)})})}function u(t,e){var i=this._api;C(this._componentsViews,function(n){var r=n.__model;n[Wt](r,t,i,e),d(r,n)},this),C(this._chartsViews,function(t){t.__keepAlive=!1},this),t[U](function(n,r){var a=this._chartsMap[n.__viewId];a.__keepAlive=!0,a[Wt](n,t,i,e),d(n,a)},this),C(this._chartsViews,function(e){e.__keepAlive||e[Qt](t,i)},this)}function d(t,e){var i=t.get("z"),n=t.get(ot);e.group[Xt](function(t){null!=i&&(t.z=i),null!=n&&(t[ot]=n)})}var f=t("./model/Global"),p=t("./ExtensionAPI"),v=t("./CoordinateSystem"),m=t("./model/OptionManager"),g=t("./model/Component"),y=t("./model/Series"),_=t("./view/Component"),x=t("./view/Chart"),b=t("./util/graphic"),w=t("zrender"),M=t(Hi),S=t(ae),k=t("zrender/core/env"),A=t(fe),C=M.each,T=["echarts","chart","component"],D=[ue,Gi,"statistic"];i[Wi].on=e,M.mixin(i,A);var L=n[Wi];L[Pe]=function(){return this._dom},L.getZr=function(){return this._zr},L.setOption=function(t,e,i){(!this._model||e)&&(this._model=new f(null,null,this._theme,new m(this._api))),this._model.setOption(t,X),z.prepareAndUpdate.call(this),!i&&this._zr.refreshImmediately()},L.setTheme=function(){
  console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},L[ni]=function(){return this._model},L[ze]=function(){return this._zr[ze]()},L[Le]=function(){return this._zr[Le]()},L.getRenderedCanvas=function(t){if(k[K]){t=t||{},t.pixelRatio=t.pixelRatio||1,t[tt]=t[tt]||this._model.get(tt);var e=this._zr,i=e[lt][st]();return M.each(i,function(t){t[ne](!0)}),e.painter.getRenderedCanvas(t)}},L.getDataURL=function(t){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;C(e,function(t){i[W]({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group[te]||(n.push(e),e.group[te]=!0)})});var a=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(n,function(t){t.group[te]=!1}),a},L.getConnectedDataURL=function(t){if(k[K]){var e=this.group,i=Math.min,n=Math.max,r=1/0;if(et[e]){var a=r,o=r,s=-r,l=-r,c=[],h=t&&t.pixelRatio||1;for(var u in J){var d=J[u];if(d.group===e){var f=d.getRenderedCanvas(M.clone(t)),p=d[Pe]().getBoundingClientRect();a=i(p.left,a),o=i(p.top,o),s=n(p.right,s),l=n(p[hi],l),c.push({dom:f,left:p.left,top:p.top})}}a*=h,o*=h,s*=h,l*=h;var v=s-a,m=l-o,g=M.createCanvas();g.width=v,g[vi]=m;var y=w.init(g);return C(c,function(t){var e=new b.Image({style:{x:t.left*h-a,y:t.top*h-o,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var z={update:function(t){var e=this._model;if(e){e.restoreData(),s.call(this,e),l.call(this,e),this._coordinateSystem[at](e,this._api),c.call(this,e,t),h.call(this,e,t),u.call(this,e,t);var i=e.get(tt);if(!k[K]){var n=S.parse(i);i=S.stringify(n,"rgb"),0===n[3]&&(i="transparent")}var r=this._zr.painter;r.isSingleCanvas&&r.isSingleCanvas()?this._zr.configLayer(0,{clearColor:i}):(i=i||"transparent",this._dom.style[tt]=i)}},updateView:function(t){var e=this._model;e&&(c.call(this,e,t),h.call(this,e,t),a.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(h.call(this,e,t),a.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(c.call(this,e,t),a.call(this,jt,e,t))},highlight:function(t){r.call(this,"highlight",t)},downplay:function(t){r.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;o.call(this,"component",e),o.call(this,"chart",e),z[at].call(this,t)}};L[rt]=function(){this._zr[rt]();var t=this._model&&this._model.resetOption("media");z[t?"prepareAndUpdate":at].call(this),this._loadingFX&&this._loadingFX[rt]()};var P=t("./loading/default");L.showLoading=function(t,e){M[Ee](t)&&(e=t,t="default");var i=P(this._api,e),n=this._zr;this._loadingFX=i,n.painter.clear(),n.add(i)},L.hideLoading=function(){this._loadingFX&&this._zr[Qt](this._loadingFX),this._loadingFX=null},L.makeActionFromEvent=function(t){var e=M[Di]({},t);return e.type=R[t.type],e},L[De]=function(t,e){var i=O[t.type];if(i){var n=i.actionInfo,r=n[at]||at,a=[t],o=!1;t.batch&&(o=!0,a=M.map(t.batch,function(e){return e=M[oi](M[Di]({},e),t),e.batch=null,e}));for(var s,l=[],c="highlight"===t.type||"downplay"===t.type,h=0;h<a[Vi];h++){var u=a[h];s=i.action(u,this._model),s=s||M[Di]({},u),s.type=n.event||s.type,l.push(s),c&&z[r].call(this,u)}"none"!==r&&!c&&z[r].call(this,t),e||(s=o?{type:l[0].type,batch:l}:l[0],this._messageCenter[Ht](s.type,s))}},L.on=e;var I=["click","dblclick",yt,gt,"globalout"];L._initEvents=function(){var t=this._zr;C(I,function(e){t.on(e,function(t){var i=this[ni](),n=t[oe];if(n&&null!=n[Gt]){var r=n[H]||i.getSeriesByIndex(n[we]),a=r&&r[ve](n[Gt])||{};a.event=t,a.type=e,this[Ht](e,a)}},this)},this),C(R,function(t,e){this._messageCenter.on(e,function(t){this[Ht](e,t)},this)},this)},L.isDisposed=function(){return this._disposed},L[Q]=function(){this._disposed=!0;var t=this._api,e=this._model;C(this._componentsViews,function(i){i[Q](e,t)}),C(this._chartsViews,function(i){i[Q](e,t)}),this._zr[Q](),J[this.id]=null},M.mixin(n,A);var O=[],R={},B=[],q={},X=[],$={},Y={},J={},et={},it=new Date-0,nt=new Date-0,ct="_echarts_instance_",ht={version:"3.0.0",dependencies:{zrender:"3.0.0"}};return ht.init=function(t,e,i){if(w.version[Qe](".","")-0<ht.dependencies.zrender[Qe](".","")-0)throw new Error("ZRender "+w.version+" is too old for ECharts "+ht.version+". Current version need ZRender "+ht.dependencies.zrender+"+");if(!t)throw new Error("Initialize failed: invalid dom.");var r=new n(t,e,i);return r.id=it++,J[r.id]=r,t.setAttribute&&t.setAttribute(ct,r.id),M.each(R,function(t,e){r._messageCenter.on(e,function(t){if(et[r.group]){r.__connectedActionDispatching=!0;for(var e in J){var i=r.makeActionFromEvent(t),n=J[e];n!==r&&n.group===r.group&&(n.__connectedActionDispatching||n[De](i))}r.__connectedActionDispatching=!1}})}),r},ht.connect=function(t){if(M[ki](t)){var e=t;t=null,M.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||nt++,M.each(e,function(e){e.group=t})}return et[t]=!0,t},ht.disConnect=function(t){et[t]=!1},ht[Q]=function(t){M.isDom(t)?t=ht.getInstanceByDom(t):typeof t===Ri&&(t=J[t]),t instanceof n&&!t.isDisposed()&&t[Q]()},ht.getInstanceByDom=function(t){var e=t.getAttribute(ct);return J[e]},ht.getInstanceById=function(t){return J[t]},ht.registerTheme=function(t,e){Y[t]=e},ht.registerPreprocessor=function(t){X.push(t)},ht[G]=function(t,e){if(M[Bi](D,t)<0)throw new Error("stage should be one of "+D);var i=q[t]||(q[t]=[]);i.push(e)},ht[F]=function(t,e,i){typeof e===Pi&&(i=e,e="");var n=M[Ee](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[je](),e=t.event,O[n]||(O[n]={action:i,actionInfo:t}),R[e]=n},ht.registerCoordinateSystem=function(t,e){v[Te](t,e)},ht[V]=function(t){M[Bi](B,t)<0&&B.push(t)},ht[N]=function(t,e){if(M[Bi](T,t)<0)throw new Error("stage should be one of "+T);var i=$[t]||($[t]=[]);i.push(e)},ht.extendChartView=function(t){return x[Di](t)},ht[E]=function(t){return g[Di](t)},ht.extendSeriesModel=function(t){return y[Di](t)},ht[Z]=function(t){return _[Di](t)},ht.setCanvasCreator=function(t){M.createCanvas=t},ht[N]("echarts",M.curry(t("./visual/seriesColor"),"",j)),ht.registerPreprocessor(t("./preprocessor/backwardCompat")),ht[F]({type:"highlight",event:"highlight",update:"highlight"},M.noop),ht[F]({type:"downplay",event:"downplay",update:"downplay"},M.noop),ht.graphic=t("echarts/util/graphic"),ht[Oi]=t("echarts/util/number"),ht.format=t("echarts/util/format"),ht.util={},C(["map","each",Gi,Bi,Ti,"reduce",Gi,"bind","curry",ki,Re,Ee,"isFunction",Di],function(t){ht.util[t]=M[t]}),ht}),e("echarts",["echarts/echarts"],function(t){return t}),e("echarts/data/DataDiffer",[qi],function(t){function e(t){return t}function i(t,i,n,r){this._old=t,this._new=i,this._oldKeyGetter=n||e,this._newKeyGetter=r||e}function n(t,e,i){for(var n=0;n<t[Vi];n++){var r=i(t[n]),a=e[r];null==a?e[r]=n:(a[Vi]||(e[r]=a=[a]),a.push(n))}}return i[Wi]={constructor:i,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,i=this._new,r=this._oldKeyGetter,a=this._newKeyGetter,o={},s={};for(n(e,o,r),n(i,s,a),t=0;t<e[Vi];t++){var l=r(e[t]),c=s[l];if(null!=c){var h=c[Vi];h?(1===h&&(s[l]=null),c=c.unshift()):s[l]=null,this._update&&this._update(c,t)}else this._remove&&this._remove(t)}for(var l in s)if(s.hasOwnProperty(l)){var c=s[l];if(null==c)continue;if(c[Vi])for(var t=0,h=c[Vi];h>t;t++)this._add&&this._add(c[t]);else this._add&&this._add(c)}}},i}),e("echarts/data/List",[qi,"../model/Model","./DataDiffer",Hi,"../util/model"],function(t){function e(t){return c[ki](t)||(t=[t]),t}var i=_i,n=typeof window===_i?global:window,r=typeof n.Float64Array===i?Array:n.Float64Array,a=typeof n.Int32Array===i?Array:n.Int32Array,o={"float":r,"int":a,ordinal:Array,number:Array,time:Array},s=t("../model/Model"),l=t("./DataDiffer"),c=t(Hi),h=t("../util/model"),u=c[Ee],d=["stackedOn","_nameList","_idList","_rawData"],f=function(t,e,i){c.each(d[Ii](i||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})},p=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r<t[Vi];r++){var a,o={};typeof t[r]===Ri?(a=t[r],o={name:a,stackable:!1,type:"number"}):(o=t[r],a=o.name,o.type=o.type||Oi),n.push(a),i[a]=o}this[B]=n,this._dimensionInfos=i,this[H]=e,this.indices=[],this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawData},v=p[Wi];v.type="list",v.getDimension=function(t){return isNaN(t)||(t=this[B][t]||t),t},v.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},v.initData=function(t,e,i){t=t||[],this._rawData=t;var n=this._storage={},r=this.indices=[],a=this[B],s=t[Vi],l=this._dimensionInfos,u=[],d={};e=e||[];for(var f=0;f<a[Vi];f++){var p=l[a[f]],v=o[p.type];n[a[f]]=new v(s)}i=i||function(t,e,i,n){var r=h.getDataItemValue(t);return h.converDataValue(c[ki](r)?r[n]:r,l[e])};for(var m=0;m<t[Vi];m++){for(var g=t[m],y=0;y<a[Vi];y++){var _=a[y],x=n[_];x[m]=i(g,_,m,y)}r.push(m)}for(var f=0;f<t[Vi];f++){var b="";e[f]||(e[f]=t[f].name,b=t[f].id);var w=e[f]||"";!b&&w&&(d[w]=d[w]||0,b=w,d[w]>0&&(b+="__ec__"+d[w]),d[w]++),b&&(u[f]=b)}this._nameList=e,this._idList=u},v.count=function(){return this.indices[Vi]},v.get=function(t,e,i){var n=this._storage,r=this.indices[e],a=n[t]&&n[t][r],o=this._dimensionInfos[t];if(i&&o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedOn}return a},v.getValues=function(t,e,i){var n=[];c[ki](t)||(i=e,e=t,t=this[B]);for(var r=0,a=t[Vi];a>r;r++)n.push(this.get(t[r],e,i));return n},v.hasValue=function(t){for(var e=this[B],i=this._dimensionInfos,n=0,r=e[Vi];r>n;n++)if(i[e[n]].type!==xe&&isNaN(this.get(e[n],t)))return!1;return!0},v[R]=function(t,e){var i=this._storage[t],n=this.getDimensionInfo(t);e=n&&n.stackable&&e;var r,a=(this._extent||(this._extent={}))[t+!!e];if(a)return a;if(i){for(var o=1/0,s=-(1/0),l=0,c=this.count();c>l;l++)r=this.get(t,l,e),o>r&&(o=r),r>s&&(s=r);return this._extent[t+e]=[o,s]}return[1/0,-(1/0)]},v.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(n+=o)}return n},v[Bi]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[Vi];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},v[Vt]=function(t){for(var e=this.indices,i=this._nameList,n=0,r=e[Vi];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},v.indexOfNearest=function(t,e,i){c[ki](t)||(t=t?[t]:[]);var n=this._storage,r=n[t];if(r){for(var a=Number.MAX_VALUE,o=-1,s=0,l=t[Vi];l>s;s++)for(var h=0,u=this.count();u>h;h++){var d=Math.abs(this.get(t[s],h,i)-e);a>=d&&(a=d,o=h)}return o}return-1},v[ye]=function(t){var e=this.indices[t];return null==e?-1:e},v[ge]=function(t){return this._nameList[this.indices[t]]||""},v.getId=function(t){return this._idList[this.indices[t]]||this[ye](t)+""},v.each=function(t,i,n,r){typeof t===Pi&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=t[Vi],s=this.indices;r=r||this;for(var l=0;l<s[Vi];l++)if(0===o)i.call(r,l);else if(1===o)i.call(r,this.get(t[0],l,n),l);else{for(var h=0;o>h;h++)a[h]=this.get(t[h],l,n);a[h]=l,i.apply(r,a)}},v.filterSelf=function(t,i,n,r){typeof t===Pi&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getDimension,this);var a=[],o=[],s=t[Vi],l=this.indices;r=r||this;for(var h=0;h<l[Vi];h++){var u;if(1===s)u=i.call(r,this.get(t[0],h,n),h);else{for(var d=0;s>d;d++)o[d]=this.get(t[d],h,n);o[d]=h,u=i.apply(r,o)}u&&a.push(l[h])}return this.indices=a,this._extent={},this},v[O]=function(t,e,i,n){typeof t===Pi&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},v.map=function(t,i,n,r){t=c.map(e(t),this.getDimension,this);var a=this[B],o=new p(c.map(a,this.getDimensionInfo,this),this[H]),s=o.indices=this.indices;f(o,this,this._wrappedMethods);for(var l=o._storage={},h=this._storage,u=0;u<a[Vi];u++){var d=a[u],v=h[d];c[Bi](t,d)>=0?l[d]=new v.constructor(h[d][Vi]):l[d]=h[d]}var m=[];return this.each(t,function(){var e=arguments[arguments[Vi]-1],n=i&&i.apply(this,arguments);if(null!=n){typeof n===Oi&&(m[0]=n,n=m);for(var r=0;r<n[Vi];r++){var a=t[r],o=l[a],c=s[e];o&&(o[c]=n[r])}}}),o};var m=new s(null);v[me]=function(t,e){var i,n=this[H];return t=this.indices[t],i=e?new s(null,n):m,i[Ke]=this._rawData[t],i.parentModel=n,i[ri]=n[ri],i},v.diff=function(t){var e=this._idList,i=t&&t._idList;return new l(t?t.indices:[],this.indices,function(t){return i[t]||t+""},function(t){return e[t]||t+""})},v[I]=function(t){var e=this._visual;return e&&e[t]},v[Y]=function(t,e){if(u(t))for(var i in t)t.hasOwnProperty(i)&&this[Y](i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},v[P]=function(t){return this._itemLayouts[t]},v[z]=function(t,e,i){this._itemLayouts[t]=i?c[Di](this._itemLayouts[t]||{},e):e},v[L]=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this[I](e)},v[$]=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,u(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=i};var g=function(t){t[we]=this[we],t[Gt]=this[Gt]};return v[D]=function(t,e){var i=this[H];e&&(e[Gt]=t,e[we]=i&&i[we],"group"===e.type&&e[Xt](g,e)),this._graphicEls[t]=e},v[Ft]=function(t){return this._graphicEls[t]},v[Nt]=function(t,e){c.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},v.cloneShallow=function(){var t=c.map(this[B],this.getDimensionInfo,this),e=new p(t,this[H]);return e._storage=this._storage,f(e,this,this._wrappedMethods),e.indices=this.indices.slice(),e},v.wrapMethod=function(t,e){var i=this[t];typeof i===Pi&&(this._wrappedMethods=this._wrappedMethods||[],this._wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.call(this,t)})},p}),e("echarts/data/helper/completeDimensions",[qi,Hi],function(t){function e(t,e,a){var o=n(e[0]),s=r[ki](o)&&o[Vi]||1;a=a||[];for(var l=0;s>l;l++)if(!t[l]){var c=a[l]||"extra"+(l-a[Vi]);t[l]=i(e,l)?{type:"ordinal",name:c}:c}return t}function i(t,e){for(var i=0,a=t[Vi];a>i;i++){var o=n(t[i]);if(!r[ki](o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(r[Re](o)&&"-"!==o)return!0}return!1}function n(t){return r[ki](t)?t:r[Ee](t)?t.value:t}var r=t(Hi);return e}),e("echarts/chart/helper/createListFromArray",[qi,"../../data/List","../../data/helper/completeDimensions",Hi,T],function(t){function e(t){for(var e=0;e<t[Vi]&&null==t[e];)e++;return t[e]}function i(t){var i=e(t);return null!=i&&!l[ki](h(i))}function n(t,e,n){t=t||[];var r=d[e.get(C)](t,e,n),s=r[B],l=r.categoryAxisModel,c=s[0].type===xe?0:s[1].type===xe?1:-1,f=new o(s,e),p=a(r,t),v=l&&i(t)?function(t,e,i,n){return n===c?i:u(h(t),s[n])}:function(t,e,i,n){var r=h(t);return u(r&&r[n],s[n])};return f.initData(t,p,v),f}function r(t){return t!==A&&"time"!==t}function a(t,e){var i=[];if(t.categoryAxisModel){var n=t.categoryAxisModel.getCategories();if(n){var r=e[Vi];if(l[ki](e[0])&&e[0][Vi]>1){i=[];for(var a=0;r>a;a++)i[a]=n[e[a][0]]}else i=n.slice(0)}}return i}var o=t("../../data/List"),s=t("../../data/helper/completeDimensions"),l=t(Hi),c=t(T),h=c.getDataItemValue,u=c.converDataValue,d={cartesian2d:function(t,e,i){var n=i[Ce]("xAxis",e.get("xAxisIndex")),a=i[Ce]("yAxis",e.get("yAxisIndex")),o=n.get("type"),l=a.get("type"),c=l===A,h=o===A,u=[{name:"x",type:h?xe:"float",stackable:r(o)},{name:"y",type:c?xe:"float",stackable:r(l)}];return s(u,t,["x","y","z"]),{dimensions:u,categoryAxisModel:h?n:c?a:null}},polar:function(t,e,i){var n=e.get("polarIndex")||0,a=function(t){return t.get("polarIndex")===n},o=i[Oe]({mainType:"angleAxis",filter:a})[0],l=i[Oe]({mainType:"radiusAxis",filter:a})[0],c=l.get("type")===A,h=o.get("type")===A,u=[{name:"radius",type:c?xe:"float",stackable:r(l.get("type"))},{name:"angle",type:h?xe:"float",stackable:r(o.get("type"))}];return s(u,t,[Ae,"angle","value"]),{dimensions:u,categoryAxisModel:h?o:c?l:null}},geo:function(t,e,i){return{dimensions:s([{name:"lng"},{name:"lat"}],t,["lng","lat","value"])}}};return n}),e("echarts/chart/line/LineSeries",[qi,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[Di]({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,i){return e(t.data,this,i)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,polarIndex:0,clipOverflow:!0,label:{normal:{position:"top"},emphasis:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},symbol:"emptyCircle",symbolSize:4,showSymbol:!0,animationEasing:"linear"}})}),e("echarts/util/symbol",[qi,"./graphic",gi],function(t){var e=t("./graphic"),i=t(gi),n=e[Mt]({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[vi]/2;t[It](i,n-a),t[Pt](i+r,n+a),t[Pt](i-r,n+a),t[Lt]()}}),r=e[Mt]({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,a=e[vi]/2;t[It](i,n-a),t[Pt](i+r,n),t[Pt](i,n+a),t[Pt](i-r,n),t[Lt]()}}),a=e[Mt]({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=Math.max(r,e[vi]),o=r/2,s=o*o/(a-o),l=n-a+o+s,c=Math.asin(s/o),h=Math.cos(c)*o,u=Math.sin(c),d=Math.cos(c);t.arc(i,l,o,Math.PI-c,2*Math.PI+c);var f=.6*o,p=.7*o;t[zt](i+h-u*f,l+s+d*f,i,n-p,i,n),t[zt](i,n-p,i-h+u*f,l+s+d*f,i-h,l+s),t[Lt]()}}),o=e[Mt]({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e[vi],n=e.width,r=e.x,a=e.y,o=n/3*2;t[It](r,a),t[Pt](r+o,a+i),t[Pt](r,a+i/4*3),t[Pt](r-o,a+i),t[Pt](r,a),t[Lt]()}}),s={line:e.Line,rect:e.Rect,roundRect:e.Rect,square:e.Rect,circle:e.Circle,diamond:r,pin:a,arrow:o,triangle:n},l={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[vi]=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[vi]=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var a=Math.min(i,n);r.x=t,r.y=e,r.width=a,r[vi]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[vi]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[vi]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[vi]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[vi]=n}},c={};for(var h in s)c[h]=new s[h];var u=e[Mt]({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&t[Et]===si&&(t[Et]=["50%","40%"],t[Zt]=li,t[Bt]=ci)},buildPath:function(t,e){var i=e.symbolType,n=c[i];"none"!==e.symbolType&&(n||(i="rect",n=c[i]),l[i](e.x,e.y,e.width,e[vi],n.shape),n[Dt](t,n.shape))}}),d=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e[wi]=t:this.__isEmptyBrush?(e[wi]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[wi]&&(e[wi]=t)),this.dirty()}},f={createSymbol:function(t,n,r,a,o,s){var l=0===t[Bi]("empty");l&&(t=t[ai](5,1)[je]()+t[ai](6));var c;return c=0===t[Bi]("image://")?new e.Image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[Bi]("path://")?e.makePath(t.slice(7),{},new i(n,r,a,o)):new u({shape:{symbolType:t,x:n,y:r,width:a,height:o}}),c.__isEmptyBrush=l,c.setColor=d,c.setColor(s),c}};return f}),e("echarts/chart/helper/Symbol",[qi,Hi,k,S,M],function(t){function e(t){return r[ki](t)||(t=[+t,+t]),t}function i(t,e){o.Group.call(this),this[w](t,e)}function n(t,e){this[he].drift(t,e)}var r=t(Hi),a=t(k),o=t(S),s=t(M),l=i[Wi];l._createSymbol=function(t,i,r){this[qt]();var s=i[H],l=i[L](r,"color"),c=a[b](t,-.5,-.5,1,1,l);c.attr({style:{strokeNoScale:!0},z2:100,scale:[0,0]}),c.drift=n;var h=e(i[L](r,x));o[pt](c,{scale:h},s),this._symbolType=t,this.add(c)},l.stopSymbolAnimation=function(t){this[Ge](0)[ne](t)},l.getScale=function(){return this[Ge](0).scale},l.highlight=function(){this[Ge](0)[Ht](Se)},l.downplay=function(){this[Ge](0)[Ht](Me)},l.setZ=function(t,e){var i=this[Ge](0);i[ot]=t,i.z=e},l.setDraggable=function(t){var e=this[Ge](0);e[ee]=t,e.cursor=t?"move":"pointer"},l[w]=function(t,i){var n=t[L](i,_)||y,r=t[H],a=e(t[L](i,x));if(n!==this._symbolType)this._createSymbol(n,t,i);else{var s=this[Ge](0);o[vt](s,{scale:a},r)}this._updateCommon(t,i,a),this._seriesModel=r};var c=[j,Me],h=[j,Se],u=["label",Me],d=["label",Se];return l._updateCommon=function(t,i,n){var a=this[Ge](0),l=t[H],f=t[me](i),p=f[ni](c),v=t[L](i,"color"),y=f[ni](h)[g]();a[de]=f[Si]("symbolRotate")*Math.PI/180||0;var _=f[Si]("symbolOffset");if(_){var b=a[He];b[0]=s[$e](_[0],n[0]),b[1]=s[$e](_[1],n[1])}a.setColor(v),r[Di](a.style,p[g](["color"]));var w=f[ni](u),M=f[ni](d),S=t[B][t[B][Vi]-1],k=l[m](i,Me)||t.get(S,i),A=a.style;w.get("show")?(o.setText(A,w,v),A.text=k):A.text="",M[Si]("show")?(o.setText(y,M,v),y.text=k):y.text="",o[_t](a,y);var C=e(t[L](i,x));if(a.off(yt).off(gt).off(Se).off(Me),f[Si]("hoverAnimation")){var T=function(){var t=C[1]/C[0];this.animateTo({scale:[Math.max(1.1*C[0],C[0]+3),Math.max(1.1*C[1],C[1]+3*t)]},400,"elasticOut")},D=function(){this.animateTo({scale:C},400,"elasticOut")};a.on(yt,T).on(gt,D).on(Se,T).on(Me,D)}},l.fadeOut=function(t){var e=this[Ge](0);e.style.text="",o[vt](e,{scale:[0,0]},this._seriesModel,t)},r[Ti](i,o.Group),i}),e("echarts/chart/helper/SymbolDraw",[qi,S,"./Symbol"],function(t){function e(t){this.group=new n.Group,this._symbolCtor=t||r}function i(t,e,i){var n=t[P](e);return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(i&&i(e))&&"none"!==t[L](e,_)}var n=t(S),r=t("./Symbol"),a=e[Wi];return a[w]=function(t,e){var r=this.group,a=t[H],o=this._data,s=this._symbolCtor;t.diff(o).add(function(n){var a=t[P](n);if(i(t,n,e)){var o=new s(t,n);o.attr(He,a),t[D](n,o),r.add(o)}})[at](function(l,c){var h=o[Ft](c),u=t[P](l);return i(t,l,e)?(h?(h[w](t,l),n[vt](h,{position:u},a)):(h=new s(t,l),h.attr(He,u)),r.add(h),void t[D](l,h)):void r[Qt](h)})[Qt](function(t){var e=o[Ft](t);e&&e.fadeOut(function(){r[Qt](e)})})[v](),this._data=t},a[jt]=function(){var t=this._data;t&&t[Nt](function(e,i){e.attr(He,t[P](i))})},a[Qt]=function(t){var e=this.group,i=this._data;i&&(t?i[Nt](function(t){t.fadeOut(function(){e[Qt](t)})}):e[qt]())},e}),e("zrender/core/arrayDiff",[qi],function(t){function e(t,e){return t===e}function i(t,e,i){var n={cmd:t,idx:e};return"="===t&&(n.idx1=i),n}function n(t,e,n,r){t.push(i(e,n,r))}function r(t,e,i,n,r,a,o,l){var c,h,u,d=i>n,f=r>a,p=s(n-i),v=s(a-r);for(h=0;p>=h;h++)for(u=0;v>=u;u++)if(0===h)l[u]=u;else if(0===u)c=l[u],l[u]=h;else{var m=t[d?i-h:h-1+i],g=e[f?r-u:u-1+r],y=c+(o(m,g)?0:2),_=l[u]+1,x=l[u-1]+1;c=l[u],l[u]=_>y?y:_,x<l[u]&&(l[u]=x)}return l}function a(t,e,i,o,s,l,c,h,u){var d,f,p=[],v=o-i,m=l-s;if(v)if(m)if(1===v){var g=t[i],y=!1;for(f=0;m>f;f++)c(g,e[f+s])&&!y?(y=!0,n(p,"=",i,f+s)):n(p,"+",f+s);y||n(p,"-",i)}else if(1===m){var _=e[s],y=!1;for(d=0;v>d;d++)c(_,t[d+i])&&!y?(y=!0,n(p,"=",d+i,s)):n(p,"-",d+i);y||n(p,"+",s)}else{var x=(v/2|0)+i;r(t,e,i,x,s,l,c,h),r(t,e,o,x+1,l,s,c,u);var b,w=1/0,M=0;for(f=0;m>=f;f++)b=h[f]+u[m-f],w>b&&(w=b,M=f);M+=s,p=a(t,e,i,x,s,M,c,h,u);var S=a(t,e,x,o,M,l,c,h,u);for(d=0;d<S[Vi];d++)p.push(S[d])}else for(d=0;v>d;d++)n(p,"-",d+i);else for(f=0;m>f;f++)n(p,"+",f+s);return p}function o(t,i,r){r=r||e;var o,s,l=t[Vi],c=i[Vi],h=Math.min(l,c),u=[];for(o=0;h>o&&r(t[o],i[o]);o++)n(u,"=",o,o);for(s=0;h>s&&r(t[l-s-1],i[c-s-1]);s++);if(l-s>=o||c-s>=o){var d=a(t,i,o,l-s,o,c-s,r,[],[]);for(o=0;o<d[Vi];o++)u.push(d[o]);for(o=0;s>o;o++)n(u,"=",l-s+o,c-s+o)}return u}var s=Math.abs;return o}),e("echarts/chart/line/lineAnimationDiff",[qi,"zrender/core/arrayDiff"],function(t){function e(t){return t>=0?1:-1}function i(t,i,n){for(var r,a=t[p](),o=t[f](a),s=a.onZero?0:o.scale[d]()[0],l=o.dim,c="x"===l||l===Ae?1:0,h=i.stackedOn,v=i.get(l,n);h&&e(h.get(l,n))===e(v);){r=h;break}var m=[];return m[c]=i.get(a.dim,n),m[1-c]=r?r.get(l,n,!0):s,t[u](m)}var n=t("zrender/core/arrayDiff");return function(t,e,r,a,o,s){for(var l=e[O](e.getId),c=t[O](t.getId),h=[],d=[],f=[],p=[],v=[],m=[],g=[],y=n(c,l),_=s[B],x=0;x<y[Vi];x++){var b=y[x],w=!0;switch(b.cmd){case"=":h.push(t[P](b.idx)),d.push(e[P](b.idx1)),f.push(r[b.idx]),p.push(a[b.idx1]),g.push(e[ye](b.idx1));break;case"+":var M=b.idx;h.push(o[u]([e.get(_[0],M,!0),e.get(_[1],M,!0)])),d.push(e[P](M).slice()),f.push(i(o,e,M)),p.push(a[M]),g.push(e[ye](M));break;case"-":var M=b.idx,S=t[ye](M);S!==M?(h.push(t[P](M)),d.push(s[u]([t.get(_[0],M,!0),t.get(_[1],M,!0)])),f.push(r[M]),p.push(i(s,t,M)),g.push(S)):w=!1}w&&(v.push(b),m.push(m[Vi]))}m.sort(function(t,e){return g[t]-g[e]});for(var k=[],A=[],C=[],T=[],D=[],x=0;x<m[Vi];x++){var M=m[x];k[x]=h[M],A[x]=d[M],C[x]=f[M],T[x]=p[M],D[x]=v[M]}return{current:k,next:A,stackedOnCurrent:C,stackedOnNext:T,status:D}}}),e("echarts/chart/line/poly",[qi,"zrender/graphic/Path",xi],function(t){function e(t,e,i,n,p,v,m,g,y){for(var _=i,x=0;p>x;x++){var b=e[_];if(_>=n||0>_||isNaN(b[0])||isNaN(b[1]))break;if(_===i)t[v>0?It:Pt](b[0],b[1]),h(d,b);else if(y>0){var w=_-v,M=_+v;v>0?(w=o(w,i),M=a(M,n-1)):(M=o(M,0),w=a(w,i));var S=e[w],k=e[M];(isNaN(k[0])||isNaN(k[1]))&&(k=b),r.sub(u,k,S),c(f,b,u,-y/2),s(d,d,g),l(d,d,m),s(f,f,g),l(f,f,m),t[zt](d[0],d[1],f[0],f[1],b[0],b[1]),c(d,b,u,y/2)}else t[Pt](b[0],b[1]);_+=v}return x}function i(t){for(var e=[1/0,1/0],i=[-(1/0),-(1/0)],n=0;n<t[Vi];n++){var r=t[n];r[0]<e[0]&&(e[0]=r[0]),r[1]<e[1]&&(e[1]=r[1]),r[0]>i[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:e,max:i}}var n=t("zrender/graphic/Path"),r=t(xi),a=Math.min,o=Math.max,s=r.min,l=r.max,c=r.scaleAndAdd,h=r.copy,u=[],d=[],f=[];return{Polyline:n[Di]({type:"ec-polyline",shape:{points:[],smooth:0},style:{fill:null,stroke:"#000",smooth:0},buildPath:function(t,n){for(var r=n[At],a=0,o=r[Vi],s=i(r);o>a;)a+=e(t,r,a,o,o,1,s.min,s.max,n.smooth)+1}}),Polygon:n[Di]({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0},buildPath:function(t,n){for(var r=n[At],a=n.stackedOnPoints,o=0,s=r[Vi],l=i(r),c=i(a);s>o;){var h=e(t,r,o,s,s,1,l.min,l.max,n.smooth);e(t,a,o+h-1,s,h,-1,c.min,c.max,n.stackedOnSmooth),o+=h+1,t[Lt]()}}})}}),e("echarts/chart/line/LineView",[qi,Hi,"../helper/SymbolDraw","../helper/Symbol","./lineAnimationDiff",S,"./poly","../../view/Chart"],function(t){function e(t,e){if(t[Vi]===e[Vi]){for(var i=0;i<t[Vi];i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function i(t){return typeof t===Oi?t:t?.3:0}function n(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function a(t,e){var i=t[p](),n=t[f](i),a=i.onZero?0:n.scale[d]()[0],o=n.dim,s="x"===o||o===Ae?1:0;return e[O]([o],function(n,l){for(var c,h=e.stackedOn;h&&r(h.get(o,l))===r(n);){c=h;break}var d=[];return d[s]=e.get(i.dim,l),d[1-s]=c?c.get(o,l,!0):a,t[u](d)},!0)}function o(t,e){return null!=e[Gt]?e[Gt]:null!=e.name?t[Vt](e.name):void 0}function s(t,e,i){var r=n(t[h]("x")),a=n(t[h]("y")),o=t[p]()[c](),s=r[0],l=a[0],u=r[1]-s,d=a[1]-l;i.get("clipOverflow")||(o?(l-=d,d*=3):(s-=u,u*=3));var f=new b.Rect({shape:{x:s,y:l,width:u,height:d}});return e&&(f.shape[o?"width":vi]=0,b[pt](f,{shape:{width:u,height:d}},i)),f}function v(t,e,i){var n=t.getAngleAxis(),r=t.getRadiusAxis(),a=r[d](),o=n[d](),s=Math.PI/180,l=new b[kt]({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-o[0]*s,b[pt](l,{shape:{endAngle:-o[1]*s}},i)),l}function m(t,e,i){return"polar"===t.type?v(t,e,i):s(t,e,i)}var g=t(Hi),y=t("../helper/SymbolDraw"),_=t("../helper/Symbol"),x=t("./lineAnimationDiff"),b=t(S),M=t("./poly"),k=t("../../view/Chart");return k[Di]({type:"line",init:function(){var t=new b.Group,e=new y;this.group.add(e.group),this.group.add(t),this._symbolDraw=e,this._lineGroup=t},render:function(t,n,r){var o=t[C],s=this.group,c=t[be](),h=t[ni]("lineStyle.normal"),u=t[ni]("areaStyle.normal"),d=c[O](c[P],!0),f="polar"===o.type,p=this._coordSys,v=this._symbolDraw,y=this._polyline,_=this._polygon,x=this._lineGroup,b=t.get(re),M=!u.isEmpty(),S=a(o,c),k=t.get("showSymbol"),A=k&&!f&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(c,o),T=this._data;T&&T[Nt](function(t,e){t.__temp&&(s[Qt](t),T[D](e,null))}),k||v[Qt](),y&&p.type===o.type?(b&&x.setClipPath(m(o,!1,t)),k&&v[w](c,A),c[Nt](function(t){t[ne](!0)}),e(this._stackedOnPoints,S)&&e(this._points,d)||(b?this._updateAnimation(c,S,o,r):(y[Ct]({points:d}),_&&_[Ct]({points:d,stackedOnPoints:S}))),s.add(x)):(k&&v[w](c,A),y=this._newPolyline(s,d,o,b),M&&(_=this._newPolygon(s,d,S,o,b)),x.setClipPath(m(o,!0,t))),y[bt](g[oi](h[l](),{stroke:c[I]("color"),lineJoin:"bevel"}));var L=t.get("smooth");if(L=i(t.get("smooth")),y.shape.smooth=L,_){var z=_.shape,R=c.stackedOn,B=0;if(_.style[bi]=.7,_[bt](g[oi](u.getAreaStyle(),{fill:c[I]("color"),lineJoin:"bevel"})),z.smooth=L,R){var Z=R[H];B=i(Z.get("smooth"))}z.stackedOnSmooth=B}this._data=c,this._coordSys=o,this._stackedOnPoints=S,this._points=d},highlight:function(t,e,i,n){var r=t[be](),a=o(r,n);if(null!=a&&a>=0){var s=r[Ft](a);if(!s){var l=r[P](a);s=new _(r,a,i),s[He]=l,s.setZ(t.get(ot),t.get("z")),s[te]=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r[D](a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else k[Wi].highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t[be](),a=o(r,n);if(null!=a&&a>=0){var s=r[Ft](a);s&&(s.__temp?(r[D](a,null),this.group[Qt](s)):s.downplay())}else k[Wi].downplay.call(this,t,e,i,n)},_newPolyline:function(t,e){var i=this._polyline;return i&&t[Qt](i),i=new M[St]({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(i),this._polyline=i,i},_newPolygon:function(t,e,i){var n=this._polygon;return n&&t[Qt](n),n=new M.Polygon({shape:{points:e,stackedOnPoints:i},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale(xe)[0];return i&&i.isLabelIgnored?g.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n){var r=this._polyline,a=this._polygon,o=t[H],s=x(this._data,t,this._stackedOnPoints,e,this._coordSys,i);r.shape[At]=s.current,b[vt](r,{shape:{points:s.next}},o),a&&(a[Ct]({points:s.current,stackedOnPoints:s.stackedOnCurrent}),b[vt](a,{shape:{points:s.next,stackedOnPoints:s.stackedOnNext}},o));for(var l=[],c=s.status,h=0;h<c[Vi];h++){var u=c[h].cmd;if("="===u){var d=t[Ft](c[h].idx1);d&&l.push({el:d,ptIdx:h})}}r.animators&&r.animators[Vi]&&r.animators[0].during(function(){for(var t=0;t<l[Vi];t++){var e=l[t].el;e.attr(He,r.shape[At][l[t].ptIdx])}})},remove:function(t){var e=this.group;e[Qt](this._lineGroup),this._symbolDraw[Qt](!0)}})}),e("echarts/visual/symbol",[qi],function(t){return function(t,e,i,n,r){n.eachRawSeriesByType(t,function(t){var r=t[be](),a=t.get(_)||e,o=t.get(x);r[Y]({legendSymbol:i||a,symbol:a,symbolSize:o}),n.isSeriesFiltered(t)||(typeof o===Pi&&r.each(function(e){var i=t[_e](e),n=t[ve](e);r[$](e,x,o(i,n))}),r.each(function(t){var e=r[me](t),i=e.get(_,!0),n=e.get(x,!0);null!=i&&r[$](t,_,i),null!=n&&r[$](t,x,n)}))})}}),e("echarts/layout/points",[qi],function(t){return function(t,e,i){e[X](t,function(t){var e=t[be](),i=t[C],n=i[B];e.each(n,function(t,n,r){var a;a=isNaN(t)||isNaN(n)?[NaN,NaN]:i[u]([t,n]),e[z](r,a)},!0)})}}),e("echarts/chart/line",[qi,Hi,s,"./line/LineSeries","./line/LineView","../visual/symbol","../layout/points"],function(t){var e=t(Hi),i=t(s);t("./line/LineSeries"),t("./line/LineView"),i[N]("chart",e.curry(t("../visual/symbol"),"line",y,"line")),i[V](e.curry(t("../layout/points"),"line"))}),e("echarts/scale/Scale",[qi,Je],function(t){function e(){this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var i=t(Je),n=e[Wi];return n[Rt]=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},n.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},n.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n[d]=function(){return this._extent.slice()},n.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;i<e[Vi];i++)t.push(this[o](e[i]));
  return t},i[Li](e),i[Ci](e,{registerWhenExtend:!0}),e}),e("echarts/scale/Ordinal",[qi,Hi,"./Scale"],function(t){var e=t(Hi),i=t("./Scale"),n=i[Wi],r=i[Di]({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t[Vi]-1]},contain:function(t){return n[Rt].call(this,t)&&null!=this._data[t]},normalize:function(t){return typeof t===Ri&&(t=e[Bi](this._data,t)),n.normalize.call(this,t)},scale:function(t){return Math.round(n.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:e.noop,niceExtent:e.noop});return r[pi]=function(){return new r},r}),e("echarts/scale/Interval",[qi,"../util/number","../util/format","./Scale"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./Scale"),r=Math.floor,a=Math.ceil,s=n[Di]({type:"interval",_interval:0,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),s[Wi].setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,i=this._extent,n=[],r=1e4;if(t){var a=this._niceExtent;i[0]<a[0]&&n.push(i[0]);for(var o=a[0];o<=a[1];)if(n.push(o),o=e.round(o+t),n[Vi]>r)return[];i[1]>a[1]&&n.push(i[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;i<e[Vi];i++)t.push(this[o](e[i]));return t},getLabel:function(t){return i[pe](t)},niceTicks:function(t){t=t||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||0>=n)){var o=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),s=t/n*o;.15>=s?o*=10:.3>=s?o*=5:.5>=s?o*=3:.75>=s&&(o*=2);var l=[e.round(a(i[0]/o)*o),e.round(r(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},niceExtent:function(t,i,n){var o=this._extent;if(o[0]===o[1]){var s=o[0]/2||1;o[0]-=s,o[1]+=s}if(o[1]===-(1/0)&&o[0]===1/0)return o[1]=1,o[0]=-1,this._niceExtent=[-1,1],void(this._interval=.5);this.niceTicks(t,i,n);var l=this._interval;i||(o[0]=e.round(r(o[0]/l)*l)),n||(o[1]=e.round(a(o[1]/l)*l))}});return s[pi]=function(){return new s},s}),e("echarts/scale/Time",[qi,Hi,"../util/number","./Interval"],function(t){var e=t(Hi),i=t("../util/number"),n=t("./Interval"),r=n[Wi],a=Math.ceil,o=Math.floor,s=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]<e?i=r+1:n=r}return i},l=function(t){return 10>t?"0"+t:t},c=function(t,e){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=i.parseDate(e),r=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),s=n.getHours(),c=n.getMinutes(),h=n.getSeconds();return t=t[Qe]("MM",l(a))[je]()[Qe]("yyyy",r)[Qe]("yy",r%100)[Qe]("dd",l(o))[Qe]("d",o)[Qe]("hh",l(s))[Qe]("h",s)[Qe]("mm",l(c))[Qe]("m",c)[Qe]("ss",l(h))[Qe]("s",h)},h=n[Di]({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return c(e[0],i)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0],n=i/t,r=u[Vi],l=s(u,n,0,r),c=u[Math.min(l,r-1)],h=c[2],d=[a(e[0]/h)*h,o(e[1]/h)*h];this._stepLvl=c,this._interval=h,this._niceExtent=d}});e.each([Rt,"normalize"],function(t){h[Wi][t]=function(e){return e=+i.parseDate(e),r[t].call(this,e)}});var u=[["hh:mm:ss",1,1e3],["hh:mm:ss",5,5e3],["hh:mm:ss",10,1e4],["hh:mm:ss",15,15e3],["hh:mm:ss",30,3e4],["hh:mm\nMM-dd",1,6e4],["hh:mm\nMM-dd",5,3e5],["hh:mm\nMM-dd",10,6e5],["hh:mm\nMM-dd",15,9e5],["hh:mm\nMM-dd",30,18e5],["hh:mm\nMM-dd",1,36e5],["hh:mm\nMM-dd",2,72e5],["hh:mm\nMM-dd",6,216e5],["hh:mm\nMM-dd",12,432e5],["MM-dd\nyyyy",1,864e5],["week",7,6048e5],["month",1,26784e5],["quarter",3,8208e6],["half-year",6,16416e6],["year",1,32832e6]];return h[pi]=function(){return new h},h}),e("echarts/scale/Log",[qi,Hi,"./Scale","../util/number","./Interval"],function(t){var e=t(Hi),i=t("./Scale"),n=t("../util/number"),r=t("./Interval"),a=i[Wi],s=r[Wi],l=Math.floor,c=Math.ceil,h=Math.pow,u=10,f=Math.log,p=i[Di]({type:"log",getTicks:function(){return e.map(s.getTicks.call(this),function(t){return n.round(h(u,t))})},getLabel:s[o],scale:function(t){return t=a.scale.call(this,t),h(u,t)},setExtent:function(t,e){t=f(t)/f(u),e=f(e)/f(u),s.setExtent.call(this,t,e)},getExtent:function(){var t=a[d].call(this);return t[0]=h(u,t[0]),t[1]=h(u,t[1]),t},unionExtent:function(t){t[0]=f(t[0])/f(u),t[1]=f(t[1])/f(u),a.unionExtent.call(this,t)},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||0>=i)){var r=h(10,l(f(i/t)/Math.LN10)),a=t/i*r;.5>=a&&(r*=10);var o=[n.round(c(e[0]/r)*r),n.round(l(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},niceExtent:s.niceExtent});return e.each([Rt,"normalize"],function(t){p[Wi][t]=function(e){return e=f(e)/f(u),a[t].call(this,e)}}),p[pi]=function(){return new p},p}),e("echarts/coord/axisHelper",[qi,"../scale/Ordinal","../scale/Interval","../scale/Time","../scale/Log","../scale/Scale","../util/number",Hi,fi],function(t){var e=t("../scale/Ordinal"),i=t("../scale/Interval");t("../scale/Time"),t("../scale/Log");var n=t("../scale/Scale"),r=t("../util/number"),a=t(Hi),s=t(fi),l={};return l.niceScaleExtent=function(t,e){var i=t.scale;if(i.type!==xe){var n=e.get("min"),o=e.get("max"),s=e.get("boundaryGap");a[ki](s)||(s=[s||0,s||0]),s[0]=r[$e](s[0],1),s[1]=r[$e](s[1],1);var l=i[d](),c=l[1]-l[0],h=!0,u=!0;null==n&&(n=l[0]-s[0]*c,h=!1),null==o&&(o=l[1]+s[1]*c,u=!1),"dataMin"===n&&(n=l[0]),"dataMax"===o&&(o=l[1]),i.setExtent(n,o),i.niceExtent(e.get("splitNumber"),h,u);var f=e.get("interval");null!=f&&i.setInterval&&i.setInterval(f)}},l.createScaleByModel=function(t,r){if(r=r||t.get("type"))switch(r){case A:return new e(t.getCategories(),[1/0,-(1/0)]);case"value":return new i;default:return(n[Ai](r)||i)[pi](t)}},l.ifAxisCrossZero=function(t){var e=t.scale[d](),i=e[0],n=e[1],r=t.model.get("min"),a=t.model.get("max");return isNaN(r)||(i=Math.min(r,i)),isNaN(a)||(n=Math.max(a,n)),!(i>0&&n>0||0>i&&0>n)||l.ifAxisNeedsCrossZero(t)},l.ifAxisNeedsCrossZero=function(t){return!t.model.get("scale")},l.getAxisLabelInterval=function(t,e,i,n){for(var r,a=0,o=0,l=0;l<t[Vi];l++){var c=t[l],h=s[ei](e[l],i,li,"top");h[n?"x":"y"]+=c,h[n?"width":vi]*=1.5,r?r[nt](h)?(o++,a=Math.max(a,o)):(r.union(h),o=0):r=h.clone()}return a},l.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),r=i.getTicks();return typeof e===Ri?(e=function(t){return function(e){return t[Qe]("{value}",e)}}(e),a.map(n,e)):typeof e===Pi?a.map(r,function(n,r){return e(t.type===A?i[o](n):n,r)},this):n},l}),e("echarts/coord/cartesian/Cartesian",[qi,Hi],function(t){function e(t){return this._axes[t]}var i=t(Hi),n=function(t){this._axes={},this._dimList=[],this.name=t||""};return n[Wi]={constructor:n,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,e,this)},getAxesByScale:function(t){return t=t[je](),i[Gi](this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,a)},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i[Vi];r++){var a=i[r],o=this._axes[a];n[a]=o[e](t[a])}return n}},n}),e("echarts/coord/cartesian/Cartesian2D",[qi,Hi,"./Cartesian"],function(t){function e(t){n.call(this,t),this[B]=["x","y"]}var i=t(Hi),n=t("./Cartesian");return e[Wi]={constructor:e,type:"cartesian2d",getBaseAxis:function(){return this.getAxesByScale(xe)[0]||this.getAxesByScale("time")[0]||this[h]("x")},containPoint:function(t){var e=this[h]("x"),i=this[h]("y");return e[Rt](e.toLocalCoord(t[0]))&&i[Rt](i.toLocalCoord(t[1]))},containData:function(t){return this[h]("x").containData(t[0])&&this[h]("y").containData(t[1])},dataToPoints:function(t,e){return t[O](["x","y"],function(t,e){return this[u]([t,e])},e,this)},dataToPoint:function(t,e){var i=this[h]("x"),n=this[h]("y");return[i.toGlobalCoord(i[a](t[0],e)),n.toGlobalCoord(n[a](t[1],e))]},pointToData:function(t,e){var i=this[h]("x"),n=this[h]("y");return[i.coordToData(i.toLocalCoord(t[0]),e),n.coordToData(n.toLocalCoord(t[1]),e)]},getOtherAxis:function(t){return this[h]("x"===t.dim?"y":"x")}},i[Ti](e,n),e}),e("echarts/coord/Axis",[qi,"../util/number",Hi],function(t){function e(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}var i=t("../util/number"),n=i[Ye],r=t(Hi),o=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};return o[Wi]={constructor:o,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this[Rt](this[a](t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return i[Ue](t||this.scale[d](),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,i){t=this.scale.normalize(t);var r=this[d](),a=this.scale;return this.onBand&&a.type===xe&&e(r,a.count()),n(t,[0,1],r,i)},coordToData:function(t,i){var r=this[d]();this.onBand&&e(r,this.scale.count());var a=n(t,r,[0,1],i);return this.scale.scale(a)},getTicksCoords:function(){if(this.onBand){for(var t=this.getBands(),e=[],i=0;i<t[Vi];i++)e.push(t[i][0]);return t[i-1]&&e.push(t[i-1][1]),e}return r.map(this.scale.getTicks(),this[a],this)},getLabelsCoords:function(){if(this.onBand){for(var t,e=this.getBands(),i=[],n=0;n<e[Vi];n++)t=e[n],i.push((t[0]+t[1])/2);return i}return r.map(this.scale.getTicks(),this[a],this)},getBands:function(){for(var t=this[d](),e=[],i=this.scale.count(),n=t[0],r=t[1],a=r-n,o=0;i>o;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale[d](),i=e[1]-e[0]+(this.onBand?1:0),n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},o}),e("echarts/coord/cartesian/axisLabelInterval",[qi,Hi,"../axisHelper"],function(t){var e=t(Hi),i=t("../axisHelper");return function(t){var n=t.model,r=n[ni]("axisLabel"),o=r.get("interval");return t.type!==A||"auto"!==o?"auto"===o?0:o:i.getAxisLabelInterval(e.map(t.scale.getTicks(),t[a],t),n.getFormattedLabels(),r[ni](ii)[ti](),t[c]())}}),e("echarts/coord/cartesian/Axis2D",[qi,Hi,"../Axis","./axisLabelInterval"],function(t){var e=t(Hi),i=t("../Axis"),n=t("./axisLabelInterval"),r=function(t,e,n,r,a){i.call(this,t,e,n),this.type=r||"value",this[He]=a||hi};return r[Wi]={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this[He];return"top"===t||t===hi},getGlobalExtent:function(){var t=this[d]();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=n(this)),t},isLabelIgnored:function(t){if(this.type===A){var e=this.getLabelInterval();return typeof e===Pi&&!e(t,this.scale[o](t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},e[Ti](r,i),r}),e("echarts/coord/axisDefault",[qi,Hi],function(t){var e=t(Hi),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameTextStyle:{},nameGap:15,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{color:"#333",fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=e.merge({boundaryGap:!0,axisTick:{interval:"auto"},axisLabel:{interval:"auto"}},i),r=e[oi]({boundaryGap:[0,0],splitNumber:5},i),a=e[oi]({scale:!0,min:"dataMin",max:"dataMax"},r),o=e[oi]({},r);return o.scale=!0,{categoryAxis:n,valueAxis:r,timeAxis:a,logAxis:o}}),e("echarts/coord/axisModelCreator",[qi,"./axisDefault",Hi,"../model/Component"],function(t){var e=t("./axisDefault"),i=t(Hi),n=t("../model/Component"),r=["value",A,"time","log"];return function(t,a,o,s){i.each(r,function(n){a[Di]({type:t+"Axis."+n,mergeDefaultAndTheme:function(e,r){var a=r.getTheme();i.merge(e,a.get(n+"Axis")),i.merge(e,this.getDefaultOption()),e.type=o(t,e)},defaultOption:i.mergeAll([{},e[n+"Axis"],s],!0)})}),n.registerSubTypeDefaulter(t+"Axis",i.curry(o,t))}}),e("echarts/coord/axisModelCommonMixin",[qi,Hi,"./axisHelper"],function(t){function e(t){return r[Ee](t)&&null!=t.value?t.value:t}function i(){return this.get("type")===A&&r.map(this.get("data"),e)}function n(){return a.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))}var r=t(Hi),a=t("./axisHelper");return{getFormattedLabels:n,getCategories:i}}),e("echarts/coord/cartesian/AxisModel",[qi,"../../model/Component",Hi,"../axisModelCreator","../axisModelCommonMixin"],function(t){function e(t,e){return e.type||(e.data?A:"value")}var i=t("../../model/Component"),n=t(Hi),r=t("../axisModelCreator"),a=i[Di]({type:"cartesian2dAxis",axis:null,setNeedsCrossZero:function(t){this[Ke].scale=!t},setMin:function(t){this[Ke].min=t},setMax:function(t){this[Ke].max=t}});n.merge(a[Wi],t("../axisModelCommonMixin"));var o={gridIndex:0};return r("x",a,e,o),r("y",a,e,o),a}),e("echarts/coord/cartesian/GridModel",[qi,"./AxisModel","../../model/Component"],function(t){t("./AxisModel");var e=t("../../model/Component");return e[Di]({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})}),e("echarts/coord/cartesian/Grid",[qi,"exports","module","../../util/layout","../../coord/axisHelper",Hi,"./Cartesian2D","./Axis2D","./GridModel","../../CoordinateSystem"],function(t,e){function i(t,e,i){return i[Ce]("grid",t.get("gridIndex"))===e}function n(t){for(var e,i=t.model,n=i.getFormattedLabels(),r=0;r<n[Vi];r++)if(!t.isLabelIgnored(r)){var a=i.getTextRect(n[r]);e?e.union(a):e=a}return e}function a(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i)}function o(t,e){var i=t[d](),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var s=t("../../util/layout"),l=t("../../coord/axisHelper"),u=t(Hi),f=t("./Cartesian2D"),p=t("./Axis2D"),v=u.each,m=l.ifAxisCrossZero,g=l.ifAxisNeedsCrossZero,y=l.niceScaleExtent;t("./GridModel");var _=a[Wi];return _.type="grid",_[r]=function(){return this._rect},_[rt]=function(t,e){function i(){v(a,function(t){var e=t[c](),i=e?[0,r.width]:[0,r[vi]],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),o(t,e?r.x:r.y)})}var r=s[Ve](t.getBoxLayoutParams(),{width:e[ze](),height:e[Le]()});this._rect=r;var a=this._axesList;i(),t.get("containLabel")&&(v(a,function(t){if(!t.model.get("axisLabel.inside")){var e=n(t);if(e){var i=t[c]()?vi:"width",a=t.model.get("axisLabel.margin");r[i]-=e[i]+a,"top"===t[He]?r.y+=e[vi]+a:"left"===t[He]&&(r.x+=e.width+a)}}}),i())},_[h]=function(t,e){if(null!=e){var i=t+e;return this._axesMap[i]}for(var n=this._axesList,r=0;r<n[Vi];r++)if(n[r].dim===t)return n[r]},_.getCartesian=function(t,e){var i="x"+t+"y"+e;return this._coordsMap[i]},_._initCartesian=function(t,e,n){function r(t){var e=s[t];return e[0]&&(e[0].type===A||!m(e[0]))||e[1]&&(e[1].type===A||!m(e[1]))}function a(n){return function(r,a){if(i(r,t,e)){var h=r.get(He);"x"===n?("top"!==h&&h!==hi&&(h=hi),o[h]&&(h="top"===h?hi:"top")):("left"!==h&&"right"!==h&&(h="left"),o[h]&&(h="left"===h?"right":"left")),o[h]=!0;var u=new p(n,l.createScaleByModel(r),[0,0],r.get("type"),h),d=u.type===A;u.onBand=d&&r.get("boundaryGap"),u.inverse=r.get("inverse"),u.onZero=r.get("axisLine.onZero"),r.axis=u,u.model=r,u.index=a,this._axesList.push(u),this._axesMap[n+a]=u,s[n][a]=u,c[n]++}}}var o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},c={x:0,y:0};return e[W]("xAxis",a("x"),this),e[W]("yAxis",a("y"),this),c.x&&c.y?(v(s.x,function(t,e){v(s.y,function(i,n){var r="x"+e+"y"+n,a=new f(r);a.grid=this,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(i)},this)},this),this._updateCartesianFromSeries(e,t),v(s.x,function(t){r("y")&&(t.onZero=!1),g(t)&&t.scale.unionExtent([0,0]),y(t,t.model)},this),void v(s.y,function(t){r("x")&&(t.onZero=!1),g(t)&&t.scale.unionExtent([0,0]),y(t,t.model)},this)):(this._axesMap={},void(this._axesList=[]))},_._updateCartesianFromSeries=function(t,e){function n(t,e,i,n){v(n.getDimensionsOnAxis(i),function(i){e.scale.unionExtent(t[R](i,e.scale.type!==xe))})}t[U](function(r){if("cartesian2d"===r.get(C)){var a=r.get("xAxisIndex"),o=r.get("yAxisIndex"),s=t[Ce]("xAxis",a),l=t[Ce]("yAxis",o);if(!i(s,e,t)||!i(l,e,t))return;var c=this.getCartesian(a,o),u=r[be]();"list"===u.type&&(n(u,c[h]("x"),"x",r),n(u,c[h]("y"),"y",r))}},this)},a[pi]=function(t,e){var i=[];return t[W]("grid",function(n,r){var o=new a(n,t,e);o.name="grid_"+r,o[rt](n,e),n[C]=o,i.push(o)}),t[U](function(e){if("cartesian2d"===e.get(C)){var n=e.get("xAxisIndex"),r=t[Ce]("xAxis",n),a=i[r.get("gridIndex")];e[C]=a.getCartesian(n,e.get("yAxisIndex"))}}),i},t("../../CoordinateSystem")[Te]("grid",a),a}),e("echarts/chart/bar/BarSeries",[qi,"../../model/Series","../helper/createListFromArray"],function(t){var e=t("../../model/Series"),i=t("../helper/createListFromArray");return e[Di]({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderWidth:0},emphasis:{barBorderColor:"#fff",barBorderWidth:0}}}})}),e("echarts/chart/bar/barItemStyle",[qi,"../../model/mixin/makeStyleMapper"],function(t){return{getBarItemStyle:t("../../model/mixin/makeStyleMapper")([["fill","color"],[wi,"barBorderColor"],[Mi,"barBorderWidth"],[bi],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]])}}),e("echarts/chart/bar/BarView",[qi,Hi,S,"../../model/Model","./barItemStyle",n],function(t){function e(t,e){var i=t.width>0?1:-1,n=t[vi]>0?1:-1;t.x+=i*e/2,t.y+=n*e/2,t.width-=i*e,t[vi]-=n*e}var i=t(Hi),r=t(S);return i[Di](t("../../model/Model")[Wi],t("./barItemStyle")),t(n).extendChartView({type:"bar",render:function(t,e,i){var n=t.get(C);return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},_renderOnCartesian:function(t,n,a){function o(n,a){var o=l[P](n),s=l[me](n).get(g)||0;e(o,s);var c=new r.Rect({shape:i[Di]({},o)});if(m){var h=c.shape,u=f?vi:"width",d={};h[u]=0,d[u]=o[u],r[a?vt:pt](c,{shape:d},t)}return c}var s=this.group,l=t[be](),h=this._data,u=t[C],d=u[p](),f=d[c](),m=t.get(re),g=[j,Me,"barBorderWidth"];l.diff(h).add(function(t){if(l.hasValue(t)){var e=o(t);l[D](t,e),s.add(e)}})[at](function(i,n){var a=h[Ft](n);if(!l.hasValue(i))return void s[Qt](a);a||(a=o(i,!0));var c=l[P](i),u=l[me](i).get(g)||0;e(c,u),r[vt](a,{shape:c},t),l[D](i,a),s.add(a)})[Qt](function(e){var i=h[Ft](e);i&&(i.style.text="",r[vt](i,{shape:{width:0}},t,function(){s[Qt](i)}))})[v](),this._updateStyle(t,l,f),this._data=l},_updateStyle:function(t,e,n){function a(t,e,i,n,a){r.setText(t,e,i),t.text=n,"outside"===t[Et]&&(t[Et]=a)}e[Nt](function(o,s){var l=e[me](s),c=l[ni]("label.normal"),h=e[L](s,"color"),u=e[P](s),d=l[ni]("itemStyle.emphasis")[g]();o[bt](i[oi]({fill:h},l[ni]("itemStyle.normal").getBarItemStyle()));var f=n?u[vi]>0?hi:"top":u.width>0?"left":"right",c=l[ni]("label.normal"),p=l[ni]("label.emphasis"),v=o.style;c.get("show")?a(v,c,h,t[m](s,Me)||t[_e](s),f):v.text="",p.get("show")?a(d,p,h,t[m](s,Se)||t[_e](s),f):d.text="",r[_t](o,d)})},remove:function(t,e){var i=this.group;t.get(re)?this._data&&this._data[Nt](function(e){e.style.text="",r[vt](e,{shape:{width:0}},t,function(){i[Qt](e)})}):i[qt]()}})}),e("echarts/layout/barGrid",[qi,Hi,"../util/number"],function(t){function e(t){return t.get("stack")||"__ec_stack_"+t[we]}function i(t,i){var n={};r.each(t,function(t,i){var r=t[C],a=r[p](),o=n[a.index]||{remainedWidth:a.getBandWidth(),autoWidthCount:0,categoryGap:"20%",gap:"30%",axis:a,stacks:{}},s=o.stacks;n[a.index]=o;var l=e(t);s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var c=t.get("barWidth"),h=t.get("barMaxWidth"),u=t.get("barGap"),d=t.get("barCategoryGap");c&&!s[l].width&&(c=Math.min(o.remainedWidth,c),s[l].width=c,o.remainedWidth-=c),h&&(s[l].maxWidth=h),null!=u&&(o.gap=u),null!=d&&(o.categoryGap=d)});var a={};return r.each(n,function(t,e){a[e]={};var i=t.stacks,n=t.axis,o=n.getBandWidth(),l=s(t.categoryGap,o),c=s(t.gap,1),h=t.remainedWidth,u=t.autoWidthCount,d=(h-l)/(u+(u-1)*c);d=Math.max(d,0),r.each(i,function(t,e){var i=t.maxWidth;!t.width&&i&&d>i&&(i=Math.min(i,h),h-=i,t.width=i,u--)}),d=(h-l)/(u+(u-1)*c),d=Math.max(d,0);var f,p=0;r.each(i,function(t,e){t.width||(t.width=d),f=t,p+=t.width*(1+c)}),f&&(p-=f.width*c);var v=-p/2;r.each(i,function(t,i){a[e][i]=a[e][i]||{offset:v,width:t.width},v+=t.width*(1+c)})}),a}function n(t,n,o){var s=i(r[Gi](n.getSeriesByType(t),function(t){return!n.isSeriesFiltered(t)&&t[C]&&"cartesian2d"===t[C].type})),l={};n[X](t,function(t){var i=t[be](),n=t[C],r=n[p](),o=e(t),h=s[r.index][o],u=h.offset,d=h.width,v=n[f](r),m=t.get("barMinHeight")||0,g=r.onZero?v.toGlobalCoord(v[a](0)):v.getGlobalExtent()[0],y=n.dataToPoints(i,!0);l[o]=l[o]||[],i.each(v.dim,function(t,e){if(!isNaN(t)){l[o][e]||(l[o][e]={p:g,n:g});var n,r,a,s,h=t>=0?"p":"n",f=y[e],p=l[o][e][h];v[c]()?(n=p,r=f[1]+u,a=f[0]-p,s=d,Math.abs(a)<m&&(a=(0>a?-1:1)*m),l[o][e][h]+=a):(n=f[0]+u,r=p,a=d,s=f[1]-p,Math.abs(s)<m&&(s=(0>=s?-1:1)*m),l[o][e][h]+=s),i[z](e,{x:n,y:r,width:a,height:s})}},!0)},this)}var r=t(Hi),o=t("../util/number"),s=o[$e];return n}),e("echarts/chart/bar",[qi,Hi,"../coord/cartesian/Grid","./bar/BarSeries","./bar/BarView","../layout/barGrid",s],function(t){var e=t(Hi);t("../coord/cartesian/Grid"),t("./bar/BarSeries"),t("./bar/BarView");var i=t("../layout/barGrid"),n=t(s);n[V](e.curry(i,"bar")),n[N]("chart",function(t){t[X]("bar",function(t){var e=t[be]();e[Y]("legendSymbol","roundRect")})})}),e("echarts/chart/helper/dataSelectableMixin",[qi,Hi],function(t){var e=t(Hi);return{updateSelectedMap:function(){var t=this[Ke];this._dataOptMap=e.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var i=this._dataOptMap,n=i[t],r=this.get("selectedMode");"single"===r&&e.each(i,function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}}),e("echarts/chart/pie/PieSeries",[qi,"../../data/List",Hi,T,"../../data/helper/completeDimensions","../helper/dataSelectableMixin",n],function(t){var e=t("../../data/List"),i=t(Hi),r=t(T),a=t("../../data/helper/completeDimensions"),o=t("../helper/dataSelectableMixin"),s=t(n).extendSeriesModel({type:"series.pie",init:function(t){this.$superApply("init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this.updateSelectedMap(),this._defaultLabelLine(t)},mergeOption:function(t){this.$superCall(Ze,t),this.updateSelectedMap()},getInitialData:function(t,i){var n=a(["value"],t.data),r=new e(n,this);return r.initData(t.data),r},getDataParams:function(t){var e=this._data,i=this.$superCall(ve,t);return i.percent=+(e.get("value",t)/e.getSum("value")*100)[Xe](2),i.$vars.push("percent"),i},_defaultLabelLine:function(t){r.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine[Me],i=t.labelLine[Se];e.show=e.show&&t.label[Me].show,i.show=i.show&&t.label[Se].show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,avoidLabelOverlap:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:20,length2:5,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1}},animationEasing:"cubicOut",data:[]}});return i.mixin(s,o),s}),e("echarts/chart/pie/PieView",[qi,S,Hi,"../../view/Chart"],function(t){function e(t,e,n,r){var a=e[be](),o=this[Gt],s=a[ge](o),l=e.get("selectedOffset");r[De]({type:"pieToggleSelect",from:t,name:s,seriesId:e.id}),a.each(function(t){i(a[Ft](t),a[P](t),e.isSelected(a[ge](t)),l,n)})}function i(t,e,i,n,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=i?n:0,c=[o*l,s*l];r?t[ie]().when(200,{position:c}).start("bounceOut"):t.attr(He,c)}function n(t,e){function i(){o[te]=o.hoverIgnore,s[te]=s.hoverIgnore}function n(){o[te]=o.normalIgnore,s[te]=s.normalIgnore}a.Group.call(this);var r=new a[kt]({z2:2}),o=new a[St],s=new a.Text;this.add(r),this.add(o),this.add(s),this[w](t,e,!0),this.on(Se,i).on(Me,n).on(yt,i).on(gt,n)}function r(t,e,i,n){var r=n[ni](ii),a=n.get(He),o=a===si||"inner"===a;return{fill:r[mt]()||(o?"#fff":t[L](e,"color")),textFont:r[ti](),text:t[H][m](e,i)||t[ge](e)}}var a=t(S),o=t(Hi),s=n[Wi];s[w]=function(t,e,n){function r(){l[ne](!0),l.animateTo({shape:{r:u.r+10}},300,"elasticOut")}function s(){l[ne](!0),l.animateTo({shape:{r:u.r}},300,"elasticOut")}var l=this[Ge](0),c=t[H],h=t[me](e),u=t[P](e),d=o[Di]({},u);d.label=null,n?(l[Ct](d),l.shape.endAngle=u.startAngle,a[vt](l,{shape:{endAngle:u.endAngle}},c)):a[vt](l,{shape:d},c);var f=h[ni](j),p=t[L](e,"color");l[bt](o[oi]({fill:p},f[ni](Me)[g]())),l[xt]=f[ni](Se)[g](),i(this,t[P](e),h.get("selected"),c.get("selectedOffset"),c.get(re)),l.off(yt).off(gt).off(Se).off(Me),h.get("hoverAnimation")&&l.on(yt,r).on(gt,s).on(Se,r).on(Me,s),this._updateLabel(t,e),a[_t](this)},s._updateLabel=function(t,e){var i=this[Ge](1),n=this[Ge](2),o=t[H],s=t[me](e),c=t[P](e),h=c.label,u=t[L](e,"color");a[vt](i,{shape:{points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]}},o),a[vt](n,{style:{x:h.x,y:h.y}},o),n.attr({style:{textAlign:h[Zt],textBaseline:h[Bt],textFont:h.font},rotation:h[de],origin:[h.x,h.y],z2:10});var d=s[ni]("label.normal"),f=s[ni]("label.emphasis"),p=s[ni]("labelLine.normal"),v=s[ni]("labelLine.emphasis");n[bt](r(t,e,Me,d)),n[te]=n.normalIgnore=!d.get("show"),n.hoverIgnore=!f.get("show"),i[te]=i.normalIgnore=!p.get("show"),i.hoverIgnore=!v.get("show"),i[bt]({stroke:u}),i[bt](p[ni]("lineStyle")[l]()),n[xt]=r(t,e,Se,f),i[xt]=v[ni]("lineStyle")[l]();var m=p.get("smooth");m&&m===!0&&(m=.4),i[Ct]({smooth:m})},o[Ti](n,a.Group);var c=t("../../view/Chart")[Di]({type:"pie",init:function(){var t=new a.Group;this._sectorGroup=t},render:function(t,i,r,a){if(!a||a.from!==this.uid){var s=t[be](),l=this._data,c=this.group,h=i.get(re),u=!l,d=o.curry(e,this.uid,t,h,r),f=t.get("selectedMode");if(s.diff(l).add(function(t){var e=new n(s,t);u&&e[We](function(t){t[ne](!0)}),f&&e.on("click",d),s[D](t,e),c.add(e)})[at](function(t,e){var i=l[Ft](e);i[w](s,t),i.off("click"),f&&i.on("click",d),c.add(i),s[D](t,i)})[Qt](function(t){var e=l[Ft](t);c[Qt](e)})[v](),h&&u&&s.count()>0){var p=s[P](0),m=Math.max(r[ze](),r[Le]())/2,g=o.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(p.cx,p.cy,m,p.startAngle,p.clockwise,g,t))}this._data=s}},_createClipPath:function(t,e,i,n,r,o,s){var l=new a[kt]({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return a[pt](l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),l}});return c}),e("echarts/action/createDataSelectAction",[qi,s,Hi],function(t){var e=t(s),i=t(Hi);return function(t,n){i.each(n,function(i){i[at]="updateView",e[F](i,function(e,n){var r={};return n[W]({mainType:"series",subType:t,query:e},function(t){t[i.method]&&t[i.method](e.name);var n=t[be]();n.each(function(e){var i=n[ge](e);r[i]=t.isSelected(i)||!1})}),{name:e.name,selected:r}})})}}),e("echarts/visual/dataColor",[qi],function(t){return function(t,e){e[X](t,function(t){var i=t.get("color"),n=t.getRawData();if(!e.isSeriesFiltered(t)){var r=t[be]();r.each(function(t){var e=r[me](t),a=r[ye](t);if(!r[L](t,"color",!0)){var o=e.get("itemStyle.normal.color")||i[a%i[Vi]];n[$](a,"color",o),r[$](t,"color",o)}})}})}}),e("echarts/chart/pie/labelLayout",[qi,fi],function(t){function e(t,e,i,n,r,a,o){function s(e,i,n,r){for(var a=e;i>a;a++)if(t[a].y+=n,a>e&&i>a+1&&t[a+1].y>t[a].y+t[a][vi])return void l(a,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1][vi]));n--);}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,u=t[Vi],d=[],f=[],p=0;u>p;p++)c=t[p].y-h,0>c&&s(p,u,-c,r),h=t[p].y+t[p][vi];0>o-h&&l(u-1,h-o);for(var p=0;u>p;p++)t[p].y>=i?f.push(t[p]):d.push(t[p])}function i(t,i,n,r,a,o){for(var s=[],l=[],c=0;c<t[Vi];c++)t[c].x<i?s.push(t[c]):l.push(t[c]);e(s,i,n,r,-1,a,o),e(l,i,n,r,1,a,o);for(var c=0;c<t[Vi];c++){var h=t[c].linePoints;h&&(t[c].x<i?h[2][0]=t[c].x+3:h[2][0]=t[c].x-3,h[1][1]=h[2][1]=t[c].y)}}var n=t(fi);return function(t,e,r,a){var o,s,l=t[be](),c=[],h=!1;l.each(function(i){var r,a,u,d,f=l[P](i),p=l[me](i),v=p[ni]("label.normal"),g=v.get(He),y=p[ni]("labelLine.normal"),_=y.get(Vi),x=y.get("length2"),b=(f.startAngle+f.endAngle)/2,w=Math.cos(b),M=Math.sin(b);if(o=f.cx,s=f.cy,g===li)r=f.cx,a=f.cy,d=li;else{var S=g===si||"inner"===g,k=(S?f.r/2*w:f.r*w)+o,A=(S?f.r/2*M:f.r*M)+s;if(_+=e-f.r,r=k+3*w,a=A+3*M,!S){var C=k+w*_,T=A+M*_,D=C+(0>w?-1:1)*x,L=T;r=D+(0>w?-5:5),a=L,u=[[k,A],[C,T],[D,L]]}d=S?li:w>0?"left":"right"}var z=ci,I=v[ni](ii)[ti](),O=v.get(le)?0>w?-b+Math.PI:-b:0,R=t[m](i,Me)||l[ge](i),B=n[ei](R,I,d,z);h=!!O,f.label={x:r,y:a,height:B[vi],length:_,length2:x,linePoints:u,textAlign:d,textBaseline:z,font:I,rotation:O},c.push(f.label)}),!h&&t.get("avoidLabelOverlap")&&i(c,o,s,e,r,a)}}),e("echarts/chart/pie/pieLayout",[qi,M,"./labelLayout",Hi],function(t){var e=t(M),i=e[$e],n=t("./labelLayout"),r=t(Hi),a=2*Math.PI,o=Math.PI/180;return function(t,s,l){s[X](t,function(t){var s=t.get(li),c=t.get(Ae);r[ki](c)||(c=[0,c]),r[ki](s)||(s=[s,s]);var h=l[ze](),u=l[Le](),d=Math.min(h,u),f=i(s[0],h),p=i(s[1],u),v=i(c[0],d/2),m=i(c[1],d/2),g=t[be](),y=-t.get("startAngle")*o,_=t.get("minAngle")*o,x=g.getSum("value");0===x&&(x=g.count());var b=Math.PI/x*2,w=t.get("clockwise"),M=t.get("roseType"),S=g[R]("value");S[0]=0;var k=a,A=0,C=y,T=w?1:-1;if(g.each("value",function(t,i){var n;n="area"!==M?0===x?b:t*b:a/(g.count()||1),_>n?(n=_,k-=_):A+=t;var r=C+T*n;g[z](i,{angle:n,startAngle:C,endAngle:r,clockwise:w,cx:f,cy:p,r0:v,r:M?e[Ye](t,S,[v,m]):m}),C=r},!0),a>k)if(.001>=k){var D=a/g.count();g.each(function(t){var e=g[P](t);e.startAngle=y+T*t*D,e.endAngle=y+T*(t+1)*D})}else b=k/A,C=y,g.each("value",function(t,e){var i=g[P](e),n=i.angle===_?_:t*b;i.startAngle=C,i.endAngle=C+T*n,C+=n});n(t,m,h,u)})}}),e("echarts/processor/dataFilter",[],function(){return function(t,e){var i=e[Oe]({mainType:"legend"});i&&i[Vi]&&e[X](t,function(t){var e=t[be]();e.filterSelf(function(t){for(var n=e[ge](t),r=0;r<i[Vi];r++)if(!i[r].isSelected(n))return!1;return!0},this)},this)}}),e("echarts/chart/pie",[qi,Hi,s,"./pie/PieSeries","./pie/PieView","../action/createDataSelectAction","../visual/dataColor","./pie/pieLayout","../processor/dataFilter"],function(t){var e=t(Hi),i=t(s);t("./pie/PieSeries"),t("./pie/PieView"),t("../action/createDataSelectAction")("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i[N]("chart",e.curry(t("../visual/dataColor"),"pie")),i[V](e.curry(t("./pie/pieLayout"),"pie")),i[G](Gi,e.curry(t("../processor/dataFilter"),"pie"))}),e("echarts/chart/scatter/ScatterSeries",[qi,"../helper/createListFromArray","../../model/Series"],function(t){var e=t("../helper/createListFromArray"),i=t("../../model/Series");return i[Di]({type:"series.scatter",dependencies:["grid","polar"],getInitialData:function(t,i){var n=e(t.data,this,i);return n},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,
  xAxisIndex:0,yAxisIndex:0,polarIndex:0,geoIndex:0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})}),e("echarts/chart/helper/LargeSymbolDraw",[qi,S,k,Hi],function(t){function e(){this.group=new i.Group,this._symbolEl=new a({silent:!0})}var i=t(S),n=t(k),r=t(Hi),a=i[Mt]({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var i=e[At],n=e.sizes,r=this.symbolProxy,a=r.shape,o=0;o<i[Vi];o++){var s=i[o],l=n[o];l[0]<4?t.rect(s[0]-l[0]/2,s[1]-l[1]/2,l[0],l[1]):(a.x=s[0]-l[0]/2,a.y=s[1]-l[1]/2,a.width=l[0],a[vi]=l[1],r[Dt](t,a))}}}),o=e[Wi];return o[w]=function(t){this.group[qt]();var e=this._symbolEl,i=t[H];e[Ct]({points:t[O](t[P]),sizes:t[O](function(e){var i=t[L](e,x);return r[ki](i)||(i=[i,i]),i})}),e.symbolProxy=n[b](t[I](_),0,0,0,0),e.setColor=e.symbolProxy.setColor,e[bt](i[ni]("itemStyle.normal")[g](["color"]));var a=t[I]("color");a&&e.setColor(a),this.group.add(this._symbolEl)},o[jt]=function(t){var e=t[be]();this._symbolEl[Ct]({points:e[O](e[P])})},o[Qt]=function(){this.group[qt]()},e}),e("echarts/chart/scatter/ScatterView",[qi,"../helper/SymbolDraw","../helper/LargeSymbolDraw",n],function(t){var e=t("../helper/SymbolDraw"),i=t("../helper/LargeSymbolDraw");t(n).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new e,this._largeSymbolDraw=new i},render:function(t,e,i){var n=t[be](),r=this._largeSymbolDraw,a=this._normalSymbolDraw,o=this.group,s=t.get("large")&&n.count()>t.get("largeThreshold")?r:a;this._symbolDraw=s,s[w](n),o.add(s.group),o[Qt](s===r?a.group:r.group)},updateLayout:function(){this._symbolDraw[jt]()},remove:function(t,e){this._symbolDraw&&this._symbolDraw[Qt](e,!0)}})}),e("echarts/chart/scatter",[qi,Hi,s,"./scatter/ScatterSeries","./scatter/ScatterView","../visual/symbol","../layout/points"],function(t){var e=t(Hi),i=t(s);t("./scatter/ScatterSeries"),t("./scatter/ScatterView"),i[N]("chart",e.curry(t("../visual/symbol"),"scatter",y,null)),i[V](e.curry(t("../layout/points"),"scatter"))}),e("echarts/component/tooltip/TooltipModel",[qi,n],function(t){t(n)[E]({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff",fontSize:14}}})}),e("echarts/component/tooltip/TooltipContent",[qi,Hi,ae,ft,"../../util/format"],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(f,function(t){return t+"transition:"+i}).join(";")}function n(t){var e=[],i=t.get("fontSize"),n=t[mt]();return n&&e.push("color:"+n),e.push("font:"+t[ti]()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),u(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function r(t){t=t;var r=[],a=t.get("transitionDuration"),o=t.get(tt),s=t[ni](ii),c=t.get(i);return a&&r.push(e(a)),o&&(r.push("background-Color:"+l.toHex(o)),r.push("filter:alpha(opacity=70)"),r.push("background-Color:"+o)),u(["width","color",Ae],function(e){var i="border-"+e,n=d(i),a=t.get(n);null!=a&&r.push(i+":"+a+("color"===e?"":"px"))}),r.push(n(s)),null!=c&&r.push("padding:"+h.normalizeCssArray(c).join("px ")+"px"),r.join(";")+";"}function a(t,e){var i=document[Ni]("div"),n=e.getZr();this.el=i,this._x=e[ze]()/2,this._y=e[Le]()/2,t[et](i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(!r.enterable){var i=n.handler;c.normalizeEvent(t,e),i.dispatch(dt,e)}},i.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1},o(i,t)}function o(t,e){function i(t){n(t[oe])&&t.preventDefault()}function n(i){for(;i&&i!==e;){if(i===t)return!0;i=i[ct]}}c.addEventListener(e,"touchstart",i),c.addEventListener(e,"touchmove",i),c.addEventListener(e,"touchend",i)}var s=t(Hi),l=t(ae),c=t(ft),h=t("../../util/format"),u=s.each,d=h.toCamelCase,f=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;";return a[Wi]={constructor:a,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i[He]&&"absolute"!==e[He]&&(i[He]="relative"),this.hide()},show:function(t){clearTimeout(this._hideTimeout),this.el.style.cssText=p+r(t)+";left:"+this._x+"px;top:"+this._y+"px;",this._show=!0},setContent:function(t){var e=this.el;e[it]=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var i=this.el.style;i.left=t+"px",i.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},a}),e("echarts/component/tooltip/TooltipView",[qi,"./TooltipContent",S,Hi,"../../util/format",M,n],function(t){function e(t,e){if(!t||!e)return!1;var i=x.round;return i(t[0])===i(e[0])&&i(t[1])===i(e[1])}function i(t,e,i,n){return{x1:t,y1:e,x2:i,y2:n}}function r(t,e,i,n){return{x:t,y:e,width:i,height:n}}function a(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:a,clockwise:!0}}function s(t,e,i,n,r){var a=i.clientWidth,o=i[J],s=20;return t+a+s>n?t-=a+s:t+=s,e+o+s>r?e-=o+s:e+=s,[t,e]}function c(t,e,i){var n=i.clientWidth,r=i[J],a=5,o=0,s=0,l=e.width,c=e[vi];switch(t){case si:o=e.x+l/2-n/2,s=e.y+c/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case hi:o=e.x+l/2-n/2,s=e.y+c+a;break;case"left":o=e.x-n-a,s=e.y+c/2-r/2;break;case"right":o=e.x+l+a,s=e.y+c/2-r/2}return[o,s]}function f(t,e,i,n,r,a,o){var l=o[ze](),h=o[Le](),u=a&&a[ei]().clone();if(a&&u[mi](a[ue]),typeof t===Pi&&(t=t([e,i],r,u)),y[ki](t))e=b(t[0],l),i=b(t[1],h);else if(typeof t===Ri&&a){var d=c(t,u,n.el);e=d[0],i=d[1]}else{var d=s(e,i,n.el,l,h);e=d[0],i=d[1]}n[It](e,i)}function v(t){var e=t[C],i=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type||"item"===i)}var m=t("./TooltipContent"),g=t(S),y=t(Hi),_=t("../../util/format"),x=t(M),b=x[$e];t(n)[Z]({type:"tooltip",_axisPointers:{},init:function(t,e){var i=new m(e[Pe](),e);this._tooltipContent=i,e.on("showTip",this._manuallyShowTip,this),e.on("hideTip",this._hide,this)},render:function(t,e,i){this.group[qt](),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastHover={};var n=this._tooltipContent;n[at](),n.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var a=this._api.getZr(),o=this._tryShow;a.off("click",o),a.off(dt,o),a.off(gt,this._hide),"click"===t.get("triggerOn")?a.on("click",o,this):(a.on(dt,o,this),a.on(gt,this._hide,this))},_manuallyShowTip:function(t){if(t.from!==this.uid){var e=this._ecModel,i=t[we],n=t[Gt],r=e.getSeriesByIndex(i),a=this._api;if(null==t.x||null==t.y){if(r||e[U](function(t){v(t)&&!r&&(r=t)}),r){var o=r[be]();null==n&&(n=o[Vt](t.name));var s=o[Ft](n);if(s){var l=s[ei]().clone();l[mi](s[ue]);var c=l.x+l.width/2,h=l.y+l[vi]/2;this._tryShow({offsetX:c,offsetY:h,target:s,event:{}})}}}else a.getZr().handler.dispatch(dt,{zrX:t.x,zrY:t.y})}},_prepareAxisTriggerData:function(t,e){var i={};return e[U](function(t){if(v(t)){var e,n,r=t[C];"cartesian2d"===r.type?(e=r[p](),n=e.dim+e.index):(e=r[p](),n=e.dim+r.name),i[n]=i[n]||{coordSys:[],series:[]},i[n].coordSys.push(r),i[n][Be].push(t)}},this),i},_tryShow:function(t){var e=t[oe],i=this._tooltipModel,n=i.get(Ht),r=this._ecModel,a=this._api;if(i)if(e&&null!=e[Gt]){var o=e[H]||r.getSeriesByIndex(e[we]),s=e[Gt],l=o[be]()[me](s);"axis"===(l.get("tooltip.trigger")||n)?this._showAxisTooltip(i,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(o,s,t)),a[De]({type:"showTip",from:this.uid,dataIndex:e[Gt],seriesIndex:e[we]})}else"item"===n?this._hide():this._showAxisTooltip(i,r,t),a[De]({type:"showTip",from:this.uid,x:t[ut],y:t[ht]})},_showAxisTooltip:function(t,i,n){var r=t[ni]("axisPointer"),a=r.get("type");if("cross"===a){var o=n[oe];if(o&&null!=o[Gt]){var s=i.getSeriesByIndex(o[we]),l=o[Gt];this._showItemTooltipContent(s,l,n)}}this._showAxisPointer();var c=!0;y.each(this._seriesGroupByAxis,function(t){var i=t.coordSys,o=i[0],s=[n[ut],n[ht]];if(!o.containPoint(s))return void this._hideAxisPointer(o.name);c=!1;var l=o[B],h=o.pointToData(s,!0);s=o[u](h);var d=o[p](),f=r.get("axis");"auto"===f&&(f=d.dim);var v=!1,m=this._lastHover;if("cross"===a)e(m.data,h)&&(v=!0),m.data=h;else{var g=y[Bi](l,f);m.data===h[g]&&(v=!0),m.data=h[g]}"cartesian2d"!==o.type||v?"polar"!==o.type||v||this._showPolarPointer(r,o,f,s):this._showCartesianPointer(r,o,f,s),"cross"!==a&&this._showSeriesTooltipContent(o,t[Be],s,h,v)},this),c&&this._hide()},_showCartesianPointer:function(t,e,n,a){function o(n,r,a){var o="x"===n?i(r[0],a[0],r[0],a[1]):i(a[0],r[1],a[1],r[1]),s=l._getPointerElement(e,t,n,o);u?g[vt](s,{shape:o},t):s.attr({shape:o})}function s(i,n,a){var o=e[h](i),s=o.getBandWidth(),c=a[1]-a[0],d="x"===i?r(n[0]-s/2,a[0],s,c):r(a[0],n[1]-s/2,c,s),f=l._getPointerElement(e,t,i,d);u?g[vt](f,{shape:d},t):f.attr({shape:d})}var l=this,c=t.get("type"),u="cross"!==c;if("cross"===c)o("x",a,e[h]("y").getGlobalExtent()),o("y",a,e[h]("x").getGlobalExtent()),this._updateCrossText(e,a,t);else{var d=e[h]("x"===n?"y":"x"),f=d.getGlobalExtent();"cartesian2d"===e.type&&("line"===c?o:s)(n,a,f)}},_showPolarPointer:function(t,e,n,r){function o(n,r,a){var o,s=e.pointToCoord(r);if("angle"===n){var c=e.coordToPoint([a[0],s[1]]),h=e.coordToPoint([a[1],s[1]]);o=i(c[0],c[1],h[0],h[1])}else o={cx:e.cx,cy:e.cy,r:s[0]};var u=l._getPointerElement(e,t,n,o);p?g[vt](u,{shape:o},t):u.attr({shape:o})}function s(i,n,r){var o,s=e[h](i),c=s.getBandWidth(),u=e.pointToCoord(n),d=Math.PI/180;o="angle"===i?a(e.cx,e.cy,r[0],r[1],(-u[1]-c/2)*d,(-u[1]+c/2)*d):a(e.cx,e.cy,u[0]-c/2,u[0]+c/2,0,2*Math.PI);var f=l._getPointerElement(e,t,i,o);p?g[vt](f,{shape:o},t):f.attr({shape:o})}var l=this,c=t.get("type"),u=e.getAngleAxis(),f=e.getRadiusAxis(),p="cross"!==c;if("cross"===c)o("angle",r,f[d]()),o(Ae,r,u[d]()),this._updateCrossText(e,r,t);else{var v=e[h](n===Ae?"angle":Ae),m=v[d]();("line"===c?o:s)(n,r,m)}},_updateCrossText:function(t,e,i){var n=i[ni]("crossStyle"),r=n[ni](ii),a=this._tooltipModel,s=this._crossText;s||(s=this._crossText=new g.Text({style:{textAlign:"left",textBaseline:"bottom"}}),this.group.add(s));var l=t.pointToData(e),c=t[B];l=y.map(l,function(e,i){var n=t[h](c[i]);return e=n.type===A||"time"===n.type?n.scale[o](e):_[pe](e[Xe](n[Ue]()))}),s[bt]({fill:r[mt]()||n.get("color"),textFont:r[ti](),text:l.join(", "),x:e[0]+5,y:e[1]-5}),s.z=a.get("z"),s[ot]=a.get(ot)},_getPointerElement:function(t,e,i,n){var r=this._tooltipModel,a=r.get("z"),o=r.get(ot),s=this._axisPointers,c=t.name;if(s[c]=s[c]||{},s[c][i])return s[c][i];var h=e.get("type"),u=e[ni](h+"Style"),d="shadow"===h,f=u[d?"getAreaStyle":l](),p="polar"===t.type?d?kt:i===Ae?"Circle":"Line":d?"Rect":"Line";d?f[wi]=null:f.fill=null;var v=s[c][i]=new g[p]({style:f,z:a,zlevel:o,silent:!0,shape:n});return this.group.add(v),v},_showSeriesTooltipContent:function(t,e,i,n,r){var a=this._tooltipModel,o=this._tooltipContent,s=t[p](),l=n["x"===s.dim||s.dim===Ae?0:1],c=y.map(e,function(t){return{seriesIndex:t[we],dataIndex:t[be]().indexOfNearest(t.getDimensionsOnAxis(s.dim),l)}}),h=this._api,u=this._lastHover;if(u.payloadBatch&&!r&&this._api[De]({type:"downplay",batch:y.clone(u.payloadBatch)}),r||(this._api[De]({type:"highlight",batch:y.clone(c)}),u.payloadBatch=c),s&&a.get("showContent")){var d,v=a.get("formatter"),m=a.get(He),g=y.map(e,function(t,e){return t[ve](c[e][Gt])});o.show(a);var x=c[0][Gt];if(!r){if(this._ticket="",v){if(typeof v===Ri)d=_.formatTpl(v,g);else if(typeof v===Pi){var b=this,w="axis_"+t.name+"_"+x,M=function(t,e){t===b._ticket&&(o.setContent(e),f(m,i[0],i[1],o,g,null,h))};b._ticket=w,d=v(g,w,M)}}else d=e[0][be]()[ge](x)+"<br />"+y.map(e,function(t,e){return t.formatTooltip(c[e][Gt],!0)}).join("<br />");o.setContent(d)}f(m,i[0],i[1],o,g,null,h)}},_showItemTooltipContent:function(t,e,i){var n=this._api,r=t[be](),a=r[me](e),o=this._tooltipModel,s=this._tooltipContent,l=a[ni]("tooltip");if(l.parentModel?l.parentModel.parentModel=o:l.parentModel=this._tooltipModel,l.get("showContent")){var c,h=l.get("formatter"),u=l.get(He),d=t[ve](e);if(h){if(typeof h===Ri)c=_.formatTpl(h,d);else if(typeof h===Pi){var p=this,v="item_"+t.name+"_"+e,m=function(t,e){t===p._ticket&&(s.setContent(e),f(u,i[ut],i[ht],s,d,i[oe],n))};p._ticket=v,c=h(d,v,m)}}else c=t.formatTooltip(e);s.show(l),s.setContent(c),f(u,i[ut],i[ht],s,d,i[oe],n)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&y.each(e,function(t){t.show()})}else this.group[We](function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api[De]({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&y.each(e,function(t){t.hide()})}else this.group.hide()},_hide:function(){this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay"))},dispose:function(t,e){var i=e.getZr();i.off("click",this._tryShow),i.off(dt,this._tryShow),i.off(gt,this._hide),e.off("showTip")}})}),e("echarts/component/tooltip",[qi,"./tooltip/TooltipModel","./tooltip/TooltipView",s,s],function(t){t("./tooltip/TooltipModel"),t("./tooltip/TooltipView"),t(s)[F]({type:"showTip",event:"showTip",update:"none"},function(){}),t(s)[F]({type:"hideTip",event:"hideTip",update:"none"},function(){})}),e("echarts/component/legend/LegendModel",[qi,Hi,"../../model/Model",n],function(t){var e=t(Hi),i=t("../../model/Model");return t(n)[E]({type:"legend",dependencies:[Be],layoutMode:{type:"box",ignoreSize:!0},init:function(t,n,r){this[Ne](t,r),t.selected=t.selected||{};var a=e.map(t.data||[],function(t){return typeof t===Ri&&(t={name:t}),new i(t,this,this[ri])},this);this._data=a,this._updateAvailableNames(r);var o=this[Ke].selected;if(a[0]&&"single"===this.get("selectedMode")){var s=!1;for(var l in o)o[l]&&(this.select(l),s=!0);!s&&this.select(a[0].get("name"))}},mergeOption:function(t){this.$superCall(Ze,t),this._updateAvailableNames(this[ri])},_updateAvailableNames:function(t){var i=e.map(t.getSeries(),function(t){return t.name});t[U](function(t){if(t.legendDataProvider){var e=t.legendDataProvider();i=i[Ii](e[O](e[ge]))}}),this._availableNames=i},getData:function(){return this._data},select:function(t){var i=this[Ke].selected,n=this.get("selectedMode");if("single"===n){var r=this._data;e.each(r,function(t){i[t.get("name")]=!1})}i[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this[Ke].selected[t]=!1)},toggleSelected:function(t){var e=this[Ke].selected;t in e||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var i=this[Ke].selected;return!(t in i&&!i[t])&&e[Bi](this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0}})}),e("echarts/component/legend/legendAction",[qi,n,Hi],function(t){function e(t,e,i){var n,a={},o="toggleSelected"===t;return i[W]("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name));var s=i[be]();r.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);e in a?a[e]=a[e]&&n:a[e]=n}})}),{name:e.name,selected:a}}var i=t(n),r=t(Hi);i[F]("legendToggleSelect","legendselectchanged",r.curry(e,"toggleSelected")),i[F]("legendSelect","legendselected",r.curry(e,"select")),i[F]("legendUnSelect","legendunselected",r.curry(e,"unSelect"))}),e("echarts/component/helper/listComponent",[qi,"../../util/layout","../../util/format",S],function(t){function e(t,e,r){n.positionGroup(t,e.getBoxLayoutParams(),{width:r[ze](),height:r[Le]()},e.get(i))}var n=t("../../util/layout"),r=t("../../util/format"),a=t(S);return{layout:function(t,i,r){n.box(i.get("orient"),t,i.get("itemGap"),r[ze](),r[Le]()),e(t,i,r)},addBackground:function(t,e){var n=r.normalizeCssArray(e.get(i)),o=t[ei](),s=e[g](["color",bi]);s.fill=e.get(tt);var l=new a.Rect({shape:{x:o.x-n[3],y:o.y-n[0],width:o.width+n[1]+n[3],height:o[vi]+n[0]+n[2]},style:s,silent:!0});a[wt](l),t.add(l)}}}),e("echarts/component/legend/LegendView",[qi,Hi,k,S,"../helper/listComponent",n],function(t){function e(t,e){e[De]({type:"legendToggleSelect",name:t})}function i(t,e,i){t.get("legendHoverLink")&&i[De]({type:"highlight",seriesName:t.name,name:e})}function r(t,e,i){t.get("legendHoverLink")&&i[De]({type:"downplay",seriesName:t.name,name:e})}var a=t(Hi),o=t(k),s=t(S),l=t("../helper/listComponent"),c=a.curry,h="#ccc";return t(n)[Z]({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,n,o){var u=t.get("selectedMode"),d=t.get("itemWidth"),f=t.get("itemHeight"),p=t.get("align"),v=this.group;v[qt](),"auto"===p&&(p="right"===t.get("left")&&t.get("orient")===Fe?"right":"left");var m={},g={};a.each(t[be](),function(a){var l=a.get("name");(""===l||"\n"===l)&&v.add(new s.Group({newline:!0}));var y=n.getSeriesByName(l)[0];if(m[l]=a,y&&!g[l]){var x=y[be](),b=x[I]("color");t.isSelected(l)||(b=h),typeof b===Pi&&(b=b(y[ve](0)));var w=x[I]("legendSymbol")||"roundRect",M=x[I](_),S=this._createItem(l,a,t,w,M,d,f,p,b,u);S.on("click",c(e,l,o)).on(yt,c(i,y,"",o)).on(gt,c(r,y,"",o)),g[l]=!0}},this),n.eachRawSeries(function(n){if(n.legendDataProvider){var a=n.legendDataProvider();a.each(function(s){var l=a[ge](s);if(m[l]&&!g[l]){var v=a[L](s,"color");t.isSelected(l)||(v=h);var y="roundRect",_=this._createItem(l,m[l],t,y,null,d,f,p,v,u);_.on("click",c(e,l,o)).on(yt,c(i,n,l,o)).on(gt,c(r,n,l,o)),g[l]=!0}},!1,this)}},this),l.layout(v,t,o),l.addBackground(v,t)},_createItem:function(t,e,i,n,r,a,l,c,h,u){var d=new s.Group,f=e[ni](ii),p=e.get("icon");if(n=p||n,d.add(o[b](n,0,0,a,l,h)),!p&&r&&r!==n&&"none"!=r){var v=.8*l;d.add(o[b](r,(a-v)/2,(l-v)/2,v,v,h))}var m="left"===c?a+5:-5,g=c,y=i.get("formatter");typeof y===Ri&&y?t=y[Qe]("{name}",t):typeof y===Pi&&(t=y(t));var _=new s.Text({style:{text:t,x:m,y:l/2,fill:f[mt](),textFont:f[ti](),textAlign:g,textBaseline:"middle"}});return d.add(_),d.add(new s.Rect({shape:d[ei](),invisible:!0})),d[We](function(t){t.silent=!u}),this.group.add(d),d}})}),e("echarts/component/legend/legendFilter",[],function(){return function(t){var e=t[Oe]({mainType:"legend"});e&&e[Vi]&&t.filterSeries(function(t){for(var i=0;i<e[Vi];i++)if(!e[i].isSelected(t.name))return!1;return!0})}}),e("echarts/component/legend",[qi,"./legend/LegendModel","./legend/legendAction","./legend/LegendView",s,"./legend/legendFilter"],function(t){t("./legend/LegendModel"),t("./legend/legendAction"),t("./legend/LegendView");var e=t(s);e[G](Gi,t("./legend/legendFilter"))}),e("echarts/component/axis/AxisBuilder",[qi,Hi,S,"../../model/Model",M],function(t){function e(t,e,i){var n,r,a=h(e-t[de]);return u(a)?(r=i>0?"top":hi,n=li):u(a-f)?(r=i>0?hi:"top",n=li):(r=ci,n=a>0&&f>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textBaseline:r}}function i(t,e,i){var n,r,a=h(-t[de]),o=i[0]>i[1],s="start"===e&&!o||"start"!==e&&o;return u(a-f/2)?(r=s?hi:"top",n=li):u(a-1.5*f)?(r=s?"top":hi,n=li):(r=ci,n=1.5*f>a&&a>f/2?s?"left":"right":s?"right":"left"),{rotation:a,textAlign:n,textBaseline:r}}var n=t(Hi),r=t(S),s=t("../../model/Model"),c=t(M),h=c.remRadian,u=c.isRadianAroundZero,f=Math.PI,p=function(t,e){this.opt=e,this.axisModel=t,n[oi](e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new r.Group({position:e[He].slice(),rotation:e[de]})};p[Wi]={constructor:p,hasBuilder:function(t){return!!v[t]},add:function(t){v[t].call(this)},getGroup:function(){return this.group}};var v={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis[d]();this.group.add(new r.Line({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:n[Di]({lineCap:"round"},e[ni]("axisLine.lineStyle")[l]()),strokeContainThreshold:t.strokeContainThreshold,silent:!!t.silent,z2:1}))}},axisTick:function(){var t=this.axisModel;if(t.get("axisTick.show")){for(var e=t.axis,i=t[ni]("axisTick"),n=this.opt,a=i[ni]("lineStyle"),o=i.get(Vi),s=g(i,n.labelInterval),c=e.getTicksCoords(),h=[],u=0;u<c[Vi];u++)if(!m(e,u,s)){var d=c[u];h.push(new r.Line(r.subPixelOptimizeLine({shape:{x1:d,y1:0,x2:d,y2:n.tickDirection*o},style:{lineWidth:a.get("width")},silent:!0})))}this.group.add(r.mergePath(h,{style:a[l](),silent:!0}))}},axisLabel:function(){function t(t,e){var i=t&&t[ei]().clone(),n=e&&e[ei]().clone();return i&&n?(i[mi](t[ce]()),n[mi](e[ce]()),i[nt](n)):void 0}var i=this.axisModel;if(i.get("axisLabel.show")){var n=this.opt,o=i.axis,l=i[ni]("axisLabel"),c=l[ni](ii),h=l.get("margin"),u=o.scale.getTicks(),d=i.getFormattedLabels(),p=n.labelRotation;null==p&&(p=l.get(le)||0),p=p*f/180;for(var v=e(n,p,n.labelDirection),g=i.get("data"),y=[],_=0;_<u[Vi];_++)if(!m(o,_,n.labelInterval)){var x=c;g&&g[_]&&g[_][ii]&&(x=new s(g[_][ii],c,i[ri]));var b=o[a](u[_]),w=[b,n.labelOffset+n.labelDirection*h],M=new r.Text({style:{text:d[_],textAlign:x.get("align",!0)||v[Zt],textBaseline:x.get("baseline",!0)||v[Bt],textFont:x[ti](),fill:x[mt]()},position:w,rotation:v[de],silent:!0,z2:10});y.push(M),this.group.add(M)}if(o.type!==A){if(i.get("min")){var S=y[0],k=y[1];t(S,k)&&(S[te]=!0)}if(i.get("max")){var C=y[y[Vi]-1],T=y[y[Vi]-2];t(T,C)&&(C[te]=!0)}}}},axisName:function(){var t=this.opt,n=this.axisModel,a=this.opt.axisName;if(null==a&&(a=n.get("name")),a){var o,s=n.get("nameLocation"),l=t.nameDirection,c=n[ni]("nameTextStyle"),h=n.get("nameGap")||0,u=this.axisModel.axis[d](),f=u[0]>u[1]?-1:1,p=["start"===s?u[0]-f*h:"end"===s?u[1]+f*h:(u[0]+u[1])/2,s===ci?t.labelOffset+l*h:0];o=s===ci?e(t,t[de],l):i(t,s,u),this.group.add(new r.Text({style:{text:a,textFont:c[ti](),fill:c[mt]()||n.get("axisLine.lineStyle.color"),textAlign:o[Zt],textBaseline:o[Bt]},position:p,rotation:o[de],silent:!0,z2:1}))}}},m=p.ifIgnoreOnTick=function(t,e,i){return t.scale.type===xe&&typeof i===Pi&&!i(e,t.scale[o](e))||e%(i+1)},g=p.getInterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return p}),e("echarts/component/axis/AxisView",[qi,Hi,S,"./AxisBuilder",n],function(t){function e(t,e){function i(t,e){var i=n[h](t);return i.toGlobalCoord(i[a](0))}var n=t[C],o=e.axis,s={},l=o[He],c=o.onZero?"onZero":l,u=o.dim,d=n[r](),f=[d.x,d.x+d.width,d.y,d.y+d[vi]],p={x:{top:f[2],bottom:f[3]},y:{left:f[0],right:f[1]}};p.x.onZero=Math.max(Math.min(i("y"),p.x[hi]),p.x.top),p.y.onZero=Math.max(Math.min(i("x"),p.y.right),p.y.left),s[He]=["y"===u?p.y[c]:f[0],"x"===u?p.x[c]:f[3]];var v={x:0,y:1};s[de]=Math.PI/2*v[u];var m={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=m[l],o.onZero&&(s.labelOffset=p[u][l]-p[u].onZero),e[ni]("axisTick").get(si)&&(s.tickDirection=-s.tickDirection),e[ni]("axisLabel").get(si)&&(s.labelDirection=-s.labelDirection);var g=e[ni]("axisLabel").get(le);return s.labelRotation="top"===c?-g:g,s.labelInterval=o.getLabelInterval(),s.z2=1,s}var i=t(Hi),o=t(S),s=t("./AxisBuilder"),l=s.ifIgnoreOnTick,u=s.getInterval,d=["axisLine","axisLabel","axisTick","axisName"],f=["splitLine","splitArea"],p=t(n)[Z]({type:"axis",render:function(t,n){if(this.group[qt](),t.get("show")){var r=n[Ce]("grid",t.get("gridIndex")),a=e(r,t),o=new s(t,a);i.each(d,o.add,o),this.group.add(o.getGroup()),i.each(f,function(e){t.get(e+".show")&&this["_"+e](t,r,a.labelInterval)},this)}},_splitLine:function(t,e,i){var n=t.axis,a=t[ni]("splitLine"),s=a[ni]("lineStyle"),h=s.get("width"),d=s.get("color"),f=u(a,i);d=d instanceof Array?d:[d];for(var p=e[C][r](),v=n[c](),m=[],g=0,y=n.getTicksCoords(),_=[],x=[],b=0;b<y[Vi];b++)if(!l(n,b,f)){var w=n.toGlobalCoord(y[b]);v?(_[0]=w,_[1]=p.y,x[0]=w,x[1]=p.y+p[vi]):(_[0]=p.x,_[1]=w,x[0]=p.x+p.width,x[1]=w);var M=g++%d[Vi];m[M]=m[M]||[],m[M].push(new o.Line(o.subPixelOptimizeLine({shape:{x1:_[0],y1:_[1],x2:x[0],y2:x[1]},style:{lineWidth:h},silent:!0})))}for(var b=0;b<m[Vi];b++)this.group.add(o.mergePath(m[b],{style:{stroke:d[b%d[Vi]],lineDash:s.getLineDash(),lineWidth:h},silent:!0}))},_splitArea:function(t,e,i){var n=t.axis,a=t[ni]("splitArea"),s=a.get("areaStyle.color"),h=e[C][r](),d=n.getTicksCoords(),f=d[0],p=d[0],v=[],m=0,g=u(a,i);s=s instanceof Array?s:[s];for(var y=1;y<d[Vi];y++)if(!l(n,y,g)){var _,x,b,w,M=n.toGlobalCoord(d[y]);n[c]()?(_=f,x=h.y,b=M-_,w=h[vi]):(_=h.x,x=p,b=h.width,w=M-x);var S=m++%s[Vi];v[S]=v[S]||[],v[S].push(new o.Rect({shape:{x:_,y:x,width:b,height:w},silent:!0})),f=_+b,p=x+w}for(var y=0;y<v[Vi];y++)this.group.add(o.mergePath(v[y],{style:{fill:s[y%s[Vi]]},silent:!0}))}});p[Di]({type:"xAxis"}),p[Di]({type:"yAxis"})}),e("echarts/component/axis",[qi,"../coord/cartesian/AxisModel","./axis/AxisView"],function(t){t("../coord/cartesian/AxisModel"),t("./axis/AxisView")}),e("echarts/component/grid",[qi,"../util/graphic",Hi,"../coord/cartesian/Grid","./axis",s],function(t){var e=t("../util/graphic"),i=t(Hi);t("../coord/cartesian/Grid"),t("./axis"),t(s)[Z]({type:"grid",render:function(t,n){this.group[qt](),t.get("show")&&this.group.add(new e.Rect({shape:t[C][r](),style:i[oi]({fill:t.get(tt)},t[g]()),silent:!0}))}})}),e("echarts/component/title",[qi,s,"../util/graphic","../util/layout"],function(t){var e=t(s),n=t("../util/graphic"),r=t("../util/layout");e[E]({type:"title",defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"left",top:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),e[Z]({type:"title",render:function(t,e,a){if(this.group[qt](),t.get("show")){var o=this.group,s=t[ni](ii),l=t[ni]("subtextStyle"),c=t.get(Zt),h=new n.Text({style:{text:t.get("text"),textFont:s[ti](),fill:s[mt](),textBaseline:"top"},z2:10}),u=h[ei](),d=t.get("subtext"),f=new n.Text({style:{text:d,textFont:l[ti](),fill:l[mt](),y:u[vi]+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),v=t.get("sublink");h.silent=!p,f.silent=!v,p&&h.on("click",function(){window.open(p,t.get(oe))}),v&&f.on("click",function(){window.open(v,t.get("subtarget"))}),o.add(h),d&&o.add(f);var m=o[ei](),y=t.getBoxLayoutParams();y.width=m.width,y[vi]=m[vi];var _=r[Ve](y,{width:a[ze](),height:a[Le]()},t.get(i));if(!c){var x=_.x/a[ze](),b=(_.x+_.width)/a[ze]();.2>x?c="left":b>.8?(_.x+=_.width,c="right"):(_.x+=_.width/2,c=li)}o[He]=[_.x,_.y],h[bt](Zt,c),f[bt](Zt,c),m=o[ei]();var w=_.margin,M=t[g](["color",bi]);M.fill=t.get(tt);var S=new n.Rect({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m[vi]+w[0]+w[2]},style:M,silent:!0});n[wt](S),o.add(S)}}})}),e("echarts/component/marker/MarkPointModel",[qi,"../../model/globalDefault",T,n],function(t){var e=t("../../model/globalDefault"),i=t(T);e.markPoint={};var r=t(n)[E]({type:"markPoint",dependencies:[Be,"grid","polar"],init:function(t,e,i,n,r){this[Ne](t,i),this[Ze](t,r,!0)},mergeOption:function(t,e,n){if(!e){var a=this[ri];a[U](function(t){var e=t.get("markPoint"),o=t.markPointModel;if(!e||!e.data)return void(t.markPointModel=null);if(o)o[Ze](e,!0);else{n&&i.defaultEmphasis(e.label,[He,"show",ii,yi,"formatter"]);var s={seriesIndex:t[we],name:t.name};o=new r(e,this,a,s,!0)}t.markPointModel=o},this)}},defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2},emphasis:{}}}});return r}),e("echarts/component/marker/markerHelper",[qi,Hi,M],function(t){function e(t,e,i){var n=-1;do n=Math.max(r.getPrecision(t.get(e,i)),n),t=t.stackedOn;while(t);return n}function i(t,i,n,r,a){var o=i[R](r),s=[],l=o[0],c=o[1],h=(c-l)*t+l,u=i.indexOfNearest(r,h);s[1-a]=i.get(n,u),s[a]=i.get(r,u,!0);var d=e(i,r,u);return d>=0&&(s[a]=+s[a][Xe](d)),s}var n=t(Hi),r=t(M),a=n.curry,o={min:a(i,0),max:a(i,1),average:a(i,.5)},s=function(t,e,i){if((isNaN(i.x)||isNaN(i.y))&&!n[ki](i.coord)&&e){var r,a,s,l;null!=i.valueIndex?(r=e[B][i.valueIndex],a=e[B][1-i.valueIndex],s=e[h](r),l=e[h](a)):(l=e[p](),s=e[f](l),a=l.dim,r=s.dim);var c=null!=i.valueIndex?i.valueIndex:"angle"===r||"x"===r?0:1;i=n[Di]({},i),i.type&&o[i.type]&&l&&s?i.coord=o[i.type](t,l.dim,r,c):i.coord=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis]}return i},l=function(t,e){return t&&e.coord&&(null==e.x||null==e.y)?t.containData(e.coord):!0},c=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:void t.value};return{dataTransform:s,dataFilter:l,dimValueGetter:c}}),e("echarts/component/marker/MarkPointView",[qi,"../../chart/helper/SymbolDraw",Hi,"../../util/format",T,M,"../../data/List","./markerHelper",n],function(t){function e(t,e,i){var n=e[B],a=new h(r.map(n,e.getDimensionInfo,e),i);return t&&a.initData(r[Gi](r.map(i.get("data"),r.curry(d.dataTransform,e,t)),r.curry(d.dataFilter,t)),null,d.dimValueGetter),a}var i=t("../../chart/helper/SymbolDraw"),r=t(Hi),a=t("../../util/format"),o=t(T),s=t(M),l=a[pe],c=a.encodeHTML,h=t("../../data/List"),d=t("./markerHelper"),f={getRawDataArray:function(){return this[Ke].data},formatTooltip:function(t){var e=this[be](),i=this[_e](t),n=r[ki](i)?r.map(i,l).join(", "):l(i),a=e[ge](t);return this.name+"<br />"+((a?c(a)+" : ":"")+n)},getData:function(){return this._data},setData:function(t){this._data=t}};r[oi](f,o.dataFormatMixin),t(n)[Z]({type:"markPoint",init:function(){this._symbolDrawMap={}},render:function(t,e,i){var n=this._symbolDrawMap;for(var r in n)n[r].__keep=!1;e[U](function(t){var e=t.markPointModel;e&&this._renderSeriesMP(t,e,i)},this);for(var r in n)n[r].__keep||(n[r][Qt](),this.group[Qt](n[r].group))},_renderSeriesMP:function(t,n,a){var o=t[C],l=t.name,c=t[be](),h=this._symbolDrawMap,d=h[l];d||(d=h[l]=new i);var p=e(o,c,n),v=o&&o[B];r.mixin(n,f),n.setData(p),p.each(function(t){var e,i=p[me](t),r=i[Si]("x"),l=i[Si]("y");if(null!=r&&null!=l)e=[s[$e](r,a[ze]()),s[$e](l,a[Le]())];else if(o){var h=p.get(v[0],t),d=p.get(v[1],t);e=o[u]([h,d])}p[z](t,e);var f=i[Si](x);typeof f===Pi&&(f=f(n[_e](t),n[ve](t))),p[$](t,{symbolSize:f,color:i.get("itemStyle.normal.color")||c[I]("color"),symbol:i[Si](_)})}),d[w](p),this.group.add(d.group),p[Nt](function(t){t[Xt](function(t){t[H]=n})}),d.__keep=!0}})}),e("echarts/component/markPoint",[qi,"./marker/MarkPointModel","./marker/MarkPointView"],function(t){t("./marker/MarkPointModel"),t("./marker/MarkPointView")}),e("echarts/component/marker/MarkLineModel",[qi,"../../model/globalDefault",T,n],function(t){var e=t("../../model/globalDefault"),i=t(T);e.markLine={};var r=t(n)[E]({type:"markLine",dependencies:[Be,"grid","polar"],init:function(t,e,i,n,r){this[Ne](t,i),this[Ze](t,r,!0)},mergeOption:function(t,e,n){if(!e){var a=this[ri];a[U](function(t){var e=t.get("markLine"),o=t.markLineModel;if(!e||!e.data)return void(t.markLineModel=null);if(o)o[Ze](e,!0);else{n&&i.defaultEmphasis(e.label,[He,"show",ii,yi,"formatter"]);var s={seriesIndex:t[we],name:t.name};o=new r(e,this,a,s,!0)}t.markLineModel=o},this)}},defaultOption:{zlevel:0,z:5,symbol:[y,"arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});return r}),e("echarts/chart/helper/LinePath",[qi,S],function(t){var e=t(S),i=e.Line[Wi],n=e.BezierCurve[Wi];
  return e[Mt]({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(null==e.cpx1||null==e.cpy1?i:n)[Dt](t,e)},pointAt:function(t){var e=this.shape;return null==e.cpx1||null==e.cpy1?i.pointAt.call(this,t):n.pointAt.call(this,t)}})}),e("echarts/chart/helper/Line",[qi,k,xi,"./LinePath",S,Hi,M],function(t){function e(t,e,i){var n=e[L](i,"color"),r=e[L](i,_),a=e[L](i,x);if("none"!==r){f[ki](a)||(a=[a,a]);var o=c[b](r,-a[0]/2,-a[1]/2,a[0],a[1],n);return o.name=t,o}}function i(t){var e=new u({name:"line",style:{strokeNoScale:!0}});return n(e.shape,t),e}function n(t,e){var i=e[0],n=e[1],r=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,r&&(t.cpx1=r[0],t.cpy1=r[1])}function r(t){return t.type===_&&"arrow"===t.shape.symbolType}function a(){var t=this,e=t.childOfName("line");if(this[Kt]||e[Kt]){var i=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),a=t.childOfName("label"),s=e.pointAt(0),l=e.pointAt(e.shape.percent),c=h.sub([],l,s);h.normalize(c,c),i&&(i.attr(He,s),r(n)&&n.attr(de,o(s,l))),n&&(n.attr(He,l),r(i)&&i.attr(de,o(l,s))),a.attr(He,l);var u,d,f;"end"===a.__position?(u=[5*c[0]+l[0],5*c[1]+l[1]],d=c[0]>.8?"left":c[0]<-.8?"right":li,f=c[1]>.8?"top":c[1]<-.8?hi:ci):(u=[5*-c[0]+s[0],5*-c[1]+s[1]],d=c[0]>.8?"right":c[0]<-.8?"left":li,f=c[1]>.8?hi:c[1]<-.8?"top":ci),a.attr({style:{textBaseline:a.__textBaseline||f,textAlign:a.__textAlign||d},position:u})}}function o(t,e){return-Math.PI/2-Math.atan2(e[1]-t[1],e[0]-t[0])}function s(t,e,i,n){d.Group.call(this),this._createLine(t,e,i,n)}var c=t(k),h=t(xi),u=t("./LinePath"),d=t(S),f=t(Hi),p=t(M),v=s[Wi];return v.beforeUpdate=a,v._createLine=function(t,n,r,a){var o=t[H],s=t[P](a),l=i(s);l.shape.percent=0,d[pt](l,{shape:{percent:1}},o),this.add(l);var c=new d.Text({name:"label"});if(this.add(c),n){var h=e("fromSymbol",n,a);this.add(h),this._fromSymbolType=n[L](a,_)}if(r){var u=e("toSymbol",r,a);this.add(u),this._toSymbolType=r[L](a,_)}this._updateCommonStl(t,n,r,a)},v[w]=function(t,i,r,a){var o=t[H],s=this.childOfName("line"),l=t[P](a),c={shape:{}};if(n(c.shape,l),d[vt](s,c,o),i){var h=i[L](a,_);if(this._fromSymbolType!==h){var u=e("fromSymbol",i,a);this[Qt](s.childOfName("fromSymbol")),this.add(u)}this._fromSymbolType=h}if(r){var f=r[L](a,_);if(f!==this._toSymbolType){var p=e("toSymbol",r,a);this[Qt](s.childOfName("toSymbol")),this.add(p)}this._toSymbolType=f}this._updateCommonStl(t,i,r,a)},v._updateCommonStl=function(t,e,i,n){var r=t[H],a=this.childOfName("line"),o=t[me](n),s=o[ni]("label.normal"),c=s[ni](ii),h=o[ni]("label.emphasis"),u=h[ni](ii),v=p.round(r[_e](n));isNaN(v)&&(v=t[ge](n)),a[bt](f[Di]({stroke:t[L](n,"color")},o[ni]("lineStyle.normal")[l]()));var g=this.childOfName("label");g[bt]({text:s.get("show")?r[m](n,Me)||v:"",textFont:c[ti](),fill:c[mt]()||t[L](n,"color")}),g[xt]={text:h.get("show")?r[m](n,Se)||v:"",textFont:c[ti](),fill:u[mt]()},g.__textAlign=c.get("align"),g.__textBaseline=c.get("baseline"),g.__position=s.get(He),d[_t](this,o[ni]("lineStyle.emphasis")[l]())},v[jt]=function(t,e,i,r){var a=t[P](r),o=this.childOfName("line");n(o.shape,a),o.dirty(!0),e&&e[Ft](r).attr(He,a[0]),i&&i[Ft](r).attr(He,a[1])},f[Ti](s,d.Group),s}),e("echarts/chart/helper/LineDraw",[qi,S,"./Line"],function(t){function e(t){this._ctor=t||n,this.group=new i.Group}var i=t(S),n=t("./Line"),r=e[Wi];return r[w]=function(t,e,i){var n=this._lineData,r=this.group,a=this._ctor;t.diff(n).add(function(n){var o=new a(t,e,i,n);t[D](n,o),r.add(o)})[at](function(a,o){var s=n[Ft](o);s[w](t,e,i,a),t[D](a,s),r.add(s)})[Qt](function(t){r[Qt](n[Ft](t))})[v](),this._lineData=t,this._fromData=e,this._toData=i},r[jt]=function(){var t=this._lineData;t[Nt](function(e,i){e[jt](t,this._fromData,this._toData,i)},this)},r[Qt]=function(){this.group[qt]()},e}),e("echarts/component/marker/MarkLineView",[qi,Hi,"../../data/List","../../util/format",T,M,"./markerHelper","../../chart/helper/LineDraw",n],function(t){function e(t,e){return g.dataFilter(t,e[0])&&g.dataFilter(t,e[1])}function i(t,i,n){var a=t[B],s=new o(a,n),l=new o(a,n),c=new o([],n);if(t){var h=t[p](),u=t[f](h),d=r[Gi](r.map(n.get("data"),r.curry(b,i,t,h,u)),r.curry(e,t));s.initData(r.map(d,function(t){return t[0]}),null,g.dimValueGetter),l.initData(r.map(d,function(t){return t[1]}),null,g.dimValueGetter),c.initData(r.map(d,function(t){return t[2]}))}return{from:s,to:l,line:c}}var r=t(Hi),o=t("../../data/List"),s=t("../../util/format"),l=t(T),c=t(M),v=s[pe],m=s.encodeHTML,g=t("./markerHelper"),y=t("../../chart/helper/LineDraw"),b=function(t,e,i,n,o){var s=o.type;if(!r[ki](o)&&"min"===s||"max"===s||"average"===s){null!=o.valueIndex&&(i=e[h](e[B][1-o.valueIndex]),n=e[h](e[B][o.valueIndex]));var l=i.dim+"Axis",c=n.dim+"Axis",u=i.scale[d](),f=r[Di]({},o),p={},v=t[R](n.dim,!0);f.type=null,f[l]=u[0],p[l]=u[1];var m="average"===s?.5:"max"===s?1:0,y=(v[1]-v[0])*m+v[0];y=n.coordToData(n[a](y)),f[c]=p[c]=y,o=[f,p,{type:s}]}return o=[g.dataTransform(t,e,o[0]),g.dataTransform(t,e,o[1]),{}],r.merge(o[2],o[0]),r.merge(o[2],o[1]),o},S={formatTooltip:function(t){var e=this._data,i=this[_e](t),n=r[ki](i)?r.map(i,v).join(", "):v(i),a=e[ge](t);return this.name+"<br />"+((a?m(a)+" : ":"")+n)},getRawDataArray:function(){return this[Ke].data},getData:function(){return this._data},setData:function(t){this._data=t}};r[oi](S,l.dataFormatMixin),t(n)[Z]({type:"markLine",init:function(){this._markLineMap={}},render:function(t,e,i){var n=this._markLineMap;for(var r in n)n[r].__keep=!1;e[U](function(t){var n=t.markLineModel;n&&this._renderSeriesML(t,n,e,i)},this);for(var r in n)n[r].__keep||this.group[Qt](n[r].group)},_renderSeriesML:function(t,e,n,a){function o(t,e,i){var n,r=t[me](e),o=r.get("x"),l=r.get("y");if(null!=o&&null!=l)n=[c[$e](o,a[ze]()),c[$e](l,a[Le]())];else{var d=t.get(v[0],e),f=t.get(v[1],e);n=s[u]([d,f])}t[z](e,n),t[$](e,{symbolSize:r.get(x)||k[i?0:1],symbol:r.get(_,!0)||M[i?0:1],color:r.get("itemStyle.normal.color")||h[I]("color")})}var s=t[C],l=t.name,h=t[be](),d=this._markLineMap,f=d[l];f||(f=d[l]=new y),this.group.add(f.group);var p=i(s,h,e),v=s[B],m=p.from,g=p.to,b=p.line;r[Di](e,S),e.setData(b);var M=e.get(_),k=e.get(x);r[ki](M)||(M=[M,M]),typeof k===Oi&&(k=[k,k]),p.from.each(function(t){o(m,t,!0),o(g,t)}),b.each(function(t){var e=b[me](t).get("lineStyle.normal.color");b[$](t,{color:e||m[L](t,"color")}),b[z](t,[m[P](t),g[P](t)])}),f[w](b,m,g),p.line[Nt](function(t,i){t[Xt](function(t){t[H]=e})}),f.__keep=!0}})}),e("echarts/component/markLine",[qi,"./marker/MarkLineModel","./marker/MarkLineView"],function(t){t("./marker/MarkLineModel"),t("./marker/MarkLineView")}),e("echarts/component/dataZoom/typeDefaulter",[qi,"../../model/Component"],function(t){t("../../model/Component").registerSubTypeDefaulter(q,function(t){return"slider"})}),e("echarts/component/dataZoom/AxisProxy",[qi,Hi,M],function(t){function e(t,e){var i=[Number.MAX_VALUE,Number.MIN_VALUE];return o(e,function(e){var n=e[be]();n&&o(e.getDimensionsOnAxis(t),function(t){var e=n[R](t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])})},this),i}function i(t,e,i){var r=[0,100],l=t[Ke],c=[l.start,l.end],h=[l.startValue,l.endValue],u=["floor","ceil"];return o([0,1],function(t){var o,s=h[t],l=!0;n(s)&&(o=c[t],n(o)&&(o=r[t]),s=a[Ye](o,r,e,!0),l=!1),i&&(s=Math[u[t]](s)),l&&(o=a[Ye](s,e,r,!0)),h[t]=s,c[t]=o}),{valueWindow:s(h),percentWindow:s(c)}}function n(t){return isNaN(t)||null==t}var r=t(Hi),a=t(M),o=r.each,s=a.asc,l=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._backup,this._valueWindow,this._percentWindow,this._dataExtent,this[ri]=n,this._model=i};return l[Wi]={constructor:l,hostedBy:function(t){return this._model===t},backup:function(t,e){t===this._model&&(this._backup=e)},getBackup:function(){return r.clone(this._backup)},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[];return this[ri][U](function(e){this._axisIndex===e.get(this._dimName+"AxisIndex")&&t.push(e)},this),t},getAxisModel:function(){return this[ri][Ce](this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this[ri],r=this.getAxisModel(),a="x"===i||"y"===i;a?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?Ae:"angle");var o;return n[W](t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},reset:function(t){if(t===this._model){var n=this._dimName,r=this.getAxisModel(),a=r.get("type")===A,o=this.getTargetSeriesModels(),s=e(n,o),l=i(t,s,a);this._dataExtent=s.slice(),this._valueWindow=l.valueWindow.slice(),this._percentWindow=l.percentWindow.slice()}},filterData:function(t){function e(t){return t>=a[0]&&t<=a[1]}if(t===this._model){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow,s=this.getOtherAxisModel();t.get("$fromToolbox")&&s&&s.get("type")===A&&(r="empty"),o(n,function(t){var n=t[be]();n&&o(t.getDimensionsOnAxis(i),function(i){"empty"===r?t.setData(n.map(i,function(t){return e(t)?t:NaN})):n.filterSelf(i,e)})})}}},l}),e("echarts/component/dataZoom/DataZoomModel",[qi,Hi,"zrender/core/env",n,T,"./AxisProxy"],function(t){var e=t(Hi),i=t("zrender/core/env"),r=t(n),a=t(T),o=t("./AxisProxy"),s=e.each,l=a.eachAxisDim;return r[E]({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis",Be],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:100,start:0,end:100,startValue:null,endValue:null},init:function(t,e,i){this._autoMode,this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this[Ne](t,i),this[Ze]({},!0)},mergeOption:function(t,n){var r=this[Ke];t&&e.merge(r,t),i[K]||(r.realtime=!1),this.textStyleModel=this[ni](ii),this._resetTarget(t,n),this._giveAxisProxies(),this._backup()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var a=this.dependentModels[e.axis][i],s=a.__dzAxisProxy||(a.__dzAxisProxy=new o(e.name,i,this,r));t[e.name+"_"+i]=s},this)},_resetTarget:function(t,e){this._resetAutoMode(t,e);var i=this[Ke];l(function(t){var e=t[ke];i[e]=n===ke?[]:a.normalizeToArray(i[e])},this);var n=this._autoMode;n===ke?this._autoSetAxisIndex():"orient"===n&&this._autoSetOrient()},_resetAutoMode:function(t,e){var i=e?this[Ke]:t,n=!1;l(function(t){null!=i[t[ke]]&&(n=!0)},this);var r=i.orient;null==r&&n?this._autoMode="orient":(null==r&&(this[Ke].orient="horizontal"),n||(this._autoMode=ke))},_autoSetAxisIndex:function(){var t=this._autoMode===ke,i=this.get("orient"),n=this[Ke];if(t){var r=i===Fe?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[r.axis][Vi]&&(n[r[ke]]=[0],t=!1)}t&&l(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r[Vi]&&!i[Vi])for(var a=0,o=r[Vi];o>a;a++)r[a].get("type")===A&&i.push(a);n[e[ke]]=i,i[Vi]&&(t=!1)}},this),t&&this[ri][U](function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&l(function(i){var r=n[i[ke]],a=t.get(i[ke]);e[Bi](r,a)<0&&r.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this[Ke].orient="y"===t?Fe:"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return l(function(n){var r=t.get(n[ke]),a=this.dependentModels[n.axis][r];a&&a.get("type")===e||(i=!1)},this),i},_backup:function(){this.eachTargetAxis(function(t,e,i,n){var r=n[Ce](t.axis,e);this.getAxisProxy(t.name,e).backup(this,{scale:r.get("scale",!0),min:r.get("min",!0),max:r.get("max",!0)})},this)},getFirstTargetAxisModel:function(){var t;return l(function(e){if(null==t){var i=this.get(e[ke]);i[Vi]&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this[ri];l(function(n){s(this.get(n[ke]),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){s(["start","end","startValue","endValue"],function(e){this[Ke][e]=t[e]},this)},getPercentRange:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e].getDataPercentWindow();for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e].getDataPercentWindow()}})}),e("echarts/component/dataZoom/DataZoomView",[qi,"../../view/Component"],function(t){var e=t("../../view/Component");return e[Di]({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this[ri]=e,this.api=i},getTargetInfo:function(){function t(t,e,i,n){for(var r,a=0;a<i[Vi];a++)if(i[a].model===t){r=i[a];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this[ri],n=[],r=[],a=[];return e.eachTargetAxis(function(e,o){var s=i[Ce](e.axis,o);if(s){a.push(s);var l=s.get("gridIndex"),c=s.get("polarIndex");if(null!=l){var h=i[Ce]("grid",l);t(h,s,n,l)}else if(null!=c){var h=i[Ce]("polar",c);t(h,s,r,c)}}},this),{cartesians:n,polars:r,axisModels:a}}})}),e("echarts/component/dataZoom/SliderZoomModel",[qi,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Di]({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,left:"auto",right:"auto",top:"auto",bottom:"auto",width:"auto",height:"auto",backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#ddd",fillerColor:"rgba(47,69,84,0.25)",handleColor:"rgba(47,69,84,0.65)",handleSize:10,labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}})}),e("echarts/util/throttle",[],function(){var t={},e="\x00__throttleOriginMethod",i="\x00__throttleRate";return t.throttle=function(t,e,i,n){function r(r){function f(){h=(new Date).getTime(),u=null,(d?t:t[r]).apply(o,s||[])}var p=function(){l=(new Date).getTime(),o=this,s=arguments,a=l-(n?c:h)-e,clearTimeout(u),n?i?u=setTimeout(f,e):a>=0&&f():a>=0?f():i&&(u=setTimeout(f,-a)),c=l};return p.clear=function(){u&&(clearTimeout(u),u=null)},p}var a,o,s,l=(new Date).getTime(),c=0,h=0,u=null,d=typeof t===Pi;if(e=e||0,d)return r();for(var f=[],p=0;p<t[Vi];p++)f[p]=r(p);return f},t.fixRate=function(e,i){return null!=i?t.throttle(e,i,!0,!1):e},t.debounce=function(e,i){return null!=i?t.throttle(e,i,!0,!0):e},t.createOrUpdate=function(n,r,a,o){var s=n[r];if(s&&null!=a&&o){var l=s[e]||s,c=s[i];c!==a&&(s=n[r]=t[o](l,a),s[e]=l,s[i]=a)}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/component/helper/sliderMove",[qi],function(t){return function(t,e,i,n,r){function a(t,e,i){var n=e[Vi]?e.slice():[e,e];return e[0]>e[1]&&n.reverse(),0>t&&n[0]+t<i[0]&&(t=i[0]-n[0]),t>0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=a(t,e,i),e[0]+=t,e[1]+=t):(t=a(t,e[r],i),e[r]+=t,"push"===n&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}}),e("echarts/component/dataZoom/SliderZoomView",[qi,Hi,S,"../../util/throttle","./DataZoomView",M,"../../util/layout","../helper/sliderMove"],function(t){function e(t){return"x"===t?"y":"x"}var n=t(Hi),a=t(S),s=t("../../util/throttle"),l=t("./DataZoomView"),c=a.Rect,h=t(M),u=h[Ye],d=t("../../util/layout"),p=t("../helper/sliderMove"),v=h.asc,m=n.bind,g=Math.round,y=Math.max,_=n.each,x=7,b=1,w=30,k="horizontal",T=Fe,D=5,L=["line","bar","candlestick","scatter"];return l[Di]({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._halfHandleSize,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return this.$superApply(Wt,arguments),s.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this._halfHandleSize=g(t.get("handleSize")/2),this.dataZoomModel.get("show")===!1?void this.group[qt]():(n&&n.type===q&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){this.$superApply(Qt,arguments),s.clear(this,"_dispatchZoomAction")},dispose:function(){this.$superApply(Q,arguments),s.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t[qt](),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new a.Group;this._renderBackground(),this._renderDataShadow(),this._renderHandle(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,r=this._findCoordRect(),a={width:e[ze](),height:e[Le]()},o=this._orient===k?{left:r.x,top:a[vi]-w-x,width:r.width,height:w}:{right:x,top:r.y,width:w,height:r[vi]};n.each(d.getLayoutParams(t[Ke]),function(t,e){"auto"!==t&&(o[e]=t)});var s=d[Ve](o,a,t[i]);this._location={x:s.x,y:s.y},this._size=[s.width,s[vi]],this._orient===T&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==k||r?i===k&&r?{scale:o?[-1,1]:[-1,-1]}:i!==T||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=t[ei]([a]);t[He][0]=e.x-s.x,t[He][1]=e.y-s.y},_getViewExtent:function(){var t=this._halfHandleSize,e=y(this._size[0],4*t),i=[t,e-t];return i},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new c({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(tt)}}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t[Be],n=i.getRawData(),r=i.getShadowDim?i.getShadowDim():t.otherDim,o=n[R](r),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l=[0,e[1]],c=[0,e[0]],h=[[e[0],0],[0,0]],d=c[1]/n.count(),f=0,p=Math.round(n.count()/e[0]);n.each([r],function(t,e){if(p>0&&e%p)return void(f+=d);var i=null==t||isNaN(t)||""===t?null:u(t,o,l,!0);null!=i&&h.push([f,i]),f+=d}),this._displayables.barGroup.add(new a[St]({shape:{points:h},style:{fill:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:0},silent:!0,z2:-20}))}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var r,a=this[ri];return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o.name,s).getTargetSeriesModels();n.each(l,function(t){if(!(r||i!==!0&&n[Bi](L,t.get("type"))<0)){var l=e(o.name),c=a[Ce](o.axis,s).axis;r={thisAxis:c,series:t,thisDim:o.name,otherDim:l,otherAxisInverse:t[C][f](c).inverse}}},this)},this),r}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,r=this._size;n.add(t.filler=new c({draggable:!0,cursor:"move",drift:m(this._onDragMove,this,"all"),ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1),style:{fill:this.dataZoomModel.get("fillerColor"),textPosition:"inside"}})),n.add(new c(a[wt]({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:this.dataZoomModel.get("dataBackgroundColor"),lineWidth:b,fill:"rgba(0,0,0,0)"}}))),_([0,1],function(t){n.add(e[t]=new c({style:{fill:this.dataZoomModel.get("handleColor")},cursor:"move",draggable:!0,drift:m(this._onDragMove,this,t),ondragend:m(this._onDragEnd,this),onmouseover:m(this._showDataInfo,this,!0),onmouseout:m(this._showDataInfo,this,!1)}));var r=this.dataZoomModel.textStyleModel;this.group.add(i[t]=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textBaseline:"middle",textAlign:"center",fill:r[mt](),textFont:r[ti]()}}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange();this._handleEnds=u(t,[0,100],this._getViewExtent(),!0)},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();p(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=v(u(i,n,[0,100],!0))},_updateView:function(){var t=this._displayables,e=this._handleEnds,i=v(e.slice()),n=this._size,r=this._halfHandleSize;_([0,1],function(i){var a=t.handles[i];a[Ct]({x:e[i]-r,y:-1,width:2*r,height:n[1]+2,r:1})},this),t.filler[Ct]({x:i[0],y:0,width:i[1]-i[0],height:this._size[1]}),this._updateDataInfo()},_updateDataInfo:function(){function t(t){var e=a.getTransform(i.handles[t],this.group),s=a.transformDirection(0===t?"right":"left",e),l=this._halfHandleSize+D,h=a[mi]([c[t]+(0===t?-l:l),this._size[1]/2],e);n[t][bt]({x:h[0],y:h[1],textBaseline:r===k?ci:s,textAlign:r===k?s:li,text:o[t]})}var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var s,l;e.eachTargetAxis(function(t,i){s||(s=e.getAxisProxy(t.name,i).getDataValueWindow(),l=this[ri][Ce](t.axis,i).axis)},this),s&&(o=[this._formatLabel(s[0],l),this._formatLabel(s[1],l)])}var c=v(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,r=i.get("labelFormatter");if(n.isFunction(r))return r(t);var a=i.get("labelPrecision");return(null==a||"auto"===a)&&(a=e[Ue]()),t=null==t&&isNaN(t)?"":e.type===A||"time"===e.type?e.scale[o](Math.round(t)):t[Xe](Math.min(a,20)),n[Re](r)&&(t=r[Qe]("{value}",t)),t},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr(Ut,!t),e[1].attr(Ut,!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._applyBarTransform([e,i],!0);this._updateInterval(t,n[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api[De]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup[ce]();return a[mi](t,i,e)},_findCoordRect:function(){var t,e=this.getTargetInfo();if(e.cartesians[Vi])t=e.cartesians[0].model[C][r]();else{var i=this.api[ze](),n=this.api[Le]();t={x:.2*i,y:.2*n,width:.6*i,height:.6*n}}return t}})}),e("echarts/component/dataZoom/InsideZoomModel",[qi,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Di]({type:"dataZoom.inside"})}),e("echarts/component/helper/interactionMutex",[qi],function(t){function e(t){return t[i]||(t[i]={})}var i="\x00_ec_interaction_mutex",n={take:function(t,i){e(i)[t]=!0},release:function(t,i){e(i)[t]=!1},isTaken:function(t,i){return!!e(i)[t]}};return n}),e("echarts/component/helper/RoamController",[qi,fe,Hi,ft,"./interactionMutex"],function(t){function e(t){if(!t[oe]||!t[oe][ee]){var e=t[ut],i=t[ht],n=this.rect;n&&n[Rt](e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function i(t){if(this._dragging&&(h.stop(t.event),"pinch"!==t.gestureEvent)){if(u.isTaken("globalPan",this._zr))return;var e=t[ut],i=t[ht],n=e-this._x,r=i-this._y;this._x=e,this._y=i;var a=this[oe];if(a){var o=a[He];o[0]+=n,o[1]+=r,a.dirty()}h.stop(t.event),this[Ht]("pan",n,r)}}function n(t){this._dragging=!1}function r(t){h.stop(t.event);var e=t.wheelDelta<0?1.1:1/1.1;o.call(this,t,e,t[ut],t[ht])}function a(t){if(!u.isTaken("globalPan",this._zr)){h.stop(t.event);var e=t.pinchScale>1?1.1:1/1.1;o.call(this,t,e,t.pinchX,t.pinchY)}}function o(t,e,i,n){var r=this.rect;if(r&&r[Rt](i,n)){var a=this[oe];if(a){var o=a[He],s=a.scale,l=this._zoom=this._zoom||1;l*=e;var c=l/this._zoom;this._zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}this[Ht]("zoom",e,i,n)}}function s(t,o,s){this[oe]=o,this.rect=s,this._zr=t;var h=c.bind,u=h(e,this),d=h(i,this),f=h(n,this),p=h(r,this),v=h(a,this);l.call(this),this.enable=function(e){this.disable(),null==e&&(e=!0),e&&"scale"!==e&&(t.on("mousedown",u),t.on(dt,d),t.on("mouseup",f)),e&&"move"!==e&&(t.on("mousewheel",p),t.on("pinch",v))},this.disable=function(){t.off("mousedown",u),t.off(dt,d),t.off("mouseup",f),t.off("mousewheel",p),t.off("pinch",v)},this[Q]=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var l=t(fe),c=t(Hi),h=t(ft),u=t("./interactionMutex");return c.mixin(s,l),s}),e("echarts/component/dataZoom/InsideZoomView",[qi,"./DataZoomView","../../util/throttle",Hi,"../helper/sliderMove","../../component/helper/RoamController"],function(t){function e(t,e,i,r){e=e.slice();var a=r.axisModels[0];if(a){var o=n(t,a,i),s=o.signal*(e[1]-e[0])*o.pixel/o.pixelLength;return c(s,e,[0,100],"rigid"),e}}function i(t,e,i,r,o,s){i=i.slice();var l=o.axisModels[0];if(l){var c=n(e,l,r),h=c.pixel-c.pixelStart,u=h/c.pixelLength*(i[1]-i[0])+i[0];return t=Math.max(t,0),i[0]=(i[0]-u)*t+u,i[1]=(i[1]-u)*t+u,a(i)}}function n(t,e,i){var n=e.axis,r=i.rect,a={};return"x"===n.dim?(a.pixel=t[0],a.pixelLength=r.width,a.pixelStart=r.x,a.signal=n.inverse?1:-1):(a.pixel=t[1],a.pixelLength=r[vi],a.pixelStart=r.y,a.signal=n.inverse?-1:1),a}function a(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var o=t("./DataZoomView"),s=t("../../util/throttle"),l=t(Hi),c=t("../helper/sliderMove"),h=t("../../component/helper/RoamController"),u=l.bind;return o[Di]({type:"dataZoom.inside",init:function(t,e){this._controllers={},this._range},render:function(t,e,i,n){this.$superApply(Wt,arguments),s.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),n&&n.type===q&&n.from===this.uid||(this._range=t.getPercentRange()),this._resetController(i)},remove:function(){this.$superApply(Qt,arguments);var t=this._controllers;l.each(t,function(t){t.off("pan").off("zoom")}),t[Vi]=0,s.clear(this,"_dispatchZoomAction")},dispose:function(){this.$superApply(Q,arguments),s.clear(this,"_dispatchZoomAction")},_resetController:function(t){var e=this._controllers,i=this.getTargetInfo();l.each(i.cartesians,function(i){var n="cartesian"+i.coordIndex,a=e[n];a||(a=e[n]=new h(t.getZr()),a.enable(),a.on("pan",u(this._onPan,this,a,i)),a.on("zoom",u(this._onZoom,this,a,i))),a.rect=i.model[C][r]().clone()},this)},_onPan:function(t,i,n,r){var a=this._range=e([n,r],this._range,t,i);a&&this._dispatchZoomAction(a)},_onZoom:function(t,e,n,r,a){var o=this.dataZoomModel;n=1/n;var s=this._range=i(n,[r,a],this._range,t,e,o);this._dispatchZoomAction(s)},_dispatchZoomAction:function(t){this.api[De]({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})}})}),e("echarts/component/dataZoom/dataZoomProcessor",[qi,n,M],function(t){function e(t,e,i,n){var r=t.name,o=i.getAxisProxy(r,e);o.reset(i);var s=o.getDataPercentWindow(),l=o.getDataValueWindow(),c=n[Ce](t.axis,e),h=0===s[0]&&100===s[1],u=o.getBackup(),d=a[Ue](l,[0,500]),f=!(20>d&&d>=0);c.setNeedsCrossZero&&c.setNeedsCrossZero(h?!u.scale:!1),c.setMin&&c.setMin(h||f?u.min:+l[0][Xe](d)),c.setMax&&c.setMax(h||f?u.max:+l[1][Xe](d))}function i(t,e,i,n){i.getAxisProxy(t.name,e).filterData(i)}var r=t(n),a=t(M);r[G](Gi,function(t,n){t[W](q,function(t){t.eachTargetAxis(e)}),t[W](q,function(t){t.eachTargetAxis(i)})})}),e("echarts/component/dataZoom/dataZoomAction",[qi,Hi,T,n],function(t){var e=t(Hi),i=t(T),r=t(n);r[F](q,function(t,n){var r=i.createLinkedNodesFinder(e.bind(n[W],n,q),i.eachAxisDim,function(t,e){return t.get(e[ke])}),a=[];n[W]({mainType:"dataZoom",query:t},function(t,e){a.push.apply(a,r(t).nodes)}),e.each(a,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}),e("echarts/component/dataZoom",[qi,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SliderZoomModel","./dataZoom/SliderZoomView","./dataZoom/InsideZoomModel","./dataZoom/InsideZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SliderZoomModel"),t("./dataZoom/SliderZoomView"),t("./dataZoom/InsideZoomModel"),t("./dataZoom/InsideZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/toolbox/featureManager",[qi],function(t){var e={};return{register:function(t,i){e[t]=i},get:function(t){return e[t]}}}),e("echarts/component/toolbox/ToolboxModel",[qi,"./featureManager",Hi,n],function(t){var e=t("./featureManager"),i=t(Hi);t(n)[E]({type:"toolbox",mergeDefaultAndTheme:function(t){this.$superApply(Ne,arguments),i.each(this[Ke].feature,function(t,n){var r=e.get(n);r&&i.merge(t,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}})}),e("echarts/component/toolbox/ToolboxView",[qi,"./featureManager",Hi,S,"../../model/Model","../../data/DataDiffer","../helper/listComponent",fi,n],function(t){var e=t("./featureManager"),i=t(Hi),r=t(S),a=t("../../model/Model"),o=t("../../data/DataDiffer"),s=t("../helper/listComponent"),l=t(fi);return t(n)[Z]({type:"toolbox",render:function(t,n,c){function h(i,r){var o,s=y[i],l=y[r],h=p[s],d=new a(h,t,t[ri]);if(s&&!l){var f=e.get(s);if(!f)return;m[s]=o=new f(d)}else{if(o=m[l],!o)return;o.model=d}return!s&&l?void(o[Q]&&o[Q](n,c)):d.get("show")?(u(d,o,s),d.setIconStatus=function(t,e){var i=this[Ke],n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t][Ht](e)},void(o[Wt]&&o[Wt](d,n,c))):void(o[Qt]&&o[Qt](n,c))}function u(e,a,o){var s=e[ni]("iconStyle"),l=a.getIcons?a.getIcons():e.get("icon"),h=e.get("title")||{};if(typeof l===Ri){var u=l,p=h;l={},h={},l[o]=u,h[o]=p}var v=e.iconPaths={};i.each(l,function(o,l){var u=s[ni](Me)[g](),p=s[ni](Se)[g](),m=r.makePath(o,{style:u,hoverStyle:p,rectHover:!0},{x:-f/2,y:-f/2,width:f,height:f},li);r[_t](m),t.get("showTitle")&&(m.__title=h[l],m.on(yt,function(){m[bt]({text:h[l],textPosition:p[Et]||hi,textFill:p.fill||p[wi]||"#000",textAlign:p[Zt]||li})}).on(gt,function(){m[bt]({textFill:null})})),m[Ht](e.get("iconStatus."+l)||Me),d.add(m),m.on("click",i.bind(a.onclick,a,n,c,l)),v[l]=m})}var d=this.group;if(d[qt](),t.get("show")){var f=+t.get("itemSize"),p=t.get("feature")||{},m=this._features||(this._features={}),y=[];i.each(p,function(t,e){y.push(e)}),new o(this._featureNames||[],y).add(h)[at](h)[Qt](i.curry(h,null))[v](),this._featureNames=y,s.layout(d,t,c),s.addBackground(d,t),d[We](function(t){var e=t.__title,i=t[xt];if(i&&e){var n=l[ei](e,i.font),r=t[He][0]+d[He][0],a=t[He][1]+d[He][1]+f,o=!1;a+n[vi]>c[Le]()&&(i[Et]="top",o=!0);var s=o?-5-n[vi]:f+8;r+n.width/2>c[ze]()?(i[Et]=["100%",s],i[Zt]="right"):r-n.width/2<0&&(i[Et]=[0,s],i[Zt]="left")}})}},remove:function(t,e){i.each(this._features,function(i){i[Qt]&&i[Qt](t,e)}),this.group[qt]()},dispose:function(t,e){i.each(this._features,function(i){i[Q]&&i[Q](t,e)})}})}),e("echarts/component/toolbox/feature/SaveAsImage",[qi,"../featureManager"],function(t){function e(t){this.model=t}e.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6            M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1};var i=e[Wi];return i.onclick=function(t,e){var i=this.model,n=t.get("title.0.text")||"echarts",r=document[Ni]("a"),a=i.get("type",!0)||"png";r.download=n+"."+a,r[oe]="_blank",r.href=e.getConnectedDataURL({type:a,backgroundColor:i.get(tt,!0)||t.get(tt)||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),r.click()},t("../featureManager")[Te]("saveAsImage",e),e}),e("echarts/component/toolbox/feature/MagicType",[qi,Hi,"../../../echarts","../featureManager"],function(t){function e(t){this.model=t}var i=t(Hi);e.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",
  tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=e[Wi];n.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return i.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var r={line:function(t,e,n,r){return"bar"===t?i.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack")},r.get("option.line")):void 0},bar:function(t,e,n,r){return"line"===t?i.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack")},r.get("option.bar")):void 0},stack:function(t,e,i,n){return"line"===t||"bar"===t?{id:e,stack:"__ec_magicType_stack__"}:void 0},tiled:function(t,e,i,n){return"line"===t||"bar"===t?{id:e,stack:""}:void 0}},a=[["line","bar"],["stack","tiled"]];n.onclick=function(t,e,n){var o=this.model,s=o.get("seriesIndex."+n);if(r[n]){var l={series:[]},c=function(t){var e=t.subType,a=t.id,s=r[n](e,a,t,o);s&&(i[oi](s,t[Ke]),l[Be].push(s))};i.each(a,function(t){i[Bi](t,n)>=0&&i.each(t,function(t){o.setIconStatus(t,Me)})}),o.setIconStatus(n,Se),t[W]({mainType:"series",seriesIndex:s},c),e[De]({type:"changeMagicType",currentType:n,newOption:l})}};var o=t("../../../echarts");return o[F]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e[Ze](t.newOption)}),t("../featureManager")[Te]("magicType",e),e}),e("echarts/component/toolbox/feature/DataView",[qi,Hi,ft,"../featureManager","../../../echarts"],function(t){function e(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t[C];if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var a=r[p]();if(a.type===A){var o=a.dim+"_"+a.index;e[o]||(e[o]={categoryAxis:a,valueAxis:r[f](a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),e[o][Be].push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function i(t){var e=[];return d.each(t,function(t,i){var n=t.categoryAxis,r=t.valueAxis,a=r.dim,o=[" "][Ii](d.map(t[Be],function(t){return t.name})),s=[n.model.getCategories()];d.each(t[Be],function(t){s.push(t.getRawData()[O](a,function(t){return t}))});for(var l=[o.join(g)],c=0;c<s[0][Vi];c++){for(var h=[],u=0;u<s[Vi];u++)h.push(s[u][c]);l.push(h.join(g))}e.push(l.join("\n"))}),e.join("\n\n"+m+"\n\n")}function n(t){return d.map(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e[B],function(){for(var t=arguments[Vi],r=arguments[t-1],a=e[ge](r),o=0;t-1>o;o++)n[o]=arguments[o];i.push((a?a+g:"")+n.join(g))}),i.join("\n")}).join("\n\n"+m+"\n\n")}function r(t){var r=e(t);return{value:d[Gi]([i(r.seriesGroupByCategoryAxis),n(r.other)],function(t){return t[Qe](/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:r.meta}}function a(t){return t[Qe](/^\s\s*/,"")[Qe](/\s\s*$/,"")}function o(t){var e=t.slice(0,t[Bi]("\n"));return e[Bi](g)>=0?!0:void 0}function s(t){for(var e=t.split(/\n+/g),i=a(e.shift()).split(y),n=[],r=d.map(i,function(t){return{name:t,data:[]}}),o=0;o<e[Vi];o++){var s=a(e[o]).split(y);n.push(s.shift());for(var l=0;l<s[Vi];l++)r[l]&&(r[l].data[o]=s[l])}return{series:r,categories:n}}function l(t){for(var e=t.split(/\n+/g),i=a(e.shift()),n=[],r=0;r<e[Vi];r++){var o,s=a(e[r]).split(y),l="",c=!1;isNaN(s[0])?(c=!0,l=s[0],s=s.slice(1),n[r]={name:l,value:[]},o=n[r].value):o=n[r]=[];for(var h=0;h<s[Vi];h++)o.push(+s[h]);1===o[Vi]&&(c?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function c(t,e){var i=t.split(new RegExp("\n*"+m+"\n*","g")),n={series:[]};return d.each(i,function(t,i){if(o(t)){var r=s(t),a=e[i],c=a.axisDim+"Axis";a&&(n[c]=n[c]||[],n[c][a[ke]]={data:r.categories},n[Be]=n[Be][Ii](r[Be]))}else{var r=l(t);n[Be].push(r)}}),n}function h(t){this._dom=null,this.model=t}function u(t,e){return d.map(t,function(t,i){var n=e&&e[i];return d[Ee](n)&&!d[ki](n)?(d[Ee](t)&&!d[ki](t)&&(t=t.value),d[oi]({value:t},n)):t})}var d=t(Hi),v=t(ft),m=new Array(60).join("-"),g="	",y=new RegExp("["+g+"| ]+","g");return h.defaultOption={show:!0,readOnly:!1,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:"数据视图",lang:["数据视图","关闭","刷新"],backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h[Wi].onclick=function(t,e){function i(){n.removeChild(o),_._dom=null}var n=e[Pe](),a=this.model;this._dom&&n.removeChild(this._dom);var o=document[Ni]("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style[tt]=a.get(tt)||"#fff";var s=document[Ni]("h4"),l=a.get("lang")||[];s[it]=l[0]||a.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=a.get("textColor");var h=document[Ni]("textarea");h.style.cssText="display:block;width:100%;font-size:14px;line-height:1.6rem;font-family:Monaco,Consolas,Courier new,monospace",h.readOnly=a.get("readOnly"),h.style.color=a.get("textColor"),h.style.borderColor=a.get("textareaBorderColor"),h.style[tt]=a.get("textareaColor");var u=r(t);h.value=u.value;var d=u.meta,f=document[Ni]("div");f.style.cssText="position:absolute;bottom:0;left:0;right:0;";var p="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document[Ni]("div"),y=document[Ni]("div");p+=";background-color:"+a.get("buttonColor"),p+=";color:"+a.get("buttonTextColor");var _=this;v.addEventListener(m,"click",i),v.addEventListener(y,"click",function(){var t;try{t=c(h.value,d)}catch(n){throw i(),new Error("Data view format error "+n)}e[De]({type:"changeDataView",newOption:t}),i()}),m[it]=l[1],y[it]=l[2],y.style.cssText=p,m.style.cssText=p,f[et](y),f[et](m),v.addEventListener(h,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+g+e.substring(n),this.selectionStart=this.selectionEnd=i+1,v.stop(t)}}),o[et](s),o[et](h),o[et](f),h.style[vi]=n[J]-80+"px",n[et](o),this._dom=o},h[Wi][Qt]=function(t,e){this._dom&&e[Pe]().removeChild(this._dom)},h[Wi][Q]=function(t,e){this[Qt](t,e)},t("../featureManager")[Te]("dataView",h),t("../../../echarts")[F]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];d.each(t.newOption[Be],function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:u(t.data,r)})}else i.push(d[Di]({type:"scatter"},t))}),e[Ze](d[oi]({series:i},t.newOption))}),h}),e("echarts/component/helper/SelectController",[qi,fe,Hi,S],function(t){function e(t,e,i){p.call(this),this.type=t,this.zr=e,this.opt=v.clone(i),this.group=new m.Group,this._containerRect=null,this._track=[],this._dragging,this._cover,this._disabled=!0,this._handlers={mousedown:g(r,this),mousemove:g(a,this),mouseup:g(o,this)},y(M,function(t){this.zr.on(t,this._handlers[t])},this)}function i(t,e){var i=this.group[se](t,e);return!this._containerRect||this._containerRect[Rt](i[0],i[1])}function n(t){var e=t.event;e.preventDefault&&e.preventDefault()}function r(t){if(!(this._disabled||t[oe]&&t[oe][ee])){n(t);var e=t[ut],r=t[ht];i.call(this,e,r)&&(this._dragging=!0,this._track=[[e,r]])}}function a(t){this._dragging&&!this._disabled&&(n(t),s.call(this,t))}function o(t){this._dragging&&!this._disabled&&(n(t),s.call(this,t,!0),this._dragging=!1,this._track=[])}function s(t,e){var n=t[ut],r=t[ht];if(i.call(this,n,r)){this._track.push([n,r]);var a=l.call(this)?k[this.type].getRanges.call(this):[];c.call(this,a),this[Ht]("selected",v.clone(a)),e&&this[Ht]("selectEnd",v.clone(a))}}function l(){var t=this._track;if(!t[Vi])return!1;var e=t[t[Vi]-1],i=t[0],n=e[0]-i[0],r=e[1]-i[1],a=b(n*n+r*r,.5);return a>w}function c(t){var e=k[this.type];t&&t[Vi]?(this._cover||(this._cover=e[pi].call(this),this.group.add(this._cover)),e[at].call(this,t)):(this.group[Qt](this._cover),this._cover=null)}function h(){var t=this.group,e=t[he];e&&e[Qt](t)}function u(){var t=this.opt;return new m.Rect({style:{stroke:t[wi],fill:t.fill,lineWidth:t[Mi],opacity:t[bi]}})}function d(){return v.map(this._track,function(t){return this.group[se](t[0],t[1])},this)}function f(){var t=d.call(this),e=t[Vi]-1;return 0>e&&(e=0),[t[0],t[e]]}var p=t(fe),v=t(Hi),m=t(S),g=v.bind,y=v.each,_=Math.min,x=Math.max,b=Math.pow,w=2,M=["mousedown",dt,"mouseup"];e[Wi]={constructor:e,enable:function(t,e){this._disabled=!1,h.call(this),this._containerRect=e!==!1?e||t[ei]():null,t.add(this.group)},update:function(t){c.call(this,t&&v.clone(t))},disable:function(){this._disabled=!0,h.call(this)},dispose:function(){this.disable(),y(M,function(t){this.zr.off(t,this._handlers[t])},this)}},v.mixin(e,p);var k={line:{create:u,getRanges:function(){var t=f.call(this),e=_(t[0][0],t[1][0]),i=x(t[0][0],t[1][0]);return[[e,i]]},update:function(t){var e=t[0],i=this.opt.width;this._cover[Ct]({x:e[0],y:-i/2,width:e[1]-e[0],height:i})}},rect:{create:u,getRanges:function(){var t=f.call(this),e=[_(t[1][0],t[0][0]),_(t[1][1],t[0][1])],i=[x(t[1][0],t[0][0]),x(t[1][1],t[0][1])];return[[[e[0],i[0]],[e[1],i[1]]]]},update:function(t){var e=t[0];this._cover[Ct]({x:e[0][0],y:e[1][0],width:e[0][1]-e[0][0],height:e[1][1]-e[1][0]})}}};return e}),e("echarts/component/dataZoom/history",[qi,Hi],function(t){function e(t){var e=t[r];return e||(e=t[r]=[{}]),e}var i=t(Hi),n=i.each,r="\x00_ec_hist_store",a={push:function(t,i){var r=e(t);n(i,function(e,i){for(var n=r[Vi]-1;n>=0;n--){var a=r[n];if(a[i])break}if(0>n){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(i)},pop:function(t){var i=e(t),r=i[i[Vi]-1];i[Vi]>1&&i.pop();var a={};return n(r,function(t,e){for(var n=i[Vi]-1;n>=0;n--){var t=i[n][e];if(t){a[e]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return e(t)[Vi]}};return a}),e("echarts/component/dataZoom/SelectZoomModel",[qi,"./DataZoomModel"],function(t){var e=t("./DataZoomModel");return e[Di]({type:"dataZoom.select"})}),e("echarts/component/dataZoom/SelectZoomView",[qi,"./DataZoomView"],function(t){return t("./DataZoomView")[Di]({type:"dataZoom.select"})}),e("echarts/component/dataZoomSelect",[qi,"./dataZoom/typeDefaulter","./dataZoom/DataZoomModel","./dataZoom/DataZoomView","./dataZoom/SelectZoomModel","./dataZoom/SelectZoomView","./dataZoom/dataZoomProcessor","./dataZoom/dataZoomAction"],function(t){t("./dataZoom/typeDefaulter"),t("./dataZoom/DataZoomModel"),t("./dataZoom/DataZoomView"),t("./dataZoom/SelectZoomModel"),t("./dataZoom/SelectZoomView"),t("./dataZoom/dataZoomProcessor"),t("./dataZoom/dataZoomAction")}),e("echarts/component/toolbox/feature/DataZoom",[qi,Hi,"../../../util/number","../../helper/SelectController",gi,"zrender/container/Group","../../dataZoom/history","../../helper/interactionMutex","../../dataZoomSelect","../featureManager","../../../echarts"],function(t){function e(t){this.model=t,this._controllerGroup,this._controller,this._isZoomActive}function i(t,e){var i=[{axisModel:t[h]("x").model,axisIndex:0},{axisModel:t[h]("y").model,axisIndex:0}];return i.grid=t,e[W]({mainType:"dataZoom",subType:"select"},function(t,r){n("xAxis",i[0].axisModel,t,e)&&(i[0].dataZoomModel=t),n("yAxis",i[1].axisModel,t,e)&&(i[1].dataZoomModel=t)}),i}function n(t,e,i,n){var r=i.get(t+"Index");return null!=r&&n[Ce](t,r)===e}function a(t,e){var i=e.grid,n=new d(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0]);if(n[nt](i[r]())){var a=i.getCartesian(e[0][ke],e[1][ke]),o=a.pointToData([t[0][0],t[1][0]],!0),s=a.pointToData([t[0][1],t[1][1]],!0);return[g([o[0],s[0]]),g([o[1],s[1]])]}}function o(t,e,i,n){var r=e[i],a=r.dataZoomModel;return{dataZoomId:a.id,startValue:t[i][0],endValue:t[i][1]}}function s(t,e){t.setIconStatus("back",p.count(e)>1?Se:Me)}var l=t(Hi),c=t("../../../util/number"),u=t("../../helper/SelectController"),d=t(gi),f=t("zrender/container/Group"),p=t("../../dataZoom/history"),v=t("../../helper/interactionMutex"),m=l.each,g=c.asc;t("../../dataZoomSelect");var y="\x00_ec_\x00toolbox-dataZoom_";e.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var _=e[Wi];_[Wt]=function(t,e,i){s(t,e)},_.onclick=function(t,e,i){var n=this._controllerGroup;this._controllerGroup||(n=this._controllerGroup=new f,e.getZr().add(n)),x[i].call(this,n,this.model,t,e)},_[Qt]=function(t,e){this._disposeController(),v.release("globalPan",e.getZr())},_[Q]=function(t,e){var i=e.getZr();v.release("globalPan",i),this._disposeController(),this._controllerGroup&&i[Qt](this._controllerGroup)};var x={zoom:function(t,e,i,n){var r=this._isZoomActive=!this._isZoomActive,a=n.getZr();v[r?"take":"release"]("globalPan",a),e.setIconStatus("zoom",r?Se:Me),r?(a.setDefaultCursorStyle("crosshair"),this._createController(t,e,i,n)):(a.setDefaultCursorStyle("default"),this._disposeController())},back:function(t,e,i,n){this._dispatchAction(p.pop(i),n)}};return _._createController=function(t,e,i,n){var r=this._controller=new u("rect",n.getZr(),{lineWidth:3,stroke:"#333",fill:"rgba(0,0,0,0.2)"});r.on("selectEnd",l.bind(this._onSelected,this,r,e,i,n)),r.enable(t,!1)},_._disposeController=function(){var t=this._controller;t&&(t.off("selected"),t[Q]())},_._onSelected=function(t,e,n,r,s){if(s[Vi]){var l=s[0];t[at]();var c={};n[W]("grid",function(t,e){var r=t[C],s=i(r,n),h=a(l,s);if(h){var u=o(h,s,0,"x"),d=o(h,s,1,"y");u&&(c[u.dataZoomId]=u),d&&(c[d.dataZoomId]=d)}},this),p.push(n,c),this._dispatchAction(c,r)}},_._dispatchAction=function(t,e){var i=[];m(t,function(t){i.push(t)}),i[Vi]&&e[De]({type:"dataZoom",from:this.uid,batch:l.clone(i,!0)})},t("../featureManager")[Te](q,e),t("../../../echarts").registerPreprocessor(function(t){function e(t){i(t,function(e,i){var r={type:"select",$fromToolbox:!0,id:y+t+i};r[t+"Index"]=i,n.push(r)})}function i(e,i){var n=t[e];l[ki](n)||(n=n?[n]:[]),m(n,i)}if(t){var n=t[q]||(t[q]=[]);l[ki](n)||(n=[n]);var r=t.toolbox;r&&(l[ki](r)&&(r=r[0]),r&&r.feature&&r.feature[q]&&(e("xAxis"),e("yAxis")))}}),e}),e("echarts/component/toolbox/feature/Restore",[qi,"../../dataZoom/history","../featureManager","../../../echarts"],function(t){function e(t){this.model=t}var i=t("../../dataZoom/history");e.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=e[Wi];return n.onclick=function(t,e,n){i.clear(t),e[De]({type:"restore",from:this.uid})},t("../featureManager")[Te](Tt,e),t("../../../echarts")[F]({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),e}),e("echarts/component/toolbox",[qi,"./toolbox/ToolboxModel","./toolbox/ToolboxView","./toolbox/feature/SaveAsImage","./toolbox/feature/MagicType","./toolbox/feature/DataView","./toolbox/feature/DataZoom","./toolbox/feature/Restore"],function(t){t("./toolbox/ToolboxModel"),t("./toolbox/ToolboxView"),t("./toolbox/feature/SaveAsImage"),t("./toolbox/feature/MagicType"),t("./toolbox/feature/DataView"),t("./toolbox/feature/DataZoom"),t("./toolbox/feature/Restore")}),e("zrender/vml/core",[qi,"../core/env"],function(t){function e(){if(!o){o=!0;var t=a.styleSheets;t[Vi]<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}if(!t("../core/env")[K]){var i,n="urn:schemas-microsoft-com:vml",r=window,a=r.document,o=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",n),i=function(t){return a[Ni]("<zrvml:"+t+' class="zrvml">')}}catch(s){i=function(t){return a[Ni]("<"+t+' xmlns="'+n+'" class="zrvml">')}}return{doc:a,initVML:e,createNode:i}}}),e("zrender/vml/graphic",[qi,"../core/env","../core/vector",ui,"../core/PathProxy","../tool/color","../contain/text","../graphic/mixin/RectText","../graphic/Displayable","../graphic/Image","../graphic/Text","../graphic/Path","../graphic/Gradient","./core"],function(t){function e(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=V+","+V,t.coordorigin="0,0"}function n(t){return String(t)[Qe](/&/g,"&amp;")[Qe](/"/g,"&quot;")}function r(t,e,i){return"rgb("+[t,e,i].join(",")+")"}function a(t,e){e&&t&&e[ct]!==t&&t[et](e)}function o(t,e){e&&t&&e[ct]===t&&t.removeChild(e)}function s(t,e,i){return(parseFloat(t)||0)*G+(parseFloat(e)||0)*H+i}function l(t,e,i){var n=w.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=r(n[0],n[1],n[2]),t[bi]=i*n[3])}function c(t){var e=w.parse(t);return[r(e[0],e[1],e[2]),e[3]]}function h(t,e,i){var n=e.fill;if(null!=n)if(n instanceof D){var r,a=0,o=[0,0],s=0,h=1,u=i[ei](),d=u.width,f=u[vi];if("linear"===n.type){r="gradient";var p=i[ue],v=[n.x*d,n.y*f],m=[n.x2*d,n.y2*f];p&&(Z(v,v,p),Z(m,m,p));var g=m[0]-v[0],y=m[1]-v[1];a=180*Math.atan2(g,y)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var v=[n.x*d,n.y*f],p=i[ue],_=i.scale,x=d,b=f;o=[(v[0]-u.x)/x,(v[1]-u.y)/b],p&&Z(v,v,p),x/=_[0]*V,b/=_[1]*V;var w=B(x,b);s=0/w,h=2*n.r/w-s}var M=n.colorStops.slice();M.sort(function(t,e){return t.offset-e.offset});for(var S=M[Vi],k=[],A=[],C=0;S>C;C++){var T=M[C],L=c(T.color);A.push(T.offset*h+s+" "+L[0]),(0===C||C===S-1)&&k.push(L)}if(S>=2){var z=k[0][0],P=k[1][0],I=k[0][1]*e[bi],O=k[1][1]*e[bi];t.type=r,t.method="none",t.focus="100%",t.angle=a,t.color=z,t.color2=P,t.colors=A.join(","),t[bi]=O,t.opacity2=I}"radial"===r&&(t.focusposition=o.join(","))}else l(t,n,e[bi])}function u(t,e){null!=e.lineJoin&&(t.joinstyle=e.lineJoin),null!=e.miterLimit&&(t.miterlimit=e.miterLimit*V),null!=e.lineCap&&(t.endcap=e.lineCap),null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e[wi]||e[wi]instanceof D||l(t,e[wi],e[bi])}function d(t,e,i,n){var r="fill"==e,s=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i[Mi])?(t[r?"filled":"stroked"]="true",i[e]instanceof D&&o(t,s),s||(s=L.createNode(e)),r?h(s,i,n):u(s,i),a(t,s)):(t[r?"filled":"stroked"]="false",o(t,s))}function f(t,e){var i,n,r,a,o,s,l=b.M,c=b.C,h=b.L,u=b.A,d=b.Q,f=[];for(a=0;a<t[Vi];){switch(r=t[a++],n="",i=0,r){case l:n=" m ",i=1,o=t[a++],s=t[a++],W[0][0]=o,W[0][1]=s;break;case h:n=" l ",i=1,o=t[a++],s=t[a++],W[0][0]=o,W[0][1]=s;break;case d:case c:n=" c ",i=3;var p,v,m=t[a++],g=t[a++],y=t[a++],_=t[a++];r===d?(p=y,v=_,y=(y+2*m)/3,_=(_+2*g)/3,m=(o+2*m)/3,g=(s+2*g)/3):(p=t[a++],v=t[a++]),W[0][0]=m,W[0][1]=g,W[1][0]=y,W[1][1]=_,W[2][0]=p,W[2][1]=v,o=p,s=v;break;case u:var x=0,w=0,M=1,S=1,k=0;e&&(x=e[4],w=e[5],M=P(e[0]*e[0]+e[1]*e[1]),S=P(e[2]*e[2]+e[3]*e[3]),k=Math.atan2(-e[1]/S,e[0]/M));var A=t[a++],C=t[a++],T=t[a++],D=t[a++],L=t[a++]+k,I=t[a++]+L+k;a++;var B=t[a++],N=A+O(L)*T,G=C+R(L)*D,m=A+O(I)*T,g=C+R(I)*D,H=B?" wa ":" at ";f.push(H,z(((A-T)*M+x)*V-F),E,z(((C-D)*S+w)*V-F),E,z(((A+T)*M+x)*V-F),E,z(((C+D)*S+w)*V-F),E,z((N*M+x)*V-F),E,z((G*S+w)*V-F),E,z((m*M+x)*V-F),E,z((g*S+w)*V-F)),o=m,s=g;break;case b.R:var q=W[0],j=W[1];q[0]=t[a++],q[1]=t[a++],j[0]=q[0]+t[a++],j[1]=q[1]+t[a++],e&&(Z(q,q,e),Z(j,j,e)),q[0]=z(q[0]*V-F),j[0]=z(j[0]*V-F),q[1]=z(q[1]*V-F),j[1]=z(j[1]*V-F),f.push(" m ",q[0],E,q[1]," l ",j[0],E,q[1]," l ",j[0],E,j[1]," l ",q[0],E,j[1]);break;case b.Z:f.push(" x ")}if(i>0){f.push(n);for(var U=0;i>U;U++){var X=W[U];e&&Z(X,X,e),f.push(z(X[0]*V-F),E,z(X[1]*V-F),i-1>U?E:"")}}}return f.join("")}function p(t){return typeof t===Fi&&t.tagName&&"IMG"===t.tagName[qe]()}function v(t){var e=U[t];if(!e){X>$&&(X=0,U={});var i,n=Y.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||j,variant:n.fontVariant||j,weight:n.fontWeight||j,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},U[t]=e,X++}return e}function m(t,i,r,o){var l=this.style,c=l.text;if(c){var h,u,f=l[Zt],p=v(l.textFont),m=p.style+" "+p.variant+" "+p.weight+" "+p.size+'px "'+p.family+'"',g=l[Bt];r=r||M[ei](c,m,f,g);var y=this[ue];if(y&&!o&&(Q.copy(i),Q[mi](y),i=Q),o)h=i.x,u=i.y;else{var _=l[Et],x=l.textDistance;if(_ instanceof Array)h=i.x+_[0],u=i.y+_[1],f=f||"left",g=g||"top";else{var b=M.adjustTextPositionOnRect(_,i,r,x);h=b.x,u=b.y,f=f||b[Zt],g=g||b[Bt]}}var w=p.size;switch(g){case"hanging":case"top":u+=w/1.75;break;case ci:break;default:u-=w/2.25}switch(f){case"left":break;case li:h-=r.width/2;break;case"right":h-=r.width}var S,k,A,C=L.createNode,T=this._textVmlEl;T?(A=T.firstChild,S=A.nextSibling,k=S.nextSibling):(T=C("line"),S=C("path"),k=C("textpath"),A=C("skew"),k.style["v-text-align"]="left",e(T),S.textpathok=!0,k.on=!0,T.from="0 0",T.to="1000 0.05",a(T,A),a(T,S),a(T,k),this._textVmlEl=T);var D=[h,u],P=T.style;y&&o?(Z(D,D,y),A.on=!0,A.matrix=y[0][Xe](3)+E+y[2][Xe](3)+E+y[1][Xe](3)+E+y[3][Xe](3)+",0,0",A.offset=(z(D[0])||0)+","+(z(D[1])||0),A.origin="0 0",P.left="0px",P.top="0px"):(A.on=!1,P.left=z(h)+"px",P.top=z(u)+"px"),k[Ri]=n(c);try{k.style.font=m}catch(I){}d(T,"fill",{fill:o?l.fill:l.textFill,opacity:l[bi]},this),d(T,wi,{stroke:o?l[wi]:l.textStroke,opacity:l[bi],lineDash:l.lineDash},this),T.style.zIndex=s(this[ot],this.z,this.z2),a(t,T)}}function g(t){o(t,this._textVmlEl),this._textVmlEl=null}function y(t){a(t,this._textVmlEl)}if(!t("../core/env")[K]){var _=t("../core/vector"),x=t(ui),b=t("../core/PathProxy").CMD,w=t("../tool/color"),M=t("../contain/text"),S=t("../graphic/mixin/RectText"),k=t("../graphic/Displayable"),A=t("../graphic/Image"),C=t("../graphic/Text"),T=t("../graphic/Path"),D=t("../graphic/Gradient"),L=t("./core"),z=Math.round,P=Math.sqrt,I=Math.abs,O=Math.cos,R=Math.sin,B=Math.max,Z=_[mi],E=",",N="progid:DXImageTransform.Microsoft",V=21600,F=V/2,G=1e5,H=1e3,W=[[],[],[]];T[Wi].brush=function(t){var i=this.style,n=this._vmlEl;n||(n=L.createNode("shape"),e(n),this._vmlEl=n),d(n,"fill",i,this),d(n,wi,i,this);var r=this[ue],o=null!=r,l=n.getElementsByTagName(wi)[0];if(l){var c=i[Mi];if(o&&!i.strokeNoScale){var h=r[0]*r[3]-r[1]*r[2];c*=P(I(h))}l.weight=c+"px"}var u=this.path;this.__dirtyPath&&(u[Ot](),this[Dt](u,this.shape),this.__dirtyPath=!1),n.path=f(u.data,this[ue]),n.style.zIndex=s(this[ot],this.z,this.z2),a(t,n),i.text&&this.drawRectText(t,this[ei]())},T[Wi].onRemoveFromStorage=function(t){o(t,this._vmlEl),this.removeRectText(t)},T[Wi].onAddToStorage=function(t){a(t,this._vmlEl),this.appendRectText(t)},A[Wi].brush=function(t){var n,r,o=this.style,l=o.image;if(p(l)){var c=l.src;if(c===this._imageSrc)n=this._imageWidth,r=this._imageHeight;else{var h=l.runtimeStyle,u=h.width,d=h[vi];h.width="auto",h[vi]="auto",n=l.width,r=l[vi],h.width=u,h[vi]=d,this._imageSrc=c,this._imageWidth=n,this._imageHeight=r}l=c}else l===this._imageSrc&&(n=this._imageWidth,r=this._imageHeight);if(l){var f=o.x||0,v=o.y||0,m=o.width,g=o[vi],y=o.sWidth,_=o.sHeight,x=o.sx||0,b=o.sy||0,w=y&&_,M=this._vmlEl;M||(M=L.doc[Ni]("div"),e(M),this._vmlEl=M);var S,k=M.style,A=!1,C=1,T=1;if(this[ue]&&(S=this[ue],C=P(S[0]*S[0]+S[1]*S[1]),T=P(S[2]*S[2]+S[3]*S[3]),A=S[1]||S[2]),A){var D=[f,v],I=[f+m,v],O=[f,v+g],R=[f+m,v+g];Z(D,D,S),Z(I,I,S),Z(O,O,S),Z(R,R,S);var V=B(D[0],I[0],O[0],R[0]),F=B(D[1],I[1],O[1],R[1]),G=[];G.push("M11=",S[0]/C,E,"M12=",S[2]/T,E,"M21=",S[1]/C,E,"M22=",S[3]/T,E,"Dx=",z(f*C+S[4]),E,"Dy=",z(v*T+S[5])),k[i]="0 "+z(V)+"px "+z(F)+"px 0",k[Gi]=N+".Matrix("+G.join("")+", SizingMethod=clip)"}else S&&(f=f*C+S[4],v=v*T+S[5]),k[Gi]="",k.left=z(f)+"px",k.top=z(v)+"px";var H=this._imageEl,W=this._cropEl;H||(H=L.doc[Ni]("div"),this._imageEl=H);var q=H.style;if(w){if(n&&r)q.width=z(C*n*m/y)+"px",q[vi]=z(T*r*g/_)+"px";else{var j=new Image,U=this;j.onload=function(){j.onload=null,n=j.width,r=j[vi],q.width=z(C*n*m/y)+"px",q[vi]=z(T*r*g/_)+"px",U._imageWidth=n,U._imageHeight=r,U._imageSrc=l},j.src=l}W||(W=L.doc[Ni]("div"),W.style.overflow="hidden",this._cropEl=W);var X=W.style;X.width=z((m+x*m/y)*C),X[vi]=z((g+b*g/_)*T),X[Gi]=N+".Matrix(Dx="+-x*m/y*C+",Dy="+-b*g/_*T+")",W[ct]||M[et](W),H[ct]!=W&&W[et](H)}else q.width=z(C*m)+"px",q[vi]=z(T*g)+"px",M[et](H),W&&W[ct]&&(M.removeChild(W),this._cropEl=null);var $="",Y=o[bi];1>Y&&($+=".Alpha(opacity="+z(100*Y)+") "),$+=N+".AlphaImageLoader(src="+l+", SizingMethod=scale)",q[Gi]=$,M.style.zIndex=s(this[ot],this.z,this.z2),a(t,M),o.text&&this.drawRectText(t,this[ei]())}},A[Wi].onRemoveFromStorage=function(t){o(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},A[Wi].onAddToStorage=function(t){a(t,this._vmlEl),this.appendRectText(t)};var q,j=Me,U={},X=0,$=100,Y=document[Ni]("div");M.measureText=function(t,e){var i=L.doc;q||(q=i[Ni]("div"),q.style.cssText="position:absolute;top:-20000px;left:0;                padding:0;margin:0;border:none;white-space:pre;",L.doc.body[et](q));try{q.style.font=e}catch(n){}return q[it]="",q[et](i.createTextNode(t)),{width:q.offsetWidth}};for(var Q=new x,J=[S,k,A,T,C],tt=0;tt<J[Vi];tt++){var nt=J[tt][Wi];nt.drawRectText=m,nt.removeRectText=g,nt.appendRectText=y}C[Wi].brush=function(t){var e=this.style;e.text&&this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this[ei](),!0)},C[Wi].onRemoveFromStorage=function(t){this.removeRectText(t)},C[Wi].onAddToStorage=function(t){this.appendRectText(t)}}}),e("zrender/vml/Painter",[qi,"../core/log","./core"],function(t){function e(t){return parseInt(t,10)}function i(t,e){a.initVML(),this.root=t,this[lt]=e;var i=document[Ni]("div"),n=document[Ni]("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t[et](i),this._vmlRoot=n,this._vmlViewport=i,this[rt]();var r=e[$t],o=e[Yt];e[$t]=function(t){var i=e.get(t);r.call(e,t),i&&i.onRemoveFromStorage&&i.onRemoveFromStorage(n)},e[Yt]=function(t){t.onAddToStorage&&t.onAddToStorage(n),o.call(e,t)},this._firstPaint=!0}function n(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=t("../core/log"),a=t("./core");i[Wi]={constructor:i,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var t=this[lt][st](!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t[Vi];i++){var n=t[i];n[Kt]&&!n[Ut]&&(n.beforeBrush&&n.beforeBrush(),n.brush(e),n.afterBrush&&n.afterBrush()),n[Kt]=!1}this._firstPaint&&(this._vmlViewport[et](e),this._firstPaint=!1)},resize:function(){var t=this._getWidth(),e=this._getHeight();if(this._width!=t&&this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i[vi]=e+"px"}},dispose:function(){this.root[it]="",this._vmlRoot=this._vmlViewport=this[lt]=null},getWidth:function(){return this._width},getHeight:function(){return this._height},_getWidth:function(){var t=this.root,i=t.currentStyle;return(t.clientWidth||e(i.width))-e(i.paddingLeft)-e(i.paddingRight)|0},_getHeight:function(){var t=this.root,i=t.currentStyle;return(t[J]||e(i[vi]))-e(i.paddingTop)-e(i.paddingBottom)|0}};for(var o=["getLayer","insertLayer","eachLayer","eachBuildinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],s=0;s<o[Vi];s++){var l=o[s];i[Wi][l]=n(l)}return i}),e("zrender/vml/vml",[qi,"./graphic","../zrender","./Painter"],function(t){t("./graphic"),t("../zrender").registerPainter("vml",t("./Painter"))});var ji=t("echarts");return t("echarts/chart/line"),t("echarts/chart/bar"),t("echarts/chart/pie"),t("echarts/chart/scatter"),t("echarts/component/tooltip"),t("echarts/component/legend"),t("echarts/component/grid"),t("echarts/component/title"),t("echarts/component/markPoint"),t("echarts/component/markLine"),t("echarts/component/dataZoom"),t("echarts/component/toolbox"),t("zrender/vml/vml"),ji});