!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e(require("echarts")):"function"==typeofdefine&&define.amd?define(["echarts"],e):"object"==typeofexports?exports["echarts-wordcloud"]=e(require("echarts")):t["echarts-wordcloud"]=e(t.echarts)}(this,function(t){returnfunction(t){functione(n){if(r[n])returnr[n].exports;vari=r[n]={i:n,l:!1,exports:{}};returnt[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}varr={};returne.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){varr=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(r,"a",r),r},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=25)}([function(t,e){functionr(t,e){G[t]=e}functionn(t){if(null==t||"object"!=typeoft)returnt;vare=t,r=W.call(t);if("[object Array]"===r){e=[];for(vari=0,a=t.length;i<a;i++)e[i]=n(t[i])}elseif(E[r]){varo=t.constructor;if(t.constructor.from)e=o.from(t);else{e=newo(t.length);for(vari=0,a=t.length;i<a;i++)e[i]=n(t[i])}}elseif(!N[r]&&!F(t)&&!T(t)){e={};for(varsint)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}returne}functioni(t,e,r){if(!S(e)||!S(t))returnr?n(e):t;for(varaine)if(e.hasOwnProperty(a)){varo=t[a],s=e[a];!S(s)||!S(o)||w(s)||w(o)||T(s)||T(o)||M(s)||M(o)||F(s)||F(o)?!r&&aint||(t[a]=n(e[a],!0)):i(o,s,r)}returnt}functiona(t,e){for(varr=t[0],n=1,a=t.length;n<a;n++)r=i(r,t[n],e);returnr}functiono(t,e){for(varrine)e.hasOwnProperty(r)&&(t[r]=e[r]);returnt}functions(t,e,r){for(varnine)e.hasOwnProperty(n)&&(r?null!=e[n]:null==t[n])&&(t[n]=e[n]);returnt}functionl(){return$||($=U().getContext("2d")),$}functionh(t,e){if(t){if(t.indexOf)returnt.indexOf(e);for(varr=0,n=t.length;r<n;r++)if(t[r]===e)returnr}return-1}functionu(t,e){functionr(){}varn=t.prototype;r.prototype=e.prototype,t.prototype=newr;for(variinn)t.prototype[i]=n[i];t.prototype.constructor=t,t.superClass=e}functionc(t,e,r){t="prototype"int?t.prototype:t,e="prototype"ine?e.prototype:e,s(t,e,r)}functionf(t){if(t)return"string"!=typeoft&&"number"==typeoft.length}functiond(t,e,r){if(t&&e)if(t.forEach&&t.forEach===H)t.forEach(e,r);elseif(t.length===+t.length)for(varn=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);elsefor(varaint)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}functionv(t,e,r){if(t&&e){if(t.map&&t.map===Y)returnt.map(e,r);for(varn=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));returnn}}functiong(t,e,r,n){if(t&&e){if(t.reduce&&t.reduce===V)returnt.reduce(e,r,n);for(vari=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);returnr}}functionp(t,e,r){if(t&&e){if(t.filter&&t.filter===j)returnt.filter(e,r);for(varn=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);returnn}}functionm(t,e,r){if(t&&e)for(varn=0,i=t.length;n<i;n++)if(e.call(r,t[n],n,t))returnt[n]}functionx(t,e){varr=X.call(arguments,2);returnfunction(){returnt.apply(e,r.concat(X.call(arguments)))}}functiony(t){vare=X.call(arguments,1);returnfunction(){returnt.apply(this,e.concat(X.call(arguments)))}}functionw(t){return"[object Array]"===W.call(t)}function_(t){return"function"==typeoft}functionb(t){return"[object String]"===W.call(t)}functionS(t){vare=typeoft;return"function"===e||!!t&&"object"==e}functionM(t){return!!N[W.call(t)]}functionT(t){return"object"==typeoft&&"number"==typeoft.nodeType&&"object"==typeoft.ownerDocument}functionk(t){returnt!==t}functionC(t){for(vare=0,r=arguments.length;e<r;e++)if(null!=arguments[e])returnarguments[e]}functionP(t,e){returnnull!=t?t:e}functionI(t,e,r){returnnull!=t?t:null!=e?e:r}functionA(){returnFunction.call.apply(X,arguments)}functionO(t){if("number"==typeoft)return[t,t,t,t];vare=t.length;return2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}functionD(t,e){if(!t)thrownewError(e)}functionL(t){t[Z]=!0}functionF(t){returnt[Z]}functionR(t){t&&d(t,function(t,e){this.set(e,t)},this)}functionB(t){returnnewR(t)}functionz(){}varN={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},E={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},W=Object.prototype.toString,q=Array.prototype,H=q.forEach,j=q.filter,X=q.slice,Y=q.map,V=q.reduce,G={},U=function(){returnG.createCanvas()};G.createCanvas=function(){returndocument.createElement("canvas")};var$,Z="__ec_primitive__";R.prototype={constructor:R,get:function(t){returnthis["_ec_"+t]},set:function(t,e){returnthis["_ec_"+t]=e,e},each:function(t,e){void0!==e&&(t=x(t,e));for(varrinthis)this.hasOwnProperty(r)&&t(this[r],r.slice(4))},removeKey:function(t){deletethis["_ec_"+t]}},e.$override=r,e.clone=n,e.merge=i,e.mergeAll=a,e.extend=o,e.defaults=s,e.createCanvas=U,e.getContext=l,e.indexOf=h,e.inherits=u,e.mixin=c,e.isArrayLike=f,e.each=d,e.map=v,e.reduce=g,e.filter=p,e.find=m,e.bind=x,e.curry=y,e.isArray=w,e.isFunction=_,e.isString=b,e.isObject=S,e.isBuiltInObject=M,e.isDom=T,e.eqNaN=k,e.retrieve=C,e.retrieve2=P,e.retrieve3=I,e.slice=A,e.normalizeCssArray=O,e.assert=D,e.setAsPrimitive=L,e.isPrimitive=F,e.createHashMap=B,e.noop=z},function(t,e,r){functionn(t){i.call(this,t),this.path=null}vari=r(12),a=r(0),o=r(6),s=r(50),l=r(56),h=l.prototype.getCanvasPattern,u=Math.abs,c=newo(!0);n.prototype={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){varr=this.style,n=this.path||c,i=r.hasStroke(),a=r.hasFill(),o=r.fill,s=r.stroke,l=a&&!!o.colorStops,u=i&&!!s.colorStops,f=a&&!!o.image,d=i&&!!s.image;if(r.bind(t,this,e),this.setTransform(t),this.__dirty){varv;l&&(v=v||this.getBoundingRect(),this._fillGradient=r.getGradient(t,o,v)),u&&(v=v||this.getBoundingRect(),this._strokeGradient=r.getGradient(t,s,v))}l?t.fillStyle=this._fillGradient:f&&(t.fillStyle=h.call(o,t)),u?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=h.call(s,t));varg=r.lineDash,p=r.lineDashOffset,m=!!t.setLineDash,x=this.getGlobalScale();n.setScale(x[0],x[1]),this.__dirtyPath||g&&!m&&i?(n.beginPath(t),g&&!m&&(n.setLineDash(g),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a&&n.fill(t),g&&m&&(t.setLineDash(g),t.lineDashOffset=p),i&&n.stroke(t),g&&m&&t.setLineDash([]),this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,r){},createPathProxy:function(){this.path=newo},getBoundingRect:function(){vart=this._rect,e=this.style,r=!t;if(r){varn=this.path;n||(n=this.path=newo),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){vari=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||r){i.copy(t);vara=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(i.width+=a/s,i.height+=a/s,i.x-=a/s/2,i.y-=a/s/2)}returni}returnt},contain:function(t,e){varr=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),i=this.style;if(t=r[0],e=r[1],n.contain(t,e)){vara=this.path.data;if(i.hasStroke()){varo=i.lineWidth,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(i.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/l,t,e)))return!0}if(i.hasFill())returns.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){returnthis.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){varr=this.shape;if(r){if(a.isObject(t))for(varnint)t.hasOwnProperty(n)&&(r[n]=t[n]);elser[t]=e;this.dirty(!0)}returnthis},getLineScale:function(){vart=this.transform;returnt&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},n.extend=function(t){vare=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);varr=t.shape;if(r){this.shape=this.shape||{};vari=this.shape;for(varainr)!i.hasOwnProperty(a)&&r.hasOwnProperty(a)&&(i[a]=r[a])}t.init&&t.init.call(this,e)};a.inherits(e,n);for(varrint)"style"!==r&&"shape"!==r&&(e.prototype[r]=t[r]);returne},a.inherits(n,i);varf=n;t.exports=f},function(t,e){functionr(t,e){varr=newS(2);returnnull==t&&(t=0),null==e&&(e=0),r[0]=t,r[1]=e,r}functionn(t,e){returnt[0]=e[0],t[1]=e[1],t}functioni(t){vare=newS(2);returne[0]=t[0],e[1]=t[1],e}functiona(t,e,r){returnt[0]=e,t[1]=r,t}functiono(t,e,r){returnt[0]=e[0]+r[0],t[1]=e[1]+r[1],t}functions(t,e,r,n){returnt[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}functionl(t,e,r){returnt[0]=e[0]-r[0],t[1]=e[1]-r[1],t}functionh(t){returnMath.sqrt(u(t))}functionu(t){returnt[0]*t[0]+t[1]*t[1]}functionc(t,e,r){returnt[0]=e[0]*r[0],t[1]=e[1]*r[1],t}functionf(t,e,r){returnt[0]=e[0]/r[0],t[1]=e[1]/r[1],t}functiond(t,e){returnt[0]*e[0]+t[1]*e[1]}functionv(t,e,r){returnt[0]=e[0]*r,t[1]=e[1]*r,t}functiong(t,e){varr=h(e);return0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}functionp(t,e){returnMath.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}functionm(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}functionx(t,e){returnt[0]=-e[0],t[1]=-e[1],t}functiony(t,e,r,n){returnt[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}functionw(t,e,r){varn=e[0],i=e[1];returnt[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function_(t,e,r){returnt[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}functionb(t,e,r){returnt[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}varS="undefined"==typeofFloat32Array?Array:Float32Array,M=h,T=u,k=p,C=m;e.create=r,e.copy=n,e.clone=i,e.set=a,e.add=o,e.scaleAndAdd=s,e.sub=l,e.len=h,e.length=M,e.lenSquare=u,e.lengthSquare=T,e.mul=c,e.div=f,e.dot=d,e.scale=v,e.normalize=g,e.distance=p,e.dist=k,e.distanceSquare=m,e.distSquare=C,e.negate=x,e.lerp=y,e.applyTransform=w,e.min=_,e.max=b},function(t,e,r){functionn(t,e,r,n){r<0&&(t+=r,r=-r),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=r,this.height=n}vari=r(2),a=r(8),o=i.applyTransform,s=Math.min,l=Math.max;n.prototype={constructor:n,union:function(t){vare=s(t.x,this.x),r=s(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this.height=l(t.y+t.height,this.y+this.height)-r,this.x=e,this.y=r},applyTransform:function(){vart=[],e=[],r=[],n=[];returnfunction(i){if(i){t[0]=r[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=r[1]=this.y+this.height,o(t,t,i),o(e,e,i),o(r,r,i),o(n,n,i),this.x=s(t[0],e[0],r[0],n[0]),this.y=s(t[1],e[1],r[1],n[1]);vara=l(t[0],e[0],r[0],n[0]),h=l(t[1],e[1],r[1],n[1]);this.width=a-this.x,this.height=h-this.y}}}(),calculateTransform:function(t){vare=this,r=t.width/e.width,n=t.height/e.height,i=a.create();returna.translate(i,i,[-e.x,-e.y]),a.scale(i,i,[r,n]),a.translate(i,i,[t.x,t.y]),i},intersect:function(t){if(!t)return!1;tinstanceofn||(t=n.create(t));vare=this,r=e.x,i=e.x+e.width,a=e.y,o=e.y+e.height,s=t.x,l=t.x+t.width,h=t.y,u=t.y+t.height;return!(i<s||l<r||o<h||u<a)},contain:function(t,e){varr=this;returnt>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},clone:function(){returnnewn(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}}},n.create=function(t){returnnewn(t.x,t.y,t.width,t.height)};varh=n;t.exports=h},function(t,e,r){functionn(t){returnt>-b&&t<b}functioni(t){returnt>b||t<-b}functiona(t,e,r,n,i){vara=1-i;returna*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}functiono(t,e,r,n,i){vara=1-i;return3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}functions(t,e,r,i,a,o){vars=i+3*(e-r)-t,l=3*(r-2*e+t),h=3*(e-t),u=t-a,c=l*l-3*s*h,f=l*h-9*s*u,d=h*h-3*l*u,v=0;if(n(c)&&n(f))if(n(l))o[0]=0;else{varg=-h/l;g>=0&&g<=1&&(o[v++]=g)}else{varp=f*f-4*c*d;if(n(p)){varm=f/c,g=-l/s+m,x=-m/2;g>=0&&g<=1&&(o[v++]=g),x>=0&&x<=1&&(o[v++]=x)}elseif(p>0){vary=_(p),b=c*l+1.5*s*(-f+y),S=c*l+1.5*s*(-f-y);b=b<0?-w(-b,T):w(b,T),S=S<0?-w(-S,T):w(S,T);varg=(-l-(b+S))/(3*s);g>=0&&g<=1&&(o[v++]=g)}else{vark=(2*c*l-3*s*f)/(2*_(c*c*c)),C=Math.acos(k)/3,P=_(c),I=Math.cos(C),g=(-l-2*P*I)/(3*s),x=(-l+P*(I+M*Math.sin(C)))/(3*s),A=(-l+P*(I-M*Math.sin(C)))/(3*s);g>=0&&g<=1&&(o[v++]=g),x>=0&&x<=1&&(o[v++]=x),A>=0&&A<=1&&(o[v++]=A)}}returnv}functionl(t,e,r,a,o){vars=6*r-12*e+6*t,l=9*e+3*a-3*t-9*r,h=3*e-3*t,u=0;if(n(l)){if(i(s)){varc=-h/s;c>=0&&c<=1&&(o[u++]=c)}}else{varf=s*s-4*l*h;if(n(f))o[0]=-s/(2*l);elseif(f>0){vard=_(f),c=(-s+d)/(2*l),v=(-s-d)/(2*l);c>=0&&c<=1&&(o[u++]=c),v>=0&&v<=1&&(o[u++]=v)}}returnu}functionh(t,e,r,n,i,a){varo=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,h=(s-o)*i+o,u=(l-s)*i+s,c=(u-h)*i+h;a[0]=t,a[1]=o,a[2]=h,a[3]=c,a[4]=c,a[5]=u,a[6]=l,a[7]=n}functionu(t,e,r,n,i,o,s,l,h,u,c){varf,d,v,g,p,m=.005,x=1/0;k[0]=h,k[1]=u;for(varw=0;w<1;w+=.05)C[0]=a(t,r,i,s,w),C[1]=a(e,n,o,l,w),(g=y(k,C))<x&&(f=w,x=g);x=1/0;for(varb=0;b<32&&!(m<S);b++)d=f-m,v=f+m,C[0]=a(t,r,i,s,d),C[1]=a(e,n,o,l,d),g=y(C,k),d>=0&&g<x?(f=d,x=g):(P[0]=a(t,r,i,s,v),P[1]=a(e,n,o,l,v),p=y(P,k),v<=1&&p<x?(f=v,x=p):m*=.5);returnc&&(c[0]=a(t,r,i,s,f),c[1]=a(e,n,o,l,f)),_(x)}functionc(t,e,r,n){vari=1-n;returni*(i*t+2*n*e)+n*n*r}functionf(t,e,r,n){return2*((1-n)*(e-t)+n*(r-e))}functiond(t,e,r,a,o){vars=t-2*e+r,l=2*(e-t),h=t-a,u=0;if(n(s)){if(i(l)){varc=-h/l;c>=0&&c<=1&&(o[u++]=c)}}else{varf=l*l-4*s*h;if(n(f)){varc=-l/(2*s);c>=0&&c<=1&&(o[u++]=c)}elseif(f>0){vard=_(f),c=(-l+d)/(2*s),v=(-l-d)/(2*s);c>=0&&c<=1&&(o[u++]=c),v>=0&&v<=1&&(o[u++]=v)}}returnu}functionv(t,e,r){varn=t+r-2*e;return0===n?.5:(t-e)/n}functiong(t,e,r,n,i){vara=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}functionp(t,e,r,n,i,a,o,s,l){varh,u=.005,f=1/0;k[0]=o,k[1]=s;for(vard=0;d<1;d+=.05){C[0]=c(t,r,i,d),C[1]=c(e,n,a,d);varv=y(k,C);v<f&&(h=d,f=v)}f=1/0;for(varg=0;g<32&&!(u<S);g++){varp=h-u,m=h+u;C[0]=c(t,r,i,p),C[1]=c(e,n,a,p);varv=y(C,k);if(p>=0&&v<f)h=p,f=v;else{P[0]=c(t,r,i,m),P[1]=c(e,n,a,m);varx=y(P,k);m<=1&&x<f?(h=m,f=x):u*=.5}}returnl&&(l[0]=c(t,r,i,h),l[1]=c(e,n,a,h)),_(f)}varm=r(2),x=m.create,y=m.distSquare,w=Math.pow,_=Math.sqrt,b=1e-8,S=1e-4,M=_(3),T=1/3,k=x(),C=x(),P=x();e.cubicAt=a,e.cubicDerivativeAt=o,e.cubicRootAt=s,e.cubicExtrema=l,e.cubicSubdivide=h,e.cubicProjectPoint=u,e.quadraticAt=c,e.quadraticDerivativeAt=f,e.quadraticRootAt=d,e.quadraticExtremum=v,e.quadraticSubdivide=g,e.quadraticProjectPoint=p},function(t,e,r){functionn(t,e){L[t]=e}functioni(t,e){e=e||D;varr=t+":"+e;if(P[r])returnP[r];for(varn=(t+"").split("\n"),i=0,a=0,o=n.length;a<o;a++)i=Math.max(p(n[a],e).width,i);returnI>A&&(I=0,P={}),I++,P[r]=i,i}functiona(t,e,r,n,i,a,l){returna?s(t,e,r,n,i,a,l):o(t,e,r,n,i,l)}functiono(t,e,r,n,a,o){vars=m(t,e,a,o),u=i(t,e);a&&(u+=a[1]+a[3]);varc=s.outerHeight,f=l(0,u,r),d=h(0,c,n),v=new_(f,d,u,c);returnv.lineHeight=s.lineHeight,v}functions(t,e,r,n,i,a,o){vars=x(t,{rich:a,truncate:o,font:e,textAlign:r,textPadding:i}),u=s.outerWidth,c=s.outerHeight,f=l(0,u,r),d=h(0,c,n);returnnew_(f,d,u,c)}functionl(t,e,r){return"right"===r?t-=e:"center"===r&&(t-=e/2),t}functionh(t,e,r){return"middle"===r?t-=e/2:"bottom"===r&&(t-=e),t}functionu(t,e,r){varn=e.x,i=e.y,a=e.height,o=e.width,s=a/2,l="left",h="top";switch(t){case"left":n-=r,i+=s,l="right",h="middle";break;case"right":n+=r+o,i+=s,h="middle";break;case"top":n+=o/2,i-=r,l="center",h="bottom";break;case"bottom":n+=o/2,i+=a+r,l="center";break;case"inside":n+=o/2,i+=s,l="center",h="middle";break;case"insideLeft":n+=r,i+=s,h="middle";break;case"insideRight":n+=o-r,i+=s,l="right",h="middle";break;case"insideTop":n+=o/2,i+=r,l="center";break;case"insideBottom":n+=o/2,i+=a-r,l="center",h="bottom";break;case"insideTopLeft":n+=r,i+=r;break;case"insideTopRight":n+=o-r,i+=r,l="right";break;case"insideBottomLeft":n+=r,i+=a-r,h="bottom";break;case"insideBottomRight":n+=o-r,i+=a-r,l="right",h="bottom"}return{x:n,y:i,textAlign:l,textVerticalAlign:h}}functionc(t,e,r,n,i){if(!e)return"";vara=(t+"").split("\n");i=f(e,r,n,i);for(varo=0,s=a.length;o<s;o++)a[o]=d(a[o],i);returna.join("\n")}functionf(t,e,r,n){n=T({},n),n.font=e;varr=k(r,"...");n.maxIterations=k(n.maxIterations,2);vara=n.minChar=k(n.minChar,0);n.cnCharWidth=i("国",e);varo=n.ascCharWidth=i("a",e);n.placeholder=k(n.placeholder,"");for(vars=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;varh=i(r);returnh>s&&(r="",h=0),s=t-h,n.ellipsis=r,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=t,n}functiond(t,e){varr=e.containerWidth,n=e.font,a=e.contentWidth;if(!r)return"";varo=i(t,n);if(o<=r)returnt;for(vars=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}varl=0===s?v(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=i(t,n)}return""===t&&(t=e.placeholder),t}functionv(t,e,r,n){for(vari=0,a=0,o=t.length;a<o&&i<e;a++){vars=t.charCodeAt(a);i+=0<=s&&s<=127?r:n}returna}functiong(t){returni("国",t)}functionp(t,e){returnL.measureText(t,e)}functionm(t,e,r,n){null!=t&&(t+="");vari=g(e),a=t?t.split("\n"):[],o=a.length*i,s=o;if(r&&(s+=r[0]+r[2]),t&&n){varl=n.outerHeight,h=n.outerWidth;if(null!=l&&s>l)t="",a=[];elseif(null!=h)for(varu=f(h-(r?r[1]+r[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,v=a.length;c<v;c++)a[c]=d(a[c],u)}return{lines:a,height:o,outerHeight:s,lineHeight:i}}functionx(t,e){varr={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)returnr;for(varn,a=O.lastIndex=0;null!=(n=O.exec(t));){varo=n.index;o>a&&y(r,t.substring(a,o)),y(r,n[2],n[1]),a=O.lastIndex}a<t.length&&y(r,t.substring(a,t.length));vars=r.lines,l=0,h=0,u=[],f=e.textPadding,d=e.truncate,v=d&&d.outerWidth,p=d&&d.outerHeight;f&&(null!=v&&(v-=f[1]+f[3]),null!=p&&(p-=f[0]+f[2]));for(varm=0;m<s.length;m++){for(varx=s[m],w=0,_=0,S=0;S<x.tokens.length;S++){varM=x.tokens[S],T=M.styleName&&e.rich[M.styleName]||{},P=M.textPadding=T.textPadding,I=M.font=T.font||e.font,A=M.textHeight=k(T.textHeight,g(I));if(P&&(A+=P[0]+P[2]),M.height=A,M.lineHeight=C(T.textLineHeight,e.textLineHeight,A),M.textAlign=T&&T.textAlign||e.textAlign,M.textVerticalAlign=T&&T.textVerticalAlign||"middle",null!=p&&l+M.lineHeight>p)return{lines:[],width:0,height:0};M.textWidth=i(M.text,I);varD=T.textWidth,L=null==D||"auto"===D;if("string"==typeofD&&"%"===D.charAt(D.length-1))M.percentWidth=D,u.push(M),D=0;else{if(L){D=M.textWidth;varF=T.textBackgroundColor,R=F&&F.image;R&&(R=b.findExistImage(R),b.isImageReady(R)&&(D=Math.max(D,R.width*A/R.height)))}varB=P?P[1]+P[3]:0;D+=B;varz=null!=v?v-_:null;null!=z&&z<D&&(!L||z<B?(M.text="",M.textWidth=D=0):(M.text=c(M.text,z-B,I,d.ellipsis,{minChar:d.minChar}),M.textWidth=i(M.text,I),D=M.textWidth+B))}_+=M.width=D,T&&(w=Math.max(w,M.lineHeight))}x.width=_,x.lineHeight=w,l+=w,h=Math.max(h,_)}r.outerWidth=r.width=k(e.textWidth,h),r.outerHeight=r.height=k(e.textHeight,l),f&&(r.outerWidth+=f[1]+f[3],r.outerHeight+=f[0]+f[2]);for(varm=0;m<u.length;m++){varM=u[m],N=M.percentWidth;M.width=parseInt(N,10)/100*h}returnr}functiony(t,e,r){for(varn=""===e,i=e.split("\n"),a=t.lines,o=0;o<i.length;o++){vars=i[o],l={styleName:r,text:s,isLineHolder:!s&&!n};if(o)a.push({tokens:[l]});else{varh=(a[a.length-1]||(a[0]={tokens:[]})).tokens,u=h.length;1===u&&h[0].isLineHolder?h[0]=l:(s||!u||n)&&h.push(l)}}}functionw(t){return(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ")||t.textFont||t.font}var_=r(3),b=r(10),S=r(0),M=S.getContext,T=S.extend,k=S.retrieve2,C=S.retrieve3,P={},I=0,A=5e3,O=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,D="12px sans-serif",L={};L.measureText=function(t,e){varr=M();returnr.font=e||D,r.measureText(t)},e.DEFAULT_FONT=D,e.$override=n,e.getWidth=i,e.getBoundingRect=a,e.adjustTextX=l,e.adjustTextY=h,e.adjustTextPositionOnRect=u,e.truncateText=c,e.getLineHeight=g,e.measureText=p,e.parsePlainText=m,e.parseRichText=x,e.makeFont=w},function(t,e,r){varn=r(4),i=r(2),a=r(49),o=r(3),s=r(19),l=s.devicePixelRatio,h={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],f=[],d=[],v=Math.min,g=Math.max,p=Math.cos,m=Math.sin,x=Math.sqrt,y=Math.abs,w="undefined"!=typeofFloat32Array,_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/l/t)||0,this._uy=y(1/l/e)||0},getContext:function(){returnthis._ctx},beginPath:function(t){returnthis._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){returnthis.addData(h.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){varr=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;returnthis.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,n,i,a){returnthis.addData(h.C,t,e,r,n,i,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,r,n,i,a):this._ctx.bezierCurveTo(t,e,r,n,i,a)),this._xi=i,this._yi=a,this},quadraticCurveTo:function(t,e,r,n){returnthis.addData(h.Q,t,e,r,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,r,n):this._ctx.quadraticCurveTo(t,e,r,n)),this._xi=r,this._yi=n,this},arc:function(t,e,r,n,i,a){returnthis.addData(h.A,t,e,r,r,n,i-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,r,n,i,a),this._xi=p(i)*r+t,this._yi=m(i)*r+t,this},arcTo:function(t,e,r,n,i){returnthis._ctx&&this._ctx.arcTo(t,e,r,n,i),this},rect:function(t,e,r,n){returnthis._ctx&&this._ctx.rect(t,e,r,n),this.addData(h.R,t,e,r,n),this},closePath:function(){this.addData(h.Z);vart=this._ctx,e=this._x0,r=this._y0;returnt&&(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(tinstanceofArray){this._lineDash=t,this._dashIdx=0;for(vare=0,r=0;r<t.length;r++)e+=t[r];this._dashSum=e}returnthis},setLineDashOffset:function(t){returnthis._dashOffset=t,this},len:function(){returnthis._len},setData:function(t){vare=t.length;this.data&&this.data.length==e||!w||(this.data=newFloat32Array(e));for(varr=0;r<e;r++)this.data[r]=t[r];this._len=e},appendPath:function(t){tinstanceofArray||(t=[t]);for(vare=t.length,r=0,n=this._len,i=0;i<e;i++)r+=t[i].len();w&&this.datainstanceofFloat32Array&&(this.data=newFloat32Array(n+r));for(vari=0;i<e;i++)for(vara=t[i].data,o=0;o<a.length;o++)this.data[n++]=a[o];this._len=n},addData:function(t){if(this._saveData){vare=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(varr=0;r<arguments.length;r++)e[this._len++]=arguments[r];this._prevCmd=t}},_expandData:function(){if(!(this.datainstanceofArray)){for(vart=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){returnthis._lineDash},_dashedLineTo:function(t,e){varr,n,i=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,h=this._yi,u=t-l,c=e-h,f=x(u*u+c*c),d=l,p=h,m=o.length;for(u/=f,c/=f,a<0&&(a=i+a),a%=i,d-=a*u,p-=a*c;u>0&&d<=t||u<0&&d>=t||0==u&&(c>0&&p<=e||c<0&&p>=e);)n=this._dashIdx,r=o[n],d+=u*r,p+=c*r,this._dashIdx=(n+1)%m,u>0&&d<l||u<0&&d>l||c>0&&p<h||c<0&&p>h||s[n%2?"moveTo":"lineTo"](u>=0?v(d,t):g(d,t),c>=0?v(p,e):g(p,e));u=d-t,c=p-e,this._dashOffset=-x(u*u+c*c)},_dashedBezierTo:function(t,e,r,i,a,o){vars,l,h,u,c,f=this._dashSum,d=this._dashOffset,v=this._lineDash,g=this._ctx,p=this._xi,m=this._yi,y=n.cubicAt,w=0,_=this._dashIdx,b=v.length,S=0;for(d<0&&(d=f+d),d%=f,s=0;s<1;s+=.1)l=y(p,t,r,a,s+.1)-y(p,t,r,a,s),h=y(m,e,i,o,s+.1)-y(m,e,i,o,s),w+=x(l*l+h*h);for(;_<b&&!((S+=v[_])>d);_++);for(s=(S-d)/w;s<=1;)u=y(p,t,r,a,s),c=y(m,e,i,o,s),_%2?g.moveTo(u,c):g.lineTo(u,c),s+=v[_]/w,_=(_+1)%b;_%2!=0&&g.lineTo(a,o),l=a-u,h=o-c,this._dashOffset=-x(l*l+h*h)},_dashedQuadraticTo:function(t,e,r,n){vari=r,a=n;r=(r+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,r,n,i,a)},toStatic:function(){vart=this.data;tinstanceofArray&&(t.length=this._len,w&&(this.data=newFloat32Array(t)))},getBoundingRect:function(){u[0]=u[1]=f[0]=f[1]=Number.MAX_VALUE,c[0]=c[1]=d[0]=d[1]=-Number.MAX_VALUE;for(vart=this.data,e=0,r=0,n=0,s=0,l=0;l<t.length;){varv=t[l++];switch(1==l&&(e=t[l],r=t[l+1],n=e,s=r),v){caseh.M:n=t[l++],s=t[l++],e=n,r=s,f[0]=n,f[1]=s,d[0]=n,d[1]=s;break;caseh.L:a.fromLine(e,r,t[l],t[l+1],f,d),e=t[l++],r=t[l++];break;caseh.C:a.fromCubic(e,r,t[l++],t[l++],t[l++],t[l++],t[l],t[l+1],f,d),e=t[l++],r=t[l++];break;caseh.Q:a.fromQuadratic(e,r,t[l++],t[l++],t[l],t[l+1],f,d),e=t[l++],r=t[l++];break;caseh.A:varg=t[l++],x=t[l++],y=t[l++],w=t[l++],_=t[l++],b=t[l++]+_,S=(t[l++],1-t[l++]);1==l&&(n=p(_)*y+g,s=m(_)*w+x),a.fromArc(g,x,y,w,_,b,S,f,d),e=p(b)*y+g,r=m(b)*w+x;break;caseh.R:n=e=t[l++],s=r=t[l++];varM=t[l++],T=t[l++];a.fromLine(n,s,n+M,s+T,f,d);break;caseh.Z:e=n,r=s}i.min(u,u,f),i.max(c,c,d)}return0===l&&(u[0]=u[1]=c[0]=c[1]=0),newo(u[0],u[1],c[0]-u[0],c[1]-u[1])},rebuildPath:function(t){for(vare,r,n,i,a,o,s=this.data,l=this._ux,u=this._uy,c=this._len,f=0;f<c;){vard=s[f++];switch(1==f&&(n=s[f],i=s[f+1],e=n,r=i),d){caseh.M:e=n=s[f++],r=i=s[f++],t.moveTo(n,i);break;caseh.L:a=s[f++],o=s[f++],(y(a-n)>l||y(o-i)>u||f===c-1)&&(t.lineTo(a,o),n=a,i=o);break;caseh.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),n=s[f-2],i=s[f-1];break;caseh.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),n=s[f-2],i=s[f-1];break;caseh.A:varv=s[f++],g=s[f++],x=s[f++],w=s[f++],_=s[f++],b=s[f++],S=s[f++],M=s[f++],T=x>w?x:w,k=x>w?1:x/w,C=x>w?w/x:1,P=Math.abs(x-w)>.001,I=_+b;P?(t.translate(v,g),t.rotate(S),t.scale(k,C),t.arc(0,0,T,_,I,1-M),t.scale(1/k,1/C),t.rotate(-S),t.translate(-v,-g)):t.arc(v,g,T,_,I,1-M),1==f&&(e=p(_)*x+v,r=m(_)*w+g),n=p(I)*x+v,i=m(I)*w+g;break;caseh.R:e=n=s[f],r=i=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;caseh.Z:t.closePath(),n=e,i=r}}}},_.CMD=h;varb=_;t.exports=b},function(e,r){e.exports=t},function(t,e){functionr(){vart=newu(6);returnn(t),t}functionn(t){returnt[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}functioni(t,e){returnt[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}functiona(t,e,r){varn=e[0]*r[0]+e[2]*r[1],i=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],l=e[1]*r[4]+e[3]*r[5]+e[5];returnt[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}functiono(t,e,r){returnt[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}functions(t,e,r){varn=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],h=Math.sin(r),u=Math.cos(r);returnt[0]=n*u+o*h,t[1]=-n*h+o*u,t[2]=i*u+s*h,t[3]=-i*h+u*s,t[4]=u*a+h*l,t[5]=u*l-h*a,t}functionl(t,e,r){varn=r[0],i=r[1];returnt[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}functionh(t,e){varr=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;returnl?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}varu="undefined"==typeofFloat32Array?Array:Float32Array;e.create=r,e.identity=n,e.copy=i,e.mul=a,e.translate=o,e.rotate=s,e.scale=l,e.invert=h},function(t,e,r){functionn(t){returnt.replace(/^\s+/,"").replace(/\s+$/,"")}functioni(t,e,r,n){vari=e[1]-e[0],a=r[1]-r[0];if(0===i)return0===a?r[0]:(r[0]+r[1])/2;if(n)if(i>0){if(t<=e[0])returnr[0];if(t>=e[1])returnr[1]}else{if(t>=e[0])returnr[0];if(t<=e[1])returnr[1]}else{if(t===e[0])returnr[0];if(t===e[1])returnr[1]}return(t-e[0])/i*a+r[0]}functiona(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeoft?n(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}functiono(t,e,r){returnnull==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),r?t:+t}functions(t){returnt.sort(function(t,e){returnt-e}),t}functionl(t){if(t=+t,isNaN(t))return0;for(vare=1,r=0;Math.round(t*e)/e!==t;)e*=10,r++;returnr}functionh(t){vare=t.toString(),r=e.indexOf("e");if(r>0){varn=+e.slice(r+1);returnn<0?-n:0}vari=e.indexOf(".");returni<0?0:e.length-1-i}functionu(t,e){varr=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);returnisFinite(o)?o:20}functionc(t,e,r){if(!t[e])return0;varn=w.reduce(t,function(t,e){returnt+(isNaN(e)?0:e)},0);if(0===n)return0;for(vari=Math.pow(10,r),a=w.map(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,s=w.map(a,function(t){returnMath.floor(t)}),l=w.reduce(s,function(t,e){returnt+e},0),h=w.map(a,function(t,e){returnt-s[e]});l<o;){for(varu=Number.NEGATIVE_INFINITY,c=null,f=0,d=h.length;f<d;++f)h[f]>u&&(u=h[f],c=f);++s[c],h[c]=0,++l}returns[e]/i}functionf(t){vare=2*Math.PI;return(t%e+e)%e}functiond(t){returnt>-_&&t<_}functionv(t){if(tinstanceofDate)returnt;if("string"==typeoft){vare=b.exec(t);if(!e)returnnewDate(NaN);if(e[8]){varr=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(r-=e[8].slice(0,3)),newDate(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,+e[7]||0))}returnnewDate(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}returnnull==t?newDate(NaN):newDate(Math.round(t))}functiong(t){returnMath.pow(10,p(t))}functionp(t){returnMath.floor(Math.log(t)/Math.LN10)}functionm(t,e){varr,n=p(t),i=Math.pow(10,n),a=t/i;returnr=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=r*i,n>=-20?+t.toFixed(n<0?-n:0):t}functionx(t){functione(t,r,n){returnt.interval[n]<r.interval[n]||t.interval[n]===r.interval[n]&&(t.close[n]-r.close[n]==(n?-1:1)||!n&&e(t,r,1))}t.sort(function(t,r){returne(t,r,0)?-1:1});for(varr=-1/0,n=1,i=0;i<t.length;){for(vara=t[i].interval,o=t[i].close,s=0;s<2;s++)a[s]<=r&&(a[s]=r,o[s]=s?1:1-n),r=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}returnt}functiony(t){returnt-parseFloat(t)>=0}varw=r(0),_=1e-4,b=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;e.linearMap=i,e.parsePercent=a,e.round=o,e.asc=s,e.getPrecision=l,e.getPrecisionSafe=h,e.getPixelPrecision=u,e.getPercentWithPrecision=c,e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=f,e.isRadianAroundZero=d,e.parseDate=v,e.quantity=g,e.nice=m,e.reformIntervals=x,e.isNumeric=y},function(t,e,r){functionn(t){if("string"==typeoft){vare=l.get(t);returne&&e.image}returnt}functioni(t,e,r,n,i){if(t){if("string"==typeoft){if(e&&e.__zrImageSrc===t||!r)returne;vars=l.get(t),h={hostEl:r,cb:n,cbPayload:i};returns?(e=s.image,!o(e)&&s.pending.push(h)):(!e&&(e=newImage),e.onload=a,l.put(t,e.__cachedImgObj={image:e,pending:[h]}),e.src=e.__zrImageSrc=t),e}returnt}returne}functiona(){vart=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(vare=0;e<t.pending.length;e++){varr=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}functiono(t){returnt&&t.width&&t.height}vars=r(14),l=news(50);e.findExistImage=n,e.createOrUpdateImage=i,e.isImageReady=o},function(t,e,r){functionn(t){for(vare=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);returnfunction(e,r,n){for(vara={},o=0;o<t.length;o++){vars=t[o][1];if(!(r&&i.indexOf(r,s)>=0||n&&i.indexOf(n,s)<0)){varl=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}returna}}vari=r(0);t.exports=n},function(t,e,r){functionn(t){t=t||{},o.call(this,t);for(vareint)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=newa(t.style,this),this._rect=null,this.__clipPaths=[]}vari=r(0),a=r(40),o=r(16),s=r(48);n.prototype={constructor:n,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){returnthis.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){varr=this.transformCoordToLocal(t,e);returnthis.getBoundingRect().contain(r[0],r[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){returnthis.animate("style",t)},attrKV:function(t,e){"style"!==t?o.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){returnthis.style.set(t,e),this.dirty(!1),this},useStyle:function(t){returnthis.style=newa(t,this),this.dirty(!1),this}},i.inherits(n,o),i.mixin(n,s);varl=n;t.exports=l},function(t,e,r){functionn(t){returnisNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}functioni(t,e){returnt=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){returne.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}functiona(t){returnString(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}functiono(t,e,r){c.isArray(e)||(e=[e]);varn=e.length;if(!n)return"";for(vari=e[0].$vars||[],o=0;o<i.length;o++){vars=g[o],l=p(s,0);t=t.replace(p(s),r?a(l):l)}for(varh=0;h<n;h++)for(varu=0;u<i.length;u++){varl=e[h][i[u]];t=t.replace(p(g[u],h),r?a(l):l)}returnt}functions(t,e,r){returnc.each(e,function(e,n){t=t.replace("{"+n+"}",r?a(e):e)}),t}functionl(t,e){returnt?'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+a(t)+";"+(e||"")+'"></span>':""}functionh(t,e,r){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");varn=d.parseDate(e),i=r?"UTC":"",a=n["get"+i+"FullYear"](),o=n["get"+i+"Month"]()+1,s=n["get"+i+"Date"](),l=n["get"+i+"Hours"](),h=n["get"+i+"Minutes"](),u=n["get"+i+"Seconds"]();returnt=t.replace("MM",m(o)).replace("M",o).replace("yyyy",a).replace("yy",a%100).replace("dd",m(s)).replace("d",s).replace("hh",m(l)).replace("h",l).replace("mm",m(h)).replace("m",h).replace("ss",m(u)).replace("s",u)}functionu(t){returnt?t.charAt(0).toUpperCase()+t.substr(1):t}varc=r(0),f=r(5),d=r(9),v=c.normalizeCssArray,g=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(null==e?"":e)+"}"},m=function(t){returnt<10?"0"+t:t},x=f.truncateText,y=f.getBoundingRect;e.addCommas=n,e.toCamelCase=i,e.normalizeCssArray=v,e.encodeHTML=a,e.formatTpl=o,e.formatTplSimple=s,e.getTooltipMarker=l,e.formatTime=h,e.capitalFirst=u,e.truncateText=x,e.getTextRect=y},function(t,e){varr=function(){this.head=null,this.tail=null,this._len=0},n=r.prototype;n.insert=function(t){vare=newi(t);returnthis.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){vare=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){returnthis._len},n.clear=function(){this.head=this.tail=null,this._len=0};vari=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=newr,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},o=a.prototype;o.put=function(t,e){varr=this._list,n=this._map,a=null;if(null==n[t]){varo=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){varl=r.head;r.remove(l),deleten[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=newi(e),s.key=t,r.insertEntry(s),n[t]=s}returna},o.get=function(t){vare=this._map[t],r=this._list;if(null!=e)returne!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}};vars=a;t.exports=s},function(t,e){varr={};r="undefined"==typeofnavigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:function(t){vare={},r={},n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);returnn&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1]),o&&(r.weChat=!0),{browser:r,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeofSVGRect,touchEventsSupported:"ontouchstart"inwindow&&!r.ie&&!r.edge,pointerEventsSupported:"onpointerdown"inwindow&&(r.edge||r.ie&&r.version>=11)}}(navigator.userAgent);varn=r;t.exports=n},function(t,e,r){varn=r(41),i=r(42),a=r(17),o=r(43),s=r(0),l=function(t){a.call(this,t),i.call(this,t),o.call(this,t),this.id=t.id||n()};l.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}varr=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){varr=this[t];r||(r=this[t]=[]),r[0]=e[0],r[1]=e[1]}}elsethis[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"==typeoft)this.attrKV(t,e);elseif(s.isObject(t))for(varrint)t.hasOwnProperty(r)&&this.attrKV(r,t[r]);returnthis.dirty(!1),this},setClipPath:function(t){vare=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(){vart=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;vare=this.animators;if(e)for(varr=0;r<e.length;r++)t.animation.addAnimator(e[r]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;vare=this.animators;if(e)for(varr=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,i);varh=l;t.exports=h},function(t,e,r){functionn(t){returnt>s||t<-s}vari=r(8),a=r(2),o=i.identity,s=5e-5,l=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},h=l.prototype;h.transform=null,h.needLocalTransform=function(){returnn(this.rotation)||n(this.position[0])||n(this.position[1])||n(this.scale[0]-1)||n(this.scale[1]-1)},h.updateTransform=function(){vart=this.parent,e=t&&t.transform,r=this.needLocalTransform(),n=this.transform;if(!r&&!e)returnvoid(n&&o(n));n=n||i.create(),r?this.getLocalTransform(n):o(n),e&&(r?i.mul(n,t.transform,n):i.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,n)},h.getLocalTransform=function(t){returnl.getLocalTransform(this,t)},h.setTransform=function(t){vare=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)},h.restoreTransform=function(t){vare=t.dpr||1;t.setTransform(e,0,0,e,0,0)};varu=[];h.decomposeTransform=function(){if(this.transform){vart=this.parent,e=this.transform;t&&t.transform&&(i.mul(u,t.invTransform,e),e=u);varr=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],o=this.position,s=this.scale;n(r-1)&&(r=Math.sqrt(r)),n(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)}},h.getGlobalScale=function(){vart=this.transform;if(!t)return[1,1];vare=Math.sqrt(t[0]*t[0]+t[1]*t[1]),r=Math.sqrt(t[2]*t[2]+t[3]*t[3]);returnt[0]<0&&(e=-e),t[3]<0&&(r=-r),[e,r]},h.transformCoordToLocal=function(t,e){varr=[t,e],n=this.invTransform;returnn&&a.applyTransform(r,r,n),r},h.transformCoordToGlobal=function(t,e){varr=[t,e],n=this.transform;returnn&&a.applyTransform(r,r,n),r},l.getLocalTransform=function(t,e){e=e||[],o(e);varr=t.origin,n=t.scale||[1,1],a=t.rotation||0,s=t.position||[0,0];returnr&&(e[4]-=r[0],e[5]-=r[1]),i.scale(e,e,n),a&&i.rotate(e,e,a),r&&(e[4]+=r[0],e[5]+=r[1]),e[4]+=s[0],e[5]+=s[1],e};varc=l;t.exports=c},function(t,e,r){functionn(t){returnt=Math.round(t),t<0?0:t>255?255:t}functioni(t){returnt=Math.round(t),t<0?0:t>360?360:t}functiona(t){returnt<0?0:t>1?1:t}functiono(t){returnn(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}functions(t){returna(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}functionl(t,e,r){returnr<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}functionh(t,e,r){returnt+(e-t)*r}functionu(t,e,r,n,i){returnt[0]=e,t[1]=r,t[2]=n,t[3]=i,t}functionc(t,e){returnt[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}functionf(t,e){k&&c(k,e),k=T.put(t,k||e.slice())}functiond(t,e){if(t){e=e||[];varr=T.get(t);if(r)returnc(e,r);t+="";varn=t.replace(/ /g,"").toLowerCase();if(ninM)returnc(e,M[n]),f(t,e),e;if("#"!==n.charAt(0)){vari=n.indexOf("("),a=n.indexOf(")");if(-1!==i&&a+1===n.length){varl=n.substr(0,i),h=n.substr(i+1,a-(i+1)).split(","),d=1;switch(l){case"rgba":if(4!==h.length)returnvoidu(e,0,0,0,1);d=s(h.pop());case"rgb":return3!==h.length?voidu(e,0,0,0,1):(u(e,o(h[0]),o(h[1]),o(h[2]),d),f(t,e),e);case"hsla":return4!==h.length?voidu(e,0,0,0,1):(h[3]=s(h[3]),v(h,e),f(t,e),e);case"hsl":return3!==h.length?voidu(e,0,0,0,1):(v(h,e),f(t,e),e);default:return}}u(e,0,0,0,1)}else{if(4===n.length){varg=parseInt(n.substr(1),16);returng>=0&&g<=4095?(u(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),f(t,e),e):voidu(e,0,0,0,1)}if(7===n.length){varg=parseInt(n.substr(1),16);returng>=0&&g<=16777215?(u(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),f(t,e),e):voidu(e,0,0,0,1)}}}}functionv(t,e){varr=(parseFloat(t[0])%360+360)%360/360,i=s(t[1]),a=s(t[2]),o=a<=.5?a*(i+1):a+i-a*i,h=2*a-o;returne=e||[],u(e,n(255*l(h,o,r+1/3)),n(255*l(h,o,r)),n(255*l(h,o,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}functiong(t){if(t){vare,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o,h=(s+o)/2;if(0===l)e=0,r=0;else{r=h<.5?l/(s+o):l/(2-s-o);varu=((s-n)/6+l/2)/l,c=((s-i)/6+l/2)/l,f=((s-a)/6+l/2)/l;n===s?e=f-c:i===s?e=1/3+u-f:a===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}vard=[360*e,r,h];returnnull!=t[3]&&d.push(t[3]),d}}functionp(t,e){varr=d(t);if(r){for(varn=0;n<3;n++)r[n]=e<0?r[n]*(1-e)|0:(255-r[n])*e+r[n]|0;returnb(r,4===r.length?"rgba":"rgb")}}functionm(t){vare=d(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)++e[2]).toString(16).slice(1)}functionx(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];vari=t*(e.length-1),o=Math.floor(i),s=Math.ceil(i),l=e[o],u=e[s],c=i-o;returnr[0]=n(h(l[0],u[0],c)),r[1]=n(h(l[1],u[1],c)),r[2]=n(h(l[2],u[2],c)),r[3]=a(h(l[3],u[3],c)),r}}functiony(t,e,r){if(e&&e.length&&t>=0&&t<=1){vari=t*(e.length-1),o=Math.floor(i),s=Math.ceil(i),l=d(e[o]),u=d(e[s]),c=i-o,f=b([n(h(l[0],u[0],c)),n(h(l[1],u[1],c)),n(h(l[2],u[2],c)),a(h(l[3],u[3],c))],"rgba");returnr?{color:f,leftIndex:o,rightIndex:s,value:i}:f}}functionw(t,e,r,n){if(t=d(t))returnt=g(t),null!=e&&(t[0]=i(e)),null!=r&&(t[1]=s(r)),null!=n&&(t[2]=s(n)),b(v(t),"rgba")}function_(t,e){if((t=d(t))&&null!=e)returnt[3]=a(e),b(t,"rgba")}functionb(t,e){if(t&&t.length){varr=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}}varS=r(14),M={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=newS(20),k=null,C=x,P=y;e.parse=d,e.lift=p,e.toHex=m,e.fastLerp=x,e.fastMapToColor=C,e.lerp=y,e.mapToColor=P,e.modifyHSL=w,e.modifyAlpha=_,e.stringify=b},function(t,e){varr=1;"undefined"!=typeofwindow&&(r=Math.max(window.devicePixelRatio||1,1));varn=r;e.debugMode=0,e.devicePixelRatio=n},function(t,e,r){functionn(t){returni(t),M(t.rich,i),t}functioni(t){if(t){t.font=P.makeFont(t);vare=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||O[e]?e:"left";varr=t.textVerticalAlign||t.textBaseline;"center"===r&&(r="middle"),t.textVerticalAlign=null==r||D[r]?r:"top";t.textPadding&&(t.textPadding=T(t.textPadding))}}functiona(t,e,r,n,i){n.rich?s(t,e,r,n,i):o(t,e,r,n,i)}functiono(t,e,r,n,i){vara=g(e,"font",n.font||P.DEFAULT_FONT),o=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=P.parsePlainText(r,a,o,n.truncate));varl=s.outerHeight,u=s.lines,d=s.lineHeight,x=v(l,n,i),w=x.baseX,_=x.baseY,b=x.textAlign,S=x.textVerticalAlign;h(e,n,i,w,_);varM=P.adjustTextY(_,l,S),T=w,k=M,C=c(n);if(C||o){varI=P.getWidth(r,a),A=I;o&&(A+=o[1]+o[3]);varO=P.adjustTextX(w,A,b);C&&f(t,e,n,O,M,A,l),o&&(T=y(w,b,o),k+=o[0])}g(e,"textAlign",b||"left"),g(e,"textBaseline","middle"),g(e,"shadowBlur",n.textShadowBlur||0),g(e,"shadowColor",n.textShadowColor||"transparent"),g(e,"shadowOffsetX",n.textShadowOffsetX||0),g(e,"shadowOffsetY",n.textShadowOffsetY||0),k+=d/2;varD=n.textStrokeWidth,L=p(n.textStroke,D),F=m(n.textFill);L&&(g(e,"lineWidth",D),g(e,"strokeStyle",L)),F&&g(e,"fillStyle",F);for(varR=0;R<u.length;R++)L&&e.strokeText(u[R],T,k),F&&e.fillText(u[R],T,k),k+=d}functions(t,e,r,n,i){vara=t.__textCotentBlock;a&&!t.__dirty||(a=t.__textCotentBlock=P.parseRichText(r,n)),l(t,e,a,n,i)}functionl(t,e,r,n,i){vara=r.width,o=r.outerWidth,s=r.outerHeight,l=n.textPadding,d=v(s,n,i),g=d.baseX,p=d.baseY,m=d.textAlign,x=d.textVerticalAlign;h(e,n,i,g,p);vary=P.adjustTextX(g,o,m),w=P.adjustTextY(p,s,x),_=y,b=w;l&&(_+=l[3],b+=l[0]);varS=_+a;c(n)&&f(t,e,n,y,w,o,s);for(varM=0;M<r.lines.length;M++){for(varT,k=r.lines[M],C=k.tokens,I=C.length,A=k.lineHeight,O=k.width,D=0,L=_,F=S,R=I-1;D<I&&(T=C[D],!T.textAlign||"left"===T.textAlign);)u(t,e,T,n,A,b,L,"left"),O-=T.width,L+=T.width,D++;for(;R>=0&&(T=C[R],"right"===T.textAlign);)u(t,e,T,n,A,b,F,"right"),O-=T.width,F-=T.width,R--;for(L+=(a-(L-_)-(S-F)-O)/2;D<=R;)T=C[D],u(t,e,T,n,A,b,L+T.width/2,"center"),L+=T.width,D++;b+=A}}functionh(t,e,r,n,i){if(r&&e.textRotation){vara=e.textOrigin;"center"===a?(n=r.width/2+r.x,i=r.height/2+r.y):a&&(n=a[0]+r.x,i=a[1]+r.y),t.translate(n,i),t.rotate(-e.textRotation),t.translate(-n,-i)}}functionu(t,e,r,n,i,a,o,s){varl=n.rich[r.styleName]||{},h=r.textVerticalAlign,u=a+i/2;"top"===h?u=a+r.height/2:"bottom"===h&&(u=a+i-r.height/2),!r.isLineHolder&&c(l)&&f(t,e,l,"right"===s?o-r.width:"center"===s?o-r.width/2:o,u-r.height/2,r.width,r.height);vard=r.textPadding;d&&(o=y(o,s,d),u-=r.height/2-d[2]-r.textHeight/2),g(e,"shadowBlur",S(l.textShadowBlur,n.textShadowBlur,0)),g(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),g(e,"shadowOffsetX",S(l.textShadowOffsetX,n.textShadowOffsetX,0)),g(e,"shadowOffsetY",S(l.textShadowOffsetY,n.textShadowOffsetY,0)),g(e,"textAlign",s),g(e,"textBaseline","middle"),g(e,"font",r.font||P.DEFAULT_FONT);varv=p(l.textStroke||n.textStroke,w),x=m(l.textFill||n.textFill),w=b(l.textStrokeWidth,n.textStrokeWidth);v&&(g(e,"lineWidth",w),g(e,"strokeStyle",v),e.strokeText(r.text,o,u)),x&&(g(e,"fillStyle",x),e.fillText(r.text,o,u))}functionc(t){returnt.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}functionf(t,e,r,n,i,a,o){vars=r.textBackgroundColor,l=r.textBorderWidth,h=r.textBorderColor,u=k(s);if(g(e,"shadowBlur",r.textBoxShadowBlur||0),g(e,"shadowColor",r.textBoxShadowColor||"transparent"),g(e,"shadowOffsetX",r.textBoxShadowOffsetX||0),g(e,"shadowOffsetY",r.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();varc=r.textBorderRadius;c?I.buildPath(e,{x:n,y:i,width:a,height:o,r:c}):e.rect(n,i,a,o),e.closePath()}if(u)g(e,"fillStyle",s),e.fill();elseif(C(s)){varf=s.image;f=A.createOrUpdateImage(f,null,t,d,s),f&&A.isImageReady(f)&&e.drawImage(f,n,i,a,o)}l&&h&&(g(e,"lineWidth",l),g(e,"strokeStyle",h),e.stroke())}functiond(t,e){e.image=t}functionv(t,e,r){varn=e.x||0,i=e.y||0,a=e.textAlign,o=e.textVerticalAlign;if(r){vars=e.textPosition;if(sinstanceofArray)n=r.x+x(s[0],r.width),i=r.y+x(s[1],r.height);else{varl=P.adjustTextPositionOnRect(s,r,e.textDistance);n=l.x,i=l.y,a=a||l.textAlign,o=o||l.textVerticalAlign}varh=e.textOffset;h&&(n+=h[0],i+=h[1])}return{baseX:n,baseY:i,textAlign:a,textVerticalAlign:o}}functiong(t,e,r){returnt[e]=r,t[e]}functionp(t,e){returnnull==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}functionm(t){returnnull==t||"none"===t?null:t.image||t.colorStops?"#000":t}functionx(t,e){return"string"==typeoft?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}functiony(t,e,r){return"right"===e?t-r[1]:"center"===e?t+r[3]/2-r[1]/2:t+r[3]}functionw(t,e){returnnull!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}var_=r(0),b=_.retrieve2,S=_.retrieve3,M=_.each,T=_.normalizeCssArray,k=_.isString,C=_.isObject,P=r(5),I=r(21),A=r(10),O={left:1,right:1,center:1},D={top:1,bottom:1,middle:1};e.normalizeTextStyle=n,e.renderText=a,e.getStroke=p,e.getFill=m,e.needDrawText=w},function(t,e){functionr(t,e){varr,n,i,a,o=e.x,s=e.y,l=e.width,h=e.height,u=e.r;l<0&&(o+=l,l=-l),h<0&&(s+=h,h=-h),"number"==typeofu?r=n=i=a=u:uinstanceofArray?1===u.length?r=n=i=a=u[0]:2===u.length?(r=i=u[0],n=a=u[1]):3===u.length?(r=u[0],n=a=u[1],i=u[2]):(r=u[0],n=u[1],i=u[2],a=u[3]):r=n=i=a=0;varc;r+n>l&&(c=r+n,r*=l/c,n*=l/c),i+a>l&&(c=i+a,i*=l/c,a*=l/c),n+i>h&&(c=n+i,n*=h/c,i*=h/c),r+a>h&&(c=r+a,r*=h/c,a*=h/c),t.moveTo(o+r,s),t.lineTo(o+l-n,s),0!==n&&t.quadraticCurveTo(o+l,s,o+l,s+n),t.lineTo(o+l,s+h-i),0!==i&&t.quadraticCurveTo(o+l,s+h,o+l-i,s+h),t.lineTo(o+a,s+h),0!==a&&t.quadraticCurveTo(o,s+h,o,s+h-a),t.lineTo(o,s+r),0!==r&&t.quadraticCurveTo(o,s,o+r,s)}e.buildPath=r},function(t,e){functionr(t){returnt%=n,t<0&&(t+=n),t}varn=2*Math.PI;e.normalizeRadian=r},function(t,e,r){functionn(t,e,r){varn=e.points,o=e.smooth;if(n&&n.length>=2){if(o&&"spline"!==o){vars=a(n,o,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(varl=n.length,h=0;h<(r?l:l-1);h++){varu=s[2*h],c=s[2*h+1],f=n[(h+1)%l];t.bezierCurveTo(u[0],u[1],c[0],c[1],f[0],f[1])}}else{"spline"===o&&(n=i(n,r)),t.moveTo(n[0][0],n[0][1]);for(varh=1,d=n.length;h<d;h++)t.lineTo(n[h][0],n[h][1])}r&&t.closePath()}}vari=r(66),a=r(67);e.buildPath=n},function(t,e){varr=function(t){this.colorStops=t||[]};r.prototype={constructor:r,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};varn=r;t.exports=n},function(t,e,r){t.exports=r(26)},function(t,e,r){functionn(t){for(vare=t.getContext("2d"),r=e.getImageData(0,0,t.width,t.height),n=e.createImageData(r),i=0,a=0,o=0;o<r.data.length;o+=4){vars=r.data[o+3];if(s>128){varl=r.data[o]+r.data[o+1]+r.data[o+2];i+=l,++a}}for(varh=i/a,o=0;o<r.data.length;o+=4){varl=r.data[o]+r.data[o+1]+r.data[o+2],s=r.data[o+3];s<128||l>h?(n.data[o]=0,n.data[o+1]=0,n.data[o+2]=0,n.data[o+3]=0):(n.data[o]=255,n.data[o+1]=255,n.data[o+2]=255,n.data[o+3]=255)}e.putImageData(n,0,0)}vari=r(7),a=r(27);r(28),r(77);varo=r(78);if(!o.isSupported)thrownewError("Sorry your browser not support wordCloud");i.registerLayout(function(t,e){t.eachSeriesByType("wordCloud",function(r){functions(t){vare=t.detail.item;t.detail.drawn&&r.layoutInstance.ondraw&&(t.detail.drawn.gx+=l.x/m,t.detail.drawn.gy+=l.y/m,r.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}varl=a.getLayoutRect(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),h=r.getData(),u=document.createElement("canvas");u.width=l.width,u.height=l.height;varc=u.getContext("2d"),f=r.get("maskImage");if(f)try{c.drawImage(f,0,0,u.width,u.height),n(u)}catch(t){console.error("Invalid mask image"),console.error(t.toString())}vard=r.get("sizeRange"),v=r.get("rotationRange"),g=h.getDataExtent("value"),p=Math.PI/180,m=r.get("gridSize");o(u,{list:h.mapArray("value",function(t,e){varr=h.getItemModel(e);return[h.getName(e),r.get("textStyle.normal.textSize",!0)||i.number.linearMap(t,g,d),e]}).sort(function(t,e){returne[1]-t[1]}),fontFamily:r.get("textStyle.normal.fontFamily")||r.get("textStyle.emphasis.fontFamily")||t.get("textStyle.fontFamily"),fontWeight:r.get("textStyle.normal.fontWeight")||r.get("textStyle.emphasis.fontWeight")||t.get("textStyle.fontWeight"),gridSize:m,ellipticity:l.height/l.width,minRotation:v[0]*p,maxRotation:v[1]*p,clearCanvas:!f,rotateRatio:1,rotationStep:r.get("rotationStep")*p,drawOutOfBound:r.get("drawOutOfBound"),shuffle:!1,shape:r.get("shape")}),u.addEventListener("wordclouddrawn",s),r.layoutInstance&&r.layoutInstance.dispose(),r.layoutInstance={ondraw:null,dispose:function(){u.removeEventListener("wordclouddrawn",s),u.addEventListener("wordclouddrawn",function(t){t.preventDefault()})}}})}),i.registerPreprocessor(function(t){functione(t){t&&i.util.each(n,function(e){t.hasOwnProperty(e)&&(t["text"+i.format.capitalFirst(e)]=t[e])})}varr=(t||{}).series;!i.util.isArray(r)&&(r=r?[r]:[]);varn=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.util.each(r,function(t){if(t&&"wordCloud"===t.type){varr=t.textStyle||{};e(r.normal),e(r.emphasis)}})})},function(t,e,r){functionn(t,e,r,n,i){vara=0,o=0;null==n&&(n=1/0),null==i&&(i=1/0);vars=0;e.eachChild(function(l,h){varu,c,f=l.position,d=l.getBoundingRect(),v=e.childAt(h+1),g=v&&v.getBoundingRect();if("horizontal"===t){varp=d.width+(g?-g.x+d.x:0);u=a+p,u>n||l.newline?(a=0,u=p,o+=s+r,s=d.height):s=Math.max(s,d.height)}else{varm=d.height+(g?-g.y+d.y:0);c=o+m,c>i||l.newline?(a+=s+r,o=0,c=m,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=u+r:o=c+r)})}functioni(t,e,r){varn=e.width,i=e.height,a=v(t.x,n),o=v(t.y,i),s=v(t.x2,n),l=v(t.y2,i);return(isNaN(a)||isNaN(parseFloat(t.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=i),r=g.normalizeCssArray(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}functiona(t,e,r){r=g.normalizeCssArray(r||0);varn=e.width,i=e.height,a=v(t.left,n),o=v(t.top,i),s=v(t.right,n),l=v(t.bottom,i),h=v(t.width,n),u=v(t.height,i),c=r[2]+r[0],d=r[1]+r[3],p=t.aspect;switch(isNaN(h)&&(h=n-s-d-a),isNaN(u)&&(u=i-l-c-o),null!=p&&(isNaN(h)&&isNaN(u)&&(p>n/i?h=.8*n:u=.8*i),isNaN(h)&&(h=p*u),isNaN(u)&&(u=h/p)),isNaN(a)&&(a=n-s-h-d),isNaN(o)&&(o=i-l-u-c),t.left||t.right){case"center":a=n/2-h/2-r[3];break;case"right":a=n-h-d}switch(t.top||t.bottom){case"middle":case"center":o=i/2-u/2-r[0];break;case"bottom":o=i-u-c}a=a||0,o=o||0,isNaN(h)&&(h=n-d-a-(s||0)),isNaN(u)&&(u=i-c-o-(l||0));varm=newf(a+r[3],o+r[0],h,u);returnm.margin=r,m}functiono(t,e,r,n,i){varo=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o||s){varh;if("raw"===l)h="group"===t.type?newf(0,0,+e.width||0,+e.height||0):t.getBoundingRect();elseif(h=t.getBoundingRect(),t.needLocalTransform()){varu=t.getLocalTransform();h=h.clone(),h.applyTransform(u)}e=a(c.defaults({width:h.width,height:h.height},e),r,n);vard=t.position,v=o?e.x-h.x:0,g=s?e.y-h.y:0;t.attr("position","raw"===l?[v,g]:[d[0]+v,d[1]+g])}}functions(t,e){returnnull!=t[x[e][0]]||null!=t[x[e][1]]&&null!=t[x[e][2]]}functionl(t,e,r){functionn(r,n){varo={},l=0,h={},u=0;if(p(r,function(e){h[e]=t[e]}),p(r,function(t){i(e,t)&&(o[t]=h[t]=e[t]),a(o,t)&&l++,a(h,t)&&u++}),s[n])returna(e,r[1])?h[r[2]]=null:a(e,r[2])&&(h[r[1]]=null),h;if(2!==u&&l){if(l>=2)returno;for(varc=0;c<r.length;c++){varf=r[c];if(!i(o,f)&&i(t,f)){o[f]=t[f];break}}returno}returnh}functioni(t,e){returnt.hasOwnProperty(e)}functiona(t,e){returnnull!=t[e]&&"auto"!==t[e]}functiono(t,e,r){p(t,function(t){e[t]=r[t]})}!c.isObject(r)&&(r={});vars=r.ignoreSize;!c.isArray(s)&&(s=[s,s]);varl=n(x[0],0),h=n(x[1],1);o(x[0],t,l),o(x[1],t,h)}functionh(t){returnu({},t)}functionu(t,e){returne&&t&&p(m,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}varc=r(0),f=r(3),d=r(9),v=d.parsePercent,g=r(13),p=c.each,m=["left","right","top","bottom","width","height"],x=[["width","left","right"],["height","top","bottom"]],y=n,w=c.curry(n,"vertical"),_=c.curry(n,"horizontal");e.LOCATION_PARAMS=m,e.HV_NAMES=x,e.box=y,e.vbox=w,e.hbox=_,e.getAvailableSize=i,e.getLayoutRect=a,e.positionElement=o,e.sizeCalculable=s,e.mergeLayoutParam=l,e.getLayoutParams=h,e.copyLayoutParams=u},function(t,e,r){varn=r(29),i=r(7);i.extendSeriesModel({type:"series.wordCloud",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){vart=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){varr=n(["value"],t.data),a=newi.List(r,this);returna.initData(t.data),a},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{normal:{fontWeight:"normal"}}}})},function(t,e,r){functionn(t,e,r){functionn(t,e,r){c[e]?t.otherDims[e]=r:(t.coordDim=e,t.coordDimIndex=r,p.set(e,!0))}functiono(t,e,r){if(r||null!=e.get(t)){for(varn=0;null!=e.get(t+n);)n++;t+=n}returne.set(t,!0),t}e=e||[],r=r||{},t=(t||[]).slice();vard=(r.dimsDef||[]).slice(),v=a.createHashMap(r.encodeDef),g=a.createHashMap(),p=a.createHashMap(),m=[],x=r.dimCount;if(null==x){vary=i(e[0]);x=Math.max(a.isArray(y)&&y.length||1,t.length,d.length),l(t,function(t){vare=t.dimsDef;e&&(x=Math.max(x,e.length))})}for(varw=0;w<x;w++){var_=h(d[w])?{name:d[w]}:d[w]||{},b=_.name,S=m[w]={otherDims:{}};null!=b&&null==g.get(b)&&(S.name=S.tooltipName=b,g.set(b,w)),null!=_.type&&(S.type=_.type)}v.each(function(t,e){t=v.set(e,s(t).slice()),l(t,function(r,i){h(r)&&(r=g.get(r)),null!=r&&r<x&&(t[i]=r,n(m[r],e,i))})});varM=0;l(t,function(t,e){varr,t,i,o;h(t)?(r=t,t={}):(r=t.name,t=a.clone(t),i=t.dimsDef,o=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null);varc=s(v.get(r));if(!c.length)for(varf=0;f<(i&&i.length||1);f++){for(;M<m.length&&null!=m[M].coordDim;)M++;M<m.length&&c.push(M++)}l(c,function(e,a){vars=m[e];n(u(s,t),r,a),null==s.name&&i&&(s.name=s.tooltipName=i[a]),o&&u(s.otherDims,o)})});for(varT=r.extraPrefix||"value",k=0;k<x;k++){varS=m[k]=m[k]||{};null==S.coordDim&&(S.coordDim=o(T,p,r.extraFromZero),S.coordDimIndex=0,S.isExtraCoord=!0),null==S.name&&(S.name=o(S.coordDim,g)),null==S.type&&f(e,k)&&(S.type="ordinal")}returnm}functioni(t){returna.isArray(t)?t:a.isObject(t)?t.value:t}vara=r(0),o=r(30),s=o.normalizeToArray,l=a.each,h=a.isString,u=a.defaults,c={tooltip:1,label:1,itemName:1},f=n.guessOrdinal=function(t,e){for(varr=0,n=t.length;r<n;r++){varo=i(t[r]);if(!a.isArray(o))return!1;varo=o[e];if(null!=o&&isFinite(o)&&""!==o)return!1;if(h(o)&&"-"!==o)return!0}return!1},d=n;t.exports=d},function(t,e,r){functionn(t){returntinstanceofArray?t:null==t?[]:[t]}functioni(t,e){if(t)for(varr=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{},i=0,a=e.length;i<a;i++){varo=e[i];!r.hasOwnProperty(o)&&n.hasOwnProperty(o)&&(r[o]=n[o])}}functiona(t){returnt&&(null==t.value?t:t.value)}functiono(t){returnM(t)&&!(tinstanceofArray)}functions(t,e){varr=e&&e.type;return"ordinal"===r?t:("time"===r&&"number"!=typeoft&&null!=t&&"-"!==t&&(t=+_.parseDate(t)),null==t||""===t?NaN:+t)}functionl(t,e){varr=newb;returny.mixin(r,k),r.seriesIndex=e.seriesIndex,r.name=e.name||"",r.mainType=e.mainType,r.subType=e.subType,r.getData=function(){returnt},r}functionh(t,e){e=(e||[]).slice();varr=y.map(t||[],function(t,e){return{exist:t}});returnS(e,function(t,n){if(M(t)){for(vari=0;i<r.length;i++)if(!r[i].option&&null!=t.id&&r[i].exist.id===t.id+"")returnr[i].option=t,void(e[n]=null);for(vari=0;i<r.length;i++){vara=r[i].exist;if(!(r[i].option||null!=a.id&&null!=t.id||null==t.name||c(t)||c(a)||a.name!==t.name+""))returnr[i].option=t,void(e[n]=null)}}}),S(e,function(t,e){if(M(t)){for(varn=0;n<r.length;n++){vari=r[n].exist;if(!r[n].option&&!c(i)&&null==t.id){r[n].option=t;break}}n>=r.length&&r.push({option:t})}}),r}functionu(t){vare=y.createHashMap();S(t,function(t,r){varn=t.exist;n&&e.set(n.id,t)}),S(t,function(t,r){varn=t.option;y.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),S(t,function(t,r){varn=t.exist,i=t.option,a=t.keyInfo;if(M(i)){if(a.name=null!=i.name?i.name+"":n?n.name:"\0-",n)a.id=n.id;elseif(null!=i.id)a.id=i.id+"";else{varo=0;do{a.id="\0"+a.name+"\0"+o++}while(e.get(a.id))}e.set(a.id,t)}})}functionc(t){returnM(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}functionf(t,e){functionr(t,e,r){for(vari=0,a=t.length;i<a;i++)for(varo=t[i].seriesId,s=n(t[i].dataIndex),l=r&&r[o],h=0,u=s.length;h<u;h++){varc=s[h];l&&l[c]?l[c]=null:(e[o]||(e[o]={}))[c]=1}}functioni(t,e){varr=[];for(varnint)if(t.hasOwnProperty(n)&&null!=t[n])if(e)r.push(+n);else{vara=i(t[n],!0);a.length&&r.push({seriesId:n,dataIndex:a})}returnr}vara={},o={};returnr(t||[],a),r(e||[],o,a),[i(a),i(o)]}functiond(t,e){returnnull!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?y.isArray(e.dataIndex)?y.map(e.dataIndex,function(e){returnt.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?y.isArray(e.name)?y.map(e.name,function(e){returnt.indexOfName(e)}):t.indexOfName(e.name):void0}functionv(t,e,r){if(y.isString(e)){varn={};n[e+"Index"]=0,e=n}vari=r&&r.defaultMainType;!i||x(e,i+"Index")||x(e,i+"Id")||x(e,i+"Name")||(e[i+"Index"]=0);vara={};returnS(e,function(n,i){varn=e[i];if("dataIndex"===i||"dataIndexInside"===i)returnvoid(a[i]=n);varo=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=o[1],l=(o[2]||"").toLowerCase();if(!(!s||!l||null==n||"index"===l&&"none"===n||r&&r.includeMainTypes&&y.indexOf(r.includeMainTypes,s)<0)){varh={mainType:s};"index"===l&&"all"===n||(h[l]=n);varu=t.queryComponents(h);a[s+"Models"]=u,a[s+"Model"]=u[0]}}),a}functiong(t,e){varr=t.dimensions;e=t.getDimension(e);for(varn=0;n<r.length;n++){vari=t.getDimensionInfo(r[n]);if(i.name===e)returni.coordDim}}functionp(t,e){varr=[];returnS(t.dimensions,function(n){vari=t.getDimensionInfo(n);i.coordDim===e&&(r[i.coordDimIndex]=i.name)}),r}functionm(t,e){varr=[];returnS(t.dimensions,function(n){vari=t.getDimensionInfo(n),a=i.otherDims,o=a[e];null!=o&&!1!==o&&(r[o]=i.name)}),r}functionx(t,e){returnt&&t.hasOwnProperty(e)}vary=r(0),w=r(13),_=r(9),b=r(31),S=y.each,M=y.isObject,T=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],k={getDataParams:function(t,e){varr=this.getData(e),n=this.getRawValue(t,e),i=r.getRawIndex(t),a=r.getName(t,!0),o=r.getRawDataItem(t),s=r.getItemVisual(t,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:a,dataIndex:i,data:o,dataType:e,value:n,color:s,marker:w.getTooltipMarker(s),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,r,n,i){e=e||"normal";vara=this.getData(r),o=a.getItemModel(t),s=this.getDataParams(t,r);null!=n&&s.valueinstanceofArray&&(s.value=s.value[n]);varl=o.get([i||"label",e,"formatter"]);return"function"==typeofl?(s.status=e,l(s)):"string"==typeofl?w.formatTpl(l,s):void0},getRawValue:function(t,e){varr=this.getData(e),n=r.getRawDataItem(t);if(null!=n)return!M(n)||ninstanceofArray?n:n.value},formatTooltip:y.noop},C=function(){vart=0;returnfunction(){vare="\0__ec_prop_getter_"+t++;returnfunction(t){returnt[e]||(t[e]={})}}}();e.normalizeToArray=n,e.defaultEmphasis=i,e.TEXT_STYLE_OPTIONS=T,e.getDataItemValue=a,e.isDataItemOption=o,e.converDataValue=s,e.createDataFormatModel=l,e.dataFormatMixin=k,e.mappingToExists=h,e.makeIdAndName=u,e.isIdInner=c,e.compressBatches=f,e.queryDataIndex=d,e.makeGetter=C,e.parseFinder=v,e.dataDimToCoordDim=g,e.coordDimToDataDim=p,e.otherDimToDataDim=m},function(t,e,r){functionn(t,e,r){this.parentModel=e,this.ecModel=r,this.option=t}functioni(t,e,r){for(varn=0;n<e.length&&(!e[n]||null!=(t=t&&"object"==typeoft?t[e[n]]:null));n++);returnnull==t&&r&&(t=r.get(e)),t}functiona(t,e){varr=l.get(t,"getParent");returnr?r.call(t,e):t.parentModel}varo=r(0),s=r(15),l=r(32),h=r(35),u=r(36),c=r(37),f=r(76),d=o.mixin;n.prototype={constructor:n,init:null,mergeOption:function(t){o.merge(this.option,t,!0)},get:function(t,e){returnnull==t?this.option:i(this.option,this.parsePath(t),!e&&a(this,t))},getShallow:function(t,e){varr=this.option,n=null==r?r:r[t],i=!e&&a(this,t);returnnull==n&&i&&(n=i.getShallow(t)),n},getModel:function(t,e){varr,o=null==t?this.option:i(this.option,t=this.parsePath(t));returne=e||(r=a(this,t))&&r.getModel(t),newn(o,e,this.ecModel)},isEmpty:function(){returnnull==this.option},restoreData:function(){},clone:function(){returnnew(0,this.constructor)(o.clone(this.option))},setReadOnly:function(t){l.setReadOnly(this,t)},parsePath:function(t){return"string"==typeoft&&(t=t.split(".")),t},customizeGetParent:function(t){l.set(this,"getParent",t)},isAnimationEnabled:function(){if(!s.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)returnthis.parentModel.isAnimationEnabled()}}},l.enableClassExtend(n),d(n,h),d(n,u),d(n,c),d(n,f);varv=n;t.exports=v},function(t,e,r){functionn(t,e,r){returnt[m+e]=r}functioni(t,e){returnt[m+e]}functiona(t,e){returnt.hasOwnProperty(m+e)}functiono(t){vare={main:"",sub:""};returnt&&(t=t.split(g),e.main=t[0]||"",e.sub=t[1]||""),e}functions(t){v.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}functionl(t,e){t.$constructor=t,t.extend=function(t){vare=this,r=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};returnv.extend(r.prototype,t),r.extend=this.extend,r.superCall=h,r.superApply=u,v.inherits(r,this),r.superClass=e,r}}functionh(t,e){varr=v.slice(arguments,2);returnthis.superClass.prototype[e].apply(t,r)}functionu(t,e,r){returnthis.superClass.prototype[e].apply(t,r)}functionc(t,e){functionr(t){vare=n[t.main];returne&&e[p]||(e=n[t.main]={},e[p]=!0),e}e=e||{};varn={};if(t.registerClass=function(t,e){if(e)if(s(e),e=o(e),e.sub){if(e.sub!==p){vari=r(e);i[e.sub]=t}}elsen[e.main]=t;returnt},t.getClass=function(t,e,r){vari=n[t];if(i&&i[p]&&(i=e?i[e]:null),r&&!i)thrownewError(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");returni},t.getClassesByMainType=function(t){t=o(t);vare=[],r=n[t.main];returnr&&r[p]?v.each(r,function(t,r){r!==p&&e.push(t)}):e.push(r),e},t.hasClass=function(t){returnt=o(t),!!n[t.main]},t.getAllClassMainTypes=function(){vart=[];returnv.each(n,function(e,r){t.push(r)}),t},t.hasSubTypes=function(t){t=o(t);vare=n[t.main];returne&&e[p]},t.parseClassType=o,e.registerWhenExtend){vari=t.extend;i&&(t.extend=function(e){varr=i.call(this,e);returnt.registerClass(r,e.type)})}returnt}functionf(t,e){}vard=r(33),v=(d.__DEV__,r(0)),g=".",p="___EC__COMPONENT__CONTAINER___",m="\0ec_\0";e.set=n,e.get=i,e.hasOwn=a,e.parseClassType=o,e.enableClassExtend=l,e.enableClassManagement=c,e.setReadOnly=f},function(t,e,r){(function(t){varr;"undefined"!=typeofwindow?r=window.__DEV__:void0!==t&&(r=t.__DEV__),void0===r&&(r=!0);varn=r;e.__DEV__=n}).call(e,r(34))},function(t,e){varr;r=function(){returnthis}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeofwindow&&(r=window)}t.exports=r},function(t,e,r){varn=r(11),i=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(t){vare=i(this,t),r=this.getLineDash(e.lineWidth);returnr&&(e.lineDash=r),e},getLineDash:function(t){null==t&&(t=1);vare=this.get("type"),r=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[r,r]}};t.exports=a},function(t,e,r){varn=r(11),i=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(t,e){returni(this,t,e)}};t.exports=a},function(t,e,r){varn=r(5),i=r(38),a=["textStyle","color"],o={getTextColor:function(t){vare=this.ecModel;returnthis.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){returni.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){returnn.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},function(t,e,r){functionn(t){returnZ.extend(t)}functioni(t,e){returnV.extendFromString(t,e)}functiona(t,e,r,n){vari=V.createFromString(t,e),a=i.getBoundingRect();returnr&&("center"===n&&(r=s(r,a)),l(i,r)),i}functiono(t,e,r){varn=newK({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===r){vari={width:t.width,height:t.height};n.setStyle(s(e,i))}}});returnn}functions(t,e){varr,n=e.width/e.height,i=t.height*n;returni<=t.width?r=t.height:(i=t.width,r=i/n),{x:t.x+t.width/2-i/2,y:t.y+t.height/2-r/2,width:i,height:r}}functionl(t,e){if(t.applyTransform){varr=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}functionh(t){vare=t.shape,r=t.style.lineWidth;returnvt(2*e.x1)===vt(2*e.x2)&&(e.x1=e.x2=c(e.x1,r,!0)),vt(2*e.y1)===vt(2*e.y2)&&(e.y1=e.y2=c(e.y1,r,!0)),t}functionu(t){vare=t.shape,r=t.style.lineWidth,n=e.x,i=e.y,a=e.width,o=e.height;returne.x=c(e.x,r,!0),e.y=c(e.y,r,!0),e.width=Math.max(c(n+a,r,!1)-e.x,0===a?0:1),e.height=Math.max(c(i+o,r,!1)-e.y,0===o?0:1),t}functionc(t,e,r){varn=vt(2*t);return(n+vt(e))%2==0?n/2:(n+(r?1:-1))/2}functionf(t){returnnull!=t&&"none"!=t}functiond(t){return"string"==typeoft?G.lift(t,-.1):t}functionv(t){if(t.__hoverStlDirty){vare=t.style.stroke,r=t.style.fill,n=t.__hoverStl;n.fill=n.fill||(f(r)?d(r):null),n.stroke=n.stroke||(f(e)?d(e):null);vari={};for(varainn)null!=n[a]&&(i[a]=t.style[a]);t.__normalStl=i,t.__hoverStlDirty=!1}}functiong(t){if(!t.__isHover){if(v(t),t.useHoverLayer)t.__zr&&t.__zr.addHover(t,t.__hoverStl);else{vare=t.style,r=e.insideRollbackOpt;r&&L(e),e.extendFrom(t.__hoverStl),r&&(D(e,e.insideOriginalTextPosition,r),null==e.textFill&&(e.textFill=r.autoColor)),t.dirty(!1),t.z2+=1}t.__isHover=!0}}functionp(t){if(t.__isHover){vare=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}functionm(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&g(t)}):g(t)}functionx(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&p(t)}):p(t)}functiony(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&v(t)}functionw(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&m(this)}function_(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&x(this)}functionb(){this.__isEmphasis=!0,m(this)}functionS(){this.__isEmphasis=!1,x(this)}functionM(t,e,r){t.__hoverSilentOnTouch=r&&r.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&y(t,e)}):y(t,e),t.on("mouseover",w).on("mouseout",_),t.on("emphasis",b).on("normal",S)}functionT(t,e,r,n,i,a,o){i=i||mt;vars=i.labelFetcher,l=i.labelDataIndex,h=i.labelDimIndex,u=r.getShallow("show"),c=n.getShallow("show"),f=u||c?Y.retrieve2(s?s.getFormattedLabel(l,"normal",null,h):null,i.defaultText):null,d=u?f:null,v=c?Y.retrieve2(s?s.getFormattedLabel(l,"emphasis",null,h):null,f):null;null==d&&null==v||(k(t,r,a,i),k(e,n,o,i,!0)),t.text=d,e.text=v}functionk(t,e,r,n,i){returnP(t,e,n,i),r&&Y.extend(t,r),t.host&&t.host.dirty&&t.host.dirty(!1),t}functionC(t,e,r){varn,i={isRectText:!0};!1===r?n=!0:i.autoColor=r,P(t,e,i,n),t.host&&t.host.dirty&&t.host.dirty(!1)}functionP(t,e,r,n){if(r=r||mt,r.isRectText){vari=e.getShallow("position")||(n?null:"inside");"outside"===i&&(i="top"),t.textPosition=i,t.textOffset=e.getShallow("offset");vara=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=Y.retrieve2(e.getShallow("distance"),n?null:5)}varo,s=e.ecModel,l=s&&s.option.textStyle,h=I(e);if(h){o={};for(varuinh)if(h.hasOwnProperty(u)){varc=e.getModel(["rich",u]);A(o[u]={},c,l,r,n)}}returnt.rich=o,A(t,e,l,r,n,!0),r.forceRich&&!r.textStyle&&(r.textStyle={}),t}functionI(t){for(vare;t&&t!==t.ecModel;){varr=(t.option||mt).rich;if(r){e=e||{};for(varninr)r.hasOwnProperty(n)&&(e[n]=1)}t=t.parentModel}returne}functionA(t,e,r,n,i,a){if(r=!i&&r||mt,t.textFill=O(e.getShallow("color"),n)||r.color,t.textStroke=O(e.getShallow("textBorderColor"),n)||r.textBorderColor,t.textStrokeWidth=Y.retrieve2(e.getShallow("textBorderWidth"),r.textBorderWidth),!i){if(a){varo=t.textPosition;t.insideRollback=D(t,o,n),t.insideOriginalTextPosition=o,t.insideRollbackOpt=n}null==t.textFill&&(t.textFill=n.autoColor)}t.fontStyle=e.getShallow("fontStyle")||r.fontStyle,t.fontWeight=e.getShallow("fontWeight")||r.fontWeight,t.fontSize=e.getShallow("fontSize")||r.fontSize,t.fontFamily=e.getShallow("fontFamily")||r.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&n.disableBox||(t.textBackgroundColor=O(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=O(e.getShallow("borderColor"),n),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||r.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||r.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||r.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||r.textShadowOffsetY}functionO(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}functionD(t,e,r){varn,i=r.useInsideStyle;returnnull==t.textFill&&!1!==i&&(!0===i||r.isRectText&&e&&"string"==typeofe&&e.indexOf("inside")>=0)&&(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=r.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),n}functionL(t){vare=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth)}functionF(t,e){varr=e||e.getModel("textStyle");return[t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" ")}functionR(t,e,r,n,i,a){if("function"==typeofi&&(a=i,i=null),n&&n.isAnimationEnabled()){varo=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),h=n.getShallow("animationDelay"+o);"function"==typeofh&&(h=h(i,n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null)),"function"==typeofs&&(s=s(i)),s>0?e.animateTo(r,s,h||0,l,a,!!a):(e.stopAnimation(),e.attr(r),a&&a())}elsee.stopAnimation(),e.attr(r),a&&a()}functionB(t,e,r,n,i){R(!0,t,e,r,n,i)}functionz(t,e,r,n,i){R(!1,t,e,r,n,i)}functionN(t,e){for(varr=U.identity([]);t&&t!==e;)U.mul(r,t.getLocalTransform(),r),t=t.parent;returnr}functionE(t,e,r){returne&&!Y.isArrayLike(e)&&(e=Q.getLocalTransform(e)),r&&(e=U.invert([],e)),$.applyTransform([],t,e)}functionW(t,e,r){varn=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=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?-i:"bottom"===t?i:0];returna=E(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}functionq(t,e,r,n){functioni(t){vare={position:$.clone(t.position),rotation:t.rotation};returnt.shape&&(e.shape=Y.extend({},t.shape)),e}if(t&&e){vara=function(t){vare={};returnt.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){vare=a[t.anid];if(e){varn=i(t);t.attr(i(e)),B(t,n,r,t.dataIndex)}}})}}functionH(t,e){returnY.map(t,function(t){varr=t[0];r=gt(r,e.x),r=pt(r,e.x+e.width);varn=t[1];returnn=gt(n,e.y),n=pt(n,e.y+e.height),[r,n]})}functionj(t,e){varr=gt(t.x,e.x),n=pt(t.x+t.width,e.x+e.width),i=gt(t.y,e.y),a=pt(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}functionX(t,e,r){e=Y.extend({rectHover:!0},e);varn=e.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return0===t.indexOf("image://")?(n.image=t.slice(8),Y.defaults(n,r),newK(e)):a(t.replace("path://",""),e,r,"center")}varY=r(0),V=r(39),G=r(18),U=r(8),$=r(2),Z=r(1),Q=r(17),K=r(58);e.Image=K;varJ=r(59);e.Group=J;vartt=r(60);e.Text=tt;varet=r(61);e.Circle=et;varrt=r(62);e.Sector=rt;varnt=r(64);e.Ring=nt;varit=r(65);e.Polygon=it;varat=r(68);e.Polyline=at;varot=r(69);e.Rect=ot;varst=r(70);e.Line=st;varlt=r(71);e.BezierCurve=lt;varht=r(72);e.Arc=ht;varut=r(73);e.CompoundPath=ut;varct=r(74);e.LinearGradient=ct;varft=r(75);e.RadialGradient=ft;vardt=r(3);e.BoundingRect=dt;varvt=Math.round,gt=Math.max,pt=Math.min,mt={},xt=V.mergePath;e.extendShape=n,e.extendPath=i,e.makePath=a,e.makeImage=o,e.mergePath=xt,e.resizePath=l,e.subPixelOptimizeLine=h,e.subPixelOptimizeRect=u,e.subPixelOptimize=c,e.setHoverStyle=M,e.setLabelStyle=T,e.setTextStyle=k,e.setText=C,e.getFont=F,e.updateProps=B,e.initProps=z,e.getTransform=N,e.applyTransform=E,e.transformDirection=W,e.groupTransition=q,e.clipPointsByRect=H,e.clipRectByRect=j,e.createIcon=X},function(t,e,r){functionn(t,e,r,n,i,a,o,s,l,h,u){varc=l*(p/180),f=g(c)*(t-r)/2+v(c)*(e-n)/2,m=-1*v(c)*(t-r)/2+g(c)*(e-n)/2,w=f*f/(o*o)+m*m/(s*s);w>1&&(o*=d(w),s*=d(w));var_=(i===a?-1:1)*d((o*o*(s*s)-o*o*(m*m)-s*s*(f*f))/(o*o*(m*m)+s*s*(f*f)))||0,b=_*o*m/s,S=_*-s*f/o,M=(t+r)/2+g(c)*b-v(c)*S,T=(e+n)/2+v(c)*b+g(c)*S,k=y([1,0],[(f-b)/o,(m-S)/s]),C=[(f-b)/o,(m-S)/s],P=[(-1*f-b)/o,(-1*m-S)/s],I=y(C,P);x(C,P)<=-1&&(I=p),x(C,P)>=1&&(I=0),0===a&&I>0&&(I-=2*p),1===a&&I<0&&(I+=2*p),u.addData(h,M,T,o,s,k,I,c,a)}functioni(t){if(!t)return[];vare,r=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<f.length;e++)r=r.replace(newRegExp(f[e],"g"),"|"+f[e]);vari,a=r.split("|"),o=0,s=0,l=newu,h=u.CMD;for(e=1;e<a.length;e++){varc,d=a[e],v=d.charAt(0),g=0,p=d.slice(1).replace(/e,-/g,"e-").split(",");p.length>0&&""===p[0]&&p.shift();for(varm=0;m<p.length;m++)p[m]=parseFloat(p[m]);for(;g<p.length&&!isNaN(p[g])&&!isNaN(p[0]);){varx,y,w,_,b,S,M,T=o,k=s;switch(v){case"l":o+=p[g++],s+=p[g++],c=h.L,l.addData(c,o,s);break;case"L":o=p[g++],s=p[g++],c=h.L,l.addData(c,o,s);break;case"m":o+=p[g++],s+=p[g++],c=h.M,l.addData(c,o,s),v="l";break;case"M":o=p[g++],s=p[g++],c=h.M,l.addData(c,o,s),v="L";break;case"h":o+=p[g++],c=h.L,l.addData(c,o,s);break;case"H":o=p[g++],c=h.L,l.addData(c,o,s);break;case"v":s+=p[g++],c=h.L,l.addData(c,o,s);break;case"V":s=p[g++],c=h.L,l.addData(c,o,s);break;case"C":c=h.C,l.addData(c,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),o=p[g-2],s=p[g-1];break;case"c":c=h.C,l.addData(c,p[g++]+o,p[g++]+s,p[g++]+o,p[g++]+s,p[g++]+o,p[g++]+s),o+=p[g-2],s+=p[g-1];break;case"S":x=o,y=s;varC=l.len(),P=l.data;i===h.C&&(x+=o-P[C-4],y+=s-P[C-3]),c=h.C,T=p[g++],k=p[g++],o=p[g++],s=p[g++],l.addData(c,x,y,T,k,o,s);break;case"s":x=o,y=s;varC=l.len(),P=l.data;i===h.C&&(x+=o-P[C-4],y+=s-P[C-3]),c=h.C,T=o+p[g++],k=s+p[g++],o+=p[g++],s+=p[g++],l.addData(c,x,y,T,k,o,s);break;case"Q":T=p[g++],k=p[g++],o=p[g++],s=p[g++],c=h.Q,l.addData(c,T,k,o,s);break;case"q":T=p[g++]+o,k=p[g++]+s,o+=p[g++],s+=p[g++],c=h.Q,l.addData(c,T,k,o,s);break;case"T":x=o,y=s;varC=l.len(),P=l.data;i===h.Q&&(x+=o-P[C-4],y+=s-P[C-3]),o=p[g++],s=p[g++],c=h.Q,l.addData(c,x,y,o,s);break;case"t":x=o,y=s;varC=l.len(),P=l.data;i===h.Q&&(x+=o-P[C-4],y+=s-P[C-3]),o+=p[g++],s+=p[g++],c=h.Q,l.addData(c,x,y,o,s);break;case"A":w=p[g++],_=p[g++],b=p[g++],S=p[g++],M=p[g++],T=o,k=s,o=p[g++],s=p[g++],c=h.A,n(T,k,o,s,S,M,w,_,b,c,l);break;case"a":w=p[g++],_=p[g++],b=p[g++],S=p[g++],M=p[g++],T=o,k=s,o+=p[g++],s+=p[g++],c=h.A,n(T,k,o,s,S,M,w,_,b,c,l)}}"z"!==v&&"Z"!==v||(c=h.Z,l.addData(c)),i=c}returnl.toStatic(),l}functiona(t,e){varr=i(t);returne=e||{},e.buildPath=function(t){if(t.setData){t.setData(r.data);vare=t.getContext();e&&t.rebuildPath(e)}else{vare=t;r.rebuildPath(e)}},e.applyTransform=function(t){c(r,t),this.dirty(!0)},e}functiono(t,e){returnnewh(a(t,e))}functions(t,e){returnh.extend(a(t,e))}functionl(t,e){for(varr=[],n=t.length,i=0;i<n;i++){vara=t[i];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),r.push(a.path)}varo=newh(e);returno.createPathProxy(),o.buildPath=function(t){t.appendPath(r);vare=t.getContext();e&&t.rebuildPath(e)},o}varh=r(1),u=r(6),c=r(57),f=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],d=Math.sqrt,v=Math.sin,g=Math.cos,p=Math.PI,m=function(t){returnMath.sqrt(t[0]*t[0]+t[1]*t[1])},x=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(m(t)*m(e))},y=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(x(t,e))};e.createFromString=o,e.extendFromString=s,e.mergePath=l},function(t,e){functionr(t,e,r){varn=null==e.x?0:e.x,i=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;returne.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),t.createLinearGradient(n,a,i,o)}functionn(t,e,r){varn=r.width,i=r.height,a=Math.min(n,i),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;returne.global||(o=o*n+r.x,s=s*i+r.y,l*=a),t.createRadialGradient(o,s,0,o,s,l)}vari=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],a=function(t,e){this.extendFrom(t,!1),this.host=e};a.prototype={constructor:a,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,r){for(varn=this,a=r&&r.style,o=!a,s=0;s<i.length;s++){varl=i[s],h=l[0];(o||n[h]!==a[h])&&(t[h]=n[h]||l[1])}if((o||n.fill!==a.fill)&&(t.fillStyle=n.fill),(o||n.stroke!==a.stroke)&&(t.strokeStyle=n.stroke),(o||n.opacity!==a.opacity)&&(t.globalAlpha=null==n.opacity?1:n.opacity),(o||n.blend!==a.blend)&&(t.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){varu=n.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){vart=this.fill;returnnull!=t&&"none"!==t},hasStroke:function(){vart=this.stroke;returnnull!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(varrint)!t.hasOwnProperty(r)||!0!==e&&(!1===e?this.hasOwnProperty(r):null==t[r])||(this[r]=t[r])},set:function(t,e){"string"==typeoft?this[t]=e:this.extendFrom(t,!0)},clone:function(){vart=newthis.constructor;returnt.extendFrom(this,!0),t},getGradient:function(t,e,i){for(vara="radial"===e.type?n:r,o=a(t,e,i),s=e.colorStops,l=0;l<s.length;l++)o.addColorStop(s[l].offset,s[l].color);returno}};for(varo=a.prototype,s=0;s<i.length;s++){varl=i[s];l[0]ino||(o[l[0]]=l[1])}a.getGradient=o.getGradient;varh=a;t.exports=h},function(t,e){functionr(){returnn++}varn=2311;t.exports=r},function(t,e){varr=Array.prototype.slice,n=function(){this._$handlers={}};n.prototype={constructor:n,one:function(t,e,r){varn=this._$handlers;if(!e||!t)returnthis;n[t]||(n[t]=[]);for(vari=0;i<n[t].length;i++)if(n[t][i].h===e)returnthis;returnn[t].push({h:e,one:!0,ctx:r||this}),this},on:function(t,e,r){varn=this._$handlers;if(!e||!t)returnthis;n[t]||(n[t]=[]);for(vari=0;i<n[t].length;i++)if(n[t][i].h===e)returnthis;returnn[t].push({h:e,one:!1,ctx:r||this}),this},isSilent:function(t){vare=this._$handlers;returne[t]&&e[t].length},off:function(t,e){varr=this._$handlers;if(!t)returnthis._$handlers={},this;if(e){if(r[t]){for(varn=[],i=0,a=r[t].length;i<a;i++)r[t][i].h!=e&&n.push(r[t][i]);r[t]=n}r[t]&&0===r[t].length&&deleter[t]}elsedeleter[t];returnthis},trigger:function(t){if(this._$handlers[t]){vare=arguments,n=e.length;n>3&&(e=r.call(e,1));for(vari=this._$handlers[t],a=i.length,o=0;o<a;){switch(n){case1:i[o].h.call(i[o].ctx);break;case2:i[o].h.call(i[o].ctx,e[1]);break;case3:i[o].h.call(i[o].ctx,e[1],e[2]);break;default:i[o].h.apply(i[o].ctx,e)}i[o].one?(i.splice(o,1),a--):o++}}returnthis},triggerWithContext:function(t){if(this._$handlers[t]){vare=arguments,n=e.length;n>4&&(e=r.call(e,1,e.length-1));for(vari=e[e.length-1],a=this._$handlers[t],o=a.length,s=0;s<o;){switch(n){case1:a[s].h.call(i);break;case2:a[s].h.call(i,e[1]);break;case3:a[s].h.call(i,e[1],e[2]);break;default:a[s].h.apply(i,e)}a[s].one?(a.splice(s,1),o--):s++}}returnthis}};vari=n;t.exports=i},function(t,e,r){varn=r(44),i=r(47),a=r(0),o=a.isString,s=a.isFunction,l=a.isObject,h=a.isArrayLike,u=a.indexOf,c=function(){this.animators=[]};c.prototype={constructor:c,animate:function(t,e){varr,a=!1,o=this,s=this.__zr;if(t){varl=t.split("."),h=o;a="shape"===l[0];for(varc=0,f=l.length;c<f;c++)h&&(h=h[l[c]]);h&&(r=h)}elser=o;if(!r)returnvoidi('Property "'+t+'" is not existed in element '+o.id);vard=o.animators,v=newn(r,e);returnv.during(function(t){o.dirty(a)}).done(function(){d.splice(u(d,v),1)}),d.push(v),s&&s.animation.addAnimator(v),v},stopAnimation:function(t){for(vare=this.animators,r=e.length,n=0;n<r;n++)e[n].stop(t);returne.length=0,this},animateTo:function(t,e,r,n,i,a){functionl(){--u||i&&i()}o(r)?(i=n,n=r,r=0):s(n)?(i=n,n="linear",r=0):s(r)?(i=r,r=0):s(e)?(i=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,r);varh=this.animators.slice(),u=h.length;u||i&&i();for(varc=0;c<h.length;c++)h[c].done(l).start(n,a)},_animateToShallow:function(t,e,r,n,i){vara={},o=0;for(varsinr)if(r.hasOwnProperty(s))if(null!=e[s])l(r[s])&&!h(r[s])?this._animateToShallow(t?t+"."+s:s,e[s],r[s],n,i):(a[s]=r[s],o++);elseif(null!=r[s])if(t){varu={};u[t]={},u[t][s]=r[s],this.attr(u)}elsethis.attr(s,r[s]);returno>0&&this.animate(t,!1).when(null==n?500:n,a).delay(i||0),this}};varf=c;t.exports=f},function(t,e,r){functionn(t,e){returnt[e]}functioni(t,e,r){t[e]=r}functiona(t,e,r){return(e-t)*r+t}functiono(t,e,r){returnr>.5?e:t}functions(t,e,r,n,i){varo=t.length;if(1==i)for(vars=0;s<o;s++)n[s]=a(t[s],e[s],r);elsefor(varl=o&&t[0].length,s=0;s<o;s++)for(varh=0;h<l;h++)n[s][h]=a(t[s][h],e[s][h],r)}functionl(t,e,r){varn=t.length,i=e.length;if(n!==i){if(n>i)t.length=i;elsefor(vara=n;a<i;a++)t.push(1===r?e[a]:w.call(e[a]))}for(varo=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===r)isNaN(t[a])&&(t[a]=e[a]);elsefor(vars=0;s<o;s++)isNaN(t[a][s])&&(t[a][s]=e[a][s])}functionh(t,e,r){if(t===e)return!0;varn=t.length;if(n!==e.length)return!1;if(1===r){for(vari=0;i<n;i++)if(t[i]!==e[i])return!1}elsefor(vara=t[0].length,i=0;i<n;i++)for(varo=0;o<a;o++)if(t[i][o]!==e[i][o])return!1;return!0}functionu(t,e,r,n,i,a,o,s,l){varh=t.length;if(1==l)for(varu=0;u<h;u++)s[u]=c(t[u],e[u],r[u],n[u],i,a,o);elsefor(varf=t[0].length,u=0;u<h;u++)for(vard=0;d<f;d++)s[u][d]=c(t[u][d],e[u][d],r[u][d],n[u][d],i,a,o)}functionc(t,e,r,n,i,a,o){vars=.5*(r-t),l=.5*(n-e);return(2*(e-r)+s+l)*o+(-3*(e-r)-2*s-l)*a+s*i+e}functionf(t){if(y(t)){vare=t.length;if(y(t[0])){for(varr=[],n=0;n<e;n++)r.push(w.call(t[n]));returnr}returnw.call(t)}returnt}functiond(t){returnt[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}functionv(t){vare=t[t.length-1].value;returny(e&&e[0])?2:1}functiong(t,e,r,n,i,f){varg=t._getter,x=t._setter,w="spline"===e,_=n.length;if(_){varb,S=n[0].value,M=y(S),T=!1,k=!1,C=M?v(n):0;n.sort(function(t,e){returnt.time-e.time}),b=n[_-1].time;for(varP=[],I=[],A=n[0].value,O=!0,D=0;D<_;D++){P.push(n[D].time/b);varL=n[D].value;if(M&&h(L,A,C)||!M&&L===A||(O=!1),A=L,"string"==typeofL){varF=m.parse(L);F?(L=F,T=!0):k=!0}I.push(L)}if(f||!O){for(varR=I[_-1],D=0;D<_-1;D++)M?l(I[D],R,C):!isNaN(I[D])||isNaN(R)||k||T||(I[D]=R);M&&l(g(t._target,i),R,C);varB,z,N,E,W,q,H=0,j=0;if(T)varX=[0,0,0,0];varY=function(t,e){varr;if(e<0)r=0;elseif(e<j){for(B=Math.min(H+1,_-1),r=B;r>=0&&!(P[r]<=e);r--);r=Math.min(r,_-2)}else{for(r=H;r<_&&!(P[r]>e);r++);r=Math.min(r-1,_-2)}H=r,j=e;varn=P[r+1]-P[r];if(0!==n)if(z=(e-P[r])/n,w)if(E=I[r],N=I[0===r?r:r-1],W=I[r>_-2?_-1:r+1],q=I[r>_-3?_-1:r+2],M)u(N,E,W,q,z,z*z,z*z*z,g(t,i),C);else{varl;if(T)l=u(N,E,W,q,z,z*z,z*z*z,X,1),l=d(X);else{if(k)returno(E,W,z);l=c(N,E,W,q,z,z*z,z*z*z)}x(t,i,l)}elseif(M)s(I[r],I[r+1],z,g(t,i),C);else{varl;if(T)s(I[r],I[r+1],z,X,1),l=d(X);else{if(k)returno(I[r],I[r+1],z);l=a(I[r],I[r+1],z)}x(t,i,l)}},V=newp({target:t._target,life:b,loop:t._loop,delay:t._delay,onframe:Y,ondestroy:r});returne&&"spline"!==e&&(V.easing=e),V}}}varp=r(45),m=r(18),x=r(0),y=x.isArrayLike,w=Array.prototype.slice,_=function(t,e,r,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=r||n,this._setter=a||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){varr=this._tracks;for(varnine)if(e.hasOwnProperty(n)){if(!r[n]){r[n]=[];vari=this._getter(this._target,n);if(null==i)continue;0!==t&&r[n].push({time:0,value:f(i)})}r[n].push({time:t,value:e[n]})}returnthis},during:function(t){returnthis._onframeList.push(t),this},pause:function(){for(vart=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(vart=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(vart=this._doneList,e=t.length,r=0;r<e;r++)t[r].call(this)},start:function(t,e){varr,n=this,i=0,a=function(){--i||n._doneCallback()};for(varointhis._tracks)if(this._tracks.hasOwnProperty(o)){vars=g(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),i++,this.animation&&this.animation.addClip(s),r=s)}if(r){varl=r.onframe;r.onframe=function(t,e){l(t,e);for(varr=0;r<n._onframeList.length;r++)n._onframeList[r](t,e)}}returni||this._doneCallback(),this},stop:function(t){for(vare=this._clipList,r=this.animation,n=0;n<e.length;n++){vari=e[n];t&&i.onframe(this._target,1),r&&r.removeClip(i)}e.length=0},delay:function(t){returnthis._delay=t,this},done:function(t){returnt&&this._doneList.push(t),this},getClips:function(){returnthis._clipList}};varb=_;t.exports=b},function(t,e,r){functionn(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}vari=r(46);n.prototype={constructor:n,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)returnvoid(this._pausedTime+=e);varr=(t-this._startTime-this._pausedTime)/this._life;if(!(r<0)){r=Math.min(r,1);varn=this.easing,a="string"==typeofn?i[n]:n,o="function"==typeofa?a(r):r;returnthis.fire("frame",o),1==r?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){vare=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};vara=n;t.exports=a},function(t,e){varr={linear:function(t){returnt},quadraticIn:function(t){returnt*t},quadraticOut:function(t){returnt*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){returnt*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){returnt*t*t*t},quarticOut:function(t){return1---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){returnt*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){return1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){returnMath.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return1-Math.sqrt(1-t*t)},circularOut:function(t){returnMath.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){vare,r=.1;return0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){vare,r=.1;return0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){vare,r=.1;return0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){vare=1.70158;returnt*t*((e+1)*t-e)},backOut:function(t){vare=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){vare=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return1-r.bounceOut(1-t)},bounceOut:function(t){returnt<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){returnt<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}},n=r;t.exports=n},function(t,e,r){varn=r(19),i=n.debugMode,a=function(){};1===i?a=function(){for(vartinarguments)thrownewError(arguments[t])}:i>1&&(a=function(){for(vartinarguments)console.log(arguments[t])});varo=a;t.exports=o},function(t,e,r){varn=r(20),i=r(3),a=newi,o=function(){};o.prototype={constructor:o,drawRectText:function(t,e){varr=this.style;e=r.textRect||e,this.__dirty&&n.normalizeTextStyle(r,!0);vari=r.text;if(null!=i&&(i+=""),n.needDrawText(i,r)){t.save();varo=this.transform;r.transformText?this.setTransform(t):o&&(a.copy(e),a.applyTransform(o),e=a),n.renderText(this,t,i,r,e),t.restore()}}};vars=o;t.exports=s},function(t,e,r){functionn(t,e,r){if(0!==t.length){varn,i=t[0],a=i[0],o=i[0],s=i[1],l=i[1];for(n=1;n<t.length;n++)i=t[n],a=u(a,i[0]),o=c(o,i[0]),s=u(s,i[1]),l=c(l,i[1]);e[0]=a,e[1]=s,r[0]=o,r[1]=l}}functioni(t,e,r,n,i,a){i[0]=u(t,r),i[1]=u(e,n),a[0]=c(t,r),a[1]=c(e,n)}functiona(t,e,r,n,i,a,o,s,l,f){vard,v=h.cubicExtrema,g=h.cubicAt,p=v(t,r,i,o,x);for(l[0]=1/0,l[1]=1/0,f[0]=-1/0,f[1]=-1/0,d=0;d<p;d++){varm=g(t,r,i,o,x[d]);l[0]=u(m,l[0]),f[0]=c(m,f[0])}for(p=v(e,n,a,s,y),d=0;d<p;d++){varw=g(e,n,a,s,y[d]);l[1]=u(w,l[1]),f[1]=c(w,f[1])}l[0]=u(t,l[0]),f[0]=c(t,f[0]),l[0]=u(o,l[0]),f[0]=c(o,f[0]),l[1]=u(e,l[1]),f[1]=c(e,f[1]),l[1]=u(s,l[1]),f[1]=c(s,f[1])}functiono(t,e,r,n,i,a,o,s){varl=h.quadraticExtremum,f=h.quadraticAt,d=c(u(l(t,r,i),1),0),v=c(u(l(e,n,a),1),0),g=f(t,r,i,d),p=f(e,n,a,v);o[0]=u(t,i,g),o[1]=u(e,a,p),s[0]=c(t,i,g),s[1]=c(e,a,p)}functions(t,e,r,n,i,a,o,s,h){varu=l.min,c=l.max,x=Math.abs(i-a);if(x%v<1e-4&&x>1e-4)returns[0]=t-r,s[1]=e-n,h[0]=t+r,void(h[1]=e+n);if(g[0]=d(i)*r+t,g[1]=f(i)*n+e,p[0]=d(a)*r+t,p[1]=f(a)*n+e,u(s,g,p),c(h,g,p),i%=v,i<0&&(i+=v),a%=v,a<0&&(a+=v),i>a&&!o?a+=v:i<a&&o&&(i+=v),o){vary=a;a=i,i=y}for(varw=0;w<a;w+=Math.PI/2)w>i&&(m[0]=d(w)*r+t,m[1]=f(w)*n+e,u(s,m,s),c(h,m,h))}varl=r(2),h=r(4),u=Math.min,c=Math.max,f=Math.sin,d=Math.cos,v=2*Math.PI,g=l.create(),p=l.create(),m=l.create(),x=[],y=[];e.fromPoints=n,e.fromLine=i,e.fromCubic=a,e.fromQuadratic=o,e.fromArc=s},function(t,e,r){functionn(t,e){returnMath.abs(t-e)<b}functioni(){vart=M[0];M[0]=M[1],M[1]=t}functiona(t,e,r,n,a,o,s,l,h,u){if(u>e&&u>n&&u>o&&u>l||u<e&&u<n&&u<o&&u<l)return0;varc=x.cubicRootAt(e,n,o,l,u,S);if(0===c)return0;for(varf,d,v=0,g=-1,p=0;p<c;p++){varm=S[p],y=0===m||1===m?.5:1;x.cubicAt(t,r,a,s,m)<h||(g<0&&(g=x.cubicExtrema(e,n,o,l,M),M[1]<M[0]&&g>1&&i(),f=x.cubicAt(e,n,o,l,M[0]),g>1&&(d=x.cubicAt(e,n,o,l,M[1]))),2==g?m<M[0]?v+=f<e?y:-y:m<M[1]?v+=d<f?y:-y:v+=l<d?y:-y:m<M[0]?v+=f<e?y:-y:v+=l<f?y:-y)}returnv}functiono(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return0;varl=x.quadraticRootAt(e,n,a,s,S);if(0===l)return0;varh=x.quadraticExtremum(e,n,a);if(h>=0&&h<=1){for(varu=0,c=x.quadraticAt(e,n,a,h),f=0;f<l;f++){vard=0===S[f]||1===S[f]?.5:1,v=x.quadraticAt(t,r,i,S[f]);v<o||(S[f]<h?u+=c<e?d:-d:u+=a<c?d:-d)}returnu}vard=0===S[0]||1===S[0]?.5:1,v=x.quadraticAt(t,r,i,S[0]);returnv<o?0:a<e?d:-d}functions(t,e,r,n,i,a,o,s){if((s-=e)>r||s<-r)return0;varl=Math.sqrt(r*r-s*s);S[0]=-l,S[1]=l;varh=Math.abs(n-i);if(h<1e-4)return0;if(h%_<1e-4){n=0,i=_;varu=a?1:-1;returno>=S[0]+t&&o<=S[1]+t?u:0}if(a){varl=n;n=m(i),i=m(l)}elsen=m(n),i=m(i);n>i&&(i+=_);for(varc=0,f=0;f<2;f++){vard=S[f];if(d+t>o){varv=Math.atan2(s,d),u=a?1:-1;v<0&&(v=_+v),(v>=n&&v<=i||v+_>=n&&v+_<=i)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),c+=u)}}returnc}functionl(t,e,r,i,l){for(varh=0,u=0,c=0,p=0,m=0,x=0;x<t.length;){var_=t[x++];switch(_===w.M&&x>1&&(r||(h+=y(u,c,p,m,i,l))),1==x&&(u=t[x],c=t[x+1],p=u,m=c),_){casew.M:p=t[x++],m=t[x++],u=p,c=m;break;casew.L:if(r){if(f.containStroke(u,c,t[x],t[x+1],e,i,l))return!0}elseh+=y(u,c,t[x],t[x+1],i,l)||0;u=t[x++],c=t[x++];break;casew.C:if(r){if(d.containStroke(u,c,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],e,i,l))return!0}elseh+=a(u,c,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l)||0;u=t[x++],c=t[x++];break;casew.Q:if(r){if(v.containStroke(u,c,t[x++],t[x++],t[x],t[x+1],e,i,l))return!0}elseh+=o(u,c,t[x++],t[x++],t[x],t[x+1],i,l)||0;u=t[x++],c=t[x++];break;casew.A:varb=t[x++],S=t[x++],M=t[x++],T=t[x++],k=t[x++],C=t[x++],P=(t[x++],1-t[x++]),I=Math.cos(k)*M+b,A=Math.sin(k)*T+S;x>1?h+=y(u,c,I,A,i,l):(p=I,m=A);varO=(i-b)*T/M+b;if(r){if(g.containStroke(b,S,T,k,k+C,P,e,O,l))return!0}elseh+=s(b,S,T,k,k+C,P,O,l);u=Math.cos(k+C)*M+b,c=Math.sin(k+C)*T+S;break;casew.R:p=u=t[x++],m=c=t[x++];varD=t[x++],L=t[x++],I=p+D,A=m+L;if(r){if(f.containStroke(p,m,I,m,e,i,l)||f.containStroke(I,m,I,A,e,i,l)||f.containStroke(I,A,p,A,e,i,l)||f.containStroke(p,A,p,m,e,i,l))return!0}elseh+=y(I,m,I,A,i,l),h+=y(p,A,p,m,i,l);break;casew.Z:if(r){if(f.containStroke(u,c,p,m,e,i,l))return!0}elseh+=y(u,c,p,m,i,l);u=p,c=m}}returnr||n(c,m)||(h+=y(u,c,p,m,i,l)||0),0!==h}functionh(t,e,r){returnl(t,0,!1,e,r)}functionu(t,e,r,n){returnl(t,e,!0,r,n)}varc=r(6),f=r(51),d=r(52),v=r(53),g=r(54),p=r(22),m=p.normalizeRadian,x=r(4),y=r(55),w=c.CMD,_=2*Math.PI,b=1e-4,S=[-1,-1,-1],M=[-1,-1];e.contain=h,e.containStroke=u},function(t,e){functionr(t,e,r,n,i,a,o){if(0===i)return!1;vars=i,l=0,h=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t===r)returnMath.abs(a-t)<=s/2;l=(e-n)/(t-r),h=(t*n-r*e)/(t-r);varu=l*a-o+h;returnu*u/(l*l+1)<=s/2*s/2}e.containStroke=r},function(t,e,r){functionn(t,e,r,n,a,o,s,l,h,u,c){if(0===h)return!1;varf=h;return!(c>e+f&&c>n+f&&c>o+f&&c>l+f||c<e-f&&c<n-f&&c<o-f&&c<l-f||u>t+f&&u>r+f&&u>a+f&&u>s+f||u<t-f&&u<r-f&&u<a-f&&u<s-f)&&i.cubicProjectPoint(t,e,r,n,a,o,s,l,u,c,null)<=f/2}vari=r(4);e.containStroke=n},function(t,e,r){functionn(t,e,r,n,i,o,s,l,h){if(0===s)return!1;varu=s;return!(h>e+u&&h>n+u&&h>o+u||h<e-u&&h<n-u&&h<o-u||l>t+u&&l>r+u&&l>i+u||l<t-u&&l<r-u&&l<i-u)&&a(t,e,r,n,i,o,l,h,null)<=u/2}vari=r(4),a=i.quadraticProjectPoint;e.containStroke=n},function(t,e,r){functionn(t,e,r,n,i,s,l,h,u){if(0===l)return!1;varc=l;h-=t,u-=e;varf=Math.sqrt(h*h+u*u);if(f-c>r||f+c<r)return!1;if(Math.abs(n-i)%o<1e-4)return!0;if(s){vard=n;n=a(i),i=a(d)}elsen=a(n),i=a(i);n>i&&(i+=o);varv=Math.atan2(u,h);returnv<0&&(v+=o),v>=n&&v<=i||v+o>=n&&v+o<=i}vari=r(22),a=i.normalizeRadian,o=2*Math.PI;e.containStroke=n},function(t,e){functionr(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n)return0;if(n===e)return0;varo=n<e?1:-1,s=(a-e)/(n-e);return1!==s&&0!==s||(o=n<e?.5:-.5),s*(r-t)+t>i?o:0}t.exports=r},function(t,e){varr=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};r.prototype.getCanvasPattern=function(t){returnt.createPattern(this.image,this.repeat||"repeat")};varn=r;t.exports=n},function(t,e,r){functionn(t,e){varr,n,i,a,c,f,d=t.data,v=s.M,g=s.C,p=s.L,m=s.R,x=s.A,y=s.Q;for(i=0,a=0;i<d.length;){switch(r=d[i++],a=i,n=0,r){casev:casep:n=1;break;caseg:n=3;break;casey:n=2;break;casex:varw=e[4],_=e[5],b=h(e[0]*e[0]+e[1]*e[1]),S=h(e[2]*e[2]+e[3]*e[3]),M=u(-e[1]/S,e[0]/b);d[i]*=b,d[i++]+=w,d[i]*=S,d[i++]+=_,d[i++]*=b,d[i++]*=S,d[i++]+=M,d[i++]+=M,i+=2,a=i;break;casem:f[0]=d[i++],f[1]=d[i++],o(f,f,e),d[a++]=f[0],d[a++]=f[1],f[0]+=d[i++],f[1]+=d[i++],o(f,f,e),d[a++]=f[0],d[a++]=f[1]}for(c=0;c<n;c++){varf=l[c];f[0]=d[i++],f[1]=d[i++],o(f,f,e),d[a++]=f[0],d[a++]=f[1]}}}vari=r(6),a=r(2),o=a.applyTransform,s=i.CMD,l=[[],[],[]],h=Math.sqrt,u=Math.atan2;t.exports=n},function(t,e,r){functionn(t){i.call(this,t)}vari=r(12),a=r(3),o=r(0),s=r(10);n.prototype={constructor:n,type:"image",brush:function(t,e){varr=this.style,n=r.image;r.bind(t,this,e);vari=this._image=s.createOrUpdateImage(n,this._image,this,this.onload);if(i&&s.isImageReady(i)){vara=r.x||0,o=r.y||0,l=r.width,h=r.height,u=i.width/i.height;if(null==l&&null!=h?l=h*u:null==h&&null!=l?h=l/u:null==l&&null==h&&(l=i.width,h=i.height),this.setTransform(t),r.sWidth&&r.sHeight){varc=r.sx||0,f=r.sy||0;t.drawImage(i,c,f,r.sWidth,r.sHeight,a,o,l,h)}elseif(r.sx&&r.sy){varc=r.sx,f=r.sy,d=l-c,v=h-f;t.drawImage(i,c,f,d,v,a,o,l,h)}elset.drawImage(i,a,o,l,h);this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this.getBoundingRect())}},getBoundingRect:function(){vart=this.style;returnthis._rect||(this._rect=newa(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},o.inherits(n,i);varl=n;t.exports=l},function(t,e,r){varn=r(0),i=r(16),a=r(3),o=function(t){t=t||{},i.call(this,t);for(vareint)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(){returnthis._children.slice()},childAt:function(t){returnthis._children[t]},childOfName:function(t){for(vare=this._children,r=0;r<e.length;r++)if(e[r].name===t)returne[r]},childCount:function(){returnthis._children.length},add:function(t){returnt&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){varr=this._children,n=r.indexOf(e);n>=0&&(r.splice(n,0,t),this._doAdd(t))}returnthis},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;vare=this.__storage,r=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),tinstanceofo&&t.addChildrenToStorage(e)),r&&r.refresh()},remove:function(t){vare=this.__zr,r=this.__storage,i=this._children,a=n.indexOf(i,t);returna<0?this:(i.splice(a,1),t.parent=null,r&&(r.delFromStorage(t),tinstanceofo&&t.delChildrenFromStorage(r)),e&&e.refresh(),this)},removeAll:function(){vart,e,r=this._children,n=this.__storage;for(e=0;e<r.length;e++)t=r[e],n&&(n.delFromStorage(t),tinstanceofo&&t.delChildrenFromStorage(n)),t.parent=null;returnr.length=0,this},eachChild:function(t,e){for(varr=this._children,n=0;n<r.length;n++){vari=r[n];t.call(e,i,n)}returnthis},traverse:function(t,e){for(varr=0;r<this._children.length;r++){varn=this._children[r];t.call(e,n),"group"===n.type&&n.traverse(t,e)}returnthis},addChildrenToStorage:function(t){for(vare=0;e<this._children.length;e++){varr=this._children[e];t.addToStorage(r),rinstanceofo&&r.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(vare=0;e<this._children.length;e++){varr=this._children[e];t.delFromStorage(r),rinstanceofo&&r.delChildrenFromStorage(t)}},dirty:function(){returnthis.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(vare=null,r=newa(0,0,0,0),n=t||this._children,i=[],o=0;o<n.length;o++){vars=n[o];if(!s.ignore&&!s.invisible){varl=s.getBoundingRect(),h=s.getLocalTransform(i);h?(r.copy(l),r.applyTransform(h),e=e||r.clone(),e.union(r)):(e=e||l.clone(),e.union(l))}}returne||r}},n.inherits(o,i);vars=o;t.exports=s},function(t,e,r){varn=r(12),i=r(0),a=r(5),o=r(20),s=function(t){n.call(this,t)};s.prototype={constructor:s,type:"text",brush:function(t,e){varr=this.style;this.__dirty&&o.normalizeTextStyle(r,!0),r.fill=r.stroke=r.shadowBlur=r.shadowColor=r.shadowOffsetX=r.shadowOffsetY=null;varn=r.text;null!=n&&(n+=""),r.bind(t,this,e),o.needDrawText(n,r)&&(this.setTransform(t),o.renderText(this,t,n,r),this.restoreTransform(t))},getBoundingRect:function(){vart=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){vare=t.text;null!=e?e+="":e="";varr=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.rich);if(r.x+=t.x||0,r.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){varn=t.textStrokeWidth;r.x-=n/2,r.y-=n/2,r.width+=n,r.height+=n}this._rect=r}returnthis._rect}},i.inherits(s,n);varl=s;t.exports=l},function(t,e,r){varn=r(1),i=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,r){r&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=i},function(t,e,r){varn=r(1),i=r(63),a=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i(n.prototype.brush),buildPath:function(t,e){varr=e.cx,n=e.cy,i=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,h=Math.cos(o),u=Math.sin(o);t.moveTo(h*i+r,u*i+n),t.lineTo(h*a+r,u*a+n),t.arc(r,n,a,o,s,!l),t.lineTo(Math.cos(s)*i+r,Math.sin(s)*i+n),0!==i&&t.arc(r,n,i,s,o,l),t.closePath()}});t.exports=a},function(t,e,r){functionn(t){returni.browser.ie&&i.browser.version>=11?function(){vare,r=this.__clipPaths,n=this.style;if(r)for(vari=0;i<r.length;i++){varo=r[i],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(varh=0;h<a.length;h++)a[h][2]=n[a[h][0]],n[a[h][0]]=a[h][1];e=!0;break}}if(t.apply(this,arguments),e)for(varh=0;h<a.length;h++)n[a[h][0]]=a[h][2]}:t}vari=r(15),a=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=n},function(t,e,r){varn=r(1),i=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){varr=e.cx,n=e.cy,i=2*Math.PI;t.moveTo(r+e.r,n),t.arc(r,n,e.r,0,i,!1),t.moveTo(r+e.r0,n),t.arc(r,n,e.r0,0,i,!0)}});t.exports=i},function(t,e,r){varn=r(1),i=r(23),a=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){i.buildPath(t,e,!0)}});t.exports=a},function(t,e,r){functionn(t,e,r,n,i,a,o){vars=.5*(r-t),l=.5*(n-e);return(2*(e-r)+s+l)*o+(-3*(e-r)-2*s-l)*a+s*i+e}functioni(t,e){for(varr=t.length,i=[],a=0,s=1;s<r;s++)a+=o(t[s-1],t[s]);varl=a/2;l=l<r?r:l;for(vars=0;s<l;s++){varh,u,c,f=s/(l-1)*(e?r:r-1),d=Math.floor(f),v=f-d,g=t[d%r];e?(h=t[(d-1+r)%r],u=t[(d+1)%r],c=t[(d+2)%r]):(h=t[0===d?d:d-1],u=t[d>r-2?r-1:d+1],c=t[d>r-3?r-1:d+2]);varp=v*v,m=v*p;i.push([n(h[0],g[0],u[0],c[0],v,p,m),n(h[1],g[1],u[1],c[1],v,p,m)])}returni}vara=r(2),o=a.distance;t.exports=i},function(t,e,r){functionn(t,e,r,n){vari,f,d,v,g=[],p=[],m=[],x=[];if(n){d=[1/0,1/0],v=[-1/0,-1/0];for(vary=0,w=t.length;y<w;y++)a(d,d,t[y]),o(v,v,t[y]);a(d,d,n[0]),o(v,v,n[1])}for(vary=0,w=t.length;y<w;y++){var_=t[y];if(r)i=t[y?y-1:w-1],f=t[(y+1)%w];else{if(0===y||y===w-1){g.push(u(t[y]));continue}i=t[y-1],f=t[y+1]}c(p,f,i),s(p,p,e);varb=l(_,i),S=l(_,f),M=b+S;0!==M&&(b/=M,S/=M),s(m,p,-b),s(x,p,S);varT=h([],_,m),k=h([],_,x);n&&(o(T,T,d),a(T,T,v),o(k,k,d),a(k,k,v)),g.push(T),g.push(k)}returnr&&g.push(g.shift()),g}vari=r(2),a=i.min,o=i.max,s=i.scale,l=i.distance,h=i.add,u=i.clone,c=i.sub;t.exports=n},function(t,e,r){varn=r(1),i=r(23),a=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}});t.exports=a},function(t,e,r){varn=r(1),i=r(21),a=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){varr=e.x,n=e.y,a=e.width,o=e.height;e.r?i.buildPath(t,e):t.rect(r,n,a,o),t.closePath()}});t.exports=a},function(t,e,r){varn=r(1),i=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){varr=e.x1,n=e.y1,i=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(r,n),o<1&&(i=r*(1-o)+i*o,a=n*(1-o)+a*o),t.lineTo(i,a))},pointAt:function(t){vare=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=i},function(t,e,r){functionn(t,e,r){varn=t.cpx2,i=t.cpy2;returnnull===n||null===i?[(r?f:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?f:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?c:h)(t.x1,t.cpx1,t.x2,e),(r?c:h)(t.y1,t.cpy1,t.y2,e)]}vari=r(1),a=r(2),o=r(4),s=o.quadraticSubdivide,l=o.cubicSubdivide,h=o.quadraticAt,u=o.cubicAt,c=o.quadraticDerivativeAt,f=o.cubicDerivativeAt,d=[],v=i.extend({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){varr=e.x1,n=e.y1,i=e.x2,a=e.y2,o=e.cpx1,h=e.cpy1,u=e.cpx2,c=e.cpy2,f=e.percent;0!==f&&(t.moveTo(r,n),null==u||null==c?(f<1&&(s(r,o,i,f,d),o=d[1],i=d[2],s(n,h,a,f,d),h=d[1],a=d[2]),t.quadraticCurveTo(o,h,i,a)):(f<1&&(l(r,o,u,i,f,d),o=d[1],u=d[2],i=d[3],l(n,h,c,a,f,d),h=d[1],c=d[2],a=d[3]),t.bezierCurveTo(o,h,u,c,i,a)))},pointAt:function(t){returnn(this.shape,t,!1)},tangentAt:function(t){vare=n(this.shape,t,!0);returna.normalize(e,e)}});t.exports=v},function(t,e,r){varn=r(1),i=n.extend({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){varr=e.cx,n=e.cy,i=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),h=Math.sin(a);t.moveTo(l*i+r,h*i+n),t.arc(r,n,i,a,o,!s)}});t.exports=i},function(t,e,r){varn=r(1),i=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(vart=this.__dirtyPath,e=this.shape.paths,r=0;r<e.length;r++)t=t||e[r].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(vart=this.shape.paths||[],e=this.getGlobalScale(),r=0;r<t.length;r++)t[r].path||t[r].createPathProxy(),t[r].path.setScale(e[0],e[1])},buildPath:function(t,e){for(varr=e.paths||[],n=0;n<r.length;n++)r[n].buildPath(t,r[n].shape,!0)},afterBrush:function(){for(vart=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){returnthis._updatePathDirty(),n.prototype.getBoundingRect.call(this)}});t.exports=i},function(t,e,r){varn=r(0),i=r(24),a=function(t,e,r,n,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==r?1:r,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,i.call(this,a)};a.prototype={constructor:a},n.inherits(a,i);varo=a;t.exports=o},function(t,e,r){varn=r(0),i=r(24),a=function(t,e,r,n,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==r?.5:r,this.type="radial",this.global=a||!1,i.call(this,n)};a.prototype={constructor:a},n.inherits(a,i);varo=a;t.exports=o},function(t,e,r){varn=r(11),i=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a={getItemStyle:function(t,e){varr=i(this,t,e),n=this.getBorderLineDash();returnn&&(r.lineDash=n),r},getBorderLineDash:function(){vart=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=a},function(t,e,r){varn=r(7);n.extendChartView({type:"wordCloud",render:function(t,e,r){vari=this.group;i.removeAll();vara=t.getData(),o=t.get("gridSize");t.layoutInstance.ondraw=function(t,e,r,s){varl=a.getItemModel(r),h=l.getModel("textStyle.normal"),u=l.getModel("textStyle.emphasis"),c=newn.graphic.Text({style:n.graphic.setTextStyle({},h,{x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*e,text:t,textBaseline:"middle",textFill:a.getItemVisual(r,"color"),fontSize:e}),scale:[1/s.info.mu,1/s.info.mu],position:[(s.gx+s.info.gw/2)*o,(s.gy+s.info.gh/2)*o],rotation:s.rot});i.add(c),a.setItemGraphicEl(r,c),n.graphic.setHoverStyle(c,n.graphic.setTextStyle({},u,null,{forMerge:!0},!0))},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}})},function(t,e,r){"use strict";varn,i;window.setImmediate||(window.setImmediate=function(){returnwindow.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)returnnull;vart=[void0],e="zero-timeout-message",r=function(r){varn=t.length;returnt.push(r),window.postMessage(e+n.toString(36),"*"),n};returnwindow.addEventListener("message",function(r){if("string"==typeofr.data&&r.data.substr(0,e.length)===e){r.stopImmediatePropagation();varn=parseInt(r.data.substr(e.length),36);t[n]&&(t[n](),t[n]=void0)}},!0),window.clearImmediate=function(e){t[e]&&(t[e]=void0)},r}()||function(t){window.setTimeout(t,0)}}()),window.clearImmediate||(window.clearImmediate=function(){returnwindow.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)}}()),function(r){vara=function(){vart=document.createElement("canvas");if(!t||!t.getContext)return!1;vare=t.getContext("2d");return!!e.getImageData&&(!!e.fillText&&(!!Array.prototype.some&&!!Array.prototype.push))}(),o=function(){if(a){for(vart,e,r=document.createElement("canvas").getContext("2d"),n=20;n;){if(r.font=n.toString(10)+"px sans-serif",r.measureText("W").width===t&&r.measureText("m").width===e)returnn+1;t=r.measureText("W").width,e=r.measureText("m").width,n--}return0}}(),s=function(t){for(vare,r,n=t.length;n;e=Math.floor(Math.random()*n),r=t[--n],t[n]=t[e],t[e]=r);returnt},l=function(t,e){functionr(t,e){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(e-t)+t).toFixed()+"%)"}if(a){Array.isArray(t)||(t=[t]),t.forEach(function(e,r){if("string"==typeofe){if(t[r]=document.getElementById(e),!t[r])throw"The element id specified is not found."}elseif(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."});varn={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(variine)iinn&&(n[i]=e[i]);if("function"!=typeofn.weightFactor){varl=n.weightFactor;n.weightFactor=function(t){returnt*l}}if("function"!=typeofn.shape)switch(n.shape){case"circle":default:n.shape="circle";break;case"cardioid":n.shape=function(t){return1-Math.sin(t)};break;case"diamond":case"square":n.shape=function(t){vare=t%(2*Math.PI/4);return1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":n.shape=function(t){vare=t%(2*Math.PI/3);return1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":n.shape=function(t){vare=(t+3*Math.PI/2)%(2*Math.PI/3);return1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":n.shape=function(t){vare=(t+.955)%(2*Math.PI/5);return1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":n.shape=function(t){vare=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}n.gridSize=Math.max(Math.floor(n.gridSize),4);varh,u,c,f,d,v,g,p=n.gridSize,m=p-n.maskGapWidth,x=Math.abs(n.maxRotation-n.minRotation),y=Math.min(n.maxRotation,n.minRotation),w=n.rotationStep;switch(n.color){case"random-dark":g=function(){returnr(10,50)};break;case"random-light":g=function(){returnr(50,90)};break;default:"function"==typeofn.color&&(g=n.color)}var_=null;"function"==typeofn.classes&&(_=n.classes);varb,S=!1,M=[],T=function(t){vare,r,n=t.currentTarget,i=n.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,r=t.touches[0].clientY):(e=t.clientX,r=t.clientY);vara=e-i.left,o=r-i.top,s=Math.floor(a*(n.width/i.width||1)/p),l=Math.floor(o*(n.height/i.height||1)/p);returnM[s][l]},k=function(t){vare=T(t);if(b!==e){if(b=e,!e)returnvoidn.hover(void0,void0,t);n.hover(e.item,e.dimension,t)}},C=function(t){vare=T(t);e&&(n.click(e.item,e.dimension,t),t.preventDefault())},P=[],I=function(t){if(P[t])returnP[t];vare=8*t,r=e,i=[];for(0===t&&i.push([f[0],f[1],0]);r--;){vara=1;"circle"!==n.shape&&(a=n.shape(r/e*2*Math.PI)),i.push([f[0]+t*a*Math.cos(-r/e*2*Math.PI),f[1]+t*a*Math.sin(-r/e*2*Math.PI)*n.ellipticity,r/e*2*Math.PI])}returnP[t]=i,i},A=function(){returnn.abortThreshold>0&&(newDate).getTime()-v>n.abortThreshold},O=function(){return0===n.rotateRatio?0:Math.random()>n.rotateRatio?0:0===x?y:y+Math.round(Math.random()*x/w)*w},D=function(t,e,r){vari=n.weightFactor(e);if(i<=n.minSize)return!1;vara=1;i<o&&(a=function(){for(vart=2;t*i<o;)t+=2;returnt}());vars=document.createElement("canvas"),l=s.getContext("2d",{willReadFrequently:!0});l.font=n.fontWeight+" "+(i*a).toString(10)+"px "+n.fontFamily;varh=l.measureText(t).width/a,u=Math.max(i*a,l.measureText("m").width,l.measureText("W").width)/a,c=h+2*u,f=3*u,d=Math.ceil(c/p),v=Math.ceil(f/p);c=d*p,f=v*p;varg=-h/2,m=.4*-u,x=Math.ceil((c*Math.abs(Math.sin(r))+f*Math.abs(Math.cos(r)))/p),y=Math.ceil((c*Math.abs(Math.cos(r))+f*Math.abs(Math.sin(r)))/p),w=y*p,_=x*p;s.setAttribute("width",w),s.setAttribute("height",_),l.scale(1/a,1/a),l.translate(w*a/2,_*a/2),l.rotate(-r),l.font=n.fontWeight+" "+(i*a).toString(10)+"px "+n.fontFamily,l.fillStyle="#000",l.textBaseline="middle",l.fillText(t,g*a,(m+.5*i)*a);varb=l.getImageData(0,0,w,_).data;if(A())return!1;for(varS,M,T,k=[],C=y,P=[x/2,y/2,x/2,y/2];C--;)for(S=x;S--;){T=p;t:for(;T--;)for(M=p;M--;)if(b[4*((S*p+T)*w+(C*p+M))+3]){k.push([C,S]),C<P[3]&&(P[3]=C),C>P[1]&&(P[1]=C),S<P[0]&&(P[0]=S),S>P[2]&&(P[2]=S);breakt}}return{mu:a,occupied:k,bounds:P,gw:y,gh:x,fillTextOffsetX:g,fillTextOffsetY:m,fillTextWidth:h,fillTextHeight:u,fontSize:i}},L=function(t,e,r,i,a){for(varo=a.length;o--;){vars=t+a[o][0],l=e+a[o][1];if(s>=u||l>=c||s<0||l<0){if(!n.drawOutOfBound)return!1}elseif(!h[s][l])return!1}return!0},F=function(e,r,i,a,o,s,l,h,u){varc,f=i.fontSize;c=g?g(a,o,f,s,l):n.color;vard;d=_?_(a,o,f,s,l):n.classes;varv=i.bounds;v[3],v[0],v[1],v[3],v[2],v[0],t.forEach(function(t){if(t.getContext){varo=t.getContext("2d"),s=i.mu;o.save(),o.scale(1/s,1/s),o.font=n.fontWeight+" "+(f*s).toString(10)+"px "+n.fontFamily,o.fillStyle=c,o.translate((e+i.gw/2)*p*s,(r+i.gh/2)*p*s),0!==h&&o.rotate(-h),o.textBaseline="middle",o.fillText(a,i.fillTextOffsetX*s,(i.fillTextOffsetY+.5*f)*s),o.restore()}else{varl=document.createElement("span"),v="";v="rotate("+-h/Math.PI*180+"deg) ",1!==i.mu&&(v+="translateX(-"+i.fillTextWidth/4+"px) scale("+1/i.mu+")");varg={position:"absolute",display:"block",font:n.fontWeight+" "+f*i.mu+"px "+n.fontFamily,left:(e+i.gw/2)*p+i.fillTextOffsetX+"px",top:(r+i.gh/2)*p+i.fillTextOffsetY+"px",width:i.fillTextWidth+"px",height:i.fillTextHeight+"px",lineHeight:f+"px",whiteSpace:"nowrap",transform:v,webkitTransform:v,msTransform:v,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};c&&(g.color=c),l.textContent=a;for(varming)l.style[m]=g[m];if(u)for(varxinu)l.setAttribute(x,u[x]);d&&(l.className+=d),t.appendChild(l)}})},R=function(e,r,n,i,a){if(!(e>=u||r>=c||e<0||r<0)){if(h[e][r]=!1,n){t[0].getContext("2d").fillRect(e*p,r*p,m,m)}S&&(M[e][r]={item:a,dimension:i})}},B=function(e,r,i,a,o,s){varl,h=o.occupied,f=n.drawMask;f&&(l=t[0].getContext("2d"),l.save(),l.fillStyle=n.maskColor);vard;if(S){varv=o.bounds;d={x:(e+v[3])*p,y:(r+v[0])*p,w:(v[1]-v[3]+1)*p,h:(v[2]-v[0]+1)*p}}for(varg=h.length;g--;){varm=e+h[g][0],x=r+h[g][1];m>=u||x>=c||m<0||x<0||R(m,x,f,d,s)}f&&l.restore()},z=function(t){vare,r,i;Array.isArray(t)?(e=t[0],r=t[1]):(e=t.word,r=t.weight,i=t.attributes);vara=O(),o=D(e,r,a);if(!o)return!1;if(A())return!1;if(!n.drawOutOfBound){varl=o.bounds;if(l[1]-l[3]+1>u||l[2]-l[0]+1>c)return!1}for(varh=d+1;h--;){varf=I(d-h);n.shuffle&&(f=[].concat(f),s(f));for(varv=0;v<f.length;v++){varg=function(n){vars=Math.floor(n[0]-o.gw/2),l=Math.floor(n[1]-o.gh/2);o.gw,o.gh;return!!L(s,l,0,0,o.occupied)&&(F(s,l,o,e,r,d-h,n[2],a,i),B(s,l,0,0,o,t),{gx:s,gy:l,rot:a,info:o})}(f[v]);if(g)returng}}returnnull},N=function(e,r,n){if(r)return!t.some(function(t){vari=document.createEvent("CustomEvent");returni.initCustomEvent(e,!0,r,n||{}),!t.dispatchEvent(i)},this);t.forEach(function(t){vari=document.createEvent("CustomEvent");i.initCustomEvent(e,!0,r,n||{}),t.dispatchEvent(i)},this)};!function(){vare=t[0];if(e.getContext)u=Math.ceil(e.width/p),c=Math.ceil(e.height/p);else{varr=e.getBoundingClientRect();u=Math.ceil(r.width/p),c=Math.ceil(r.height/p)}if(N("wordcloudstart",!0)){f=n.origin?[n.origin[0]/p,n.origin[1]/p]:[u/2,c/2],d=Math.floor(Math.sqrt(u*u+c*c)),h=[];vari,a,o;if(!e.getContext||n.clearCanvas)for(t.forEach(function(t){if(t.getContext){vare=t.getContext("2d");e.fillStyle=n.backgroundColor,e.clearRect(0,0,u*(p+1),c*(p+1)),e.fillRect(0,0,u*(p+1),c*(p+1))}elset.textContent="",t.style.backgroundColor=n.backgroundColor,t.style.position="relative"}),i=u;i--;)for(h[i]=[],a=c;a--;)h[i][a]=!0;else{vars=document.createElement("canvas").getContext("2d");s.fillStyle=n.backgroundColor,s.fillRect(0,0,1,1);varl=s.getImageData(0,0,1,1).data,g=e.getContext("2d").getImageData(0,0,u*p,c*p).data;i=u;for(varm,x;i--;)for(h[i]=[],a=c;a--;){x=p;t:for(;x--;)for(m=p;m--;)for(o=4;o--;)if(g[4*((a*p+x)*u*p+(i*p+m))+o]!==l[o]){h[i][a]=!1;breakt}!1!==h[i][a]&&(h[i][a]=!0)}g=s=l=void0}if(n.hover||n.click){for(S=!0,i=u+1;i--;)M[i]=[];n.hover&&e.addEventListener("mousemove",k),n.click&&(e.addEventListener("click",C),e.addEventListener("touchstart",C),e.addEventListener("touchend",function(t){t.preventDefault()}),e.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),e.addEventListener("wordcloudstart",functiont(){e.removeEventListener("wordcloudstart",t),e.removeEventListener("mousemove",k),e.removeEventListener("click",C),b=void0})}o=0;vary,w;0!==n.wait?(y=window.setTimeout,w=window.clearTimeout):(y=window.setImmediate,w=window.clearImmediate);var_=function(e,r){t.forEach(function(t){t.removeEventListener(e,r)},this)},T=functiont(){_("wordcloudstart",t),w(P)};!function(e,r){t.forEach(function(t){t.addEventListener(e,r)},this)}("wordcloudstart",T);varP=y(functiont(){if(o>=n.list.length)returnw(P),N("wordcloudstop",!1),void_("wordcloudstart",T);v=(newDate).getTime();vare=z(n.list[o]),r=!N("wordclouddrawn",!0,{item:n.list[o],drawn:e});if(A()||r)returnw(P),n.abort(),N("wordcloudabort",!1),N("wordcloudstop",!1),void_("wordcloudstart",T);o++,P=y(t,n.wait)},n.wait)}}()}};l.isSupported=a,l.minFontSize=o,n=[],void0!==(i=function(){returnl}.apply(e,n))&&(t.exports=i)}()}])});