!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("echarts")):"function"==typeof define&&define.amd?define(["echarts"],e):"object"==typeof exports?exports["echarts-liquidfill"]=e(require("echarts")):t["echarts-liquidfill"]=e(t.echarts)}(this,function(t){return function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(17)},function(t,e){function r(t){if(null==t||"object"!=typeof t)return t;var e=t,i=D.call(t);if("[object Array]"===i){e=[];for(var n=0,a=t.length;n1e-10&&(n.width+=a/o,n.height+=a/o,n.x-=a/o/2,n.y-=a/o/2)}return n}return t},contain:function(t,e){var r=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),n=this.style;if(t=r[0],e=r[1],i.contain(t,e)){var a=this.path.data;if(n.hasStroke()){var o=n.lineWidth,h=n.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(n.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/h,t,e)))return!0}if(n.hasFill())return s.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var r=this.shape;if(r){if(a.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);else r[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},i.extend=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var r=t.shape;if(r){this.shape=this.shape||{};var n=this.shape;for(var a in r)!n.hasOwnProperty(a)&&r.hasOwnProperty(a)&&(n[a]=r[a])}t.init&&t.init.call(this,e)};a.inherits(e,i);for(var r in t)"style"!==r&&"shape"!==r&&(e.prototype[r]=t[r]);return e},a.inherits(i,n),t.exports=i},function(t,e){var r="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(t,e){var i=new r(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new r(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,r){return t[0]=e,t[1]=r,t},add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t},sub:function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[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,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},div:function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},normalize:function(t,e){var r=i.len(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),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,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t},applyTransform:function(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,t.exports=i},function(t,e,r){"use strict";function i(t,e,r,i){r<0&&(t+=r,r=-r),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=r,this.height=i}var n=r(3),a=r(7),o=n.applyTransform,s=Math.min,h=Math.max;i.prototype={constructor:i,union:function(t){var e=s(t.x,this.x),r=s(t.y,this.y);this.width=h(t.x+t.width,this.x+this.width)-e,this.height=h(t.y+t.height,this.y+this.height)-r,this.x=e,this.y=r},applyTransform:function(){var t=[],e=[],r=[],i=[];return function(n){if(n){t[0]=r[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=r[1]=this.y+this.height,o(t,t,n),o(e,e,n),o(r,r,n),o(i,i,n),this.x=s(t[0],e[0],r[0],i[0]),this.y=s(t[1],e[1],r[1],i[1]);var a=h(t[0],e[0],r[0],i[0]),l=h(t[1],e[1],r[1],i[1]);this.width=a-this.x,this.height=l-this.y}}}(),calculateTransform:function(t){var e=this,r=t.width/e.width,i=t.height/e.height,n=a.create();return a.translate(n,n,[-e.x,-e.y]),a.scale(n,n,[r,i]),a.translate(n,n,[t.x,t.y]),n},intersect:function(t){if(!t)return!1;t instanceof i||(t=i.create(t));var e=this,r=e.x,n=e.x+e.width,a=e.y,o=e.y+e.height,s=t.x,h=t.x+t.width,l=t.y,u=t.y+t.height;return!(n=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},t.exports=i},function(t,e,r){"use strict";function i(t){return t>-w&&tw||t<-w}function a(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function o(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function s(t,e,r,n,a,o){var s=n+3*(e-r)-t,h=3*(r-2*e+t),l=3*(e-t),u=t-a,c=h*h-3*s*l,f=h*l-9*s*u,d=l*l-3*h*u,p=0;if(i(c)&&i(f))if(i(h))o[0]=0;else{var v=-l/h;v>=0&&v<=1&&(o[p++]=v)}else{var g=f*f-4*c*d;if(i(g)){var y=f/c,v=-h/s+y,m=-y/2;v>=0&&v<=1&&(o[p++]=v),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var x=b(g),w=c*h+1.5*s*(-f+x),M=c*h+1.5*s*(-f-x);w=w<0?-_(-w,T):_(w,T),M=M<0?-_(-M,T):_(M,T);var v=(-h-(w+M))/(3*s);v>=0&&v<=1&&(o[p++]=v)}else{var k=(2*c*h-3*s*f)/(2*b(c*c*c)),S=Math.acos(k)/3,A=b(c),C=Math.cos(S),v=(-h-2*A*C)/(3*s),m=(-h+A*(C+P*Math.sin(S)))/(3*s),I=(-h+A*(C-P*Math.sin(S)))/(3*s);v>=0&&v<=1&&(o[p++]=v),m>=0&&m<=1&&(o[p++]=m),I>=0&&I<=1&&(o[p++]=I)}}return p}function h(t,e,r,a,o){var s=6*r-12*e+6*t,h=9*e+3*a-3*t-9*r,l=3*e-3*t,u=0;if(i(h)){if(n(s)){var c=-l/s;c>=0&&c<=1&&(o[u++]=c)}}else{var f=s*s-4*h*l;if(i(f))o[0]=-s/(2*h);else if(f>0){var d=b(f),c=(-s+d)/(2*h),p=(-s-d)/(2*h);c>=0&&c<=1&&(o[u++]=c),p>=0&&p<=1&&(o[u++]=p)}}return u}function l(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,h=(i-r)*n+r,l=(s-o)*n+o,u=(h-s)*n+s,c=(u-l)*n+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=u,a[6]=h,a[7]=i}function u(t,e,r,i,n,o,s,h,l,u,c){var f,d,p,v,g,y=.005,m=1/0;k[0]=l,k[1]=u;for(var _=0;_<1;_+=.05)S[0]=a(t,r,n,s,_),S[1]=a(e,i,o,h,_),v=x(k,S),v=0&&v=0&&c<=1&&(o[u++]=c)}}else{var f=h*h-4*s*l;if(i(f)){var c=-h/(2*s);c>=0&&c<=1&&(o[u++]=c)}else if(f>0){var d=b(f),c=(-h+d)/(2*s),p=(-h-d)/(2*s);c>=0&&c<=1&&(o[u++]=c),p>=0&&p<=1&&(o[u++]=p)}}return u}function p(t,e,r){var i=t+r-2*e;return 0===i?.5:(t-e)/i}function v(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function g(t,e,r,i,n,a,o,s,h){var l,u=.005,f=1/0;k[0]=o,k[1]=s;for(var d=0;d<1;d+=.05){S[0]=c(t,r,n,d),S[1]=c(e,i,a,d);var p=x(k,S);p=0&&pthis._ux||m(e-this._yi)>this._uy||this._len<5;return this.addData(h.L,t,e),this._ctx&&r&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,r,i,n,a){return this.addData(h.C,t,e,r,i,n,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,r,i,n,a):this._ctx.bezierCurveTo(t,e,r,i,n,a)),this._xi=n,this._yi=a,this},quadraticCurveTo:function(t,e,r,i){return this.addData(h.Q,t,e,r,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,r,i):this._ctx.quadraticCurveTo(t,e,r,i)),this._xi=r,this._yi=i,this},arc:function(t,e,r,i,n,a){return this.addData(h.A,t,e,r,r,i,n-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,r,i,n,a),this._xi=v(n)*r+t,this._yi=g(n)*r+t,this},arcTo:function(t,e,r,i,n){return this._ctx&&this._ctx.arcTo(t,e,r,i,n),this},rect:function(t,e,r,i){return this._ctx&&this._ctx.rect(t,e,r,i),this.addData(h.R,t,e,r,i),this},closePath:function(){this.addData(h.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,r),t.closePath()),this._xi=e,this._yi=r,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,r=0;re.length&&(this._expandData(),e=this.data);for(var r=0;r0&&v<=t||u<0&&v>=t||0==u&&(c>0&&g<=e||c<0&&g>=e);)i=this._dashIdx,r=o[i],v+=u*r,g+=c*r,this._dashIdx=(i+1)%m,u>0&&vh||c>0&&gl||s[i%2?"moveTo":"lineTo"](u>=0?d(v,t):p(v,t),c>=0?d(g,e):p(g,e));u=v-t,c=g-e,this._dashOffset=-y(u*u+c*c)},_dashedBezierTo:function(t,e,r,n,a,o){var s,h,l,u,c,f=this._dashSum,d=this._dashOffset,p=this._lineDash,v=this._ctx,g=this._xi,m=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=p.length,M=0;for(d<0&&(d=f+d),d%=f,s=0;s<1;s+=.1)h=x(g,t,r,a,s+.1)-x(g,t,r,a,s),l=x(m,e,n,o,s+.1)-x(m,e,n,o,s),_+=y(h*h+l*l);for(;bd));b++);for(s=(M-d)/_;s<=1;)u=x(g,t,r,a,s),c=x(m,e,n,o,s),b%2?v.moveTo(u,c):v.lineTo(u,c),s+=p[b]/_,b=(b+1)%w;b%2!==0&&v.lineTo(a,o),h=a-u,l=o-c,this._dashOffset=-y(h*h+l*l)},_dashedQuadraticTo:function(t,e,r,i){var n=r,a=i;r=(r+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,r,i,n,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=c[0]=c[1]=Number.MAX_VALUE,u[0]=u[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,r=0,i=0,s=0,d=0;dl||m(o-n)>u||f===c-1)&&(t.lineTo(a,o),i=a,n=o);break;case h.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),i=s[f-2],n=s[f-1];break;case h.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),i=s[f-2],n=s[f-1];break;case h.A:var p=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++],M=s[f++],P=s[f++],T=x>_?x:_,k=x>_?1:x/_,S=x>_?_/x:1,A=Math.abs(x-_)>.001,C=b+w;A?(t.translate(p,y),t.rotate(M),t.scale(k,S),t.arc(0,0,T,b,C,1-P),t.scale(1/k,1/S),t.rotate(-M),t.translate(-p,-y)):t.arc(p,y,T,b,C,1-P),1==f&&(e=v(b)*x+p,r=g(b)*_+y),i=v(C)*x+p,n=g(C)*_+y;break;case h.R:e=i=s[f],r=n=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case h.Z:t.closePath(),i=e,n=r}}}},_.CMD=h,t.exports=_},function(t,e){var r="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(){var t=new r(6);return i.identity(t),t},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,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],h=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=h,t},translate:function(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t},rotate:function(t,e,r){var i=e[0],n=e[2],a=e[4],o=e[1],s=e[3],h=e[5],l=Math.sin(r),u=Math.cos(r);return t[0]=i*u+o*l,t[1]=-i*l+o*u,t[2]=n*u+s*l,t[3]=-n*l+u*s,t[4]=u*a+l*h,t[5]=u*h-l*a,t},scale:function(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t},invert:function(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],h=r*o-a*i;return h?(h=1/h,t[0]=o*h,t[1]=-a*h,t[2]=-i*h,t[3]=r*h,t[4]=(i*s-o*n)*h,t[5]=(a*n-r*s)*h,t):null}};t.exports=i},function(e,r){e.exports=t},function(t,e,r){function i(t){t=t||{},o.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new a(t.style),this._rect=null,this.__clipPaths=[]}var n=r(1),a=r(45),o=r(10),s=r(50);i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var r=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(r[0],r[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?o.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new a(t),this.dirty(!1),this}},n.inherits(i,o),n.mixin(i,s),t.exports=i},function(t,e,r){"use strict";var i=r(38),n=r(61),a=r(62),o=r(60),s=r(1),h=function(t){a.call(this,t),n.call(this,t),o.call(this,t),this.id=t.id||i()};h.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var r=this[t];r||(r=this[t]=[]),r[0]=e[0],r[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var r in t)t.hasOwnProperty(r)&&this.attrKV(r,t[r]);return this.dirty(!1),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(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var r=0;ru&&(l=0,h={}),l++,h[r]=n,n}function n(t,e,r,n){var a=((t||"")+"").split("\n").length,o=i(t,e),s=i("国",e),h=a*s,l=new f(0,0,o,h);switch(l.lineHeight=s,n){case"bottom":case"alphabetic":l.y-=s;break;case"middle":l.y-=s/2}switch(r){case"end":case"right":l.x-=l.width;break;case"center":l.x-=l.width/2}return l}function a(t,e,r,i){var n=e.x,a=e.y,o=e.height,s=e.width,h=r.height,l=o/2-h/2,u="left";switch(t){case"left":n-=i,a+=l,u="right";break;case"right":n+=i+s,a+=l,u="left";break;case"top":n+=s/2,a-=i+h,u="center";break;case"bottom":n+=s/2,a+=o+i,u="center";break;case"inside":n+=s/2,a+=l,u="center";break;case"insideLeft":n+=i,a+=l,u="left";break;case"insideRight":n+=s-i,a+=l,u="right";break;case"insideTop":n+=s/2,a+=i,u="center";break;case"insideBottom":n+=s/2,a+=o-h-i,u="center";break;case"insideTopLeft":n+=i,a+=i,u="left";break;case"insideTopRight":n+=s-i,a+=i,u="right";break;case"insideBottomLeft":n+=i,a+=o-h-i;break;case"insideBottomRight":n+=s-i,a+=o-h-i,u="right"}return{x:n,y:a,textAlign:u,textBaseline:"top"}}function o(t,e,r,n,a){if(!e)return"";a=a||{},n=d(n,"...");for(var o=d(a.maxIterations,2),h=d(a.minChar,0),l=i("国",r),u=i("a",r),c=d(a.placeholder,""),f=e=Math.max(0,e-1),p=0;p=u;p++)f-=u;var v=i(n);v>f&&(n="",v=0),f=e-v;for(var g=(t+"").split("\n"),p=0,y=g.length;p=o){m+=n;break}var b=0===_?s(m,f,u,l):x>0?Math.floor(m.length*f/x):0;m=m.substr(0,b),x=i(m,r)}""===m&&(m=c),g[p]=m}}return g.join("\n")}function s(t,e,r,i){for(var n=0,a=0,o=t.length;a=2){if(o&&"spline"!==o){var s=n(a,o,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var h=a.length,l=0;l<(r?h:h-1);l++){var u=s[2*l],c=s[2*l+1],f=a[(l+1)%h];t.bezierCurveTo(u[0],u[1],c[0],c[1],f[0],f[1])}}else{"spline"===o&&(a=i(a,r)),t.moveTo(a[0][0],a[0][1]);for(var l=1,d=a.length;l255?255:t}function i(t){return t=Math.round(t),t<0?0:t>360?360:t}function n(t){return t<0?0:t>1?1:t}function a(t){return r(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function o(t){return n(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function h(t,e,r){return t+(e-t)*r}function l(t){if(t){t+="";var e=t.replace(/ /g,"").toLowerCase();if(e in x)return x[e].slice();if("#"!==e.charAt(0)){var r=e.indexOf("("),i=e.indexOf(")");if(r!==-1&&i+1===e.length){var n=e.substr(0,r),s=e.substr(r+1,i-(r+1)).split(","),h=1;switch(n){case"rgba":if(4!==s.length)return;h=o(s.pop());case"rgb":if(3!==s.length)return;return[a(s[0]),a(s[1]),a(s[2]),h];case"hsla":if(4!==s.length)return;return s[3]=o(s[3]),u(s);case"hsl":if(3!==s.length)return;return u(s);default:return}}}else{if(4===e.length){var l=parseInt(e.substr(1),16);if(!(l>=0&&l<=4095))return;return[(3840&l)>>4|(3840&l)>>8,240&l|(240&l)>>4,15&l|(15&l)<<4,1]}if(7===e.length){var l=parseInt(e.substr(1),16);if(!(l>=0&&l<=16777215))return;return[(16711680&l)>>16,(65280&l)>>8,255&l,1]}}}}function u(t){var e=(parseFloat(t[0])%360+360)%360/360,i=o(t[1]),n=o(t[2]),a=n<=.5?n*(i+1):n+i-n*i,h=2*n-a,l=[r(255*s(h,a,e+1/3)),r(255*s(h,a,e)),r(255*s(h,a,e-1/3))];return 4===t.length&&(l[3]=t[3]),l}function c(t){if(t){var e,r,i=t[0]/255,n=t[1]/255,a=t[2]/255,o=Math.min(i,n,a),s=Math.max(i,n,a),h=s-o,l=(s+o)/2;if(0===h)e=0,r=0;else{r=l<.5?h/(s+o):h/(2-s-o);var u=((s-i)/6+h/2)/h,c=((s-n)/6+h/2)/h,f=((s-a)/6+h/2)/h;i===s?e=f-c:n===s?e=1/3+u-f:a===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,r,l];return null!=t[3]&&d.push(t[3]),d}}function f(t,e){var r=l(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0;return m(r,4===r.length?"rgba":"rgb")}}function d(t,e){var r=l(t);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function p(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[0,0,0,0];var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),s=e[a],l=e[o],u=n-a;return i[0]=r(h(s[0],l[0],u)),i[1]=r(h(s[1],l[1],u)),i[2]=r(h(s[2],l[2],u)),i[3]=r(h(s[3],l[3],u)),i}}function v(t,e,i){if(e&&e.length&&t>=0&&t<=1){var a=t*(e.length-1),o=Math.floor(a),s=Math.ceil(a),u=l(e[o]),c=l(e[s]),f=a-o,d=m([r(h(u[0],c[0],f)),r(h(u[1],c[1],f)),r(h(u[2],c[2],f)),n(h(u[3],c[3],f))],"rgba");return i?{color:d,leftIndex:o,rightIndex:s,value:a}:d}}function g(t,e,r,n){if(t=l(t))return t=c(t),null!=e&&(t[0]=i(e)),null!=r&&(t[1]=o(r)),null!=n&&(t[2]=o(n)),m(u(t),"rgba")}function y(t,e){if(t=l(t),t&&null!=e)return t[3]=n(e),m(t,"rgba")}function m(t,e){var r=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}var x={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]};t.exports={parse:l,lift:f,toHex:d,fastMapToColor:p,mapToColor:v,modifyHSL:g,modifyAlpha:y,stringify:m}},function(t,e,r){var i=r(8);r(19),r(20),i.registerVisual(i.util.curry(r(24),"liquidFill"))},function(t,e,r){function i(t,e,r,i){return 0===e?[[t+.5*r/Math.PI/2,i/2],[t+.5*r/Math.PI,i],[t+r/4,i]]:1===e?[[t+.5*r/Math.PI/2*(Math.PI-2),i],[t+.5*r/Math.PI/2*(Math.PI-1),i/2],[t+r/4,0]]:2===e?[[t+.5*r/Math.PI/2,-i/2],[t+.5*r/Math.PI,-i],[t+r/4,-i]]:[[t+.5*r/Math.PI/2*(Math.PI-2),-i],[t+.5*r/Math.PI/2*(Math.PI-1),-i/2],[t+r/4,0]]}var n=r(8);t.exports=n.graphic.extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},style:{fill:"#0f0"},buildPath:function(t,e){for(var r=2*Math.ceil(2*e.radius/e.waveLength*4);e.phase<2*-Math.PI;)e.phase+=2*Math.PI;for(;e.phase>0;)e.phase-=2*Math.PI;var n=e.phase/Math.PI/2*e.waveLength,a=e.cx-e.radius+n-2*e.radius;t.moveTo(a,e.waterLevel);for(var o=0,s=0;sl?(l*=2*e/h,h=2*e):(h*=2*e/l,l=2*e);var u=r?0:P-h/2,c=r?0:T-l/2;return o=i.graphic.makePath(n.slice(7),{},new i.graphic.BoundingRect(u,c,h,l)),r&&(o.position=[-h/2,-l/2]),o}var f=r?-e:P-e,d=r?-e:T-e;return"pin"===n?d+=e:"arrow"===n&&(d-=e),a.createSymbol(n,f,d,2*e,2*e)}return new i.graphic.Circle({shape:{cx:r?0:P,cy:r?0:T,r:e}})}function h(){var e=n(k);return e.style.fill=null,e.setStyle(t.getModel("outline.itemStyle").getItemStyle()),e}function l(){var e=n(y);e.setStyle(t.getModel("backgroundStyle").getItemStyle()),e.style.fill=null,e.z2=5;var r=n(y);r.setStyle(t.getModel("backgroundStyle").getItemStyle()),r.style.stroke=null;var a=new i.graphic.Group;return a.add(e),a.add(r),a}function u(t,e,r){var a=p.getItemModel(t),h=a.getModel("itemStyle"),l=a.get("phase"),u=o(a.get("amplitude"),2*y),c=o(a.get("waveLength"),2*y),f=p.get("value",t),d=y-f*y*2;l=r?r.shape.phase:"auto"===l?t*Math.PI/4:l;var v=h.getModel("normal").getItemStyle();v.fill=p.getItemVisual(t,"color");var g=2*y,m=new s({shape:{waveLength:c,radius:y,cx:g,cy:0,waterLevel:d,amplitude:u,phase:l,inverse:e},style:v,position:[P,T]});m.shape._waterLevel=d;var x=h.getModel("emphasis").getItemStyle();x.lineWidth=0,i.graphic.setHoverStyle(m,x);var _=n(y,!0);return m.setClipPath(_),m}function c(t,e,r){var i=p.getItemModel(t),n=i.get("period"),a=i.get("direction"),o=p.get("value",t),s=(p.get("value",0),i.get("phase"));s=r?r.shape.phase:"auto"===s?t*Math.PI/4:s;var h=function(e){var r=p.count();return 0===r?e:e*(.2+(r-t)/r*.8)},l=0;l="auto"===n?h(5e3):"function"==typeof n?n(o,t):n;var u=0;"right"===a||null==a?u=Math.PI:"left"===a?u=-Math.PI:"none"===a?u=0:console.error("Illegal direction value for liquid fill."),"none"!==a&&i.get("waveAnimation")&&e.animate("shape",!0).when(0,{phase:s}).when(l/2,{phase:u+s}).when(l,{phase:2*u+s}).during(function(){C&&C.dirty(!0)}).start()}function f(e){function r(){var e=t.getFormattedLabel(0,"normal"),r=100*p.get("value",0),i=p.getName(0)||t.name;return isNaN(r)||(i=r.toFixed(0)+"%"),null==e?i:e}var a=v.getModel("label.normal"),o=a.getModel("textStyle"),s={z2:10,shape:{x:O,y:L,width:2*y,height:2*y},style:{fill:"transparent",text:r(),textAlign:o.get("align"),textVerticalAlign:o.get("baseline")},silent:!0},h=new i.graphic.Rect(s),l=o.get("color");i.graphic.setText(h.style,a,l);var u=new i.graphic.Rect(s),c=o.get("insideColor");i.graphic.setText(u.style,a,c),u.style.textFill=c;var f=new i.graphic.Group;f.add(h),f.add(u);var d=n(y,!0);return C=new i.graphic.CompoundPath({shape:{paths:e},position:[P,T]}),C.setClipPath(d),u.setClipPath(C),f}var d=this.group;d.removeAll();var p=t.getData(),v=p.getItemModel(0),g=v.get("center"),y=v.get("radius"),m=r.getWidth(),x=r.getHeight(),_=Math.min(m,x),b=0,w=0,M=t.get("outline.show");M&&(b=t.get("outline.borderDistance"),w=o(t.get("outline.itemStyle.borderWidth"),_));var P=o(g[0],m),T=o(g[1],x),k=o(y,_)/2,S=k-w/2,A=o(b,_),C=null;if(M){var I=h();I.style.lineWidth=w,d.add(h())}y=S-A;var O=P-y,L=T-y;d.add(l());var D=this._data,q=[];p.diff(D).add(function(e){var r=u(e,!1),n=r.shape.waterLevel;r.shape.waterLevel=y,i.graphic.initProps(r,{shape:{waterLevel:n}},t),r.z2=2,c(e,r,null),d.add(r),p.setItemGraphicEl(e,r),q.push(r)}).update(function(e,r){var n=D.getItemGraphicEl(r),a=u(e,!1,n);i.graphic.updateProps(n,{shape:a.shape,style:a.style},t),n.position=a.position,n.setClipPath(a.clipPath),c(e,n,n),d.add(n),p.setItemGraphicEl(e,n),q.push(n)}).remove(function(t){var e=D.getItemGraphicEl(t);d.remove(e)}).execute(),d.add(f(q)),this._data=p}})},function(t,e,r){function i(t,e,r,i){if(!e)return t;var s=n(e[0]),h=a.isArray(s)&&s.length||1;r=r||[],i=i||"extra";for(var l=0;l0?e.animateTo(r,h,u||0,l,a):(e.attr(r),a&&a())}else e.attr(r),a&&a()}var g=r(1),y=r(63),m=Math.round,x=r(2),_=r(16),b=r(7),w=r(3),M={};M.Group=r(34),M.Image=r(41),M.Text=r(46),M.Circle=r(53),M.Sector=r(59),M.Ring=r(58),M.Polygon=r(55),M.Polyline=r(56),M.Rect=r(57),M.Line=r(54),M.BezierCurve=r(52),M.Arc=r(51),M.CompoundPath=r(40),M.LinearGradient=r(42),M.RadialGradient=r(44),M.BoundingRect=r(4),M.extendShape=function(t){return x.extend(t)},M.extendPath=function(t,e){return y.extendFromString(t,e)},M.makePath=function(t,e,r,i){var n=y.createFromString(t,e),a=n.getBoundingRect();if(r){var o=a.width/a.height;if("center"===i){var s,h=r.height*o;h<=r.width?s=r.height:(h=r.width,s=h/o);var l=r.x+r.width/2,u=r.y+r.height/2;r.x=l-h/2,r.y=u-s/2,r.width=h,r.height=s}M.resizePath(n,r)}return n},M.mergePath=y.mergePath,M.resizePath=function(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}},M.subPixelOptimizeLine=function(t){var e=M.subPixelOptimize,r=t.shape,i=t.style.lineWidth;return m(2*r.x1)===m(2*r.x2)&&(r.x1=r.x2=e(r.x1,i,!0)),m(2*r.y1)===m(2*r.y2)&&(r.y1=r.y2=e(r.y1,i,!0)),t},M.subPixelOptimizeRect=function(t){var e=M.subPixelOptimize,r=t.shape,i=t.style.lineWidth,n=r.x,a=r.y,o=r.width,s=r.height;return r.x=e(r.x,i,!0),r.y=e(r.y,i,!0),r.width=Math.max(e(n+o,i,!1)-r.x,0===o?0:1),r.height=Math.max(e(a+s,i,!1)-r.y,0===s?0:1),t},M.subPixelOptimize=function(t,e,r){var i=m(2*t);return(i+m(e))%2===0?i/2:(i+(r?1:-1))/2},M.setHoverStyle=function(t,e,r){t.__hoverSilentOnTouch=r&&r.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&u(t,e)}):u(t,e),t.on("mouseover",c).on("mouseout",f),t.on("emphasis",d).on("normal",p)},M.setText=function(t,e,r){var i=e.getShallow("position")||"inside",n=i.indexOf("inside")>=0?"white":r,a=e.getModel("textStyle");g.extend(t,{textDistance:e.getShallow("distance")||5,textFont:a.getFont(),textPosition:i,textFill:a.getTextColor()||n})},M.updateProps=function(t,e,r,i,n){v(!0,t,e,r,i,n)},M.initProps=function(t,e,r,i,n){v(!1,t,e,r,i,n)},M.getTransform=function(t,e){for(var r=b.identity([]);t&&t!==e;)b.mul(r,t.getLocalTransform(),r),t=t.parent;return r},M.applyTransform=function(t,e,r){return r&&(e=b.invert([],e)),w.applyTransform([],t,e)},M.transformDirection=function(t,e,r){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),n=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-n:"bottom"===t?n:0];return a=M.applyTransform(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},M.groupTransition=function(t,e,r,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function a(t){var e={position:w.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=g.extend({},t.shape)),e}if(t&&e){var o=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=a(t);t.attr(a(e)),M.updateProps(t,i,r,t.dataIndex)}}})}},t.exports=M},function(t,e,r){"use strict";var i=r(22),n=r(4),a=i.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),o=i.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),s=i.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),h=i-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,c=Math.sin(l),f=Math.cos(l);t.arc(r,h,o,Math.PI-l,2*Math.PI+l);var d=.6*o,p=.7*o;t.bezierCurveTo(r+u-c*d,h+s+f*d,r,i-p,r,i),t.bezierCurveTo(r,i-p,r-u+c*d,h+s+f*d,r-u,h+s),t.closePath()}}),h=i.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),l={line:i.Line,rect:i.Rect,roundRect:i.Rect,square:i.Rect,circle:i.Circle,diamond:o,pin:s,arrow:h,triangle:a},u={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},c={};for(var f in l)l.hasOwnProperty(f)&&(c[f]=new l[f]);var d=i.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,r){var i=e.symbolType,n=c[i];"none"!==e.symbolType&&(n||(i="rect",n=c[i]),u[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r))}}),p=function(t){if("image"!==this.type){var e=this.style,r=this.shape;r&&"line"===r.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},v={createSymbol:function(t,e,r,a,o,s){var h=0===t.indexOf("empty");h&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?new i.Image({style:{image:t.slice(8),x:e,y:r,width:a,height:o}}):0===t.indexOf("path://")?i.makePath(t.slice(7),{},new n(e,r,a,o)):new d({shape:{symbolType:t,x:e,y:r,width:a,height:o}}),l.__isEmptyBrush=h,l.setColor=p,l.setColor(s),l}};t.exports=v},function(t,e){t.exports=function(t,e){var r={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),n={};if(!e.isSeriesFiltered(t)){var a=t.getData();a.each(function(t){var e=a.getRawIndex(t);n[e]=t}),i.each(function(e){var o=i.getItemModel(e),s=n[e],h=null!=s&&a.getItemVisual(s,"color",!0);if(h)i.setItemVisual(e,"color",h);else{var l=o.get("itemStyle.normal.color")||t.getColorFromPalette(i.getName(e),r);i.setItemVisual(e,"color",l),null!=s&&a.setItemVisual(s,"color",l)}})}})}},function(t,e,r){function i(t,e){return t[e]}function n(t,e,r){t[e]=r}function a(t,e,r){return(e-t)*r+t}function o(t,e,r){return r>.5?e:t}function s(t,e,r,i,n){var o=t.length;if(1==n)for(var s=0;sn;if(a)t.length=n;else for(var o=i;o=0&&!(k[r]<=e);r--);r=Math.min(r,x-2)}else{for(r=E;re);r++);r=Math.min(r-1,x-2)}E=r,G=e;var i=k[r+1]-k[r];if(0!==i)if(z=(e-k[r])/i,y)if(R=S[r],F=S[0===r?r:r-1],B=S[r>x-2?x-1:r+1],j=S[r>x-3?x-1:r+2],w)u(F,R,B,j,z,z*z,z*z*z,f(t,n),T);else{var h;if(M)h=u(F,R,B,j,z,z*z,z*z*z,H,1),h=d(H);else{if(P)return o(R,B,z);h=c(F,R,B,j,z,z*z,z*z*z)}p(t,n,h)}else if(w)s(S[r],S[r+1],z,f(t,n),T);else{var h;if(M)s(S[r],S[r+1],z,H,1),h=d(H);else{if(P)return o(S[r],S[r+1],z);h=a(S[r],S[r+1],z)}p(t,n,h)}},V=new v({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:N,ondestroy:r});return e&&"spline"!==e&&(V.easing=e),V}}}var v=r(26),g=r(16),y=r(1),m=y.isArrayLike,x=Array.prototype.slice,_=function(t,e,r,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=r||i,this._setter=a||n,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var r=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!r[i]){r[i]=[];var n=this._getter(this._target,i);if(null==n)continue;0!==t&&r[i].push({time:0,value:f(n)})}r[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,r=0;rr||f+co&&(o+=n);var p=Math.atan2(u,l);return p<0&&(p+=n),p>=a&&p<=o||p+n>=a&&p+n<=o}}},function(t,e,r){var i=r(5);t.exports={containStroke:function(t,e,r,n,a,o,s,h,l,u,c){if(0===l)return!1;var f=l;if(c>e+f&&c>n+f&&c>o+f&&c>h+f||ct+f&&u>r+f&&u>a+f&&u>s+f||ue+s&&o>i+s||ot+s&&a>r+s||ae&&u>i&&u>o&&u>h||u1&&n(),f=v.cubicAt(e,i,o,h,b[0]),g>1&&(d=v.cubicAt(e,i,o,h,b[1]))),p+=2==g?me&&s>i&&s>a||s=0&&l<=1){for(var u=0,c=v.quadraticAt(e,i,a,l),f=0;fr||s<-r)return 0;var h=Math.sqrt(r*r-s*s);_[0]=-h,_[1]=h;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l%m<1e-4){i=0,n=m;var u=a?1:-1;return o>=_[0]+t&&o<=_[1]+t?u:0}if(a){var h=i;i=p(n),n=p(h)}else i=p(i),n=p(n);i>n&&(n+=m);for(var c=0,f=0;f<2;f++){var d=_[f];if(d+t>o){var v=Math.atan2(s,d),u=a?1:-1;v<0&&(v=m+v),(v>=i&&v<=n||v+m>=i&&v+m<=n)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),c+=u)}}return c}function h(t,e,r,n,h){for(var u=0,p=0,v=0,m=0,x=0,_=0;_1&&(r||(u+=g(p,v,m,x,n,h))),1==_&&(p=t[_],v=t[_+1],m=p,x=v),b){case l.M:m=t[_++],x=t[_++],p=m,v=x;break;case l.L:if(r){if(y(p,v,t[_],t[_+1],e,n,h))return!0}else u+=g(p,v,t[_],t[_+1],n,h)||0;p=t[_++],v=t[_++];break;case l.C:if(r){if(c.containStroke(p,v,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],e,n,h))return!0}else u+=a(p,v,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],n,h)||0;p=t[_++],v=t[_++];break;case l.Q:if(r){if(f.containStroke(p,v,t[_++],t[_++],t[_],t[_+1],e,n,h))return!0}else u+=o(p,v,t[_++],t[_++],t[_],t[_+1],n,h)||0;p=t[_++],v=t[_++];break;case l.A:var w=t[_++],M=t[_++],P=t[_++],T=t[_++],k=t[_++],S=t[_++],A=(t[_++],1-t[_++]),C=Math.cos(k)*P+w,I=Math.sin(k)*T+M;_>1?u+=g(p,v,C,I,n,h):(m=C,x=I);var O=(n-w)*T/P+w;if(r){if(d.containStroke(w,M,T,k,k+S,A,e,O,h))return!0}else u+=s(w,M,T,k,k+S,A,O,h);p=Math.cos(k+S)*P+w,v=Math.sin(k+S)*T+M;break;case l.R:m=p=t[_++],x=v=t[_++];var L=t[_++],D=t[_++],C=m+L,I=x+D;if(r){if(y(m,x,C,x,e,n,h)||y(C,x,C,I,e,n,h)||y(C,I,m,I,e,n,h)||y(m,I,m,x,e,n,h))return!0}else u+=g(C,x,C,I,n,h),u+=g(m,I,m,x,n,h);break;case l.Z:if(r){if(y(p,v,m,x,e,n,h))return!0}else u+=g(p,v,m,x,n,h);p=m,v=x}}return r||i(v,x)||(u+=g(p,v,m,x,n,h)||0),0!==u}var l=r(6).CMD,u=r(30),c=r(29),f=r(32),d=r(28),p=r(13).normalizeRadian,v=r(5),g=r(33),y=u.containStroke,m=2*Math.PI,x=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,r){return h(t,0,!1,e,r)},containStroke:function(t,e,r,i){return h(t,e,!0,r,i)}}},function(t,e,r){var i=r(5);t.exports={containStroke:function(t,e,r,n,a,o,s,h,l){if(0===s)return!1;var u=s;if(l>e+u&&l>n+u&&l>o+u||lt+u&&h>r+u&&h>a+u||he&&a>i||an?o:0}},function(t,e,r){var i=r(1),n=r(10),a=r(4),o=function(t){t=t||{},n.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,r=0;r=0&&(r.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,r=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof o&&t.addChildrenToStorage(e)),r&&r.refresh()},remove:function(t){var e=this.__zr,r=this.__storage,n=this._children,a=i.indexOf(n,t);return a<0?this:(n.splice(a,1),t.parent=null,r&&(r.delFromMap(t.id),t instanceof o&&t.delChildrenFromStorage(r)),e&&e.refresh(),this)},removeAll:function(){var t,e,r=this._children,i=this.__storage;for(e=0;e=this._maxSize&&n>0){var a=r.head;r.remove(a),delete i[a.key]}var o=r.insert(e);o.key=t,i[t]=o}},o.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}},t.exports=a},function(t,e,r){var i=r(3),n=r(5),a={},o=Math.min,s=Math.max,h=Math.sin,l=Math.cos,u=i.create(),c=i.create(),f=i.create(),d=2*Math.PI;a.fromPoints=function(t,e,r){if(0!==t.length){var i,n=t[0],a=n[0],h=n[0],l=n[1],u=n[1];for(i=1;i1e-4)return p[0]=t-r,p[1]=e-n,v[0]=t+r,void(v[1]=e+n);if(u[0]=l(a)*r+t,u[1]=h(a)*n+e,c[0]=l(o)*r+t,c[1]=h(o)*n+e,g(p,u,c),y(v,u,c),a%=d,a<0&&(a+=d),o%=d,o<0&&(o+=d),a>o&&!s?o+=d:aa&&(f[0]=l(_)*r+t,f[1]=h(_)*n+e,g(p,f,p),y(v,f,v))},t.exports=a},function(t,e){function r(t){var e={},r={},i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0, r.version=n[1]),a&&(r.edge=!0,r.version=a[1]),o&&(r.weChat=!0),{browser:r,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!r.ie&&!r.edge,pointerEventsSupported:"onpointerdown"in window&&(r.edge||r.ie&&r.version>=11)}}var i={};i="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:r(navigator.userAgent),t.exports=i},function(t,e){var r=2311;t.exports=function(){return r++}},function(t,e,r){var i=r(11);t.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(i.debugMode>1)for(var t in arguments)console.log(arguments[t])}},function(t,e,r){var i=r(2);t.exports=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,r=0;r0},extendFrom:function(t,e){if(t){var r=this;for(var i in t)!t.hasOwnProperty(i)||!e&&r.hasOwnProperty(i)||(r[i]=t[i])}},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var a="radial"===e.type?i:r,o=a(t,e,n),s=e.colorStops,h=0;hh&&(c=r+i,r*=h/c,i*=h/c),n+a>h&&(c=n+a,n*=h/c,a*=h/c),i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+a>l&&(c=r+a,r*=l/c,a*=l/c),t.moveTo(o+r,s),t.lineTo(o+h-i,s),0!==i&&t.quadraticCurveTo(o+h,s,o+h,s+i),t.lineTo(o+h,s+l-n),0!==n&&t.quadraticCurveTo(o+h,s+l,o+h-n,s+l),t.lineTo(o+a,s+l),0!==a&&t.quadraticCurveTo(o,s+l,o,s+l-a),t.lineTo(o,s+r),0!==r&&t.quadraticCurveTo(o,s,o+r,s)}}},function(t,e,r){var i=r(3),n=i.min,a=i.max,o=i.scale,s=i.distance,h=i.add;t.exports=function(t,e,r,l){var u,c,f,d,p=[],v=[],g=[],y=[];if(l){f=[1/0,1/0],d=[-(1/0),-(1/0)];for(var m=0,x=t.length;mr-2?r-1:d+1],c=t[d>r-3?r-1:d+2]);var g=p*p,y=p*g;a.push([i(l[0],v[0],u[0],c[0],p,g,y),i(l[1],v[1],u[1],c[1],p,g,y)])}return a}},function(t,e,r){function i(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var n=r(12),a=r(4),o=new a,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e,r){var a=this.style,s=a.text;if(null!=s&&(s+=""),s){t.save();var h,l,u=a.textPosition,c=a.textOffset,f=a.textDistance,d=a.textAlign,p=a.textFont||a.font,v=a.textBaseline,g=a.textVerticalAlign;r=r||n.getBoundingRect(s,p,d,v);var y=this.transform;if(a.textTransform?this.setTransform(t):y&&(o.copy(e),o.applyTransform(y),e=o),u instanceof Array){if(h=e.x+i(u[0],e.width),l=e.y+i(u[1],e.height),d=d||"left",v=v||"top",g){switch(g){case"middle":l-=r.height/2-r.lineHeight/2;break;case"bottom":l-=r.height-r.lineHeight/2;break;default:l+=r.lineHeight/2}v="middle"}}else{var m=n.adjustTextPositionOnRect(u,e,r,f);h=m.x,l=m.y,d=d||m.textAlign,v=v||m.textBaseline}c&&(h+=c[0],l+=c[1]),t.textAlign=d||"left",t.textBaseline=v||"alphabetic";var x=a.textFill,_=a.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p||"12px sans-serif",t.shadowBlur=a.textShadowBlur,t.shadowColor=a.textShadowColor||"transparent",t.shadowOffsetX=a.textShadowOffsetX,t.shadowOffsetY=a.textShadowOffsetY;var b=s.split("\n");a.textRotation&&(y&&t.translate(y[4],y[5]),t.rotate(a.textRotation),y&&t.translate(-y[4],-y[5]));for(var w=0;w=11?function(){var t,e=this.__clipPaths,r=this.style;if(e)for(var i=0;i0&&this.animate(t,!1).when(null==i?500:i,o).delay(a||0),this}},t.exports=l},function(t,e){var r=Array.prototype.slice,i=function(){this._$handlers={}};i.prototype={constructor:i,one:function(t,e,r){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var n=0;n3&&(e=r.call(e,1));for(var n=this._$handlers[t],a=n.length,o=0;o4&&(e=r.call(e,1,e.length-1));for(var n=e[e.length-1],a=this._$handlers[t],o=a.length,s=0;ss||t<-s}var n=r(7),a=r(3),o=n.identity,s=5e-5,h=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=h.prototype;l.transform=null,l.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},l.updateTransform=function(){var t=this.parent,e=t&&t.transform,r=this.needLocalTransform(),i=this.transform;return r||e?(i=i||n.create(),r?this.getLocalTransform(i):o(i),e&&(r?n.mul(i,t.transform,i):n.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||n.create(),void n.invert(this.invTransform,i)):void(i&&o(i))},l.getLocalTransform=function(t){t=t||[],o(t);var e=this.origin,r=this.scale,i=this.rotation,a=this.position;return e&&(t[4]-=e[0],t[5]-=e[1]),n.scale(t,t,r),i&&n.rotate(t,t,i),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=a[0],t[5]+=a[1],t},l.setTransform=function(t){var e=this.transform,r=t.dpr||1;e?t.setTransform(r*e[0],r*e[1],r*e[2],r*e[3],r*e[4],r*e[5]):t.setTransform(r,0,0,r,0,0)},l.restoreTransform=function(t){var e=(this.transform,t.dpr||1);t.setTransform(e,0,0,e,0,0)};var u=[];l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(u,t.invTransform,e),e=u);var r=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],o=this.position,s=this.scale;i(r-1)&&(r=Math.sqrt(r)),i(a-1)&&(a=Math.sqrt(a)),e[0]<0&&(r=-r),e[3]<0&&(a=-a),o[0]=e[4],o[1]=e[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-e[1]/a,e[0]/r)}},l.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),r=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(r=-r),[e,r]},l.transformCoordToLocal=function(t,e){var r=[t,e],i=this.invTransform;return i&&a.applyTransform(r,r,i),r},l.transformCoordToGlobal=function(t,e){var r=[t,e],i=this.transform;return i&&a.applyTransform(r,r,i),r},t.exports=h},function(t,e,r){function i(t,e,r,i,n,a,o,s,h,l,u){var v=h*(p/180),m=d(v)*(t-r)/2+f(v)*(e-i)/2,x=-1*f(v)*(t-r)/2+d(v)*(e-i)/2,_=m*m/(o*o)+x*x/(s*s);_>1&&(o*=c(_),s*=c(_));var b=(n===a?-1:1)*c((o*o*(s*s)-o*o*(x*x)-s*s*(m*m))/(o*o*(x*x)+s*s*(m*m)))||0,w=b*o*x/s,M=b*-s*m/o,P=(t+r)/2+d(v)*w-f(v)*M,T=(e+i)/2+f(v)*w+d(v)*M,k=y([1,0],[(m-w)/o,(x-M)/s]),S=[(m-w)/o,(x-M)/s],A=[(-1*m-w)/o,(-1*x-M)/s],C=y(S,A);g(S,A)<=-1&&(C=p),g(S,A)>=1&&(C=0),0===a&&C>0&&(C-=2*p),1===a&&C<0&&(C+=2*p),u.addData(l,P,T,o,s,k,C,v,a)}function n(t){if(!t)return[];var e,r=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===g[0]&&g.shift();for(var y=0;y