!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new typeerror("class extends value "+string(e)+" is not a constructor or null");lw(t,e),t.prototype=null===e?object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,i=t.match(/firefox\/([\d.]+)/),r=t.match(/msie\s([\d.]+)/)||t.match(/trident\/.+?rv:(([\d.]+))/),o=t.match(/edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newedge=+o[1].split(".")[0]>18),a&&(n.wechat=!0),e.svgsupported="undefined"!=typeof svgrect,e.toucheventssupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointereventssupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domsupported="undefined"!=typeof document;var s=document.documentelement.style;e.transform3dsupported=(n.ie&&"transition"in s||n.edge||"webkitcssmatrix"in window&&"m11"in new webkitcssmatrix||"mozperspective"in s)&&!("otransition"in s),e.transformsupported=e.transform3dsupported||n.ie&&+n.version>=9}function i(t){var e={};if("undefined"==typeof json)return e;for(var n=0;ni;i++)e[i]=s(t[i])}}else if(bw[n]){if(!x(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!xw[n]&&!x(t)&&!p(t)){e={};for(var a in t)t.hasownproperty(a)&&a!==kw&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!a(e)||!a(t))return n?s(e):t;for(var i in e)if(e.hasownproperty(i)&&i!==kw){var r=t[i],o=e[i];!a(o)||!a(r)||m(o)||m(r)||p(o)||p(r)||k(o)||k(r)||x(o)||x(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(object.assign)object.assign(t,e);else for(var n in e)e.hasownproperty(n)&&n!==kw&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=b(e),r=0;rn;n++)if(t[n]===e)return n}return-1}function d(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasownproperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superclass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,object.getownpropertynames)for(var i=object.getownpropertynames(e),r=0;ri;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasownproperty(o)&&e.call(n,t[o],o,t)}function v(t,e,n){if(!t)return[];if(!e)return v(t);if(t.map&&t.map===iw)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return v(t);if(t.filter&&t.filter===tw)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function x(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function b(t){if(!t)return[];if(object.keys)return object.keys(t);var e=[];for(var n in t)t.hasownproperty(n)&&e.push(n);return e}function w(t,e){for(var n=[],i=2;in;n++)if(null!=t[n])return t[n]}function b(t,e){return null!=t?t:e}function f(t,e,n){return null!=t?t:null!=e?e:n}function v(t){for(var e=[],n=1;np;p++){var f=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*xe(n,7,0===a?1:0,1<o;o++){var a=document.createelement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.csstext=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendchild(a),n.push(a)}return n}function te(t,e,n){for(var i=n?"invtrans":"trans",r=e[i],o=e.srccoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getboundingclientrect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetleft,t[u].offsettop)}return l&&r?r:(e.srccoords=a,e[i]=n?be(s,a):be(a,s))}function ce(t){return"canvas"===t.nodename.touppercase()}function ie(t){return null==t?"":(t+"").replace(jw,function(t,e){return $w[e]})}function de(t,e,n,i){return n=n||{},i?ae(t,e,n):es&&null!=e.layerx&&e.layerx!==e.offsetx?(n.zrx=e.layerx,n.zry=e.layery):null!=e.offsetx?(n.zrx=e.offsetx,n.zry=e.offsety):ae(t,e,n),n}function ae(t,e,n){if(cw.domsupported&&t.getboundingclientrect){var i=e.clientx,r=e.clienty;if(ce(t)){var o=t.getboundingclientrect();return n.zrx=i-o.left,void(n.zry=r-o.top)}if(se(ts,t,i,r))return n.zrx=ts[0],void(n.zry=ts[1])}n.zrx=n.zry=0}function ke(t){return t||window.event}function le(t,e,n){if(e=ke(e),null!=e.zrx)return e;var i=e.type,r=i&&i.indexof("touch")>=0;if(r){var o="touchend"!==i?e.targettouches[0]:e.changedtouches[0];o&&de(t,o,e,n)}else{de(t,e,e,n);var a=pe(e);e.zrdelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&qw.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function pe(t){var e=t.wheeldelta;if(e)return e;var n=t.deltax,i=t.deltay;if(null==n||null==i)return e;var r=math.abs(0!==i?i:n),o=i>0?-1:0>i?1:n>0?-1:1;return 3*r*o}function oe(t,e,n,i){t.addeventlistener(e,n,i)}function re(t,e,n,i){t.removeeventlistener(e,n,i)}function ne(t){return 2===t.which||3===t.which}function ee(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return math.sqrt(e*e+n*n)}function ze(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function be(){return[1,0,0,1,0,0]}function fe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ve(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ge(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function he(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function we(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=math.sin(n),h=math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function ue(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function xe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function ye(t){var e=be();return ve(e,t),e}function je(t,e,n){return{type:t,event:n,target:e.target,toptarget:e.toptarget,cancelbubble:!1,offsetx:n.zrx,offsety:n.zry,gestureevent:n.gestureevent,pinchx:n.pinchx,pinchy:n.pinchy,pinchscale:n.pinchscale,wheeldelta:n.zrdelta,zrbytouch:n.zrbytouch,which:n.which,stop:ze}}function ze(){ns(this.event)}function qe(t,e,n){if(t[t.recthover?"rectcontain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreclip&&(o=!0),!o){var a=i.getclippath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hosttarget;i=s?s:i.parent}return r?ys:!0}return!1}function ke(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=qe(a,n,i))&&(!e.toptarget&&(e.toptarget=a),s!==ys)){e.target=a;break}}}function je(t,e,n){var i=t.painter;return 0>e||e>i.getwidth()||0>n||n>i.getheight()}function $e(t){for(var e=0;t>=ss;)e|=1&t,t>>=1;return t+e}function qe(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;tn(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function tn(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function en(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function rn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function on(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]=r?a(i,r,o,h):s(i,r,o,h)))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)p[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,d,f,g=h;;){c=0,d=0,f=!1;do if(e(t[l],p[s])<0){if(t[u++]=t[l++],d++,c=0,0===--o){f=!0;break}}else if(t[u++]=p[s++],c++,d=0,1===--i){f=!0;break}while(g>(c|d));if(f)break;do{if(c=rn(t[l],p,s,i,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,i-=c,1>=i){f=!0;break}}if(t[u++]=t[l++],0===--o){f=!0;break}if(d=nn(p[s],t,l,o,0,e),0!==d){for(a=0;d>a;a++)t[u+a]=t[l+a];if(u+=d,l+=d,o-=d,0===o){f=!0;break}}if(t[u++]=p[s++],1===--i){f=!0;break}g--}while(c>=ms||d>=ms);if(f)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===i)throw new error;for(a=0;i>a;a++)t[u+a]=p[s+a]}}else for(a=0;i>a;a++)t[u+a]=p[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,d=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];return void(t[u]=p[l])}for(var f=h;;){var g=0,y=0,v=!1;do if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0===--i){v=!0;break}}else if(t[u--]=p[l--],y++,g=0,1===--o){v=!0;break}while(f>(g|y));if(v)break;do{if(g=i-rn(p[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,d=u+1,c=s+1,a=g-1;a>=0;a--)t[d+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1===--o){v=!0;break}if(y=o-nn(t[s],p,0,o,o-1,e),0!==y){for(u-=y,l-=y,o-=y,d=u+1,c=l+1,a=0;y>a;a++)t[d+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--i){v=!0;break}f--}while(g>=ms||y>=ms);if(v)break;0>f&&(f=0),f+=2}if(h=f,1>h&&(h=1),1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=ms,c=0,p=[];return l=[],u=[],{mergeruns:i,forcemergeruns:r,pushrun:n}}function an(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(ss>r)return o=qe(t,n,i,e),void en(t,n,i,n+o,e);var a=on(t,e),s=$e(r);do{if(o=qe(t,n,i,e),s>o){var l=r;l>s&&(l=s),en(t,n,n+l,n+o,e),o=l}a.pushrun(n,o),a.mergeruns(),r-=o,n+=o}while(0!==r);a.forcemergeruns()}}function sn(){ds||(ds=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ln(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function un(t){return t>-rs&&rs>t}function hn(t){return t>rs||-rs>t}function cn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function pn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function dn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(un(h)&&un(c))if(un(s))o[0]=0;else{var f=-l/s;f>=0&&1>=f&&(o[d++]=f)}else{var g=c*c-4*h*p;if(un(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v)}else if(g>0){var m=os(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-ps(-_,zs):ps(_,zs),x=0>x?-ps(-x,zs):ps(x,zs);var f=(-s-(_+x))/(3*a);f>=0&&1>=f&&(o[d++]=f)}else{var b=(2*h*s-3*a*c)/(2*os(h*h*h)),w=math.acos(b)/3,s=os(h),m=math.cos(w),f=(-s-2*s*m)/(3*a),v=(-s+s*(m+es*math.sin(w)))/(3*a),t=(-s+s*(m-es*math.sin(w)))/(3*a);f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v),t>=0&&1>=t&&(o[d++]=t)}}return d}function fn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(un(a)){if(hn(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(un(h))r[0]=-o/(2*a);else if(h>0){var c=os(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function gn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function yn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;bs[0]=l,bs[1]=u;for(var m=0;1>m;m+=.05)fs[0]=cn(t,n,r,a,m),fs[1]=cn(e,i,o,s,m),f=ww(bs,fs),v>f&&(c=m,v=f);v=1/0;for(var _=0;32>_&&!(ns>y);_++)p=c-y,d=c+y,fs[0]=cn(t,n,r,a,p),fs[1]=cn(e,i,o,s,p),f=ww(fs,bs),p>=0&&v>f?(c=p,v=f):(vs[0]=cn(t,n,r,a,d),vs[1]=cn(e,i,o,s,d),g=ww(vs,bs),1>=d&&v>g?(c=d,v=g):y*=.5);return h&&(h[0]=cn(t,n,r,a,c),h[1]=cn(e,i,o,s,c)),os(v)}function vn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;l>=d;d++){var f=d*p,g=cn(t,n,r,a,f),y=cn(e,i,o,s,f),v=g-u,m=y-h;c+=math.sqrt(v*v+m*m),u=g,h=y}return c}function mn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function _n(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function xn(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(un(o)){if(hn(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(un(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=os(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function bn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function wn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function sn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;bs[0]=a,bs[1]=s;for(var p=0;1>p;p+=.05){fs[0]=mn(t,n,r,p),fs[1]=mn(e,i,o,p);var d=ww(bs,fs);c>d&&(u=p,c=d)}c=1/0;for(var f=0;32>f&&!(ns>h);f++){var g=u-h,y=u+h;fs[0]=mn(t,n,r,g),fs[1]=mn(e,i,o,g);var d=ww(fs,bs);if(g>=0&&c>d)u=g,c=d;else{vs[0]=mn(t,n,r,y),vs[1]=mn(e,i,o,y);var v=ww(vs,bs);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=mn(t,n,r,u),l[1]=mn(e,i,o,u)),os(c)}function mn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,d=mn(t,n,r,p),f=mn(e,i,o,p),g=d-s,y=f-l;u+=math.sqrt(g*g+y*y),s=d,l=f}return u}function tn(t){var e=t&&gs.exec(t);if(e){var n=e[1].split(","),i=+w(n[0]),r=+w(n[1]),o=+w(n[2]),a=+w(n[3]);if(isnan(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:dn(0,i,o,1,t,s)&&cn(0,r,a,1,s[0])}}}function cn(t){return t=math.round(t),0>t?0:t>255?255:t}function in(t){return t=math.round(t),0>t?0:t>360?360:t}function dn(t){return 0>t?0:t>1?1:t}function an(t){var e=t;return cn(e.length&&"%"===e.charat(e.length-1)?parsefloat(e)/100*255:parseint(e,10))}function kn(t){var e=t;return dn(e.length&&"%"===e.charat(e.length-1)?parsefloat(e)/100:parsefloat(e))}function ln(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function pn(t,e,n){return t+(e-t)*n}function on(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function nn(t,e){zs&&rn(zs,e),zs=js.put(t,zs||e.slice())}function en(t,e){if(t){e=e||[];var n=js.get(t);if(n)return rn(e,n);t+="";var i=t.replace(/ /g,"").tolowercase();if(i in ys)return rn(e,ys[i]),nn(t,e),e;var r=i.length;if("#"!==i.charat(0)){var o=i.indexof("("),a=i.indexof(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?on(e,+l[0],+l[1],+l[2],1):on(e,0,0,0,1);u=kn(l.pop());case"rgb":return l.length>=3?(on(e,an(l[0]),an(l[1]),an(l[2]),3===l.length?u:kn(l[3])),nn(t,e),e):void on(e,0,0,0,1);case"hsla":return 4!==l.length?void on(e,0,0,0,1):(l[3]=kn(l[3]),zn(l,e),nn(t,e),e);case"hsl":return 3!==l.length?void on(e,0,0,0,1):(zn(l,e),nn(t,e),e);default:return}}on(e,0,0,0,1)}else{if(4===r||5===r){var h=parseint(i.slice(1,4),16);return h>=0&&4095>=h?(on(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseint(i.slice(4),16)/15:1),nn(t,e),e):void on(e,0,0,0,1)}if(7===r||9===r){var h=parseint(i.slice(1,7),16);return h>=0&&16777215>=h?(on(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseint(i.slice(7),16)/255:1),nn(t,e),e):void on(e,0,0,0,1)}}}}function zn(t,e){var n=(parsefloat(t[0])%360+360)%360/360,i=kn(t[1]),r=kn(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],on(e,cn(255*ln(a,o,n+1/3)),cn(255*ln(a,o,n)),cn(255*ln(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function bn(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=math.min(i,r,o),s=math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function fn(t,e){var n=en(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return xn(n,4===n.length?"rgba":"rgb")}}function vn(t){var e=en(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).tostring(16).slice(1):void 0}function gn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=math.floor(i),o=math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=cn(pn(a[0],s[0],l)),n[1]=cn(pn(a[1],s[1],l)),n[2]=cn(pn(a[2],s[2],l)),n[3]=dn(pn(a[3],s[3],l)),n}}function hn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=math.floor(i),o=math.ceil(i),a=en(e[r]),s=en(e[o]),l=i-r,u=xn([cn(pn(a[0],s[0],l)),cn(pn(a[1],s[1],l)),cn(pn(a[2],s[2],l)),dn(pn(a[3],s[3],l))],"rgba");return n?{color:u,leftindex:r,rightindex:o,value:i}:u}}function wn(t,e,n,i){var r=en(t);return t?(r=bn(r),null!=e&&(r[0]=in(e)),null!=n&&(r[1]=kn(n)),null!=i&&(r[2]=kn(i)),xn(zn(r),"rgba")):void 0}function un(t,e){var n=en(t);return n&&null!=e?(n[3]=dn(e),xn(n,"rgba")):void 0}function xn(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function yn(t,e){var n=en(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function jn(){return xn([math.round(255*math.random()),math.round(255*math.random()),math.round(255*math.random())],"rgb")}function zn(t){return"linear"===t.type}function qn(t){return"radial"===t.type}function kn(t,e,n){return(e-t)*n+t}function jn(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=kn(e[o],n[o],i);return t}function $n(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=kn(e[a][s],n[a][s],i)}return t}function qn(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function ti(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function ei(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;a>l;l++)i.push(1===n?r[l]:$s.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;lh;h++)isnan(i[l][h])&&(i[l][h]=r[l][h])}}function ii(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push($s.call(t[i]));return n}return $s.call(t)}return t}function ri(t){return t[0]=math.floor(t[0])||0,t[1]=math.floor(t[1])||0,t[2]=math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function oi(t){return g(t&&t[0])?2:1}function ai(t){return t===im||t===rm}function si(t){return t===tm||t===em}function li(){return(new date).gettime()}function ui(t){var e=t.pointertype;return"pen"===e||"touch"===e}function hi(t){t.touching=!0,null!=t.touchtimer&&(cleartimeout(t.touchtimer),t.touchtimer=null),t.touchtimer=settimeout(function(){t.touching=!1,t.touchtimer=null},700)}function ci(t){t&&(t.zrbytouch=!0)}function pi(t,e){return le(t.dom,new gm(t,e),!0)}function di(t,e){for(var n=e,i=!1;n&&9!==n.nodetype&&!(i=n.dombelongtozr||n!==e&&n===t.painterroot);)n=n.parentnode;return i}function fi(t,e){var n=e.domhandlers;cw.pointereventssupported?y(pm.pointer,function(i){yi(e,i,function(e){n[i].call(t,e)})}):(cw.toucheventssupported&&y(pm.touch,function(i){yi(e,i,function(r){n[i].call(t,r),hi(e)})}),y(pm.mouse,function(i){yi(e,i,function(r){r=ke(r),e.touching||n[i].call(t,r)})}))}function gi(t,e){function n(n){function i(i){i=ke(i),di(t,i.target)||(i=pi(t,i),e.domhandlers[n].call(t,i))}yi(e,n,i,{capture:!0})}cw.pointereventssupported?y(dm.pointer,n):cw.toucheventssupported||y(dm.mouse,n)}function yi(t,e,n,i){t.mounted[e]=n,t.listeneropts[e]=i,oe(t.domtarget,e,n,i)}function vi(t){var e=t.mounted;for(var n in e)e.hasownproperty(n)&&re(t.domtarget,n,e[n],t.listeneropts[n]);t.mounted={}}function mi(t){return t>im||-im>t}function _i(t,e){for(var n=0;n=0?parsefloat(t)/100*e:parsefloat(t):t}function ii(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof array)l+=ci(i[0],n.width),u+=ci(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideleft":l+=r,u+=s,c="middle";break;case"insideright":l+=a-r,u+=s,h="right",c="middle";break;case"insidetop":l+=a/2,u+=r,h="center";break;case"insidebottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insidetopleft":l+=r,u+=r;break;case"insidetopright":l+=a-r,u+=r,h="right";break;case"insidebottomleft":l+=r,u+=o-r,c="bottom";break;case"insidebottomright":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalalign=c,t}function di(t,e,n,i,r){n=n||{};var o=[];ri(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;pi;i++)t[i]=e[i]}function ki(t){return g(t[0])}function li(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),l(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),ai(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(ki(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?ai(o[l],r[l],s):o[l]=array.prototype.slice.call(r[l]);else ai(o,r,a);o.length=r.length}else t[n]=e[n]}function pi(t,e){return t===e||g(t)&&g(e)&&oi(t,e)}function oi(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function ri(t,e,n,i,r,o,a,s){for(var l=b(i),u=r.duration,h=r.delay,c=r.additive,d=r.settofinal,f=!a(o),y=t.animators,v=[],m=0;m0||r.force&&!a.length){var d=void 0,k=void 0,l=void 0;if(s){k={},d&&(d={});for(var m=0;s>m;m++){var x=v[m];k[x]=n[x],d?d[x]=i[x]:n[x]=i[x]}}else if(d){l={};for(var m=0;s>m;m++){var x=v[m];l[x]=ii(n[x]),li(n,i,x)}}var t=new lm(n,!1,!1,c?_(y,function(t){return t.targetname===e}):null);t.targetname=e,r.scope&&(t.scope=r.scope),d&&d&&t.whenwithkeys(0,d,v),l&&t.whenwithkeys(0,l,v),t.whenwithkeys(null==u?500:u,s?k:i,v).delay(h||0),t.addanimator(t,e),a.push(t)}}function ni(t){delete wm[t]}function ei(t){if(!t)return!1;if("string"==typeof t)return yn(t,1)r;r++)n+=yn(e[r].color,1);return n/=i,wm>n}return!1}function zi(t,e){var n=new um(o(),t,e);return wm[n.id]=n,n}function bi(t){t.dispose()}function fi(){for(var t in wm)wm.hasownproperty(t)&&wm[t].dispose();wm={}}function vi(t){return wm[t]}function gi(t,e){hm[t]=e}function hi(t){return t.replace(/^\s+|\s+$/g,"")}function wi(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function ui(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 c(t)?hi(t).match(/%$/)?parsefloat(t)/100*e:parsefloat(t):null==t?0/0:+t}function xi(t,e,n){return null==e&&(e=10),e=math.min(math.max(0,e),zm),t=(+t).tofixed(e),n?t:+t}function yi(t){return t.sort(function(t,e){return t-e}),t}function ji(t){if(t=+t,isnan(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(math.round(t*e)/e===t)return n;return zi(t)}function zi(t){var e=t.tostring().tolowercase(),n=e.indexof("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexof("."),a=0>o?0:r-1-o;return math.max(0,a-i)}function qi(t,e){var n=math.log,i=math.ln10,r=math.floor(n(t[1]-t[0])/i),o=math.round(n(math.abs(e[1]-e[0]))/i),a=math.min(math.max(-r+o,0),20);return isfinite(a)?a:20}function ki(t,e,n){if(!t[e])return 0;var i=ji(t,n);return i[e]||0}function ji(t,e){var n=m(t,function(t,e){return t+(isnan(e)?0:e)},0);if(0===n)return[];for(var i=math.pow(10,e),r=v(t,function(t){return(isnan(t)?0:t)/n*i*100}),o=100*i,a=v(r,function(t){return math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=v(r,function(t,e){return t-a[e]});o>s;){for(var u=number.negative_infinity,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return v(a,function(t){return t/i})}function $i(t,e){var n=math.max(ji(t),ji(e)),i=t+e;return n>zm?i:xi(i,n)}function qi(t){var e=2*math.pi;return(t%e+e)%e}function tr(t){return t>-jm&&jm>t}function er(t){if(t instanceof date)return t; if(c(t)){var e=km.exec(t);if(!e)return new date(0/0);if(e[8]){var n=+e[4]||0;return"z"!==e[8].touppercase()&&(n-=+e[8].slice(0,3)),new date(date.utc(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new date(null==t?0/0:math.round(t))}function nr(t){return math.pow(10,ir(t))}function ir(t){if(0===t)return 0;var e=math.floor(math.log(t)/math.ln10);return t/math.pow(10,e)>=10&&e++,e}function rr(t,e){var n,i=ir(t),r=math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.tofixed(0>i?-i:0):t}function or(t,e){var n=(t.length-1)*e+1,i=math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function ar(t){function e(t,n,i){return t.interval[i]s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function sr(t){var e=parsefloat(t);return e==t&&(0!==e||!c(t)||t.indexof("x")<=0)?e:0/0}function lr(t){return!isnan(sr(t))}function ur(){return math.round(9*math.random())}function hr(t,e){return 0===e?t:hr(e,t%e)}function cr(t,e){return null==t?e:null==e?t:t*e/hr(t,e)}function pr(t){throw new error(t)}function dr(t,e,n){return(e-t)*n+t}function fr(t){return t instanceof array?t:null==t?[]:[t]}function gr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasownproperty(o)&&t[e].hasownproperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function yr(t){return!a(t)||m(t)||t instanceof date?t:t.value}function vr(t){return a(t)&&!(t instanceof array)}function mr(t,e,n){var i="normalmerge"===n,r="replacemerge"===n,o="replaceall"===n;t=t||[],e=(e||[]).slice();var a=j();y(e,function(t,n){return a(t)?void 0:void(e[n]=null)});var s=_r(t,a,n);return(i||r)&&xr(s,t,a,e),i&&br(s,e),i||r?wr(s,e,r):o&&sr(s,e),mr(s),s}function _r(t,e,n){var i=[];if("replaceall"===n)return i;for(var r=0;rr?n:i;for(var s=[],l=n,u=i,h=math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getdimensioninfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,f=u[c],a=dr(d,f,r);s[c]=xi(a,o?math.max(ji(d),ji(f)):e)}}return s}function hr(t){var e={main:"",sub:""};if(t){var n=t.split(nt);e.main=n[0]||"",e.sub=n[1]||""}return e}function wr(t){h(/^[a-za-z0-9_]+([.][a-za-z0-9_]+)?$/.test(t),'componenttype "'+t+'" illegal')}function ur(t){return!(!t||!t[rt])}function xr(t){t.$constructor=t,t.extend=function(t){var n,i=this;return yr(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},d(n,this)),h(n.prototype,t),n[rt]=!0,n.extend=this.extend,n.supercall=qr,n.superapply=kr,n.superclass=i,n}}function yr(t){return t(t)&&/^class\s/.test(function.prototype.tostring.call(t))}function jr(t,e){t.extend=e.extend}function zr(t){var e=["__\x00is_clz",ot++].join("_");t.prototype[e]=!0,t.isinstance=function(t){return!(!t||!t[e])}}function qr(t,e){for(var n=[],i=2;i=0||r&&p(r,s)<0)){var l=n.getshallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function qr(t){if("string"==typeof t){var e=ut.get(t);return e&&e.image}return t}function to(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrimagesrc===t||!n)return e;var o=ut.get(t),a={hostel:n,cb:i,cbpayload:r};return o?(e=o.image,!no(e)&&o.pending.push(a)):(e=_w.loadimage(t,eo,eo),e.__zrimagesrc=t,ut.put(t,e.__cachedimgobj={image:e,pending:[a]})),e}return t}return e}function eo(){var t=this.__cachedimgobj;this.onload=this.onerror=this.__cachedimgobj=null;for(var e=0;ea;a++)o[a]=oo(o[a],r);return o.join("\n")}function ro(t,e,n,i){i=i||{};var r=h({},i);r.font=e,n=b(n,"..."),r.maxiterations=b(i.maxiterations,2);var o=r.minchar=b(i.minchar,0);r.cncharwidth=xi("国",e);var a=r.asccharwidth=xi("a",e);r.placeholder=b(i.placeholder,"");for(var s=t=math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=xi(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsiswidth=u,r.contentwidth=s,r.containerwidth=t,r}function oo(t,e){var n=e.containerwidth,i=e.font,r=e.contentwidth;if(!n)return"";var o=xi(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxiterations){t+=e.ellipsis;break}var s=0===a?ao(t,r,e.asccharwidth,e.cncharwidth):o>0?math.floor(t.length*r/o):0;t=t.substr(0,s),o=xi(t,i)}return""===t&&(t=e.placeholder),t}function ao(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charcodeat(o);r+=s>=0&&127>=s?n:i}return o}function so(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=ti(o),l=b(e.lineheight,s),u=!!e.backgroundcolor,h="truncate"===e.lineoverflow,c=e.width;n=null==c||"break"!==i&&"breakall"!==i?t?t.split("\n"):[]:t?po(t,e.font,c,"breakall"===i,0).lines:[];var p=n.length*l,d=b(e.height,p);if(p>d&&h){var f=math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=ro(c,o,e.ellipsis,{minchar:e.truncateminchar,placeholder:e.placeholder}),y=0;yu&&uo(i,t.substring(u,h),e,l),uo(i,r[2],e,l,r[1]),u=ht.lastindex}ua){b>0?(m.tokens=m.tokens.slice(0,b),n(m,x,_),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var d=s.width,a=null==d||"auto"===d;if("string"==typeof d&&"%"===d.charat(d.length-1))w.percentwidth=d,c.push(w),w.contentwidth=xi(w.text,c);else{if(a){var k=s.backgroundcolor,l=k&&k.image;l&&(l=qr(l),no(l)&&(w.width=math.max(w.width,l.width*i/l.height)))}var p=g&&null!=o?o-x:null;null!=p&&pp?(w.text="",w.width=w.contentwidth=0):(w.text=io(w.text,p-t,c,e.ellipsis,{minchar:e.truncateminchar}),w.width=w.contentwidth=xi(w.text,c)):w.contentwidth=xi(w.text,c)}w.width+=t,x+=w.width,s&&(_=math.max(_,w.lineheight))}n(m,x,_)}i.outerwidth=i.width=b(o,d),i.outerheight=i.height=b(a,p),i.contentheight=p,i.contentwidth=d,f&&(i.outerwidth+=f[1]+f[3],i.outerheight+=f[0]+f[2]);for(var v=0;v0&&f+i.accumwidth>i.width&&(o=e.split("\n"),c=!0),i.accumwidth=f}else{var g=po(e,h,i.width,i.breakall,i.accumwidth);i.accumwidth=g.accumwidth+d,a=g.lineswidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=33&&383>=e}function co(t){return ho(t)?ft[t]?!0:!1:!0}function po(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=d,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumwidth:h,lines:o,lineswidths:a}}function fo(t,e,n){return bt.copy(t.getboundingrect()),t.transform&&bt.applytransform(t.transform),wt.width=e,wt.height=n,!bt.intersect(wt)}function go(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;ld;d++){var f=c(t,n,r,a,lt[d]);l[0]=st(f,l[0]),u[0]=mt(f,u[0])}p=h(e,i,o,s,pt);for(var d=0;p>d;d++){var g=c(e,i,o,s,pt[d]);l[1]=st(g,l[1]),u[1]=mt(g,u[1])}l[0]=st(t,l[0]),u[0]=mt(t,u[0]),l[0]=st(a,l[0]),u[0]=mt(a,u[0]),l[1]=st(e,l[1]),u[1]=mt(e,u[1]),l[1]=st(s,l[1]),u[1]=mt(s,u[1])}function mo(t,e,n,i,r,o,a,s){var l=bn,u=mn,h=mt(st(l(t,n,r),1),0),c=mt(st(l(e,i,o),1),0),p=u(t,n,r,h),d=u(e,i,o,c);a[0]=st(t,r,p),a[1]=st(e,o,d),s[0]=mt(t,r,p),s[1]=mt(e,o,d)}function _o(t,e,n,i,r,o,a,s,l){var u=me,h=_e,c=math.abs(r-o);if(1e-4>c%it&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(dt[0]=ct(r)*n+t,dt[1]=tt(r)*i+e,at[0]=ct(o)*n+t,at[1]=tt(o)*i+e,u(s,dt,at),h(l,dt,at),r%=it,0>r&&(r+=it),o%=it,0>o&&(o+=it),r>o&&!a?o+=it:o>r&&a&&(r+=it),a){var p=o;o=r,r=p}for(var d=0;o>d;d+=math.pi/2)d>r&&(kt[0]=ct(d)*n+t,kt[1]=tt(d)*i+e,u(s,kt,s),h(l,kt,l))}function xo(t){var e=math.round(t/xt*1e8)/1e8;return e%2*xt}function bo(t,e){var n=xo(t[0]);0>n&&(n+=yt);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=yt?r=n+yt:e&&n-r>=yt?r=n-yt:!e&&n>r?r=n+(yt-xo(n-r)):e&&r>n&&(r=n-(yt-xo(r-n))),t[0]=n,t[1]=r}function wo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function so(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)return!1;var p=yn(t,e,n,i,r,o,a,s,u,h,null);return c/2>=p}function mo(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=sn(t,e,n,i,r,o,s,l,null);return u/2>=h}function to(t){return t%=kt,0>t&&(t+=kt),t}function co(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(math.abs(i-r)%jt<1e-4)return!0;if(o){var c=i;i=to(r),r=to(c)}else i=to(i),r=to(r);i>r&&(r+=jt);var p=math.atan2(l,s);return 0>p&&(p+=jt),p>=i&&r>=p||p+jt>=i&&r>=p+jt}function io(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function do(t,e){return math.abs(t-e)e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=dn(e,i,o,s,u,ec);if(0===h)return 0;for(var c=0,p=-1,d=void 0,f=void 0,g=0;h>g;g++){var y=ec[g],v=0===y||1===y?.5:1,m=cn(t,n,r,a,y);l>m||(0>p&&(p=fn(e,i,o,s,nc),nc[1]1&&ao(),d=cn(e,i,o,s,nc[0]),p>1&&(f=cn(e,i,o,s,nc[1]))),c+=2===p?yd?v:-v:yf?v:-v:f>s?v:-v:yd?v:-v:d>s?v:-v)}return c}function lo(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=xn(e,i,o,s,ec);if(0===l)return 0;var u=bn(e,i,o);if(u>=0&&1>=u){for(var h=0,c=mn(e,i,o,u),p=0;l>p;p++){var d=0===ec[p]||1===ec[p]?.5:1,f=mn(t,n,r,ec[p]);a>f||(h+=ec[p]c?d:-d:c>o?d:-d)}return h}var d=0===ec[0]||1===ec[0]?.5:1,f=mn(t,n,r,ec[0]);return a>f?0:e>o?d:-d}function po(t,e,n,i,r,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=math.sqrt(n*n-s*s);ec[0]=-l,ec[1]=l;var u=math.abs(i-r);if(1e-4>u)return 0;if(u>=qt-1e-4){i=0,r=qt;var h=o?1:-1;return a>=ec[0]+t&&a<=ec[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=qt,r+=qt);for(var p=0,d=0;2>d;d++){var f=ec[d];if(f+t>a){var g=math.atan2(s,f),h=o?1:-1;0>g&&(g=qt+g),(g>=i&&r>=g||g+qt>=i&&r>=g+qt)&&(g>math.pi/2&&g<1.5*math.pi&&(h=-h),p+=h)}}return p}function oo(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;l>f;){var g=s[f++],y=1===f;switch(g===$t.m&&f>1&&(n||(u+=io(h,c,p,d,i,r))),y&&(h=s[f],c=s[f+1],p=h,d=c),g){case $t.m:p=s[f++],d=s[f++],h=p,c=d;break;case $t.l:if(n){if(wo(h,c,s[f],s[f+1],e,i,r))return!0}else u+=io(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case $t.c:if(n){if(so(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=ko(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case $t.q:if(n){if(mo(h,c,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=lo(h,c,s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case $t.a:var v=s[f++],m=s[f++],_=s[f++],x=s[f++],b=s[f++],w=s[f++];f+=1;var s=!!(1-s[f++]);o=math.cos(b)*_+v,a=math.sin(b)*x+m,y?(p=o,d=a):u+=io(h,c,o,a,i,r);var m=(i-v)*x/_+v;if(n){if(co(v,m,x,b,b+w,s,e,m,r))return!0}else u+=po(v,m,x,b,b+w,s,m,r);h=math.cos(b+w)*_+v,c=math.sin(b+w)*x+m;break;case $t.r:p=h=s[f++],d=c=s[f++];var t=s[f++],c=s[f++];if(o=p+t,a=d+c,n){if(wo(p,d,o,d,e,i,r)||wo(o,d,o,a,e,i,r)||wo(o,a,p,a,e,i,r)||wo(p,a,p,d,e,i,r))return!0}else u+=io(o,d,o,a,i,r),u+=io(p,a,p,d,i,r);break;case $t.z:if(n){if(wo(h,c,p,d,e,i,r))return!0}else u+=io(h,c,p,d,i,r);h=p,c=d}}return n||do(c,d)||(u+=io(h,c,p,d,i,r)||0),0!==u}function ro(t,e,n){return oo(t,0,!1,e,n)}function no(t,e,n,i){return oo(t,e,!0,n,i)}function eo(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function zo(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?n=i=r=o=h:h instanceof array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveto(a+n,s),t.lineto(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-math.pi/2,0),t.lineto(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,math.pi/2),t.lineto(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,math.pi/2,math.pi),t.lineto(a,s+n),0!==n&&t.arc(a+n,s+n,n,math.pi,1.5*math.pi)}function bo(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.linewidth;return s?(pc(2*i)===pc(2*r)&&(t.x1=t.x2=vo(i,s,!0)),pc(2*o)===pc(2*a)&&(t.y1=t.y2=vo(o,s,!0)),t):t}}function fo(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.linewidth;return s?(t.x=vo(i,s,!0),t.y=vo(r,s,!0),t.width=math.max(vo(i+o,s,!1)-t.x,0===o?0:1),t.height=math.max(vo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function vo(t,e,n){if(!e)return t;var i=pc(2*t);return(i+pc(e))%2===0?i/2:(i+(n?1:-1))/2}function go(t){return"string"!=typeof t||-1===t.indexof("px")&&-1===t.indexof("rem")&&-1===t.indexof("em")?isnan(+t)?pw+"px":t+"px":t}function ho(t,e){for(var n=0;n=e||"transparent"===t||"none"===t?null:t.image||t.colorstops?"#000":t}function jo(t){return null==t||"none"===t?null:t.image||t.colorstops?"#000":t}function zo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function qo(t){var e=t.text;return null!=e&&(e+=""),e}function ko(t){return!!(t.backgroundcolor||t.lineheight||t.borderwidth&&t.bordercolor)}function jo(t){return null!=t&&"none"!==t}function $o(t){if(c(t)){var e=gc.get(t);return e||(e=fn(t,-.1),gc.put(t,e)),e}if(o(t)){var n=h({},t);return n.colorstops=v(t.colorstops,function(t){return{offset:t.offset,color:fn(t.color,-.1)}}),n}return t}function qo(t,e,n){t.onhoverstatechange&&(t.hoverstate||0)!==n&&t.onhoverstatechange(e),t.hoverstate=n}function ta(t){qo(t,"emphasis",lc)}function ea(t){t.hoverstate===lc&&qo(t,"normal",ac)}function na(t){qo(t,"blur",kc)}function ia(t){t.hoverstate===kc&&qo(t,"normal",ac)}function ra(t){t.selected=!0}function oa(t){t.selected=!1}function aa(t,e,n){e(t,n)}function sa(t,e,n){aa(t,e,n),t.isgroup&&t.traverse(function(t){aa(t,e,n)})}function la(t,e){switch(e){case"emphasis":t.hoverstate=lc;break;case"normal":t.hoverstate=ac;break;case"blur":t.hoverstate=kc;break;case"select":t.selected=!0}}function ua(t,e,n,i){for(var r=t.style,o={},a=0;a=0,o=!1;if(t instanceof ac){var a=ic(t),s=r?a.selectfill||a.normalfill:a.normalfill,l=r?a.selectstroke||a.normalstroke:a.normalstroke;if(jo(s)||jo(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=h({},i),u=h({},u),u.fill=s):!jo(u.fill)&&jo(s)?(o=!0,i=h({},i),u=h({},u),u.fill=$o(s)):!jo(u.stroke)&&jo(l)&&(o||(i=h({},i),u=h({},u)),u.stroke=$o(l)),i.style=u}}if(i&&null==i.z2){o||(i=h({},i));var c=t.z2emphasislift;i.z2=t.z2+(null!=c?c:rc)}return i}function ca(t,e,n){if(n&&null==n.z2){n=h({},n);var i=t.z2selectlift;n.z2=t.z2+(null!=i?i:nc)}return n}function pa(t,e,n){var i=p(t.currentstates,e)>=0,r=t.style.opacity,o=i?null:ua(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:i?r:.1*o.opacity},a),n.style=a),n}function da(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return ha(this,t,e,n);if("blur"===t)return pa(this,t,n);if("select"===t)return ca(this,t,n)}return n}function fa(t){t.stateproxy=da;var e=t.gettextcontent(),n=t.gettextguideline();e&&(e.stateproxy=da),n&&(n.stateproxy=da)}function ga(t,e){!sa(t,e)&&!t.__highbyouter&&sa(t,ta)}function ya(t,e){!sa(t,e)&&!t.__highbyouter&&sa(t,ea)}function va(t,e){t.__highbyouter|=1<<(e||0),sa(t,ta)}function ma(t,e){!(t.__highbyouter&=~(1<<(e||0)))&&sa(t,ea)}function _a(t){sa(t,na)}function xa(t){sa(t,ia)}function ba(t){sa(t,ra)}function wa(t){sa(t,oa)}function sa(t,e){return t.__highdownsilentontouch&&e.zrbytouch}function ma(t){var e=t.getmodel(),n=[],i=[];e.eachcomponent(function(e,r){var o=dc(r),a="series"===e,s=a?t.getviewofseriesmodel(r):t.getviewofcomponentmodel(r);!a&&i.push(s),o.isblured&&(s.group.traverse(function(t){ia(t)}),a&&n.push(r)),o.isblured=!1}),y(i,function(t){t&&t.toggleblurseries&&t.toggleblurseries(n,!1,e)})}function ta(t,e,n,i){function r(t,e){for(var n=0;nl;)a=r.getitemgraphicel(l++);if(a){var u=sc(a);ta(i,u.focus,u.blurscope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurscope"]);null!=h&&ta(i,h,c,n)}}}function da(t,e,n,i){var r={focusself:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getmodel().getcomponent(t,e);if(!o)return r;var a=i.getviewofcomponentmodel(o);if(!a||!a.findhighdowndispatchers)return r;for(var s,l=a.findhighdowndispatchers(n),u=0;u0){var o={dataindex:r,seriesindex:t.seriesindex};null!=i&&(o.datatype=i),e.push(o)}})}),e}function ra(t,e,n){fa(t,!0),sa(t,fa),za(t,e,n)}function na(t){fa(t,!1)}function ea(t,e,n,i){i?na(t):ra(t,e,n)}function za(t,e,n){var i=sc(t);null!=e?(i.focus=e,i.blurscope=n):i.focus&&(i.focus=null)}function ba(t,e,n,i){n=n||"itemstyle";for(var r=0;r=tc&&(e=cc[t]=tc++),e}function wa(t){var e=t.type;return e===bc||e===fc||e===vc}function ua(t){var e=t.type;return e===ec||e===zc}function xa(t){var e=ic(t);e.normalfill=t.style.fill,e.normalstroke=t.style.stroke;var n=t.states.select||{};e.selectfill=n.style&&n.style.fill||null,e.selectstroke=n.style&&n.style.stroke||null}function ya(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=uc.m,c=uc.c,p=uc.l,d=uc.r,f=uc.a,g=uc.q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:i=1;break;case p:i=1;break;case c:i=3;break;case g:i=2;break;case f:var y=e[4],v=e[5],m=yc(e[0]*e[0]+e[1]*e[1]),_=yc(e[2]*e[2]+e[3]*e[3]),x=jc(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=_,l[r++]+=v,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],ve(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ve(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var b=xc[a];b[0]=l[r++],b[1]=l[r++],ve(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseversion()}}function ja(t){return math.sqrt(t[0]*t[0]+t[1]*t[1])}function za(t,e){return(t[0]*e[0]+t[1]*e[1])/(ja(t)*ja(e))}function qa(t,e){return(t[0]*e[1]1&&(a*=zc(f),s*=zc(f));var g=(r===o?-1:1)*zc((a*a*s*s-a*a*d*d-s*s*p*p)/(a*a*d*d+s*s*p*p))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+kc(c)*y-qc(c)*v,_=(e+i)/2+qc(c)*y+kc(c)*v,x=qa([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],s=qa(b,w);if(za(b,w)<=-1&&(s=jc),za(b,w)>=1&&(s=0),0>s){var m=math.round(s/jc*1e6)/1e6;s=2*jc+m%2*jc}h.adddata(u,m,_,a,s,x,s,c,o)}function ja(t){var e=new qt;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=qt.cmd,l=t.match($c);if(!l)return e;for(var u=0;ug;g++)d[g]=parsefloat(d[g]);for(var y=0;f>y;){var v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,s=void 0,m=i,t=r,c=void 0,i=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.l,e.adddata(p,i,r);break;case"l":i=d[y++],r=d[y++],p=s.l,e.adddata(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.m,e.adddata(p,i,r),o=i,a=r,c="l";break;case"m":i=d[y++],r=d[y++],p=s.m,e.adddata(p,i,r),o=i,a=r,c="l";break;case"h":i+=d[y++],p=s.l,e.adddata(p,i,r);break;case"h":i=d[y++],p=s.l,e.adddata(p,i,r);break;case"v":r+=d[y++],p=s.l,e.adddata(p,i,r);break;case"v":r=d[y++],p=s.l,e.adddata(p,i,r);break;case"c":p=s.c,e.adddata(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.c,e.adddata(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"s":v=i,m=r,c=e.len(),i=e.data,n===s.c&&(v+=i-i[c-4],m+=r-i[c-3]),p=s.c,m=d[y++],t=d[y++],i=d[y++],r=d[y++],e.adddata(p,v,m,m,t,i,r);break;case"s":v=i,m=r,c=e.len(),i=e.data,n===s.c&&(v+=i-i[c-4],m+=r-i[c-3]),p=s.c,m=i+d[y++],t=r+d[y++],i+=d[y++],r+=d[y++],e.adddata(p,v,m,m,t,i,r);break;case"q":m=d[y++],t=d[y++],i=d[y++],r=d[y++],p=s.q,e.adddata(p,m,t,i,r);break;case"q":m=d[y++]+i,t=d[y++]+r,i+=d[y++],r+=d[y++],p=s.q,e.adddata(p,m,t,i,r);break;case"t":v=i,m=r,c=e.len(),i=e.data,n===s.q&&(v+=i-i[c-4],m+=r-i[c-3]),i=d[y++],r=d[y++],p=s.q,e.adddata(p,v,m,i,r);break;case"t":v=i,m=r,c=e.len(),i=e.data,n===s.q&&(v+=i-i[c-4],m+=r-i[c-3]),i+=d[y++],r+=d[y++],p=s.q,e.adddata(p,v,m,i,r);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],s=d[y++],m=i,t=r,i=d[y++],r=d[y++],p=s.a,ka(m,t,i,r,w,s,_,x,b,p,e);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],s=d[y++],m=i,t=r,i+=d[y++],r+=d[y++],p=s.a,ka(m,t,i,r,w,s,_,x,b,p,e)}}("z"===c||"z"===c)&&(p=s.z,e.adddata(p),i=o,r=a),n=p}return e.tostatic(),e}function $a(t){return null!=t.setdata}function qa(t,e){var n=ja(t),i=h({},e);return i.buildpath=function(t){if($a(t)){t.setdata(n.data);var e=t.getcontext();e&&t.rebuildpath(e,1)}else{var e=t;n.rebuildpath(e,1)}},i.applytransform=function(t){ya(n,t),this.dirtyshape() },i}function ts(t,e){return new ti(qa(t,e))}function es(t,n){var i=qa(t,n),r=function(t){function n(e){var n=t.call(this,e)||this;return n.applytransform=i.applytransform,n.buildpath=i.buildpath,n}return e(n,t),n}(ti);return r}function ns(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getupdatedpathproxy(!0))}var a=new ac(e);return a.createpathproxy(),a.buildpath=function(t){if($a(t)){t.appendpath(n);var e=t.getcontext();e&&t.rebuildpath(e,1)}},a}function is(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;return gi>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function rs(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/pi(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,y=(p+f)/2,v=(d+g)/2,m=f-p,_=g-d,x=m*m+_*_,b=r-o,w=p*g-f*d,s=(0>_?-1:1)*pi(di(0,b*b*x-w*w)),m=(w*_-m*s)/x,t=(-w*m-_*s)/x,c=(w*_+m*s)/x,i=(-w*m+_*s)/x,d=m-y,a=t-v,k=c-y,l=i-v;return d*d+a*a>k*k+l*l&&(m=c,t=i),{cx:m,cy:t,x0:-h,y0:-c,x1:m*(r/b-1),y1:t*(r/b-1)}}function os(t){var e;if(m(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function as(t,e){var n,i=di(e.r,0),r=di(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startangle,u=e.endangle;if(!isnan(l)&&!isnan(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,d=ci(u-l),f=d>ai&&d%ai;if(f>gi&&(d=f),i>gi)if(d>ai-gi)t.moveto(h+i*li(l),c+i*si(l)),t.arc(h,c,i,l,u,!p),r>gi&&(t.moveto(h+r*li(u),c+r*si(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,s=void 0,m=void 0,t=void 0,c=void 0,i=void 0,d=void 0,a=void 0,k=void 0,l=i*li(l),p=i*si(l),o=r*li(u),r=r*si(u),n=d>gi;if(n){var e=e.cornerradius;e&&(n=os(e),g=n[0],y=n[1],v=n[2],m=n[3]);var z=ci(i-r)/2;if(_=fi(z,v),x=fi(z,m),b=fi(z,g),w=fi(z,y),t=s=di(_,x),c=m=di(b,w),(s>gi||m>gi)&&(i=i*li(u),d=i*si(u),a=r*li(l),k=r*si(l),oi>d)){var b=is(l,p,a,k,i,d,o,r);if(b){var f=l-b[0],v=p-b[1],g=i-b[0],h=d-b[1],w=1/si(ui((f*g+v*h)/(pi(f*f+v*v)*pi(g*g+h*h)))/2),u=pi(b[0]*b[0]+b[1]*b[1]);t=fi(s,(i-u)/(w+1)),c=fi(m,(r-u)/(w-1))}}}if(n)if(t>gi){var x=fi(v,t),y=fi(m,t),j=rs(a,k,l,p,i,x,p),z=rs(i,d,o,r,i,y,p);t.moveto(h+j.cx+j.x0,c+j.cy+j.y0),s>t&&x===y?t.arc(h+j.cx,c+j.cy,t,hi(j.y0,j.x0),hi(z.y0,z.x0),!p):(x>0&&t.arc(h+j.cx,c+j.cy,x,hi(j.y0,j.x0),hi(j.y1,j.x1),!p),t.arc(h,c,i,hi(j.cy+j.y1,j.cx+j.x1),hi(z.cy+z.y1,z.cx+z.x1),!p),y>0&&t.arc(h+z.cx,c+z.cy,y,hi(z.y1,z.x1),hi(z.y0,z.x0),!p))}else t.moveto(h+l,c+p),t.arc(h,c,i,l,u,!p);else t.moveto(h+l,c+p);if(r>gi&&n)if(c>gi){var x=fi(g,c),y=fi(y,c),j=rs(o,r,i,d,r,-y,p),z=rs(l,p,a,k,r,-x,p);t.lineto(h+j.cx+j.x0,c+j.cy+j.y0),m>c&&x===y?t.arc(h+j.cx,c+j.cy,c,hi(j.y0,j.x0),hi(z.y0,z.x0),!p):(y>0&&t.arc(h+j.cx,c+j.cy,y,hi(j.y0,j.x0),hi(j.y1,j.x1),!p),t.arc(h,c,r,hi(j.cy+j.y1,j.cx+j.x1),hi(z.cy+z.y1,z.cx+z.x1),p),x>0&&t.arc(h+z.cx,c+z.cy,x,hi(z.y1,z.x1),hi(z.y0,z.x0),!p))}else t.lineto(h+o,c+r),t.arc(h,c,r,u,l,p);else t.lineto(h+o,c+r)}else t.moveto(h,c);t.closepath()}}}function ss(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;d>p;p++)me(a,a,t[p]),_e(s,s,t[p]);me(a,a,i[0]),_e(s,s,i[1])}for(var p=0,d=t.length;d>p;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(ee(t[p]));continue}r=t[p-1],o=t[p+1]}oe(u,o,r),ce(u,u,e);var g=de(f,r),y=de(f,o),v=g+y;0!==v&&(g/=v,y/=v),ce(h,u,-g),ce(c,u,y);var m=ie([],f,h),_=ie([],f,c);i&&(_e(m,m,a),me(m,m,s),_e(_,_,a),me(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function ls(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=ss(r,i,n,e.smoothconstraint);t.moveto(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.beziercurveto(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveto(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineto(r[s][0],r[s][1])}n&&t.closepath()}}function us(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?pn:cn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?pn:cn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?_n:mn)(t.x1,t.cpx1,t.x2,e),(n?_n:mn)(t.y1,t.cpy1,t.y2,e)]}function hs(t,e,n,i,r){var o;if(e&&e.ecmodel){var a=e.ecmodel.getupdatepayload();o=a&&a.animation}var s=e&&e.isanimationenabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=b(i.duration,200),h=b(i.easing,"cubicout"),c=0):(u=e.getshallow(l?"animationdurationupdate":"animationduration"),h=e.getshallow(l?"animationeasingupdate":"animationeasing"),c=e.getshallow(l?"animationdelayupdate":"animationdelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),t(c)&&(c=c(n,r)),t(u)&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function cs(t,e,n,i,r,o,a){var s,l=!1;t(r)?(a=o,o=r,r=null):a(r)&&(o=r.cb,a=r.during,l=r.isfrom,s=r.removeopt,r=r.dataindex);var u="leave"===t;u||e.stopanimation("leave");var h=hs(t,i,r,u?s||{}:null,i&&i.getanimationdelayparams?i.getanimationdelayparams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,d=h.easing,f={duration:c,delay:p||0,easing:d,done:o,force:!!o||!!a,settofinal:!u,scope:t,during:a};l?e.animatefrom(n,f):e.animateto(n,f)}else e.stopanimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ps(t,e,n,i,r,o){cs("update",t,e,n,i,r,o)}function ds(t,e,n,i,r,o){cs("enter",t,e,n,i,r,o)}function fs(t){if(!t.__zr)return!0;for(var e=0;emath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ps(t){return!t.isgroup}function os(t){return null!=t.shape}function rs(t,e,n){function i(t){var e={};return t.traverse(function(t){ps(t)&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return os(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(ps(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),ps(t,i,n,sc(t).dataindex)}}})}}function ns(t,e){return v(t,function(t){var n=t[0];n=ui(n,e.x),n=xi(n,e.x+e.width);var i=t[1];return i=ui(i,e.y),i=xi(i,e.y+e.height),[n,i]})}function es(t,e){var n=ui(t.x,e.x),i=xi(t.x+t.width,e.x+e.width),r=ui(t.y,e.y),o=xi(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function zs(t,e,n){var i=h({recthover:!0},e),r=i.style={strokenoscale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexof("image://")?(r.image=t.slice(8),c(r,n),new cc(i)):ss(t.replace("path://",""),i,n,"center"):void 0}function bs(t,e,n,i,r){for(var o=0,a=r[r.length-1];og||g>1)return!1;var y=vs(d,f,h,c)/p;return 0>y||y>1?!1:!0}function vs(t,e,n,i){return t*i-n*e}function gs(t){return 1e-6>=t&&t>=-1e-6}function hs(t){var e=t.itemtooltipoption,n=t.componentmodel,i=t.itemname,r=c(e)?{formatter:e}:e,o=n.maintype,a=n.componentindex,s={componenttype:o,name:i,$vars:["name"]};s[o+"index"]=a;var l=t.formatterparamsextra;l&&y(b(l),function(t){j(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=sc(t.el);u.componentmaintype=o,u.componentindex=a,u.tooltipconfig={name:i,option:c({content:i,formatterparams:s},r)}}function ws(t,e){var n;t.isgroup&&(n=e(t)),n||t.traverse(e)}function us(t,e){if(t)if(m(t))for(var n=0;n=0&&n.push(t)}),n}t.topologicaltravel=function(t,e,i,r){function o(t){l[t].entrycount--,0===l[t].entrycount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noentrylist,h={};for(y(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(i.call(r,c,p.originaldeps.slice()),delete h[c]),y(p.successor,d?a:o)}y(h,function(){var t="";throw new error(t)})}}}function al(t,e){return l(l({},t,!0),e,!0)}function sl(t,e){t=t.touppercase(),xd[t]=new pd(e),_d[t]=e}function ll(t){if(c(t)){var e=_d[t.touppercase()]||{};return t===yd||t===vd?s(e):l(s(e),s(_d[md]),!1)}return l(s(t),s(_d[md]),!1)}function ul(t){return xd[t]}function hl(){return xd[md]}function cl(t,e){return t+="","0000".substr(0,e-t.length)+t}function pl(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function dl(t){return t===pl(t)}function fl(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gl(t,e,n,i){var r=er(t),o=r[_l(n)](),a=r[xl(n)]()+1,s=math.floor((a-1)/3)+1,l=r[bl(n)](),u=r["get"+(n?"utc":"")+"day"](),h=r[wl(n)](),c=(h-1)%12+1,p=r[sl(n)](),d=r[ml(n)](),f=r[tl(n)](),g=i instanceof pd?i:ul(i||bd)||hl(),y=g.getmodel("time"),v=y.get("month"),m=y.get("monthabbr"),_=y.get("dayofweek"),x=y.get("dayofweekabbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{q}/g,s+"").replace(/{mmmm}/g,v[a-1]).replace(/{mmm}/g,m[a-1]).replace(/{mm}/g,cl(a,2)).replace(/{m}/g,a+"").replace(/{dd}/g,cl(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{hh}/g,cl(h,2)).replace(/{h}/g,h+"").replace(/{hh}/g,cl(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,cl(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,cl(d,2)).replace(/{s}/g,d+"").replace(/{sss}/g,cl(f,3)).replace(/{s}/g,f+"")}function yl(t,e,n,i,r){var o=null;if(c(n))o=n;else if(t(n))o=n(t.value,e,{level:t.level});else{var a=h({},id);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(m(o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=math.min(d,o.length-1),o=o[d]}}return gl(new date(t.value),o,r,i)}function vl(t,e){var n=er(t),i=n[xl(e)]()+1,r=n[bl(e)](),o=n[wl(e)](),a=n[sl(e)](),s=n[ml(e)](),l=n[tl(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,d=p&&1===r,f=d&&1===i;return f?"year":d?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function ml(t,e,n){var i=d(t)?er(t):t;switch(e=e||vl(t,n)){case"year":return i[_l(n)]();case"half-year":return i[xl(n)]()>=6?1:0;case"quarter":return math.floor((i[xl(n)]()+1)/4);case"month":return i[xl(n)]();case"day":return i[bl(n)]();case"half-day":return i[wl(n)]()/24;case"hour":return i[wl(n)]();case"minute":return i[sl(n)]();case"second":return i[ml(n)]();case"millisecond":return i[tl(n)]()}}function _l(t){return t?"getutcfullyear":"getfullyear"}function xl(t){return t?"getutcmonth":"getmonth"}function bl(t){return t?"getutcdate":"getdate"}function wl(t){return t?"getutchours":"gethours"}function sl(t){return t?"getutcminutes":"getminutes"}function ml(t){return t?"getutcseconds":"getseconds"}function tl(t){return t?"getutcmilliseconds":"getmilliseconds"}function cl(t){return t?"setutcfullyear":"setfullyear"}function il(t){return t?"setutcmonth":"setmonth"}function dl(t){return t?"setutcdate":"setdate"}function al(t){return t?"setutchours":"sethours"}function kl(t){return t?"setutcminutes":"setminutes"}function ll(t){return t?"setutcseconds":"setseconds"}function pl(t){return t?"setutcmilliseconds":"setmilliseconds"}function ol(t,e,n,i,r,o,a,s){var l=new _c({style:{text:t,font:e,align:n,verticalalign:i,padding:r,rich:o,overflow:a?"truncate":null,lineheight:s}});return l.getboundingrect()}function rl(t){if(!lr(t))return c(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function nl(t,e){return t=(t||"").tolowercase().replace(/-(.)/g,function(t,e){return e.touppercase()}),e&&t&&(t=t.charat(0).touppercase()+t.slice(1)),t}function el(t,e,n){function i(t){return t&&w(t)?t:"-"}function r(t){return!(null==t||isnan(t)||!isfinite(t))}var o="{yyyy}-{mm}-{dd} {hh}:{mm}:{ss}",a="time"===e,s=t instanceof date;if(a||s){var l=a?er(t):t;if(!isnan(+l))return gl(l,o,n);if(s)return"-"}if("ordinal"===e)return i(t)?i(t):d(t)&&r(t)?t+"":"-";var u=sr(t);return r(u)?rl(u):i(t)?i(t):"boolean"==typeof t?t+"":"-"}function zl(t,e,n){m(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';var a=n.markerid||"markerx";return{rendermode:o,content:"{"+a+"|} ",style:"subitem"===r?{width:4,height:4,borderradius:2,backgroundcolor:i}:{width:10,height:10,borderradius:5,backgroundcolor:i}}}function fl(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="mm-dd\nyyyy");var i=er(e),r=n?"getutc":"get",o=i[r+"fullyear"](),a=i[r+"month"]()+1,s=i[r+"date"](),l=i[r+"hours"](),u=i[r+"minutes"](),h=i[r+"seconds"](),c=i[r+"milliseconds"]();return t=t.replace("mm",cl(a,2)).replace("m",a).replace("yyyy",o).replace("yy",cl(o%100+"",2)).replace("dd",cl(s,2)).replace("d",s).replace("hh",cl(l,2)).replace("h",l).replace("mm",cl(u,2)).replace("m",u).replace("ss",cl(h,2)).replace("s",h).replace("sss",cl(c,3))}function vl(t){return t?t.charat(0).touppercase()+t.substr(1):t}function gl(t,e){return e=e||"transparent",c(t)?t:a(t)?t.colorstops&&(t.colorstops[0]||{}).color||e:e}function hl(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}function wl(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachchild(function(l,u){var h,c,p=l.getboundingrect(),d=e.childat(u+1),f=d&&d.getboundingrect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);c=a+y,c>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markredraw(),"horizontal"===t?o=h+n:a=c+n)})}function ul(t,e,n){n=pd(n||0);var i=e.width,r=e.height,o=ui(t.left,i),a=ui(t.top,r),s=ui(t.right,i),l=ui(t.bottom,r),u=ui(t.width,i),h=ui(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isnan(u)&&(u=i-s-p-o),isnan(h)&&(h=r-l-c-a),null!=d&&(isnan(u)&&isnan(h)&&(d>i/r?u=.8*i:h=.8*r),isnan(u)&&(u=d*h),isnan(h)&&(h=u/d)),isnan(o)&&(o=i-s-u-p),isnan(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isnan(u)&&(u=i-p-o-(s||0)),isnan(h)&&(h=r-c-a-(l||0));var f=new gs(o+n[3],a+n[0],u,h);return f.margin=n,f}function xl(t){var e=t.layoutmode||t.constructor.layoutmode;return a(e)?e:e?{type:e}:null}function yl(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(nd(n,function(e){u[e]=t[e]}),nd(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var p=0;pi;i++)t.push(e+i)}function r(t){var e=t.dimsdef;return e?e.length:1}var o={},a=ql(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecmodel,p=na(c).datasetmap,d=a.uid+"_"+n.serieslayoutby;t=t.slice(),y(t,function(e,n){var i=a(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var f=p.get(d)||p.set(d,{categorywaydim:l,valuewaydim:0});return y(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=f.valuewaydim;i(o[n],l,a),i(h,l,a),f.valuewaydim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=f.categorywaydim;i(o[n],l,a),i(h,l,a),f.categorywaydim+=a}}),u.length&&(o.itemname=u),h.length&&(o.seriesname=h),o}function $l(t,e,n){var i={},r=ql(t);if(!r)return i;var o,a=e.sourceformat,s=e.dimensionsdefine;(a===qd||a===kd)&&y(s,function(t,e){"name"===(a(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var i={},r={},l=[],u=0,h=math.min(5,n);h>u;u++){var c=nu(e.data,a,e.serieslayoutby,s,e.startindex,u);l.push(c);var p=c===ea.not;if(p&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v||!p&&l[i.n]===ea.not)&&(i.n=u),t(i)&&l[i.n]!==ea.not)return i;p||(c===ea.might&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v)&&(r.n=u))}return t(i)?i:t(r)?r:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemname=[u],i.seriesname=[u]}return i}function ql(t){var e=t.get("data",!0);return e?void 0:er(t.ecmodel,"dataset",{index:t.get("datasetindex",!0),id:t.get("datasetid",!0)},et).models[0]}function tu(t){return t.get("transform",!0)||t.get("fromtransformresult",!0)?er(t.ecmodel,"dataset",{index:t.get("fromdatasetindex",!0),id:t.get("fromdatasetid",!0)},et).models:[]}function eu(t,e){return nu(t.data,t.sourceformat,t.serieslayoutby,t.dimensionsdefine,t.startindex,e)}function nu(t,e,n,i,r,o){function a(t){var e=c(t);return null!=t&&isfinite(t)&&""!==t?e?ea.might:ea.not:e&&"-"!==t?ea.must:void 0}var s,l=5;if(l(t))return ea.not;var u,h;if(i){var c=i[o];a(c)?(u=c.name,h=c.type):c(c)&&(u=c)}if(null!=h)return"ordinal"===h?ea.must:ea.not;if(e===zd){var p=t;if(n===ta){for(var d=p[o],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=a(d[r+f])))return s}else for(var f=0;ff;f++){var g=p[r+f];if(g&&null!=(s=a(g[o])))return s}}else if(e===qd){var y=t;if(!u)return ea.not;for(var f=0;ff;f++){var v=y[f];if(v&&null!=(s=a(v[u])))return s}}else if(e===kd){var m=t;if(!u)return ea.not;var d=m[u];if(!d||l(d))return ea.not;for(var f=0;ff;f++)if(null!=(s=a(d[f])))return s}else if(e===jd)for(var _=t,f=0;f<_.length&&l>f;f++){var v=_[f],x=yr(v);if(!m(x))return ea.not;if(null!=(s=a(x[o])))return s}return ea.not}function iu(t,e,n){var i=ia.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function ru(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function ou(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteidx||0,u=s.palettenamemap=s.palettenamemap||{};if(u.hasownproperty(r))return u[r];var h=null!=a&&i?ru(i,a):n;if(h=h||n,h&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteidx=(l+1)%h.length,c}}function au(t,e){e(t).paletteidx=0,e(t).palettenamemap={}}function su(t,e){if(e){var n=e.seriesindex,i=e.seriesid,r=e.seriesname;return null!=n&&t.componentindex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function lu(t,e){var n=t.color&&!t.colorlayer;y(e,function(e,i){"colorlayer"===i&&n||vd.hasclass(i)||("object"==typeof e?t[i]=t[i]?l(t[i],e,!1):s(e):null==t[i]&&(t[i]=e))})}function uu(t,e,n){if(m(e)){var i=j();return y(e,function(t){if(null!=t){var e=ir(t,null);null!=e&&i.set(t,!0)}}),_(n,function(e){return e&&i.get(e[t])})}var r=ir(e,null);return _(n,function(e){return e&&null!=r&&e[t]===r})}function hu(t,e){return e.hasownproperty("subtype")?_(t,function(t){return t&&t.subtype===e.subtype}):t}function cu(t){var e=j();return t&&y(fr(t.replacemerge),function(t){e.set(t,!0)}),{replacemergemaintypemap:e}}function pu(t,e,n){function i(t){y(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseoption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&m(h)&&y(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),y(u,function(t){return i(t)}),y(a,function(t){return i(t.option)}),{baseoption:o,timelineoptions:u||[],mediadefault:r,medialist:a}}function du(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return y(t,function(t,e){var n=e.match(_a);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].tolowercase();fu(i[a],t,o)||(r=!1)}}),r}function fu(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function gu(t,e){return t.join(",")===e.join(",")}function yu(t){var e=t&&t.itemstyle;if(e)for(var n=0,i=sa.length;i>n;n++){var r=sa[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?l(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?l(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function vu(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurscope&&(t.emphasis.blurscope=r.blurscope))}}function mu(t){vu(t,"itemstyle"),vu(t,"linestyle"),vu(t,"areastyle"),vu(t,"label"),vu(t,"labelline"),vu(t,"upperlabel"),vu(t,"edgelabel")}function _u(t,e){var n=wa(t)&&t[e],i=wa(n)&&n.textstyle;if(i)for(var r=0,o=qm.length;o>r;r++){var a=qm[r];i.hasownproperty(a)&&(n[a]=i[a])}}function xu(t){t&&(mu(t),_u(t,"label"),t.emphasis&&_u(t.emphasis,"label"))}function bu(t){if(wa(t)){yu(t),mu(t),_u(t,"label"),_u(t,"upperlabel"),_u(t,"edgelabel"),t.emphasis&&(_u(t.emphasis,"label"),_u(t.emphasis,"upperlabel"),_u(t.emphasis,"edgelabel"));var e=t.markpoint;e&&(yu(e),xu(e));var n=t.markline;n&&(yu(n),xu(n));var i=t.markarea;i&&xu(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!l(o))for(var a=0;a=0;g--){var y=t[g];if(s||(d=y.data.rawindexof(y.stackedbydimension,p)),d>=0){var v=y.data.getbyrawindex(y.stackresultdimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&0>v||"samesign"===l&&c>=0&&v>0||"samesign"===l&&0>=c&&0>v){c=$i(c,v),f=v;break}}}return i[0]=c,i[1]=f,i})})}function eu(t){return t instanceof ia}function zu(t,e,n){n=n||vu(t);var i=e.serieslayoutby,r=gu(t,n,i,e.sourceheader,e.dimensions),o=new ia({data:t,sourceformat:n,serieslayoutby:i,dimensionsdefine:r.dimensionsdefine,startindex:r.startindex,dimensionsdetectedcount:r.dimensionsdetectedcount,metarawoption:s(e)});return o}function bu(t){return new ia({data:t,sourceformat:l(t)?jd:jd})}function fu(t){return new ia({data:t.data,sourceformat:t.sourceformat,serieslayoutby:t.serieslayoutby,dimensionsdefine:s(t.dimensionsdefine),startindex:t.startindex,dimensionsdetectedcount:t.dimensionsdetectedcount})}function vu(t){var e=$d;if(l(t))e=jd;else if(m(t)){0===t.length&&(e=zd);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(m(r)){e=zd;break}if(a(r)){e=qd;break}}}}else if(a(t))for(var o in t)if(j(t,o)&&g(t[o])){e=kd;break}return e}function gu(t,e,n,i,r){var o,a;if(!t)return{dimensionsdefine:wu(r),startindex:a,dimensionsdetectedcount:o};if(e===zd){var s=t;"auto"===i||null==i?uu(function(t){null!=t&&"-"!==t&&(c(t)?null==a&&(a=1):a=0)},n,s,10):a=d(i)?i:i?1:0,r||1!==a||(r=[],uu(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===ta?s.length:s[0]?s[0].length:null}else if(e===qd)r||(r=hu(t));else if(e===kd)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===jd){var l=yr(t[0]);o=m(l)&&l.length||1}return{startindex:a,dimensionsdefine:wu(r),dimensionsdetectedcount:o}}function hu(t){for(var e,n=0;nr;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;rr;r++)t(o[r],r)}function xu(t){var e=t.sourceformat;return e===qd||e===kd}function yu(t,e){var n=ka[qu(t,e)];return n}function ju(t,e){var n=pa[qu(t,e)];return n}function zu(t){var e=ra[t];return e}function qu(t,e){return t===zd?t+"_"+e:t}function ku(t,e,n){if(t){var i=t.getrawdataitem(e);if(null!=i){var r=t.getstore(),o=r.getsource().sourceformat;if(null!=n){var a=t.getdimensionindex(n),s=r.getdimensionproperty(a);return zu(o)(i,a,s)}var l=i;return o===jd&&(l=yr(i)),l}}}function ju(t){var e,n;return a(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function $u(t){return new za(t)}function qu(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||d(t)||null==t||"-"===t||(t=+er(t)),null==t||""===t?0/0:+t)}function th(t,e){var n=new ga,i=t.data,r=n.sourceformat=t.sourceformat,o=t.startindex,a="";t.serieslayoutby!==qd&&pr(a);var s=[],l={},u=t.dimensionsdefine;if(u)y(u,function(t,e){var n=t.name,i={index:e,name:n,displayname:t.displayname};if(s.push(i),null!=n){var r="";j(l,n)&&pr(r),l[n]=i}});else for(var h=0;ho;o++)r.push(n[o].slice());return r}if(e===qd){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function ih(t,e,n){return null!=n?d(n)||!isnan(n)&&!j(e,n)?t[n]:j(e,n)?e[n]:void 0:void 0}function rh(t){return s(t)}function oh(t){t=s(t);var e=t.type,n="";e||pr(n);var i=e.split(":");2!==i.length&&pr(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isbuiltin=r,ha.set(e,t)}function ah(t,e,n){var i=fr(t),r=i.length,o="";r||pr(o);for(var a=0,s=r;s>a;a++){var l=i[a];e=sh(l,e,n,1===r?null:a),a!==s-1&&(e.length=math.max(e.length,1))}return e}function sh(t,e){var n="";e.length||pr(n),a(t)||pr(n);var i=t.type,r=ha.get(i);r||pr(n);var o=v(e,function(t){return th(t,r)}),a=fr(r.transform({upstream:o[0],upstreamlist:o,config:s(t.config)}));return v(a,function(t,n){var i="";a(t)||pr(i),t.data||pr(i);var r=vu(t.data);lh(r)||pr(i);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startindex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={serieslayoutby:qd,sourceheader:s,dimensions:a.metarawoption.dimensions}}else o={serieslayoutby:qd,sourceheader:0,dimensions:t.dimensions};return zu(t.data,o,null)})}function lh(t){return t===zd||t===qd}function uh(t){return t>65535?ua:xa}function hh(){return[1/0,-1/0]}function ch(t){var e=t.constructor;return e===array?t.slice():new e(t)}function ph(t,e,n,i,r){var o=za[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function dh(t){var e=t.option.transform;e&&u(t.option.transform)}function fh(t){return"series"===t.maintype}function gh(t){throw new error(t)}function yh(t,e){var n=t.color||"#6e7079",i=t.fontsize||12,r=t.fontweight||"400",o=t.color||"#464646",a=t.fontsize||14,s=t.fontweight||"900";return"html"===e?{namestyle:"font-size:"+ie(i+"")+"px;color:"+ie(n)+";font-weight:"+ie(r+""),valuestyle:"font-size:"+ie(a+"")+"px;color:"+ie(o)+";font-weight:"+ie(s+"")}:{namestyle:{fontsize:i,fill:n,fontweight:r},valuestyle:{fontsize:a,fill:o,fontweight:s}}}function vh(t,e){return e.type=t,e}function mh(t){return"section"===t.type}function _h(t){return mh(t)?bh:wh}function xh(t){if(mh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noheader;return y(t.blocks,function(t){var n=xh(t);n>=e&&(e=n+ +(i&&(!n||mh(t)&&!t.noheader)))}),e}return 0}function bh(t,e,n,i){var r=e.noheader,o=mh(xh(e)),a=[],s=e.blocks||[];h(!s||m(s)),s=s||[];var l=t.ordermode;if(e.sortblocks&&l){s=s.slice();var u={valueasc:"asc",valuedesc:"desc"};if(j(u,l)){var c=new va(u[l],null);s.sort(function(t,e){return c.evaluate(t.sortparam,e.sortparam)})}else"seriesdesc"===l&&s.reverse()}y(s,function(n,r){var s=e.valueformatter,l=_h(n)(s?h(h({},t),{valueformatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)});var p="richtext"===t.rendermode?a.join(o.richtext):th(a.join(""),r?n:o.html);if(r)return p;var d=el(e.header,"ordinal",t.useutc),f=yh(i,t.rendermode).namestyle;return"richtext"===t.rendermode?dh(t,d,f)+o.richtext+p:th('
'+ie(d)+"
"+p,n)}function wh(t,e,n,i){var r=t.rendermode,o=e.noname,a=e.novalue,s=!e.markertype,l=e.name,u=t.useutc,h=e.valueformatter||t.valueformatter||function(t){return t=m(t)?t:[t],v(t,function(t,e){return el(t,m(d)?d[e]:d,u)})};if(!o||!a){var c=s?"":t.markupstylecreator.maketooltipmarker(e.markertype,e.markercolor||"#333",r),p=o?"":el(l,"ordinal",u),d=e.valuetype,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,m=yh(i,r),_=m.namestyle,x=m.valuestyle;return"richtext"===r?(s?"":c)+(o?"":dh(t,p,_))+(a?"":ah(t,f,g,y,x)):th((s?"":c)+(o?"":ch(p,!s,_))+(a?"":ih(f,g,y,x)),n)}}function sh(t,e,n,i,r,o){if(t){var a=_h(t),s={useutc:r,rendermode:n,ordermode:i,markupstylecreator:e,valueformatter:t.valueformatter};return a(s,t,0,o)}}function mh(t){return{html:$a[t],richtext:qa[t]}}function th(t,e){var n='
',i="margin: "+e+"px 0 0";return'
'+t+n+"
"}function ch(t,e,n){var i=e?"margin-left:2px":"";return''+ie(t)+""}function ih(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=m(t)?t:[t],''+v(t,function(t){return ie(t)}).join("  ")+""}function dh(t,e,n){return t.markupstylecreator.wraprichtextstyle(e,n)}function ah(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupstylecreator.wraprichtextstyle(m(e)?e.join(" "):e,o)}function kh(t,e){var n=t.getdata().getitemvisual(e,"style"),i=n[t.visualdrawtype];return gl(i)}function lh(t,e){var n=t.get("padding");return null!=n?n:"richtext"===e?[8,10]:10}function ph(t){var e,n,i,r,o=t.series,a=t.dataindex,s=t.multipleseries,l=o.getdata(),u=l.mapdimensionsall("defaultedtooltip"),h=u.length,c=o.getrawvalue(a),p=m(c),d=kh(o,a);if(h>1||p&&!h){var f=oh(c,o,a,u,d);e=f.inlinevalues,n=f.inlinevaluetypes,i=f.blocks,r=f.inlinevalues[0]}else if(h){var g=l.getdimensioninfo(u[0]);r=e=ku(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=dr(o),v=y&&o.name||"",m=l.getname(a),_=s?v:m;return vh("section",{header:v,noheader:s||!y,sortparam:r,blocks:[vh("namevalue",{markertype:"item",markercolor:d,name:_,noname:!w(_),value:e,valuetype:n})].concat(i||[])})}function oh(t,e,n,i,r){function o(t,e){var n=a.getdimensioninfo(e);n&&n.otherdims.tooltip!==!1&&(s?h.push(vh("namevalue",{markertype:"subitem",markercolor:r,name:n.displayname,value:t,valuetype:n.type})):(l.push(t),u.push(n.type)))}var a=e.getdata(),s=m(t,function(t,e,n){var i=a.getdimensioninfo(n);return t=t||i&&i.tooltip!==!1&&null!=i.displayname},!1),l=[],u=[],h=[];return i.length?y(i,function(t){o(ku(a,n,t),t)}):y(t,o),{inlinevalues:l,inlinevaluetypes:u,blocks:h}}function rh(t,e){return t.getname(e)||t.getid(e)}function nh(t){var e=t.name;dr(t)||(t.name=eh(t)||e)}function eh(t){var e=t.getrawdata(),n=e.mapdimensionsall("seriesname"),i=[];return y(n,function(t){var n=e.getdimensioninfo(t);n.displayname&&i.push(n.displayname)}),i.join(" ")}function zh(t){return t.model.getrawdata().count()}function bh(t){var e=t.model;return e.setdata(e.getrawdata().cloneshallow()),fh}function fh(t,e){e.outputdata&&t.end>e.outputdata.count()&&e.model.getrawdata().cloneshallow(e.outputdata)}function vh(t,e){y(z(t.changable_methods,t.downsample_methods),function(n){t.wrapmethod(n,s(gh,e))})}function gh(t,e){var n=hh(t);return n&&n.setoutputend((e||this).count()),e}function hh(t){var e=(t.ecmodel||{}).scheduler,n=e&&e.getpipeline(t.uid);if(n){var i=n.currenttask;if(i){var r=i.agentstubmap;r&&(i=r.get(t.uid))}return i}}function wh(){var t=or();return function(e){var n=t(e),i=e.pipelinecontext,r=!!n.large,o=!!n.progressiverender,a=n.large=!(!i||!i.large),s=n.progressiverender=!(!i||!i.progressiverender);return!(r===a&&o===s)&&"reset"}}function uh(t,e,n){t&&va(t)&&("emphasis"===e?va:ma)(t,n)}function xh(t,e,n){var i=pr(t,e),r=e&&null!=e.highlightkey?ha(e.highlightkey):null;null!=i?y(fr(i),function(e){uh(t.getitemgraphicel(e),n,r)}):t.eachitemgraphicel(function(t){uh(t,n,r)})}function yh(t){return ak(t.model)}function jh(t){var e=t.model,n=t.ecmodel,i=t.api,r=t.payload,o=e.pipelinecontext.progressiverender,a=t.view,s=r&&ok(r).updatemethod,l=o?"incrementalpreparerender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),uk[l]}function zh(t,e,n){function i(){h=(new date).gettime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p=0?i():c=settimeout(i,-o),u=r};return p.clear=function(){c&&(cleartimeout(c),c=null)},p.debouncenextcall=function(t){l=t},p}function qh(t,e,n,i){var r=t[e];if(r){var o=r[hk]||r,a=r[pk],s=r[ck];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=zh(o,n,"debounce"===i),r[hk]=o,r[pk]=i,r[ck]=n}return r}}function kh(t,e){var n=t[e];n&&n[hk]&&(n.clear&&n.clear(),t[e]=n[hk])}function jh(t,e){var n=t.visualstylemapper||fk[e];return n?n:(console.warn("unknown style type '"+e+"'."),fk.itemstyle)}function $h(t,e){var n=t.visualdrawtype||gk[e];return n?n:(console.warn("unknown style type '"+e+"'."),"fill")}function qh(t,e){e=e||{},c(e,{text:"loading",textcolor:"#000",fontsize:12,fontweight:"normal",fontstyle:"normal",fontfamily:"sans-serif",maskcolor:"rgba(255, 255, 255, 0.8)",showspinner:!0,color:"#5470c6",spinnerradius:10,linewidth:5,zlevel:0});var n=new gm,i=new gc({style:{fill:e.maskcolor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new _c({style:{text:e.text,fill:e.textcolor,fontsize:e.fontsize,fontweight:e.fontweight,fontstyle:e.fontstyle,fontfamily:e.fontfamily},zlevel:e.zlevel,z:10001}),o=new gc({style:{fill:"none"},textcontent:r,textconfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showspinner&&(a=new li({shape:{startangle:-xk/2,endangle:-xk/2+.1,r:e.spinnerradius},style:{stroke:e.color,linecap:"round",linewidth:e.linewidth},zlevel:e.zlevel,z:10001}),a.animateshape(!0).when(1e3,{endangle:3*xk/2}).start("circularinout"),a.animateshape(!0).when(1e3,{startangle:3*xk/2}).delay(300).start("circularinout"),n.add(a)),n.resize=function(){var n=r.getboundingrect().width,s=e.showspinner?e.spinnerradius:0,l=(t.getwidth()-2*s-(e.showspinner&&n?10:0)-n)/2-(e.showspinner&&n?0:5+n/2)+(e.showspinner?0:n/2)+(n?0:s),u=t.getheight()/2;e.showspinner&&a.setshape({cx:l,cy:u}),o.setshape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setshape({x:0,y:0,width:t.getwidth(),height:t.getheight()})},n.resize(),n}function tc(t){t.overallreset(t.ecmodel,t.api,t.payload)}function ec(t){return t.overallprogress&&nc}function nc(){this.agent.dirty(),this.getdownstream().dirty()}function ic(){this.agent&&this.agent.dirty()}function rc(t){return t.plan?t.plan(t.model,t.ecmodel,t.api,t.payload):null}function oc(t){t.useclearvisual&&t.data.clearallvisual();var e=t.resetdefines=fr(t.reset(t.model,t.ecmodel,t.api,t.payload));return e.length>1?v(e,function(t,e){return ac(e)}):wk}function ac(t){return function(e,n){var i=n.data,r=n.resetdefines[t];if(r&&r.dataeach)for(var o=e.start;o=0&&xc(l)?l:.5;var u=t.createradialgradient(a,s,0,a,s,l);return u}function sc(t,e,n){for(var i="radial"===e.type?wc(t,e,n):bc(t,e,n),r=e.colorstops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:d(t)?[t]:m(t)?t:null:null}function dc(t){var e=t.style,n=e.linedash&&e.linewidth>0&&ic(e.linedash,e.linewidth),i=e.linedashoffset;if(n){var r=e.strokenoscale&&t.getlinescale?t.getlinescale():1;r&&1!==r&&(n=v(n,function(t){return t/r}),i/=r)}return[n,i]}function ac(t){var e=t.stroke;return!(null==e||"none"===e||!(t.linewidth>0))}function kc(t){return"string"==typeof t&&"none"!==t}function lc(t){var e=t.fill;return null!=e&&"none"!==e}function pc(t,e){if(null!=e.fillopacity&&1!==e.fillopacity){var n=t.globalalpha;t.globalalpha=e.fillopacity*e.opacity,t.fill(),t.globalalpha=n}else t.fill()}function oc(t,e){if(null!=e.strokeopacity&&1!==e.strokeopacity){var n=t.globalalpha;t.globalalpha=e.strokeopacity*e.opacity,t.stroke(),t.globalalpha=n}else t.stroke()}function rc(t,e,n){var i=to(e.image,e.__image,n);if(no(i)){var r=t.createpattern(i,e.repeat||"repeat");if("function"==typeof dommatrix&&r&&r.settransform){var o=new dommatrix;o.translateself(e.x||0,e.y||0),o.rotateself(0,0,(e.rotation||0)*bw),o.scaleself(e.scalex||1,e.scaley||1),r.settransform(o)}return r}}function nc(t,e,n,i){var r,o=ac(n),a=lc(n),s=n.strokepercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createpathproxy();var h=e.path||zk,c=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorstops,g=o&&!!d.colorstops,y=a&&!!p.image,v=o&&!!d.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getboundingrect()),f&&(m=c?sc(t,p,w):e.__canvasfillgradient,e.__canvasfillgradient=m),g&&(_=c?sc(t,d,w):e.__canvasstrokegradient,e.__canvasstrokegradient=_),y&&(x=c||!e.__canvasfillpattern?rc(t,p,e):e.__canvasfillpattern,e.__canvasfillpattern=x),v&&(b=c||!e.__canvasstrokepattern?rc(t,d,e):e.__canvasstrokepattern,e.__canvasstrokepattern=x),f?t.fillstyle=m:y&&(x?t.fillstyle=x:a=!1),g?t.strokestyle=_:v&&(b?t.strokestyle=b:o=!1)}var s=e.getglobalscale();h.setscale(s[0],s[1],e.segmentignorethreshold);var m,t;t.setlinedash&&n.linedash&&(r=dc(e),m=r[0],t=r[1]);var c=!0;(u||c&is)&&(h.setdpr(t.dpr),l?h.setcontext(null):(h.setcontext(t),c=!1),h.reset(),e.buildpath(h,e.shape,i),h.tostatic(),e.pathupdated()),c&&h.rebuildpath(t,l?s:1),m&&(t.setlinedash(m),t.linedashoffset=t),i||(n.strokefirst?(o&&oc(t,n),a&&pc(t,n)):(a&&pc(t,n),o&&oc(t,n))),m&&t.setlinedash([])}function ec(t,e,n){var i=e.__image=to(n.image,e.__image,e,e.onload);if(i&&no(i)){var r=n.x||0,o=n.y||0,a=e.getwidth(),s=e.getheight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.swidth&&n.sheight){var u=n.sx||0,h=n.sy||0;t.drawimage(i,u,h,n.swidth,n.sheight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawimage(i,u,h,c,p,r,o,a,s)}else t.drawimage(i,r,o,a,s)}}function zc(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||fw,t.textalign=n.textalign,t.textbaseline=n.textbaseline;var o=void 0,a=void 0;t.setlinedash&&n.linedash&&(i=dc(e),o=i[0],a=i[1]),o&&(t.setlinedash(o),t.linedashoffset=a),n.strokefirst?(ac(n)&&t.stroketext(r,n.x,n.y),lc(n)&&t.filltext(r,n.x,n.y)):(lc(n)&&t.filltext(r,n.x,n.y),ac(n)&&t.stroketext(r,n.x,n.y)),o&&t.setlinedash([])}}function bc(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){xc(t,r),o=!0;var a=math.max(math.min(e.opacity,1),0);t.globalalpha=isnan(a)?yt.opacity:a}(i||e.blend!==n.blend)&&(o||(xc(t,r),o=!0),t.globalcompositeoperation=e.blend||yt.blend);for(var s=0;so;o++){var l=i[o];l.beforebrush&&l.beforebrush(),l.innerbeforebrush(),zc(t,l,s,o===a-1),l.innerafterbrush(),l.afterbrush&&l.afterbrush(),s.prevel=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforebrush&&l.beforebrush(),l.innerbeforebrush(),zc(t,l,s,u===h-1),l.innerafterbrush(),l.afterbrush&&l.afterbrush(),s.prevel=l}e.cleartemporaldisplayables(),e.notclear=!0,t.restore()}function kc(t,e){function n(t){function e(){for(var t=1,e=0,n=v.length;n>e;++e)t=cr(t,v[e]);for(var i=1,e=0,n=y.length;n>e;++e)i=cr(i,y[e].length);t*=i;var r=m*v.length*y.length;return{width:math.max(1,math.min(t,s.maxtilewidth)),height:math.max(1,math.min(r,s.maxtileheight))}}function n(){function t(t,e,n,a,l){var u=o?1:i,h=vc(l,t*u,e*u,n*u,a*u,s.color,s.symbolkeepaspect);if(o){var c=r.painter.renderonetovnode(h);c&&x.children.push(c)}else jc(d,h)}d&&(d.clearrect(0,0,_.width,_.height),s.backgroundcolor&&(d.fillstyle=s.backgroundcolor,d.fillrect(0,0,_.width,_.height)));for(var e=0,n=0;n=e))for(var a=-m,l=0,u=0,h=0;a=s)break;if(v%2===0){var m=.5*(1-s.symbolsize),t=p+f[h][v]*m,c=a+g[l]*m,i=f[h][v]*s.symbolsize,d=g[l]*s.symbolsize,a=w/2%y[c].length;t(t,c,i,d,y[c][a])}p+=f[h][v],++w,++v,v===f[h].length&&(v=0)}++h,h===f.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[i],l=!0,u=0;u=0)){gp.push(n);var o=bk.wrapstagehandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function cp(t,e){lp[t]=e}function ip(t){r({createcanvas:t})}function dp(t,e,n){var i=rp("registermap");i&&i(t,e,n)}function ap(t){var e=rp("getmap");return e&&e(t)}function kp(t){return null==t?0:t.length||1}function lp(t){return t}function pp(t,e){var n={},i=n.encode={},r=j(),o=[],a=[],s={};y(t.dimensions,function(e){var n=t.getdimensioninfo(e),l=n.coorddim;if(l){var u=n.coorddimindex;op(i,l)[u]=e,n.isextracoord||(r.set(l,1),np(n.type)&&(o[0]=e),op(s,l)[u]=t.getdimensionindex(n.name)),n.defaulttooltip&&a.push(e)}yd.each(function(t,e){var r=op(i,e),o=n.otherdims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.datadimsoncoord=l,n.datadimindicesoncoord=v(l,function(e){return t.getdimensioninfo(e).storedimindex}),n.encodefirstdimnotextra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedlabel=o,i.defaultedtooltip=a,n.useroutput=new cp(s,e),n}function op(t,e){return t.hasownproperty(e)||(t[e]=[]),t[e]}function rp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function np(t){return!("ordinal"===t||"time"===t)}function ep(t){return t instanceof kp}function zp(t){for(var e=j(),n=0;n<(t||[]).length;n++){var i=t[n],r=a(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n) }return e}function bp(t){var e=dp(t);return e.dimnamemap||(e.dimnamemap=zp(t.dimensionsdefine))}function fp(t){return t>30}function vp(t,e){return gp(t,e).dimensions}function gp(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=a(n)?n:{name:n},r=new ip,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayname=o),null!=i.type&&(r.type=i.type),null!=i.displayname&&(r.displayname=i.displayname);var s=l.length;return m[t]=s,r.storedimindex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=yd.get(e)?t.otherdims[e]=n:(t.coorddim=e,t.coorddimindex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coorddim)}eu(t)||(t=bu(t)),e=e||{};var o=e.coorddimensions||[],a=e.dimensionsdefine||t.dimensionsdefine||[],s=j(),l=[],u=wp(t,o,a,e.dimensionscount),p=e.canomitunuseddimensions&&fp(u),d=a===t.dimensionsdefine,f=d?bp(t):zp(a),g=e.encodedefine;!g&&e.encodedefaulter&&(g=e.encodedefaulter(t,u));for(var v=j(g),m=new ya(u),_=0;__;_++)n(_);v.each(function(t,e){var r=fr(t).slice();if(1===r.length&&!c(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);y(r,function(t,r){var a=c(t)?f.get(t):t;null!=a&&u>a&&(o[r]=a,i(n(a),e,r))})});var x=0;y(o,function(t){var e,r,o,a;if(c(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalmeta;a.ordinalmeta=null,a=h({},a),a.ordinalmeta=s,r=a.dimsdef,o=a.otherdims,a.name=a.coorddim=a.coorddimindex=a.dimsdef=a.otherdims=null}var l=v.get(e);if(l!==!1){if(l=fr(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;u>x&&null!=n(x).coorddim;)x++;u>x&&l.push(x++)}y(l,function(t,s){var l=n(t);if(d&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!a(u)&&(u={name:u}),l.name=l.displayname=u.name,l.defaulttooltip=u.defaulttooltip}o&&c(l.otherdims,o)})}});var b=e.generatecoord,w=e.generatecoordcount,s=null!=w;w=b?w||1:0;var m=b||"value";if(p)y(l,function(t){r(t)}),l.sort(function(t,e){return t.storedimindex-e.storedimindex});else for(var t=0;u>t;t++){var i=n(t),d=i.coorddim;null==d&&(i.coorddim=up(m,s,s),i.coorddimindex=0,(!b||0>=w)&&(i.isextracoord=!0),w--),r(i),null!=i.type||eu(t,t)!==ea.must&&(!i.isextracoord||null==i.otherdims.itemname&&null==i.otherdims.seriesname)||(i.type="ordinal")}return hp(l),new kp({source:t,dimensions:l,fulldimensioncount:u,dimensionomitted:p})}function hp(t){for(var e=j(),n=0;n0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function wp(t,e,n,i){var r=math.max(t.dimensionsdetectedcount||1,e.length,n.length,i||0);return y(e,function(t){var e;a(t)&&(e=t.dimsdef)&&(r=math.max(r,e.length))}),r}function up(t,e,n){if(n||e.haskey(t)){for(var i=0;e.haskey(t+i);)i++;t+=i}return e.set(t,!0),t}function xp(t){var e=t.get("coordinatesystem"),n=new fp(e),i=vp[e];return i?(i(t,n,n.axismap,n.categoryaxismap),n):void 0}function yp(t){return"category"===t.get("type")}function jp(t,e,n){n=n||{};var i,r,o,a=n.byindex,s=n.stackedcoorddimension;zp(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(y(i,function(t,e){c(t)&&(i[e]=t={name:t}),p&&!t.isextracoord&&(a||l||!t.ordinalmeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coorddim||(u=t))}),!u||a||l||(a=!0),u){h="__\x00ecstackresult_"+t.id,c="__\x00ecstackedover_"+t.id,l&&(l.createinvertedindices=!0);var d=u.coorddim,f=u.type,g=0;y(i,function(t){t.coorddim===d&&g++});var v={name:h,coorddim:d,coorddimindex:g,type:f,isextracoord:!0,iscalculationcoord:!0,storedimindex:i.length},m={name:c,coorddim:c,coorddimindex:g+1,type:f,isextracoord:!0,iscalculationcoord:!0,storedimindex:i.length+1};r?(o&&(v.storedimindex=o.ensurecalculationdimension(c,f),m.storedimindex=o.ensurecalculationdimension(h,f)),r.appendcalculationdimension(v),r.appendcalculationdimension(m)):(i.push(v),i.push(m))}return{stackeddimension:u&&u.name,stackedbydimension:l&&l.name,isstackedbyindex:a,stackedoverdimension:c,stackresultdimension:h}}function zp(t){return!ep(t.schema)}function qp(t,e){return!!e&&e===t.getcalculationinfo("stackeddimension")}function kp(t,e){return qp(t,e)?t.getcalculationinfo("stackresultdimension"):e}function jp(t,e){var n,i=t.get("coordinatesystem"),r=ma.get(i);return e&&e.coordsysdims&&(n=v(e.coordsysdims,function(t){var n={name:t},i=e.axismap.get(t);if(i){var r=i.get("type");n.type=rp(r)}return n})),n||(n=r&&(r.getdimensionsinfo?r.getdimensionsinfo():r.dimensions.slice())||["x","y"]),n}function $p(t,e,n){var i,r;return n&&y(t,function(t,o){var a=t.coorddim,s=n.categoryaxismap.get(a);s&&(null==i&&(i=o),t.ordinalmeta=s.getordinalmeta(),e&&(t.createinvertedindices=!0)),null!=t.otherdims.itemname&&(r=!0)}),r||null==i||(t[i].otherdims.itemname=0),i}function qp(t,e,n){n=n||{};var i,r=e.getsourcemanager(),o=!1;t?(o=!0,i=bu(t)):(i=r.getsource(),o=i.sourceformat===jd);var a=xp(e),s=jp(e,a),l=n.useencodedefaulter,u=t(l)?l:l?s(jl,s,e):null,h={coorddimensions:s,generatecoord:n.generatecoord,encodedefine:e.getencode(),encodedefaulter:u,canomitunuseddimensions:!o},c=gp(i,h),p=$p(c.dimensions,n.createinvertedindices,a),d=o?null:r.getshareddatastore(c),f=jp(e,{schema:c,store:d}),g=new bp(c,e);g.setcalculationinfo(f);var y=null!=p&&td(i)?function(t,e,n,i){return i===p?n:this.defaultdimvaluegetter(t,e,n,i)}:null;return g.hasitemoption=!1,g.initdata(o?i:d,null,y),g}function td(t){if(t.sourceformat===jd){var e=ed(t.data||[]);return!m(yr(e))}}function ed(t){for(var e=0;ea&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalprecision=ad(a),l=r.nicetickextent=[xi(math.ceil(t[0]/a)*a,s),xi(math.floor(t[1]/a)*a,s)];return ld(l,t),r}function od(t){var e=math.pow(10,ir(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,xi(n*e)}function ad(t){return ji(t)+2}function sd(t,e,n){t[e]=math.max(math.min(t[e],n[1]),n[0])}function ld(t,e){!isfinite(t[0])&&(t[0]=e[0]),!isfinite(t[1])&&(t[1]=e[1]),sd(t,0,e),sd(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function ud(t,e){return t>=e[0]&&t<=e[1]}function hd(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function cd(t,e){return t*(e[1]-e[0])+e[0]}function pd(t){return m(t)?jp?new float32array(t):t:new zp(t)}function dd(t){return t.get("stack")||qp+t.seriesindex}function fd(t){return t.dim+t.index}function gd(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getbandwidth(),o=0;ol;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasownproperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a0&&(o=null===o?s:math.min(o,s))}n[i]=o}}return n}function md(t){var e=vd(t),n=[];return y(t,function(t){var i,r=t.coordinatesystem,o=r.getbaseaxis(),a=o.getextent();if("category"===o.type)i=o.getbandwidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=math.abs(a[1]-a[0]),h=o.scale.getextent(),c=math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var p=t.getdata();i=math.abs(a[1]-a[0])/p.count()}var d=ui(t.get("barwidth"),i),f=ui(t.get("barmaxwidth"),i),g=ui(t.get("barminwidth")||(md(t)?.5:1),i),y=t.get("bargap"),v=t.get("barcategorygap");n.push({bandwidth:i,barwidth:d,barmaxwidth:f,barminwidth:g,bargap:y,barcategorygap:v,axiskey:fd(o),stackid:dd(t)})}),_d(n)}function _d(t){var e={};y(t,function(t){var n=t.axiskey,i=t.bandwidth,r=e[n]||{bandwidth:i,remainedwidth:i,autowidthcount:0,categorygap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackid;o[a]||r.autowidthcount++,o[a]=o[a]||{width:0,maxwidth:0};var s=t.barwidth;s&&!o[a].width&&(o[a].width=s,s=math.min(r.remainedwidth,s),r.remainedwidth-=s);var l=t.barmaxwidth;l&&(o[a].maxwidth=l);var u=t.barminwidth;u&&(o[a].minwidth=u);var h=t.bargap;null!=h&&(r.gap=h);var c=t.barcategorygap;null!=c&&(r.categorygap=c)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandwidth,o=t.categorygap;if(null==o){var a=b(i).length;o=math.max(35-4*a,15)+"%"}var s=ui(o,r),l=ui(t.gap,1),u=t.remainedwidth,h=t.autowidthcount,c=(u-s)/(h+(h-1)*l);c=math.max(c,0),y(i,function(t){var e=t.maxwidth,n=t.minwidth;if(t.width){var i=t.width;e&&(i=math.min(i,e)),n&&(i=math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=math.max(c,0);var p,d=0;y(i,function(t){t.width||(t.width=c),p=t,d+=t.width*(1+l)}),p&&(d-=p.width*l);var f=-d/2;y(i,function(t,i){n[e][i]=n[e][i]||{bandwidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function xd(t,e,n){if(t&&e){var i=t[fd(e)];return null!=i&&null!=n?i[dd(n)]:i}}function bd(t,e){var n=yd(t,e),i=md(n);y(n,function(t){var e=t.getdata(),n=t.coordinatesystem,r=n.getbaseaxis(),o=dd(t),a=i[fd(r)][o],s=a.offset,l=a.width;e.setlayout({bandwidth:a.bandwidth,offset:s,size:l})})}function wd(t){return{seriestype:t,plan:wh(),reset:function(t){if(sd(t)){var e=t.getdata(),n=t.coordinatesystem,i=n.getbaseaxis(),r=n.getotheraxis(i),o=e.getdimensionindex(e.mapdimension(r.dim)),a=e.getdimensionindex(e.mapdimension(i.dim)),s=t.get("showbackground",!0),l=e.mapdimension(r.dim),u=e.getcalculationinfo("stackresultdimension"),h=qp(e,l)&&!!e.getcalculationinfo("stackedonseries"),c=r.ishorizontal(),p=td(i,r),d=md(t),f=t.get("barminheight")||0,g=u&&e.getdimensionindex(u),y=e.getlayout("size"),v=e.getlayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&pd(3*r),u=d&&s&&pd(3*r),m=d&&pd(r),_=n.master.getrect(),x=c?_.width:_.height,b=e.getstore(),w=0;null!=(i=t.next());){var s=b.get(h?g:o,i),m=b.get(a,i),t=p,c=void 0;h&&(c=+s-b.get(o,i));var i=void 0,d=void 0,a=void 0,k=void 0;if(c){var l=n.datatopoint([s,m]);if(h){var p=n.datatopoint([c,m]);t=p[0]}i=t,d=l[1]+v,a=l[0]-t,k=y,math.abs(a)a?-1:1)*f)}else{var l=n.datatopoint([m,s]);if(h){var p=n.datatopoint([m,c]);t=p[1]}i=l[0]+v,d=t,a=y,k=l[1]-t,math.abs(k)=k?-1:1)*f)}d?(l[w]=i,l[w+1]=d,l[w+2]=c?a:k,u&&(u[w]=c?_.x:i,u[w+1]=c?d:_.y,u[w+2]=x),m[i]=i):e.setitemlayout(i,{x:i,y:d,width:a,height:k}),w+=3}d&&e.setlayout({largepoints:l,largedataindices:m,largebackgroundpoints:u,valueaxishorizontal:c})}}}}}}function sd(t){return t.coordinatesystem&&"cartesian2d"===t.coordinatesystem.type}function md(t){return t.pipelinecontext&&t.pipelinecontext.large}function td(t,e){return e.toglobalcoord(e.datatocoord("log"===e.type?1:0))}function cd(t,e,n,i){var r=er(e),o=er(n),a=function(t){return ml(r,t,i)===ml(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")},d=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return p();case"millisecond":return d()}}function id(t){return t/=td,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dd(t){var e=30*td;return t/=e,t>6?6:t>3?3:t>2?2:1}function ad(t){return t/=md,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function kd(t,e){return t/=e?sd:wd,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ld(t){return rr(t,!0)}function pd(t,e,n){var i=new date(t);switch(pl(e)){case"year":case"month":i[il(n)](0);case"day":i[dl(n)](1);case"hour":i[al(n)](0);case"minute":i[kl(n)](0);case"second":i[ll(n)](0),i[pl(n)](0)}return i.gettime()}function od(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.gettime();s.push({value:u,notadd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!cd(pl(t),i[0],i[1],n)){l&&(o=[{value:pd(new date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u=i[0]&&x<=i[1]&&c++)}var b=(i[1]-i[0])/e;if(c>1.5*b&&p>b/1.5)break;if(u.push(y),c>b||t===s[d])break}h=[]}}}for(var w=_(v(u,function(t){return _(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notadd})}),function(t){return t.length>0}),s=[],m=w.length-1,d=0;d0&&i>0||0>n&&0>i)}function hd(t){var e=t.getlabelmodel().get("formatter"),n="category"===t.type?t.scale.getextent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getformattedlabel(n,i,e)}}(e):c(e)?function(e){return function(n){var i=t.scale.getlabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):t(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(wd(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getlabel(e)}}function wd(t,e){return"category"===t.type?t.scale.getlabel(e):e.value}function ud(t){var e=t.model,n=t.scale;if(e.get(["axislabel","show"])&&!n.isblank()){var i,r,o=n.getextent();n instanceof up?r=n.count():(i=n.getticks(),r=i.length);var a,s=t.getlabelmodel(),l=hd(t),u=1;r>40&&(u=math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},p=l(c,h),d=s.gettextrect(p),f=xd(d,s.get("rotate")||0);a?a.union(f):a=f}return a}}function xd(t,e){var n=e*math.pi/180,i=t.width,r=t.height,o=i*math.abs(math.cos(n))+math.abs(r*math.sin(n)),a=i*math.abs(math.sin(n))+math.abs(r*math.cos(n)),s=new gs(t.x,t.y,o,a);return s}function yd(t){var e=t.get("interval");return null==e?"auto":e}function jd(t){return"category"===t.type&&0===yd(t.getlabelmodel())}function zd(t,e){var n={};return y(t.mapdimensionsall(e),function(e){n[kp(t,e)]=!0}),b(n)}function qd(t){return qp(null,t)}function kd(t,e){var n=e;e instanceof pd||(n=new pd(e));var i=vd(n);return i.setextent(t[0],t[1]),fd(i,n),i}function jd(t){f(t,co)}function $d(t,e){return e=e||{},qs(t,null,null,"normal"!==e.state)}function qd(t){return m(t)?void y(t,function(t){qd(t)}):void(p(fo,t)>=0||(fo.push(t),t(t)&&(t={install:t}),t.install(go)))}function tf(t,e){return math.abs(t-e)s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function af(t){if(!t.utf8encoding)return t;var e=t,n=e.utf8scale;null==n&&(n=1024);var i=e.features;return y(i,function(t){var e=t.geometry,i=e.encodeoffsets,r=e.coordinates;if(i)switch(e.type){case"linestring":e.coordinates=lf(r,i,n);break;case"polygon":sf(r,i,n);break;case"multilinestring":sf(r,i,n);break;case"multipolygon":y(r,function(t,e){return sf(t,i[e],n)})}}),e.utf8encoding=!1,e}function sf(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function uf(t,e){return t=af(t),v(_(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"polygon":var o=i.coordinates;r.push(new _o(o[0],o.slice(1)));break;case"multipolygon":y(i.coordinates,function(t){t[0]&&r.push(new _o(t[0],t.slice(1)))});break;case"linestring":r.push(new xo([i.coordinates]));break;case"multilinestring":r.push(new xo(i.coordinates))}var a=new bo(n[e||"name"],r,n.cp);return a.properties=n,a})}function hf(t){return"category"===t.type?pf(t):gf(t)}function cf(t,e){return"category"===t.type?ff(t,e):{ticks:v(t.scale.getticks(),function(t){return t.value})}}function pf(t){var e=t.getlabelmodel(),n=df(t,e);return!e.get("show")||t.scale.isblank()?{labels:[],labelcategoryinterval:n.labelcategoryinterval}:n}function df(t,e){var n=yf(t,"labels"),i=yd(e),r=vf(n,i);if(r)return r;var o,a;return t(i)?o=sf(t,i):(a="auto"===i?_f(t):i,o=wf(t,a)),mf(n,i,{labels:o,labelcategoryinterval:a})}function ff(t,e){var n=yf(t,"ticks"),i=yd(e),r=vf(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isblank())&&(o=[]),t(i))o=sf(t,i,!0);else if("auto"===i){var s=df(t,t.getlabelmodel());a=s.labelcategoryinterval,o=v(s.labels,function(t){return t.tickvalue})}else a=i,o=wf(t,a,!0);return mf(n,i,{ticks:o,tickcategoryinterval:a})}function gf(t){var e=t.scale.getticks(),n=hd(t);return{labels:v(e,function(e,i){return{level:e.level,formattedlabel:n(e,i),rawlabel:t.scale.getlabel(e),tickvalue:e.value}})}}function yf(t,e){return do(t)[e]||(do(t)[e]=[])}function vf(t,e){for(var n=0;n40&&(s=math.max(1,math.floor(a/40)));for(var l=o[0],u=t.datatocoord(l+1)-t.datatocoord(l),h=math.abs(u*math.cos(i)),c=math.abs(u*math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f=0,g=0,y=wi(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,p=math.max(p,f,7),d=math.max(d,g,7)}var v=p/h,m=d/c;isnan(v)&&(v=1/0),isnan(m)&&(m=1/0);var _=math.max(0,math.floor(math.min(v,m))),x=do(t.model),b=t.getextent(),w=x.lastautointerval,s=x.lasttickcount;return null!=w&&null!=s&&math.abs(w-_)<=1&&math.abs(s-a)<=1&&w>_&&x.axisextent0===b[0]&&x.axisextent1===b[1]?_=w:(x.lasttickcount=a,x.lastautointerval=_,x.axisextent0=b[0],x.axisextent1=b[1]),_}function bf(t){var e=t.getlabelmodel();return{axisrotate:t.getrotate?t.getrotate():t.ishorizontal&&!t.ishorizontal()?90:0,labelrotate:e.get("rotate")||0,font:e.getfont()}}function wf(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedlabel:r(e),rawlabel:o.getlabel(e),tickvalue:t})}var r=hd(t),o=t.scale,a=o.getextent(),s=t.getlabelmodel(),l=[],u=math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=math.round(math.ceil(h/u)*u));var p=jd(t),d=s.get("showminlabel")||p,f=s.get("showmaxlabel")||p;d&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return f&&g-u!==a[1]&&i(a[1]),l}function sf(t,e,n){var i=t.scale,r=hd(t),o=[];return y(i.getticks(),function(t){var a=i.getlabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedlabel:r(t),rawlabel:a,tickvalue:s})}),o}function mf(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function tf(t,e,n,i){function r(t,e){return t=xi(t),e=xi(e),p?t>e:e>t}var o=e.length;if(t.onband&&!n&&o){var a,s,l=t.getextent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickvalue-e[0].tickvalue,h=(e[o-1].coord-e[0].coord)/u;y(e,function(t){t.coord-=h/2});var c=t.scale.getextent();s=1+c[1]-e[o-1].tickvalue,a={coord:e[o-1].coord+h*s},e.push(a)}var p=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function cf(t){var e=vd.extend(t);return vd.registerclass(e),e}function if(t){var e=rk.extend(t);return rk.registerclass(e),e}function df(t){var e=ik.extend(t);return ik.registerclass(e),e}function af(t){var e=sk.extend(t);return sk.registerclass(e),e}function kf(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function lf(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(math.abs(i-r)%lo<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=to(r),r=to(p)}else i=to(i),r=to(r);i>r&&(r+=lo);var d=math.atan2(s,a);if(0>d&&(d+=lo),d>=i&&r>=d||d+lo>=i&&r>=d+lo)return l[0]=h,l[1]=c,u-n;var f=n*math.cos(i)+t,g=n*math.sin(i)+e,y=n*math.cos(r)+t,v=n*math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=f,l[1]=g,math.sqrt(m)):(l[0]=y,l[1]=v,math.sqrt(_))}function pf(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,p=math.sqrt(h*h+c*c);h/=p,c/=p;var d=l*h+u*c,f=d/p;s&&(f=math.min(math.max(f,0),1)),f*=p;var g=a[0]=t+f*h,y=a[1]=e+f*c;return math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function of(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=math.min(math.max(r,t),s),h=a[1]=math.min(math.max(o,e),l);return math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function rf(t,e,n){var i=of(e.x,e.y,e.width,e.height,t.x,t.y,ro);return n.set(ro[0],ro[1]),i}function nf(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,d=0;d=d&&(s=i,l=r);var s=(c-y)*_/m+y;g=lf(y,v,_,x,x+b,w,s,p,ro),o=math.cos(x+b)*m+y,a=math.sin(x+b)*_+v;break;case po.r:s=o=h[d++],l=a=h[d++];var m=h[d++],t=h[d++];g=of(s,l,m,t,c,p,ro);break;case po.z:g=pf(o,a,s,l,c,p,ro,!0),o=s,a=l}u>g&&(u=g,n.set(ro[0],ro[1]))}return u}function ef(t,e){if(t){var n=t.gettextguideline(),i=t.gettextcontent();if(i&&n){var r=t.textguidelineconfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||oo,s=i.getboundingrect().clone();s.applytransform(i.getcomputedtransform());var l=1/0,u=r.anchor,h=t.getcomputedtransform(),c=h&&xe([],h),p=e.get("length2")||0;u&&zo.copy(u);for(var d=0;dy&&(l=y,eo.transform(h),zo.transform(h),zo.toarray(o[0]),eo.toarray(o[1]),no.toarray(o[2]))}zf(o,e.get("minturnangle")),n.setshape({points:o})}}}function zf(t,e){if(180>=e&&e>0){e=e/180*math.pi,no.fromarray(t[0]),eo.fromarray(t[1]),zo.fromarray(t[2]),as.sub(bo,no,eo),as.sub(fo,zo,eo);var n=bo.len(),i=fo.len();if(!(.001>n||.001>i)){bo.scale(1/n),fo.scale(1/i);var r=bo.dot(fo),o=math.cos(e);if(r>o){var a=pf(eo.x,eo.y,zo.x,zo.y,no.x,no.y,vo,!1);go.fromarray(vo),go.scaleandadd(fo,a/math.tan(math.pi-e));var s=zo.x!==eo.x?(go.x-eo.x)/(zo.x-eo.x):(go.y-eo.y)/(zo.y-eo.y);if(isnan(s))return;0>s?as.copy(go,eo):s>1&&as.copy(go,zo),go.toarray(t[1])}}}}function bf(t,e,n){if(180>=n&&n>0){n=n/180*math.pi,no.fromarray(t[0]),eo.fromarray(t[1]),zo.fromarray(t[2]),as.sub(bo,eo,no),as.sub(fo,zo,eo);var i=bo.len(),r=fo.len();if(!(.001>i||.001>r)){bo.scale(1/i),fo.scale(1/r);var o=bo.dot(e),a=math.cos(n);if(a>o){var s=pf(eo.x,eo.y,zo.x,zo.y,no.x,no.y,vo,!1);go.fromarray(vo);var l=math.pi/2,u=math.acos(fo.dot(e)),h=l+u-n;if(h>=l)as.copy(go,zo);else{go.scaleandadd(fo,s/math.tan(math.pi/2-h));var c=zo.x!==eo.x?(go.x-eo.x)/(zo.x-eo.x):(go.y-eo.y)/(zo.y-eo.y);if(isnan(c))return;0>c?as.copy(go,eo):c>1&&as.copy(go,zo)}go.toarray(t[1])}}}}function ff(t,e,n,i){var r="normal"===n,o=r?t:t.ensurestate(n);o.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getmodel("linestyle").getlinestyle();r?t.usestyle(s):o.style=s}function vf(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveto(i[0][0],i[0][1]),n>0&&i.length>=3){var r=hw(i[0],i[1]),o=hw(i[1],i[2]);if(!r||!o)return t.lineto(i[1][0],i[1][1]),void t.lineto(i[2][0],i[2][1]);var a=math.min(r,o)*n,s=ye([],i[1],i[0],a/r),l=ye([],i[1],i[2],a/o),u=ye([],s,l,.5);t.beziercurveto(s[0],s[1],s[0],s[1],u[0],u[1]),t.beziercurveto(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;ht){var i=math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(f=!0);for(var o=i;r>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var p=math.min(math.abs(i)/a,r);if(i>0)for(var s=0;c-1>s;s++){var d=o[s]*p;l(d,0,s+1)}else for(var s=c-1;s>0;s--){var d=o[s-1]*p;l(-d,s,c)}}}function h(t){var e=0>t?-1:1;t=math.abs(t);for(var n=math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,d=0,f=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],_=m.rect;p=_[e]-d,0>p&&(_[e]-=p,m.label[e]-=p,f=!0);var x=math.max(-p,0);g.push(x),y+=x,d=_[e]+_[n]}y>0&&o&&l(-y/c,0,c);var b,w,s=t[0],m=t[c-1];return a(),0>b&&u(-b,.8),0>w&&u(w,.8),a(),s(b,w,1),s(w,b,-1),a(),0>b&&h(-b),0>w&&h(w),f}}function xf(t,e,n,i){return uf(t,"x","width",e,n,i)}function yf(t,e,n,i){return uf(t,"y","height",e,n,i)}function jf(t){function e(t){if(!t.ignore){var e=t.ensurestate("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new gs(0,0,0,0),r=0;r10&&"cartesian2d"===o.type&&r){var s=o.getbaseaxis(),l=o.getotheraxis(s),u=s.getextent(),h=n.getdevicepixelratio(),c=math.abs(u[1]-u[0])*(h||1),p=math.round(a/c);if(isfinite(p)&&p>1){"lttb"===r&&t.setdata(i.lttbdownsample(i.mapdimension(l.dim),1/p));var d=void 0;c(r)?d=ir[r]:t(r)&&(d=r),d&&t.setdata(i.downsample(i.mapdimension(l.dim),1/p,d,rr)) }}}}}function rg(t,e,n,i,r){var o=t.getarea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["linestyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=math.floor(a),l=math.round(l);var c=new gc({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getbaseaxis(),d=p.ishorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=t(r)?function(t){r(t,c)}:null;ds(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function og(t,e,n){var i=t.getarea(),r=xi(i.r0,1),o=xi(i.r,1),a=new vi({shape:{cx:xi(t.cx,1),cy:xi(t.cy,1),r0:r,r:o,startangle:i.startangle,endangle:i.endangle,clockwise:i.clockwise}});if(e){var s="angle"===t.getbaseaxis().dim;s?a.shape.endangle=i.startangle:a.shape.r=r,ds(a,{shape:{endangle:i.endangle,r:o}},n)}return a}function ag(t,e,n,i,r){return t?"polar"===t.type?og(t,e,n):"cartesian2d"===t.type?rg(t,e,n,i,r):null:null}function sg(t,e){return t.type===e}function lg(t,e){var n=t.mapdimensionsall("defaultedlabel"),i=n.length;if(1===i){var r=ku(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}function hg(t,e){e=e||{};var n=e.isroundcap;return function(e,i,r){var o=i.position;if(!o||o instanceof array)return ii(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,d=(c+p)/2,f=l.startangle,g=l.endangle,y=(f+g)/2,v=n?math.abs(c-p)/2:0,m=math.cos,_=math.sin,x=u+c*m(f),b=h+c*_(f),w="left",s="top";switch(a){case"startarc":x=u+(p-s)*m(y),b=h+(p-s)*_(y),w="center",s="top";break;case"insidestartarc":x=u+(p+s)*m(y),b=h+(p+s)*_(y),w="center",s="bottom";break;case"startangle":x=u+d*m(f)+pg(f,s+v,!1),b=h+d*_(f)+dg(f,s+v,!1),w="right",s="middle";break;case"insidestartangle":x=u+d*m(f)+pg(f,-s+v,!1),b=h+d*_(f)+dg(f,-s+v,!1),w="left",s="middle";break;case"middle":x=u+d*m(y),b=h+d*_(y),w="center",s="middle";break;case"endarc":x=u+(c+s)*m(y),b=h+(c+s)*_(y),w="center",s="bottom";break;case"insideendarc":x=u+(c-s)*m(y),b=h+(c-s)*_(y),w="center",s="top";break;case"endangle":x=u+d*m(g)+pg(g,s+v,!0),b=h+d*_(g)+dg(g,s+v,!0),w="left",s="middle";break;case"insideendangle":x=u+d*m(g)+pg(g,-s+v,!0),b=h+d*_(g)+dg(g,-s+v,!0),w="right",s="middle";break;default:return ii(e,i,r)}return e=e||{},e.x=x,e.y=b,e.align=w,e.verticalalign=s,e}}function cg(t,e,n,i){if(d(i))return void t.settextconfig({rotation:i});if(m(e))return void t.settextconfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startangle:o.endangle,s=o.clockwise?o.endangle:o.startangle,l=(a+s)/2,u=n(e);switch(u){case"startarc":case"insidestartarc":case"middle":case"insideendarc":case"endarc":r=l;break;case"startangle":case"insidestartangle":r=a;break;case"endangle":case"insideendangle":r=s;break;default:return void t.settextconfig({rotation:0})}var h=1.5*math.pi-r;"middle"===u&&h>math.pi/2&&h<1.5*math.pi&&(h-=math.pi),t.settextconfig({rotation:h})}function pg(t,e,n){return e*math.sin(t)*(n?-1:1)}function dg(t,e,n){return e*math.cos(t)*(n?1:-1)}function fg(t,e){var n=t.getarea&&t.getarea();if(sg(t,"cartesian2d")){var i=t.getbaseaxis();if("category"!==i.type||!i.onband){var r=e.getlayout("bandwidth");i.ishorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function gg(t,e){var n=t.get("realtimesort",!0),i=e.getbaseaxis();return n&&"category"===i.type&&"cartesian2d"===e.type?{baseaxis:i,otheraxis:e.getotheraxis(i)}:void 0}function yg(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?ps:ds)(n,{shape:l},e,r,null);var h=e?t.baseaxis.model:null;(a?ps:ds)(n,{shape:u},h,r)}function vg(t,e){for(var n=0;n=r.r0?"endarc":"startarc":r.endangle>=r.startangle?"endangle":"startangle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",c=zs(i);js(t,c,{labelfetcher:o,labeldataindex:n,defaulttext:lg(o.getdata(),n),inheritcolor:l.fill,defaultopacity:l.opacity,defaultoutsideposition:h});var p=t.gettextcontent();if(s&&p){var d=i.get(["label","position"]);t.textconfig.inside="middle"===d?!0:null,cg(t,"outside"===d?h:d,_g(a),i.get(["label","rotate"]))}el(p,c,o.getrawvalue(n),function(t){return ug(e,t)});var f=i.getmodel(["emphasis"]);ea(t,f.get("focus"),f.get("blurscope"),f.get("disabled")),ba(t,i),mg(r)&&(t.style.fill="none",t.style.stroke="none",y(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}function bg(t,e){var n=t.get(["itemstyle","bordercolor"]);if(!n||"none"===n)return 0;var i=t.get(["itemstyle","borderwidth"])||0,r=isnan(e.width)?number.max_value:math.abs(e.width),o=isnan(e.height)?number.max_value:math.abs(e.height);return math.min(i,r,o)}function wg(t,e,n,i){var r=t.getdata(),o=r.getlayout("valueaxishorizontal")?1:0,a=r.getlayout("largedataindices"),s=r.getlayout("size"),l=t.getmodel("backgroundstyle"),u=r.getlayout("largebackgroundpoints");if(u){var h=new _r({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.basedimidx=o,h.largedataindices=a,h.barwidth=s,h.usestyle(l.getitemstyle()),e.add(h),n&&n.push(h)}var c=new _r({shape:{points:r.getlayout("largepoints")},incremental:!!i,ignorecoarsepointer:!0,z2:1});c.basedimidx=o,c.largedataindices=a,c.barwidth=s,e.add(c),c.usestyle(r.getvisual("style")),sc(c).seriesindex=t.seriesindex,t.get("silent")||(c.on("mousedown",xr),c.on("mousemove",xr)),n&&n.push(c)}function sg(t,e,n){for(var i=t.basedimidx,r=1-i,o=t.shape.points,a=t.largedataindices,s=[],l=[],u=t.barwidth,h=0,c=o.length/3;c>h;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}function mg(t,e,n){if(sg(n,"cartesian2d")){var i=e,r=n.getarea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var r=n.getarea(),o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startangle:t?o.startangle:0,endangle:t?o.endangle:2*math.pi}}function tg(t,e,n){var i="polar"===t.type?vi:gc;return new i({shape:mg(e,n,t),silent:!0,z2:0})}function cg(t){t.registerchartview(cr),t.registerseriesmodel(ar),t.registerlayout(t.priority.visual.layout,s(bd,"bar")),t.registerlayout(t.priority.visual.progressive_layout,wd("bar")),t.registerprocessor(t.priority.processor.statistic,ig("bar")),t.registeraction({type:"changeaxisorder",event:"changeaxisorder",update:"update"},function(t,e){var n=t.componenttype||"series";e.eachcomponent({maintype:n,query:t},function(e){t.sortinfo&&e.axis.setcategorysortinfo(t.sortinfo)})})}function ig(t,e){this.parent.drift(t,e)}function dg(t,e,n,i){return!(!e||isnan(e[0])||isnan(e[1])||i.isignore&&i.isignore(n)||i.clipshape&&!i.clipshape.contain(e[0],e[1])||"none"===t.getitemvisual(n,"symbol"))}function ag(t){return null==t||a(t)||(t={isignore:t}),t||{}}function kg(t){var e=t.hostmodel,n=e.getmodel("emphasis");return{emphasisitemstyle:n.getmodel("itemstyle").getitemstyle(),bluritemstyle:e.getmodel(["blur","itemstyle"]).getitemstyle(),selectitemstyle:e.getmodel(["select","itemstyle"]).getitemstyle(),focus:n.get("focus"),blurscope:n.get("blurscope"),emphasisdisabled:n.get("disabled"),hoverscale:n.get("scale"),labelstatesmodels:zs(e),cursorstyle:e.get("cursor")}}function lg(t,e,n){var i=t.getbaseaxis(),r=t.getotheraxis(i),o=pg(r,n),a=i.dim,s=r.dim,l=e.mapdimension(s),u=e.mapdimension(a),h="x"===s||"radius"===s?1:0,c=v(t.dimensions,function(t){return e.mapdimension(t)}),p=!1,d=e.getcalculationinfo("stackresultdimension");return qp(e,c[0])&&(p=!0,c[0]=d),qp(e,c[1])&&(p=!0,c[1]=d),{datadimsforpoint:c,valuestart:o,valueaxisdim:s,baseaxisdim:a,stacked:!!p,valuedim:l,basedim:u,basedataoffset:h,stackedoverdimension:e.getcalculationinfo("stackedoverdimension")}}function pg(t,e){var n=0,i=t.scale.getextent();return"start"===e?n=i[0]:"end"===e?n=i[1]:d(e)&&!isnan(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function og(t,e,n,i){var r=0/0;t.stacked&&(r=n.get(n.getcalculationinfo("stackedoverdimension"),i)),isnan(r)&&(r=t.valuestart);var o=t.basedataoffset,a=[];return a[o]=n.get(t.basedim,i),a[1-o]=r,e.datatopoint(a)}function rg(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function ng(t,e,n,i,r,o,a){for(var s=rg(t,e),l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=lg(r,e,a),y=t.getlayout("points")||[],v=e.getlayout("points")||[],m=0;my;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(eg(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveto":"lineto"](v,m),c=v,p=m;else{var _=v-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],s=e[2*b+1];w===v&&s===m&&i>y;)y++,b+=o,g+=o,w=e[2*b],s=e[2*b+1],v=e[2*g],m=e[2*g+1],_=v-u,x=m-h;var m=y+1;if(l)for(;eg(w,s)&&i>m;)m++,b+=o,w=e[2*b],s=e[2*b+1];var t=.5,c=0,i=0,d=void 0,a=void 0;if(m>=i||eg(w,s))d=v,f=m;else{c=w-u,i=s-h;var k=v-u,l=w-v,p=m-h,o=s-m,r=void 0,n=void 0;if("x"===s){r=math.abs(k),n=math.abs(l);var e=c>0?1:-1;d=v-e*r*a,f=m,d=v+e*n*a,a=m}else if("y"===s){r=math.abs(p),n=math.abs(o);var z=i>0?1:-1;d=v,f=m-z*r*a,d=v,a=m+z*n*a}else r=math.sqrt(k*k+p*p),n=math.sqrt(l*l+o*o),t=n/(n+r),d=v-c*a*(1-t),f=m-i*a*(1-t),d=v+c*a*t,a=m+i*a*t,d=mr(d,tr(w,v)),a=mr(a,tr(s,m)),d=tr(d,mr(w,v)),a=tr(a,mr(s,m)),c=d-v,i=a-m,d=v-c*r/n,f=m-i*r/n,d=mr(d,tr(u,v)),f=mr(f,tr(h,m)),d=tr(d,mr(u,v)),f=tr(f,mr(h,m)),c=v-d,i=m-f,d=v+c*n/r,a=m+i*n/r}t.beziercurveto(c,p,d,f,v,m),c=d,p=a}else t.lineto(v,m)}u=v,h=m,g+=o}return y}function bg(t,e){if(t.length===e.length){for(var n=0;no;o++){var a=og(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function wg(t,e,n,i){var r=e.getbaseaxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;ss;s++){var l=t[s],u=l.coord;if(0>u)i=l;else{if(u>e){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}function xg(t,e,n){var i=t.getvisual("visualmeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getdimensioninfo(i[a].dimension);if(r=s&&s.coorddim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=e.getaxis(r),u=v(o.stops,function(t){return{coord:l.toglobalcoord(l.datatocoord(t.value)),color:t.color}}),h=u.length,c=o.outercolors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=ug(u,"x"===r?n.getwidth():n.getheight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=p[0].coord-f,m=p[d-1].coord+f,_=m-g;if(.001>_)return"transparent";y(p,function(t){t.offset=(t.coord-g)/_}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var x=new ri(0,0,0,0,p,!0);return x[r]=g,x[r+"2"]=m,x}}}function yg(t,e,n){var i=t.get("showallsymbol"),r="auto"===i;if(!i||r){var o=n.getaxesbyscale("ordinal")[0];if(o&&(!r||!jg(o,e))){var a=e.mapdimension(o.dim),s={};return y(o.getviewlabels(),function(t){var e=o.scale.getrawordinalnumber(t.tickvalue);s[e]=1}),function(t){return!s.hasownproperty(e.get(a,t))}}}}function jg(t,e){var n=t.getextent(),i=math.abs(n[1]-n[0])/t.scale.count();isnan(i)&&(i=0);for(var r=e.count(),o=math.max(1,math.round(r/5)),a=0;r>a;a+=o)if(1.5*wr.getsymbolsize(e,a)[t.ishorizontal()?1:0]>i)return!1;return!0}function zg(t,e){return isnan(t)||isnan(e)}function qg(t){for(var e=t.length/2;e>0&&zg(t[2*e-2],t[2*e-1]);e--);return e-1}function kg(t,e){return[t[2*e],t[2*e+1]]}function jg(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isnan(r)&&!isnan(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function $g(t){if(t.get(["endlabel","show"]))return!0;for(var e=0;ei?(i=c,_-=c):x+=t;var r=b+w*i;e.setitemlayout(n,{angle:i,startangle:b,endangle:r,clockwise:g,cx:a,cy:s,r0:u,r:y?wi(t,m,[u,l]):l}),b=r}),lr>_&&p)if(.001>=_){var s=lr/p;e.each(i,function(t,n){if(!isnan(t)){var i=e.getitemlayout(n);i.angle=s,i.startangle=h+w*n*s,i.endangle=h+w*(n+1)*s}})}else f=_/x,b=h,e.each(i,function(t,n){if(!isnan(t)){var i=e.getitemlayout(n),r=i.angle===c?c:t*f;i.startangle=b,i.endangle=b+w*r,b+=w*r}})})}function ay(t){return{seriestype:t,reset:function(t,e){var n=e.findcomponents({maintype:"legend"});if(n&&n.length){var i=t.getdata();i.filterself(function(t){for(var e=i.getname(t),r=0;rn?a:o,c=math.abs(l.label.y-n);if(c>=u.maxy){var p=l.label.x-e-l.len2*r,d=i+l.len,f=math.abs(p)d;d++)if("outer"===t[d].position&&"labelline"===t[d].labelalignto){var f=t[d].label.x-u;t[d].linepoints[1][0]+=f,t[d].label.x=u}yf(t,l,l+a)&&c(t)}}function ly(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=number.max_value,c=-number.max_value,p=0;pe||n){var c=o.height;if(u&&u.match("break")){i.setstyle("backgroundcolor",null),i.setstyle("width",e-l);var p=i.getboundingrect();i.setstyle("width",math.ceil(p.width)),i.setstyle("backgroundcolor",a)}else{var d=e-l,f=h>e?d:n?d>t.unconstrainedwidth?null:d:null;i.setstyle("width",f)}var g=i.getboundingrect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function hy(t){return"center"===t.position}function cy(t){function e(t){t.ignore=!0}function n(t){if(!t.ignore)return!0;for(var e in t.states)if(t.states[e].ignore===!1)return!0;return!1}var i,r,o=t.getdata(),a=[],s=!1,l=(t.get("minshowlabelangle")||0)*or,u=o.getlayout("viewrect"),h=o.getlayout("r"),c=u.width,p=u.x,d=u.y,f=u.height;o.each(function(t){var u=o.getitemgraphicel(t),d=u.shape,f=u.gettextcontent(),g=u.gettextguideline(),v=o.getitemmodel(t),m=v.getmodel("label"),_=m.get("position")||v.get(["emphasis","label","position"]),x=m.get("distancetolabelline"),b=m.get("alignto"),w=ui(m.get("edgedistance"),c),s=m.get("bleedmargin"),m=v.getmodel("labelline"),t=m.get("length");t=ui(t,c);var c=m.get("length2");if(c=ui(c,c),math.abs(d.endangle-d.startangle)o?-1:1)*c,g=f;i="edge"===b?0>o?p+w:p+c-w:v+(0>o?-x:x),a=g,k=[[e,z],[b,f],[v,g]]}l=n?"center":"edge"===b?o>0?"right":"left":o>0?"left":"right"}var h=math.pi,w=0,u=m.get("rotate");if(d(u))w=u*(h/180);else if("center"===_)w=0;else if("radial"===u||u===!0){var x=0>o?-p+h:-p;w=x}else if("tangential"===u&&"outside"!==_&&"outer"!==_){var y=math.atan2(o,r);0>y&&(y=2*h+y);var j=r>0;j&&(y=h+y),w=y-h}if(s=!!w,f.x=i,f.y=a,f.rotation=w,f.setstyle({verticalalign:"middle"}),n){f.setstyle({align:l});var z=f.states.select;z&&(z.x+=f.x,z.y+=f.y)}else{var q=f.getboundingrect().clone();q.applytransform(f.getcomputedtransform());var k=(f.style.margin||0)+2.1;q.y-=k/2,q.height+=k,a.push({label:f,labelline:g,position:_,len:t,len2:c,minturnangle:m.get("minturnangle"),maxsurfaceangle:m.get("maxsurfaceangle"),surfacenormal:new as(o,r),linepoints:k,textalign:l,labeldistance:x,labelalignto:b,edgedistance:w,bleedmargin:s,rect:q,unconstrainedwidth:q.width,labelstylewidth:f.style.width})}u.settextconfig({inside:n})}}),!s&&t.get("avoidlabeloverlap")&&ly(a,i,r,h,c,f,p,d);for(var g=0;gi?!1:!0})}}}function gy(t){t.registerchartview(nr),t.registerseriesmodel(br),pc("pie",t.registeraction),t.registerlayout(s(oy,"pie")),t.registerprocessor(ay("pie")),t.registerprocessor(fy("pie"))}function yy(t,n,i,r){y(qr,function(o,a){var s=l(l({},$r[a],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"axis."+a,e}return e(i,t),i.prototype.mergedefaultandtheme=function(t,e){var n=xl(this),i=n?jl(t):{},r=e.gettheme();l(t,r.get(a+"axis")),l(t,this.getdefaultoption()),t.type=vy(t),n&&yl(t,i,n)},i.prototype.optionupdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalmeta=wp.createbyaxismodel(this))},i.prototype.getcategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalmeta.categories:void 0},i.prototype.getordinalmeta=function(){return this.__ordinalmeta},i.type=n+"axis."+a,i.defaultoption=s,i}(i);t.registercomponentmodel(u)}),t.registersubtypedefaulter(n+"axis",vy)}function vy(t){return t.type||(t.data?"category":"value")}function my(t){return"interval"===t.type||"time"===t.type}function _y(t,e,n){n=n||{};var i=t.coordinatesystem,r=e.axis,o={},a=r.getaxesonzeroof()[0],s=r.position,l=a?"onzero":s,u=r.dim,h=i.getrect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onzero:2},d=e.get("offset")||0,f="x"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toglobalcoord(a.datatocoord(0));f[p.onzero]=math.max(math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:c[0],"x"===u?f[p[l]]:c[3]],o.rotation=math.pi/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labeldirection=o.tickdirection=o.namedirection=y[s],o.labeloffset=a?f[p[s]]-f[p.onzero]:0,e.get(["axistick","inside"])&&(o.tickdirection=-o.tickdirection),z(n.labelinside,e.get(["axislabel","inside"]))&&(o.labeldirection=-o.labeldirection);var v=e.get(["axislabel","rotate"]);return o.labelrotate="top"===l?-v:v,o.z2=1,o}function xy(t){return"cartesian2d"===t.get("coordinatesystem")}function by(t){var e={xaxismodel:null,yaxismodel:null};return y(e,function(n,i){var r=i.replace(/model$/,""),o=t.getreferringcomponents(r,et).models[0];e[i]=o}),e}function wy(t,e,n){var i=yp.prototype,r=i.getticks.call(n),o=i.getticks.call(n,!0),a=r.length-1,s=i.getinterval.call(n),l=zd(t,e),u=l.extent,h=l.fixmin,c=l.fixmax;if("log"===t.type){var p=rn(t.base);u=[rn(u[0])/p,rn(u[1])/p]}t.setextent(u[0],u[1]),t.calcniceextent({splitnumber:a,fixmin:h,fixmax:c});var d=i.getextent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getinterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isfinite(g)&&isfinite(u[0]);)f=od(f),g=u[1]-f*a;else{var v=t.getticks().length-1;v>a&&(f=od(f));var m=f*a;y=math.ceil(u[1]/f)*f,g=xi(y-m),0>g&&u[0]>=0?(g=0,y=xi(m)):y>0&&u[1]<=0&&(y=0,g=-xi(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setextent.call(t,g+f*_,y+f*x),i.setinterval.call(t,f),(_||x)&&i.setniceextent.call(t,g+f,y-f)}function sy(t,e){return t.getcoordsysmodel()===e}function my(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getaxesonzeroof=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisline","onzero"]),u=s.get(["axisline","onzeroaxisindex"]);if(l){if(null!=u)ty(a[u])&&(o=a[u]);else for(var h in a)if(a.hasownproperty(h)&&ty(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function ty(t){return t&&"category"!==t.type&&"time"!==t.type&&gd(t)}function cy(t,e){var n=t.getextent(),i=n[0]+n[1];t.toglobalcoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.tolocalcoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function iy(t,e,n,i){var r,o,a=qi(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return tr(a-an/2)?(o=l?"bottom":"top",r="center"):tr(a-1.5*an)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*an>a&&a>an/2?l?"left":"right":l?"right":"left"),{rotation:a,textalign:r,textverticalalign:o}}function dy(t,e,n){if(!jd(t.axis)){var i=t.get(["axislabel","showminlabel"]),r=t.get(["axislabel","showmaxlabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],p=n[n.length-2];i===!1?(ay(o),ay(u)):ky(o,a)&&(i?(ay(a),ay(h)):(ay(o),ay(u))),r===!1?(ay(s),ay(c)):ky(l,s)&&(r?(ay(l),ay(p)):(ay(s),ay(c)))}}function ay(t){t&&(t.ignore=!0)}function ky(t,e){var n=t&&t.getboundingrect().clone(),i=e&&e.getboundingrect().clone();if(n&&i){var r=fe([]);return we(r,r,-t.rotation),n.applytransform(ge([],r,t.getlocaltransform())),i.applytransform(ge([],r,e.getlocaltransform())),n.intersect(i)}}function ly(t){return"middle"===t||"center"===t}function py(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function hy(t){var e=wy(t);if(e){var n=e.axispointermodel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=xy(n);null==o&&(r.status=s?"show":"hide");var l=i.getextent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),ai;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&r>i&&n[i]}}function tv(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function ev(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}function nv(t){t.registerchartview(tn),t.registerseriesmodel(cn)}function iv(t,e){return!!rv(t)[e]}function rv(t){return t[in]||(t[in]={})}function ov(t,e,n,i,r){t.pointerchecker&&t.pointerchecker(i,r.originx,r.originy)&&(ns(i.event),av(t,e,n,i,r))}function av(t,e,n,i,r){r.isavailablebehavior=ow(sv,null,n,i),t.trigger(e,r)}function sv(t,e,n){var i=n[t];return!t||i&&(!c(i)||e.event[i+"key"])}function lv(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function uv(t,e,n,i){var r=t.target,o=t.zoomlimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=math.max(math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scalex*=u,r.scaley*=u,r.dirty()}function hv(t,e,n){var i=e.getcomponentbyelement(t.toptarget),r=i&&i.coordinatesystem;return i&&i!==n&&!kn.hasownproperty(i.maintype)&&r&&r.model!==n}function cv(t){if(c(t)){var e=new domparser;t=e.parsefromstring(t,"text/xml")}var n=t;for(9===n.nodetype&&(n=n.firstchild);"svg"!==n.nodename.tolowercase()||1!==n.nodetype;)n=n.nextsibling;return n}function pv(t,e){var n=t.getattribute("gradientunits");"userspaceonuse"===n&&(e.global=!0)}function dv(t,e){for(var n=t.firstchild;n;){if(1===n.nodetype&&"stop"===n.nodename.tolocalelowercase()){var i=n.getattribute("offset"),r=void 0;r=i&&i.indexof("%")>0?parseint(i,10)/100:i?parsefloat(i):0;var o={};wv(n,o,o);var a=o.stopcolor||n.getattribute("stop-color")||"#000000";e.colorstops.push({offset:r,color:a})}n=n.nextsibling}}function fv(t,e){t&&t.__inheritedstyle&&(e.__inheritedstyle||(e.__inheritedstyle={}),c(e.__inheritedstyle,t.__inheritedstyle))}function gv(t){for(var e=xv(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=xv(a);switch(r=r||be(),s){case"translate":he(r,r,[parsefloat(l[0]),parsefloat(l[1]||"0")]);break;case"scale":ue(r,r,[parsefloat(l[0]),parsefloat(l[1]||l[0])]);break;case"rotate":we(r,r,-parsefloat(l[0])*vn);break;case"skewx":var u=math.tan(parsefloat(l[0])*vn);ge(r,[1,0,u,1,0,0],r);break;case"skewy":var h=math.tan(parsefloat(l[0])*vn);ge(r,[1,h,0,1,0,0],r);break;case"matrix":r[0]=parsefloat(l[0]),r[1]=parsefloat(l[1]),r[2]=parsefloat(l[2]),r[3]=parsefloat(l[3]),r[4]=parsefloat(l[4]),r[5]=parsefloat(l[5])}}e.setlocaltransform(r)}}function wv(t,e,n){var i=t.getattribute("style");if(i){gn.lastindex=0;for(var r;null!=(r=gn.exec(i));){var o=r[1],a=j(ln,o)?ln[o]:null;a&&(e[a]=r[2]);var s=j(on,o)?on[o]:null;s&&(n[s]=r[2])}}}function sv(t,e,n){for(var i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalalign:"middle"}}:null;js(e,zs(i),{labelfetcher:p,labeldataindex:c,defaulttext:n},d);var f=e.gettextcontent();if(f&&(oe(f).ignore=f.ignore,e.textconfig&&a)){var g=e.getboundingrect().clone();e.textconfig.layoutrect=g,e.textconfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disablelabelanimation=!0}else e.removetextcontent(),e.removetextconfig(),e.disablelabelanimation=null}function zv(t,e,n,i,r,o){t.data?t.data.setitemgraphicel(o,e):sc(e).eventdata={componenttype:"geo",componentindex:r.componentindex,geoindex:r.componentindex,name:n,region:i&&i.option||{}}}function bv(t,e,n,i,r){t.data||hs({el:e,componentmodel:r,itemname:n,itemtooltipoption:i.get("tooltip")})}function fv(t,e,n,i,r){e.highdownsilentontouch=!!r.get("selectedmode");var o=i.getmodel("emphasis"),a=o.get("focus");return ea(e,a,o.get("blurscope"),o.get("disabled")),t.isgeo&&ga(e,r,n),a}function vv(t,e,n){function i(){o=[]}function r(){o.length&&(a.push(o),o=[])}var o,a=[],s=e({polygonstart:i,polygonend:r,linestart:i,lineend:r,point:function(t,e){isfinite(t)&&isfinite(e)&&o.push([t,e])},sphere:function(){}});return!n&&s.polygonstart(),y(t,function(t){s.linestart();for(var e=0;eh;h++)s=math.min(s,n[o][h]),l=math.max(l,n[o][h]),a+=n[o][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?a/u:a,0===u?0/0:c})}function hv(t){var e={};t.eachseriesbytype("map",function(t){var n=t.gethostgeomodel(),i=n?"o"+n.id:"i"+t.getmaptype();(e[i]=e[i]||[]).push(t)}),y(e,function(t){for(var e=gv(v(t,function(t){return t.getdata()}),t[0].get("mapvaluecalculation")),n=0;n=u;u++){var h=u/100,c=o.project([t+s*h,e+l*h]);me(i,i,c),_e(r,r,c)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setboundingrect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else;}var c,p,d=this.getboundingrect(),f=t.get("layoutcenter"),g=t.get("layoutsize"),y=e.getwidth(),v=e.getheight(),m=d.width/d.height*this.aspectscale,_=!1;f&&g&&(c=[ui(f[0],y),ui(f[1],v)],p=ui(g,math.min(y,v)),isnan(c[0])||isnan(c[1])||isnan(p)||(_=!0));var x;if(_)x={},m>1?(x.width=p,x.height=p/m):(x.height=p,x.width=p*m),x.y=c[1]-x.height/2,x.x=c[0]-x.width/2;else{var b=t.getboxlayoutparams();b.aspect=m,x=ul(b,{width:y,height:v})}this.setviewrect(x.x,x.y,x.width,x.height),this.setcenter(t.get("center"),e),this.setzoom(t.get("zoom"))}function jv(t,e){y(e.get("geocoord"),function(e,n){t.addgeocoord(n,e)})}function zv(t,e){return t.pointtoprojected?t.pointtoprojected(e):t.pointtodata(e)}function qv(t,e,n,i){var r=t.getzoom(),o=t.getcenter(),a=e.zoom,s=t.projectedtopoint?t.projectedtopoint(o):t.datatopoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setcenter(zv(t,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=math.max(math.min(r*a,u),l)/r}t.scalex*=a,t.scaley*=a;var h=(e.originx-t.x)*(a-1),c=(e.originy-t.y)*(a-1);t.x-=h,t.y-=c,t.updatetransform(),t.setcenter(zv(t,s),i),t.setzoom(a*r)}return{center:t.getcenter(),zoom:t.getzoom()}}function kv(t,e,n){te.registermap(t,e,n)}function jv(t){function e(e,n){n.update="geo:updateselectstatus",t.registeraction(n,function(t,n){var i={},r=[];return n.eachcomponent({maintype:"geo",query:t},function(n){n[e](t.name);var o=n.coordinatesystem;y(o.regions,function(t){i[t.name]=n.isselected(t.name)||!1});var a=[];y(i,function(t,e){i[e]&&a.push(e)}),r.push({geoindex:n.componentindex,name:a})}),{selected:i,allselected:r,name:t.name}})}t.registercoordinatesystem("geo",ge),t.registercomponentmodel(ye),t.registercomponentview(ve),t.registerimpl("registermap",kv),t.registerimpl("getmap",function(t){return te.getmapforuser(t)}),e("toggleselected",{type:"geotoggleselect",event:"geoselectchanged"}),e("select",{type:"geoselect",event:"geoselected"}),e("unselect",{type:"geounselect",event:"geounselected"}),t.registeraction({type:"georoam",event:"georoam",update:"updatetransform"},function(t,e,n){var i=t.componenttype||"series";e.eachcomponent({maintype:i,query:t},function(e){var r=e.coordinatesystem;if("geo"===r.type){var o=qv(r,t,e.get("scalelimit"),n);e.setcenter&&e.setcenter(o.center),e.setzoom&&e.setzoom(o.zoom),"series"===i&&y(e.seriesgroup,function(t){t.setcenter(o.center),t.setzoom(o.zoom)})}})})}function $v(t){qd(jv),t.registerchartview(se),t.registerseriesmodel(le),t.registerlayout(wv),t.registerprocessor(t.priority.processor.statistic,hv),pc("map",t.registeraction)}function qv(t){return isnan(+t.cpx1)||isnan(+t.cpy1)}function tm(t){return"_"+t+"type"}function em(t,e,n){var i=e.getitemvisual(n,t);if(i&&"none"!==i){var r=e.getitemvisual(n,t+"size"),o=e.getitemvisual(n,t+"rotate"),a=e.getitemvisual(n,t+"offset"),s=e.getitemvisual(n,t+"keepaspect"),l=mc(r),u=_c(a||0,l),h=vc(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedrotation=null==o||isnan(o)?void 0:+o*math.pi/180||0,h.name=t,h}}function nm(t){var e=new be({name:"line",subpixeloptimize:!0});return im(e.shape,t),e}function im(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=0/0,t.cpy1=0/0)}function rm(t){return t.animators&&t.animators.length>0}function om(t){var e=t.hostmodel,n=e.getmodel("emphasis");return{linestyle:e.getmodel("linestyle").getlinestyle(),emphasislinestyle:n.getmodel(["linestyle"]).getlinestyle(),blurlinestyle:e.getmodel(["blur","linestyle"]).getlinestyle(),selectlinestyle:e.getmodel(["select","linestyle"]).getlinestyle(),emphasisdisabled:n.get("disabled"),blurscope:n.get("blurscope"),focus:n.get("focus"),labelstatesmodels:zs(e)}}function am(t){return isnan(t[0])||isnan(t[1])}function sm(t){return t&&!am(t[0])&&!am(t[1])}function lm(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=v(e,function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromname=t[0].name),t[1].name&&(n.toname=t[1].name),u([n,t[0],t[1]])}))}function um(t){return t instanceof array||(t=[t,t]),t}function hm(t){t.registerchartview(pe),t.registerseriesmodel(ne),t.registerlayout(le),t.registervisual(ee)}function cm(t){var e=t.findcomponents({maintype:"legend"});e&&e.length&&t.eachseriesbytype("graph",function(t){var n=t.getcategoriesdata(),i=t.getgraph(),r=i.data,o=n.maparray(n.getname);r.filterself(function(t){var n=r.getitemmodel(t),i=n.getshallow("category");if(null!=i){d(i)&&(i=o[i]);for(var a=0;au&&(u=2*math.pi+u);var c=l[0]o;o++){var y=i[o];y.fixed||(oe(e,l,y.p),ze(y.p,y.p,e,u*g))}for(var o=0;n>o;o++)for(var s=i[o],v=o+1;n>v;v++){var h=i[v];oe(e,h.p,s.p);var c=ae(e);0===c&&(ne(e,math.random()-.5,math.random()-.5),c=1);var m=(s.rep+h.rep)/c/c;!s.fixed&&ze(s.pp,s.pp,e,m),!h.fixed&&ze(h.pp,h.pp,e,-m)}for(var _=[],o=0;n>o;o++){var y=i[o];y.fixed||(oe(_,y.p,y.pp),ze(y.p,y.p,_,g),te(y.pp,y.p))}g=.992*g;var x=.01>g;d&&d(i,r,x),t&&t(x)}}}function im(t){t.eachseriesbytype("graph",function(t){var e=t.coordinatesystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedpoints||{},i=t.getgraph(),r=i.data,o=i.edgedata,a=t.getmodel("force"),s=a.get("initlayout");t.preservedpoints?r.each(function(t){var e=r.getid(t);r.setitemlayout(t,n[e]||[0/0,0/0])}):s&&"none"!==s?"circular"===s&&sm(t,"value"):mm(t);var l=r.getdataextent("value"),u=o.getdataextent("value"),h=a.get("repulsion"),c=a.get("edgelength"),p=m(h)?h:[h,h],d=m(c)?c:[c,c];d=[d[1],d[0]];var f=r.maparray("value",function(t,e){var n=r.getitemlayout(e),i=wi(t,l,p);return isnan(i)&&(i=(p[0]+p[1])/2),{w:i,rep:i,fixed:r.getitemmodel(e).get("fixed"),p:!n||isnan(n[0])||isnan(n[1])?null:n}}),g=o.maparray("value",function(e,n){var r=i.getedgebyindex(n),o=wi(e,u,d);isnan(o)&&(o=(d[0]+d[1])/2);var a=r.getmodel(),s=f(r.getmodel().get(["linestyle","curveness"]),-vm(r,t,n,!0),0);return{n1:f[r.node1.dataindex],n2:f[r.node2.dataindex],d:o,curveness:s,ignoreforcelayout:a.get("ignoreforcelayout")}}),y=e.getboundingrect(),v=cm(f,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});v.beforestep(function(t){for(var e=0,n=t.length;n>e;e++)t[e].fixed&&te(t[e].p,i.getnodebyindex(e).getlayout())}),v.afterstep(function(t,e){for(var o=0,a=t.length;a>o;o++)t[o].fixed||i.getnodebyindex(o).setlayout(t[o].p),n[r.getid(o)]=t[o].p;for(var o=0,a=e.length;a>o;o++){var s=e[o],l=i.getedgebyindex(o),u=s.n1.p,h=s.n2.p,c=l.getlayout();c=c?c.slice():[],c[0]=c[0]||[],c[1]=c[1]||[],te(c[0],u),te(c[1],h),+s.curveness&&(c[2]=[(u[0]+h[0])/2-(u[1]-h[1])*s.curveness,(u[1]+h[1])/2-(h[0]-u[0])*s.curveness]),l.setlayout(c)}}),t.forcelayout=v,t.preservedpoints=n,v.step()}else t.forcelayout=null})}function dm(t,e,n){var i=h(t.getboxlayoutparams(),{aspect:n});return ul(i,{width:e.getwidth(),height:e.getheight()})}function am(t,e){var n=[];return t.eachseriesbytype("graph",function(t){var i=t.get("coordinatesystem");if(!i||"view"===i){var r=t.getdata(),o=r.maparray(function(t){var e=r.getitemmodel(t);return[+e.get("x"),+e.get("y")]}),a=[],s=[];go(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=dm(t,e,l);isnan(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var h=s[0]-a[0],c=s[1]-a[1],p=u.width,d=u.height,f=t.coordinatesystem=new he;f.zoomlimit=t.get("scalelimit"),f.setboundingrect(a[0],a[1],h,c),f.setviewrect(u.x,u.y,p,d),f.setcenter(t.get("center"),e),f.setzoom(t.get("zoom")),n.push(f)}}),n}function km(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;.9>=h;h+=.1){qe[0]=$e(r[0],o[0],a[0],h),qe[1]=$e(r[1],o[1],a[1],h);var c=tz(qe(qe,e)-l);s>c&&(s=c,i=h)}for(var p=0;32>p;p++){var d=i+u;ke[0]=$e(r[0],o[0],a[0],i),ke[1]=$e(r[1],o[1],a[1],i),je[0]=$e(r[0],o[0],a[0],d),je[1]=$e(r[1],o[1],a[1],d);var c=qe(ke,e)-l;if(tz(c)<.01)break;var f=qe(je,e)-l;u/=2,0>c?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function lm(t,e){var n=[],i=wn,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachedge(function(t){var s=t.getlayout(),l=t.getvisual("fromsymbol"),u=t.getvisual("tosymbol");s.__original||(s.__original=[ee(s[0]),ee(s[1])],s[2]&&s.__original.push(ee(s[2])));var h=s.__original;if(null!=s[2]){if(te(r[0],h[0]),te(r[1],h[2]),te(r[2],h[1]),l&&"none"!==l){var c=wm(t.node1),p=km(r,h[0],c*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){var c=wm(t.node2),p=km(r,h[1],c*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}te(s[0],r[0]),te(s[1],r[2]),te(s[2],r[1])}else{if(te(o[0],h[0]),te(o[1],h[1]),oe(a,o[1],o[0]),pe(a,a),l&&"none"!==l){var c=wm(t.node1);re(o[0],o[0],a,c*e)}if(u&&"none"!==u){var c=wm(t.node2);re(o[1],o[1],a,-c*e)}te(s[0],o[0]),te(s[1],o[1])}})}function pm(t){return"view"===t.type}function om(t){return"_ec_"+t}function rm(t,e){return{getvalue:function(n){var i=this[t][e];return i.getstore().get(i.getdimensionindex(n||"value"),this.dataindex)},setvisual:function(n,i){this.dataindex>=0&&this[t][e].setitemvisual(this.dataindex,n,i)},getvisual:function(n){return this[t][e].getitemvisual(this.dataindex,n)},setlayout:function(n,i){this.dataindex>=0&&this[t][e].setitemlayout(this.dataindex,n,i)},getlayout:function(){return this[t][e].getitemlayout(this.dataindex)},getgraphicel:function(){return this[t][e].getitemgraphicel(this.dataindex)},getrawindex:function(){return this[t][e].getrawindex(this.dataindex)}}}function nm(t){var e=t.maindata,n=t.datas;n||(n={main:e},t.datasattr={main:"data"}),t.datas=t.maindata=null,hm(e,n,t),y(n,function(n){y(e.transferable_methods,function(e){n.wrapmethod(e,s(em,t))})}),e.wrapmethod("cloneshallow",s(bm,t)),y(e.changable_methods,function(n){e.wrapmethod(n,s(zm,t))}),h(n[e.datatype]===e)}function em(t,e){if(gm(this)){var n=h({},oz(this).datas);n[this.datatype]=e,hm(e,n,t)}else wm(e,this.datatype,oz(this).maindata,t);return e}function zm(t,e){return t.struct&&t.struct.update(),e}function bm(t,e){return y(oz(e).datas,function(n,i){n!==e&&wm(n.cloneshallow(),i,e,t)}),e}function fm(t){var e=oz(this).maindata;return null==t||null==e?e:oz(e).datas[t]}function vm(){var t=oz(this).maindata;return null==t?[{data:t}]:v(b(oz(t).datas),function(e){return{type:e,data:oz(t).datas[e]}})}function gm(t){return oz(t).maindata===t}function hm(t,e,n){oz(t).datas={},y(e,function(e,i){wm(e,i,t,n)})}function wm(t,e,n,i){oz(n).datas[e]=t,oz(t).maindata=n,t.datatype=e,i.struct&&(t[i.structattr]=i.struct,i.struct[i.datasattr[e]]=t),t.getlinkeddata=fm,t.getlinkeddataall=vm}function um(t,e,n,i,r){for(var o=new nz(i),a=0;a "+d)),u++)}var f,g=n.get("coordinatesystem");if("cartesian2d"===g||"polar"===g)f=qp(t,n);else{var y=ma.get(g),v=y?y.dimensions||[]:[];p(v,"value")<0&&v.concat(["value"]);var m=gp(t,{coorddimensions:v,encodedefine:n.getencode()}).dimensions;f=new bp(m,n),f.initdata(t)}var _=new bp(["value"],n);return _.initdata(l,s),r&&r(f,_),nm({maindata:f,struct:o,structattr:"graph",datas:{node:f,edge:_},datasattr:{node:"data",edge:"edgedata"}}),o.update(),o}function xm(t){t.registerchartview(ez),t.registerseriesmodel(az),t.registerprocessor(cm),t.registervisual(pm),t.registervisual(fm),t.registerlayout(xm),t.registerlayout(t.priority.visual.post_chart_layout,tm),t.registerlayout(im),t.registercoordinatesystem("graphview",{dimensions:he.dimensions,create:am}),t.registeraction({type:"focusnodeadjacency",event:"focusnodeadjacency",update:"series:focusnodeadjacency"},$),t.registeraction({type:"unfocusnodeadjacency",event:"unfocusnodeadjacency",update:"series:unfocusnodeadjacency"},$),t.registeraction(sz,function(t,e,n){e.eachcomponent({maintype:"series",query:t},function(e){var i=e.coordinatesystem,r=qv(i,t,void 0,n);e.setcenter&&e.setcenter(r.center),e.setzoom&&e.setzoom(r.zoom)})})}function ym(t,e,n){var i=new gc({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ds(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}function jm(t){t.eachseriesbytype("themeriver",function(t){var e=t.getdata(),n=t.coordinatesystem,i={},r=n.getrect();i.rect=r;var o=t.get("boundarygap"),a=n.getaxis();if(i.boundarygap=o,"horizontal"===a.orient){o[0]=ui(o[0],r.height),o[1]=ui(o[1],r.height);var s=r.height-o[0]-o[1];zm(e,t,s)}else{o[0]=ui(o[0],r.width),o[1]=ui(o[1],r.width);var l=r.width-o[0]-o[1];zm(e,t,l)}e.setlayout("layoutinfo",i)})}function zm(t,e,n){if(t.count())for(var i,r=e.coordinatesystem,o=e.getlayerseries(),a=t.mapdimension("single"),s=t.mapdimension("value"),l=v(o,function(e){return v(e.indices,function(e){var n=r.datatopoint(t.get(a,e));return n[1]=t.get(s,e),n})}),u=qm(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;d>f;++f){i=h[f]*c,t.setitemlayout(o[0].indices[f],{layerindex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*c});for(var g=1;p>g;++g)i+=l[g-1][f][1]*c,t.setitemlayout(o[g].indices[f],{layerindex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*c})}}function qm(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;n>a;++a){for(var s=0,l=0;e>l;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;n>u;++u)r[u]=(o-i[u])/2;o=0;for(var h=0;n>h;++h){var c=i[h]+r[h];c>o&&(o=c)}return{y0:r,max:o}}function km(t){t.registerchartview(lz),t.registerseriesmodel(hz),t.registerlayout(jm),t.registerprocessor(ay("themeriver"))}function jm(t,e){return e=e||[0,0],v(["x","y"],function(n,i){var r=this.getaxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getbandwidth():math.abs(r.datatocoord(o-a)-r.datatocoord(o+a))},this)}function $m(t){var e=t.master.getrect();return{coordsys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.datatopoint(e) },size:ow(jm,t)}}}function qm(t,e){return e=e||[0,0],v([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],math.abs(this.datatopoint(o)[n]-this.datatopoint(a)[n])},this)}function t_(t){var e=t.getboundingrect();return{coordsys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getzoom()},api:{coord:function(e){return t.datatopoint(e)},size:ow(qm,t)}}}function e_(t,e){var n=this.getaxis(),i=e instanceof array?e[0]:e,r=(t instanceof array?t[0]:t)/2;return"category"===n.type?n.getbandwidth():math.abs(n.datatocoord(i-r)-n.datatocoord(i+r))}function n_(t){var e=t.getrect();return{coordsys:{type:"singleaxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.datatopoint(e)},size:ow(e_,t)}}}function i_(t,e){return e=e||[0,0],v(["radius","angle"],function(n,i){var r="get"+n+"axis",o=this[r](),a=e[i],s=t[i]/2,l="category"===o.type?o.getbandwidth():math.abs(o.datatocoord(a-s)-o.datatocoord(a+s));return"angle"===n&&(l=l*math.pi/180),l},this)}function r_(t){var e=t.getradiusaxis(),n=t.getangleaxis(),i=e.getextent();return i[0]>i[1]&&i.reverse(),{coordsys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.datatoradius(i[0]),o=n.datatoangle(i[1]),a=t.coordtopoint([r,o]);return a.push(r,o*math.pi/180),a},size:ow(i_,t)}}}function o_(t){var e=t.getrect(),n=t.getrangeinfo();return{coordsys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellwidth:t.getcellwidth(),cellheight:t.getcellheight(),rangeinfo:{start:n.start,end:n.end,weeks:n.weeks,daycount:n.allday}},api:{coord:function(e,n){return t.datatopoint(e,n)}}}}function a_(t,e,n,i){return t&&(t.legacy||t.legacy!==!1&&!n&&!i&&"tspan"!==e&&("text"===e||j(t,"text")))}function s_(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},j(a,"text")&&(o.text=a.text),j(a,"rich")&&(o.rich=a.rich),j(a,"textfill")&&(o.fill=a.textfill),j(a,"textstroke")&&(o.stroke=a.textstroke),j(a,"fontfamily")&&(o.fontfamily=a.fontfamily),j(a,"fontsize")&&(o.fontsize=a.fontsize),j(a,"fontstyle")&&(o.fontstyle=a.fontstyle),j(a,"fontweight")&&(o.fontweight=a.fontweight),r={type:"text",style:o,silent:!0},i={};var s=j(a,"textposition");n?i.position=s?a.textposition:"inside":s&&(i.position=a.textposition),j(a,"textposition")&&(i.position=a.textposition),j(a,"textoffset")&&(i.offset=a.textoffset),j(a,"textrotation")&&(i.rotation=a.textrotation),j(a,"textdistance")&&(i.distance=a.textdistance)}return l_(o,t),y(o.rich,function(t){l_(t,t)}),{textconfig:i,textcontent:r}}function l_(t,e){e&&(e.font=e.textfont||e.font,j(e,"textstrokewidth")&&(t.linewidth=e.textstrokewidth),j(e,"textalign")&&(t.align=e.textalign),j(e,"textverticalalign")&&(t.verticalalign=e.textverticalalign),j(e,"textlineheight")&&(t.lineheight=e.textlineheight),j(e,"textwidth")&&(t.width=e.textwidth),j(e,"textheight")&&(t.height=e.textheight),j(e,"textbackgroundcolor")&&(t.backgroundcolor=e.textbackgroundcolor),j(e,"textpadding")&&(t.padding=e.textpadding),j(e,"textbordercolor")&&(t.bordercolor=e.textbordercolor),j(e,"textborderwidth")&&(t.borderwidth=e.textborderwidth),j(e,"textborderradius")&&(t.borderradius=e.textborderradius),j(e,"textboxshadowcolor")&&(t.shadowcolor=e.textboxshadowcolor),j(e,"textboxshadowblur")&&(t.shadowblur=e.textboxshadowblur),j(e,"textboxshadowoffsetx")&&(t.shadowoffsetx=e.textboxshadowoffsetx),j(e,"textboxshadowoffsety")&&(t.shadowoffsety=e.textboxshadowoffsety))}function u_(t,e,n){var i=t;i.textposition=i.textposition||n.position||"inside",null!=n.offset&&(i.textoffset=n.offset),null!=n.rotation&&(i.textrotation=n.rotation),null!=n.distance&&(i.textdistance=n.distance);var r=i.textposition.indexof("inside")>=0,o=t.fill||"#000";h_(i,e);var a=null==i.textfill;return r?a&&(i.textfill=n.insidefill||"#fff",!i.textstroke&&n.insidestroke&&(i.textstroke=n.insidestroke),!i.textstroke&&(i.textstroke=o),null==i.textstrokewidth&&(i.textstrokewidth=2)):(a&&(i.textfill=t.fill||n.outsidefill||"#000"),!i.textstroke&&n.outsidestroke&&(i.textstroke=n.outsidestroke)),i.text=e.text,i.rich=e.rich,y(e.rich,function(t){h_(t,t)}),i}function h_(t,e){e&&(j(e,"fill")&&(t.textfill=e.fill),j(e,"stroke")&&(t.textstroke=e.fill),j(e,"linewidth")&&(t.textstrokewidth=e.linewidth),j(e,"font")&&(t.font=e.font),j(e,"fontstyle")&&(t.fontstyle=e.fontstyle),j(e,"fontweight")&&(t.fontweight=e.fontweight),j(e,"fontsize")&&(t.fontsize=e.fontsize),j(e,"fontfamily")&&(t.fontfamily=e.fontfamily),j(e,"align")&&(t.textalign=e.align),j(e,"verticalalign")&&(t.textverticalalign=e.verticalalign),j(e,"lineheight")&&(t.textlineheight=e.lineheight),j(e,"width")&&(t.textwidth=e.width),j(e,"height")&&(t.textheight=e.height),j(e,"backgroundcolor")&&(t.textbackgroundcolor=e.backgroundcolor),j(e,"padding")&&(t.textpadding=e.padding),j(e,"bordercolor")&&(t.textbordercolor=e.bordercolor),j(e,"borderwidth")&&(t.textborderwidth=e.borderwidth),j(e,"borderradius")&&(t.textborderradius=e.borderradius),j(e,"shadowcolor")&&(t.textboxshadowcolor=e.shadowcolor),j(e,"shadowblur")&&(t.textboxshadowblur=e.shadowblur),j(e,"shadowoffsetx")&&(t.textboxshadowoffsetx=e.shadowoffsetx),j(e,"shadowoffsety")&&(t.textboxshadowoffsety=e.shadowoffsety),j(e,"textshadowcolor")&&(t.textshadowcolor=e.textshadowcolor),j(e,"textshadowblur")&&(t.textshadowblur=e.textshadowblur),j(e,"textshadowoffsetx")&&(t.textshadowoffsetx=e.textshadowoffsetx),j(e,"textshadowoffsety")&&(t.textshadowoffsety=e.textshadowoffsety))}function c_(t,e,n,i,r){var o=t+"animation",a=hs(t,i,r)||{},s=mz(e).userduring;return a.duration>0&&(a.during=s?ow(__,{el:e,userduring:s}):null,a.settofinal=!0,a.scope=t),h(a,n[o]),a}function p_(t,e,n,i){i=i||{};var r=i.dataindex,o=i.isinit,a=i.clearstyle,s=n.isanimationenabled(),l=mz(t),u=e.style;l.userduring=e.during;var c={},p={};if(s_(t,e,p),b_("shape",e,p),b_("extra",e,p),!o&&s&&(w_(t,e,c),x_("shape",t,e,c),x_("extra",t,e,c),m_(t,e,u,c)),p.style=u,y_(t,p,a),m_(t,e),s)if(o){var d={};y(vz,function(t){var n=t?e[t]:e;n&&n.enterfrom&&(t&&(d[t]=d[t]||{}),h(t?d[t]:d,n.enterfrom))});var f=c_("enter",t,e,n,r);f.duration>0&&t.animatefrom(d,f)}else v_(t,e,r||0,n,c);d_(t,e),u?t.dirty():t.markredraw()}function d_(t,e){for(var n=mz(t).leavetoprops,i=0;i0&&t.animatefrom(r,o)}}function m_(t,e){j(e,"silent")&&(t.silent=e.silent),j(e,"ignore")&&(t.ignore=e.ignore),t instanceof xt&&j(e,"invisible")&&(t.invisible=e.invisible),t instanceof ac&&j(e,"autobatch")&&(t.autobatch=e.autobatch)}function __(){var t=this,e=t.el;if(e){var n=mz(e).userduring,i=t.userduring;if(n!==i)return void(t.el=t.userduring=null);_z.el=e,i(xz)}}function x_(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),g_(l))h(o,a);else for(var u=fr(l),c=0;c=0){!o&&(o=i[t]={});for(var g=b(a),c=0;c=0)){var d=t.getanimationstyleprops(),f=d?d.style:null;if(f){!r&&(r=i.style={});for(var g=b(n),u=0;u=0?e.getstore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalmeta;return a?a.categories[o]:o}function u(n,i){null==i&&(i=b);var r=e.getitemvisual(i,"style"),s=r&&r.fill,l=r&&r.opacity,u=o(i,mz).getitemstyle();null!=s&&(u.fill=s),null!=l&&(u.opacity=l);var h={inheritcolor:c(s)?s:"#000"},c=a(i,mz),f=qs(c,null,h,!1,!0);f.text=c.getshallow("show")?b(t.getformattedlabel(i,mz),lg(e,i)):null;var g=ks(c,h,!1);return d(n,u),u=u_(u,f,g),n&&p(u,n),u.legacy=!0,u}function h(n,i){null==i&&(i=b);var r=o(i,sz).getitemstyle(),s=a(i,sz),l=qs(s,null,null,!0,!0);l.text=s.getshallow("show")?f(t.getformattedlabel(i,sz),t.getformattedlabel(i,mz),lg(e,i)):null;var u=ks(s,null,!0);return d(n,r),r=u_(r,l,u),n&&p(r,n),r.legacy=!0,r}function p(t,e){for(var n in e)j(e,n)&&(t[n]=e[n])}function d(t,e){t&&(t.textfill&&(e.textfill=t.textfill),t.textposition&&(e.textposition=t.textposition))}function f(t,n){if(null==n&&(n=b),j(cz,t)){var i=e.getitemvisual(n,"style");return i?i[cz[t]]:null}return j(pz,t)?e.getitemvisual(n,t):void 0}function g(t){if("cartesian2d"===_.type){var e=_.getbaseaxis();return gd(c({axis:e},t))}}function y(){return n.getcurrentseriesindices()}function v(t){return tl(t,n)}var m=t.get("renderitem"),_=t.coordinatesystem,x={};_&&(x=_.preparecustoms?_.preparecustoms(_):oz[_.type](_));for(var b,w,s=c({getwidth:i.getwidth,getheight:i.getheight,getzr:i.getzr,getdevicepixelratio:i.getdevicepixelratio,value:s,style:u,ordinalrawvalue:l,styleemphasis:h,visual:f,barlayout:g,currentseriesindices:y,font:v},x.api||{}),m={context:{},seriesid:t.id,seriesname:t.name,seriesindex:t.seriesindex,coordsys:x.coordsys,datainsidelength:e.count(),encode:z_(t.getdata())},t={},i={},d={},a={},k=0;k=0?o.replaceat(u,a):o.add(u),u}function v_(t,e,n){var i=dz(t),r=e.type,o=e.shape,a=e.style;return n.isuniversaltransitionenabled()||null!=r&&r!==i.customgraphictype||"path"===r&&q_(o)&&$_(o)!==i.custompathdata||"image"===r&&j(a,"image")&&a.image!==i.customimagepath}function g_(t,e,n,i,r){var o=n.clippath;if(o===!1)t&&t.getclippath()&&t.removeclippath();else if(o){var a=t.getclippath();a&&v_(a,o,i)&&(a=null),a||(a=l_(o),t.setclippath(a)),p_(null,a,e,o,null,i,r)}}function h_(t,e,n,i,r,o){if(!t.isgroup){w_(n,null,o),w_(n,sz,o);var a=o.normal.conopt,s=o.emphasis.conopt,l=o.blur.conopt,u=o.select.conopt;if(null!=a||null!=s||null!=u||null!=l){var h=t.gettextcontent();if(a===!1)h&&t.removetextcontent();else{a=o.normal.conopt=a||{type:"text"},h?h.clearstates():(h=l_(a),t.settextcontent(h)),p_(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;ph;h++){var c=o[h],p=e.childat(h);c?(null==c.ignore&&(c.ignore=!1),f_(t,p,n,c,r,e)):p.ignore=!0}for(var d=e.childcount()-1;d>=h;d--){var f=e.childat(d);j_(e,f,r)}}}function j_(t,e,n){e&&f_(e,dz(t).option,n)}function z_(t){new tp(t.oldchildren,t.newchildren,q_,q_,t).add(k_).update(k_).remove(j_).execute()}function q_(t,e){var n=t&&t.name;return null!=n?n:lz+e}function k_(t,e){var n=this.context,i=null!=t?n.newchildren[t]:null,r=null!=e?n.oldchildren[e]:null;f_(n.api,r,n.dataindex,i,n.seriesmodel,n.group)}function j_(t){var e=this.context,n=e.oldchildren[t];n&&f_(n,dz(n).option,e.seriesmodel)}function $_(t){return t&&(t.pathdata||t.d)}function q_(t){return t&&(j(t,"pathdata")||j(t,"d"))}function tx(t){t.registerchartview(rz),t.registerseriesmodel(fz)}function ex(t,e,n,i){nx(nz(n).lastprop,i)||(nz(n).lastprop=i,e?ps(n,i,t):(n.stopanimation(),n.attr(i)))}function nx(t,e){if(a(t)&&a(e)){var n=!0;return y(e,function(e,i){n=n&&nx(t[i],e)}),!!n}return t===e}function ix(t,e){t[e.get(["label","show"])?"show":"hide"]()}function rx(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ox(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function ax(t){var e,n=t.get("type"),i=t.getmodel(n+"style");return"line"===n?(e=i.getlinestyle(),e.fill=null):"shadow"===n&&(e=i.getareastyle(),e.stroke=null),e}function sx(t,e,n,i,r){var o=n.get("value"),a=ux(o,e.axis,e.ecmodel,n.get("seriesdataindices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getmodel("label"),l=pd(s.get("padding")||0),u=s.getfont(),h=wi(a,u),c=r.position,p=h.width+l[1]+l[3],d=h.height+l[0]+l[2],f=r.align;"right"===f&&(c[0]-=p),"center"===f&&(c[0]-=p/2);var g=r.verticalalign;"bottom"===g&&(c[1]-=d),"middle"===g&&(c[1]-=d/2),lx(c,p,d,i);var y=s.get("backgroundcolor");y&&"auto"!==y||(y=e.get(["axisline","linestyle","color"])),t.label={x:c[0],y:c[1],style:qs(s,{text:a,font:u,fill:s.gettextcolor(),padding:l,backgroundcolor:y}),z2:10}}function lx(t,e,n,i){var r=i.getwidth(),o=i.getheight();t[0]=math.min(t[0]+e,r)-e,t[1]=math.min(t[1]+n,o)-n,t[0]=math.max(t[0],0),t[1]=math.max(t[1],0)}function ux(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getlabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:wd(e,{value:t}),axisdimension:e.dim,axisindex:e.index,seriesdata:[]};y(i,function(t){var e=n.getseriesbyindex(t.seriesindex),i=t.dataindexinside,r=e&&e.getdataparams(i);r&&s.seriesdata.push(r)}),c(a)?o=a.replace("{value}",o):t(a)&&(o=a(s))}return o}function hx(t,e,n){var i=be();return we(i,i,n.rotation),he(i,i,n.position),ks([t.datatocoord(e),(n.labeloffset||0)+(n.labeldirection||1)*(n.labelmargin||0)],i)}function cx(t,e,n,i,r,o){var a=sn.innertextlayout(n.rotation,0,n.labeldirection);n.labelmargin=r.get(["label","margin"]),sx(e,i,r,o,{position:hx(i.axis,t,n),align:a.textalign,verticalalign:a.textverticalalign})}function px(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function dx(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function fx(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startangle:r,endangle:o,clockwise:!0}}function gx(t,e,n,i,r){var o=e.axis,a=o.datatocoord(t),s=i.getangleaxis().getextent()[0];s=s/180*math.pi;var l,u,h,c=i.getradiusaxis().getextent();if("radius"===o.dim){var p=be();we(p,p,s),he(p,p,[i.cx,i.cy]),l=ks([a,-r],p);var d=e.getmodel("axislabel").get("rotate")||0,f=sn.innertextlayout(s,d*math.pi/180,-1);u=f.textalign,h=f.textverticalalign}else{var g=c[1];l=i.coordtopoint([g+r,a]);var y=i.cx,v=i.cy;u=math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",h=math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalalign:h}}function yx(t,e){var n={};return n[e.dim+"axisindex"]=e.index,t.getcartesian(n)}function vx(t){return"x"===t.dim?0:1}function mx(t,e,n){if(!cw.node){var i=e.getzr();uz(i).records||(uz(i).records={}),_x(i,e);var r=uz(i).records[t]||(uz(i).records[t]={});r.handler=n}}function _x(t,e){function n(n,i){t.on(n,function(n){var r=mx(e);xz(uz(t).records,function(t){t&&i(t,n,r.dispatchaction)}),xx(r.pendings,e)})}uz(t).initialized||(uz(t).initialized=!0,n("click",s(sx,"click")),n("mousemove",s(sx,"mousemove")),n("globalout",bx))}function xx(t,e){var n,i=t.showtip.length,r=t.hidetip.length;i?n=t.showtip[i-1]:r&&(n=t.hidetip[r-1]),n&&(n.dispatchaction=null,e.dispatchaction(n))}function bx(t,e,n){t.handler("leave",null,n)}function sx(t,e,n,i){e.handler(t,n,i)}function mx(t){var e={showtip:[],hidetip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchaction=n,t.dispatchaction(i))};return{dispatchaction:n,pendings:e}}function tx(t,e){if(!cw.node){var n=e.getzr(),i=(uz(n).records||{})[t];i&&(uz(n).records[t]=null)}}function cx(t,e){var n,i=[],r=t.seriesindex;if(null==r||!(n=e.getseriesbyindex(r)))return{point:[]};var o=n.getdata(),a=pr(o,t);if(null==a||0>a||m(a))return{point:[]};var s=o.getitemgraphicel(a),l=n.coordinatesystem;if(n.gettooltipposition)i=n.gettooltipposition(a)||[];else if(l&&l.datatopoint)if(t.isstacked){var u=l.getbaseaxis(),h=l.getotheraxis(u),c=h.dim,p=u.dim,d="x"===c||"radius"===c?1:0,f=o.mapdimension(p),g=[];g[d]=o.get(f,a),g[1-d]=o.get(o.getcalculationinfo("stackresultdimension"),a),i=l.datatopoint(g)||[]}else i=l.datatopoint(o.getvalues(v(l.dimensions,function(t){return o.mapdimension(t)}),a))||[];else if(s){var y=s.getboundingrect().clone();y.applytransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}function ix(t,e,n){var i=t.currtrigger,r=[t.x,t.y],o=t,a=t.dispatchaction||ow(n.dispatchaction,n),s=e.getcomponent("axispointer").coordsysaxesinfo;if(s){zx(r)&&(r=cx({seriesindex:o.seriesindex,dataindex:o.dataindex},e).point);var l=zx(r),u=o.axesinfo,h=s.axesinfo,c="leave"===i||zx(r),p={},d={},f={list:[],map:{}},g={showpointer:s(kx,d),showtooltip:s(lx,f)};y(s.coordsysmap,function(t,e){var n=l||t.containpoint(r);y(s.coordsysaxesinfo[e],function(t){var e=t.axis,i=nx(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointtodata(r)),null!=o&&dx(t,o,g,!1,p)}})});var v={};return y(h,function(t,e){var n=t.linkgroup;n&&!d[e]&&y(n.axesinfo,function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,ex(e),ex(t)))),v[t.key]=o}})}),y(v,function(t,e){dx(h[e],t,g,!0,p)}),px(d,h,p),ox(f,r,t,a),rx(h,a,n),p}}function dx(t,e,n,i,r){var o=t.axis;if(!o.scale.isblank()&&o.containdata(e)){if(!t.involveseries)return void n.showpointer(t,e);var a=ax(e,t),s=a.payloadbatch,l=a.snaptovalue;s[0]&&null==r.seriesindex&&h(r,s[0]),!i&&t.snap&&o.containdata(l)&&null!=l&&(e=l),n.showpointer(t,e,s),n.showtooltip(t,a,l)}}function ax(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=number.max_value,s=-1;return y(e.seriesmodels,function(e){var l,u,h=e.getdata().mapdimensionsall(i);if(e.getaxistooltipdata){var c=e.getaxistooltipdata(h,t,n);u=c.dataindices,l=c.nestestvalue}else{if(u=e.getdata().indicesofnearest(h[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getdata().get(h[0],u[0])}if(null!=l&&isfinite(l)){var p=t-l,d=math.abs(p);a>=d&&((a>d||p>=0&&0>s)&&(a=d,s=p,r=l,o.length=0),y(u,function(t){o.push({seriesindex:e.seriesindex,dataindexinside:t,dataindex:e.getdata().getrawindex(t)})}))}}),{payloadbatch:o,snaptovalue:r}}function kx(t,e,n,i){t[e.key]={value:n,payloadbatch:i}}function lx(t,e,n,i){var r=n.payloadbatch,o=e.axis,a=o.model,s=e.axispointermodel;if(e.triggertooltip&&r.length){var l=e.coordsys.model,u=yy(l),h=t.map[u];h||(h=t.map[u]={coordsysid:l.id,coordsysindex:l.componentindex,coordsystype:l.type,coordsysmaintype:l.maintype,databyaxis:[]},t.list.push(h)),h.databyaxis.push({axisdim:o.dim,axisindex:a.componentindex,axistype:a.type,axisid:a.id,value:i,valuelabelopt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesdataindices:r.slice()})}}function px(t,e,n){var i=n.axesinfo=[];y(e,function(e,n){var r=e.axispointermodel.option,o=t[n];o?(!e.usehandle&&(r.status="show"),r.value=o.value,r.seriesdataindices=(o.payloadbatch||[]).slice()):!e.usehandle&&(r.status="hide"),"show"===r.status&&i.push({axisdim:e.axis.dim,axisindex:e.axis.model.componentindex,value:r.value})})}function ox(t,e,n,i){if(zx(e)||!t.list.length)return void i({type:"hidetip"});var r=((t.list[0].databyaxis[0]||{}).seriesdataindices||[])[0]||{};i({type:"showtip",escapeconnect:!0,x:e[0],y:e[1],tooltipoption:n.tooltipoption,position:n.position,dataindexinside:r.dataindexinside,dataindex:r.dataindex,seriesindex:r.seriesindex,databycoordsys:t.list})}function rx(t,e,n){var i=n.getzr(),r="axispointerlasthighlights",o=jz(i)[r]||{},a=jz(i)[r]={};y(t,function(t){var e=t.axispointermodel.option;"show"===e.status&&y(e.seriesdataindices,function(t){var e=t.seriesindex+" | "+t.dataindex;a[e]=t})});var s=[],l=[];y(o,function(t,e){!a[e]&&l.push(t)}),y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchaction({type:"downplay",escapeconnect:!0,notblur:!0,batch:l}),s.length&&n.dispatchaction({type:"highlight",escapeconnect:!0,notblur:!0,batch:s})}function nx(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisdim&&e.axis.model.componentindex===i.axisindex)return i}}function ex(t){var e=t.axis.model,n={},i=n.axisdim=t.axis.dim;return n.axisindex=n[i+"axisindex"]=e.componentindex,n.axisname=n[i+"axisname"]=e.name,n.axisid=n[i+"axisid"]=e.id,n}function zx(t){return!t||null==t[0]||isnan(t[0])||null==t[1]||isnan(t[1])}function bx(t){hn.registeraxispointerclass("cartesianaxispointer",gz),t.registercomponentmodel(wz),t.registercomponentview(yz),t.registerpreprocessor(function(t){if(t){(!t.axispointer||0===t.axispointer.length)&&(t.axispointer={});var e=t.axispointer.link;e&&!m(e)&&(t.axispointer.link=[e])}}),t.registerprocessor(t.priority.processor.statistic,function(t,e){t.getcomponent("axispointer").coordsysaxesinfo=ey(t,e)}),t.registeraction({type:"updateaxispointer",event:"updateaxispointer",update:":updateaxispointer"},ix)}function fx(t){var e=t.seriesmodel,n=t.polarmodel;return n&&n.coordinatesystem||e&&e.coordinatesystem}function vx(t,e,n){var i=e.get("center"),r=n.getwidth(),o=n.getheight();t.cx=ui(i[0],r),t.cy=ui(i[1],o);var a=t.getradiusaxis(),s=math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:m(l)||(l=[0,l]);var u=[ui(l[0],s),ui(l[1],s)];a.inverse?a.setextent(u[1],u[0]):a.setextent(u[0],u[1])}function gx(t){var e=this,n=e.getangleaxis(),i=e.getradiusaxis();if(n.scale.setextent(1/0,-1/0),i.scale.setextent(1/0,-1/0),t.eachseries(function(t){if(t.coordinatesystem===e){var r=t.getdata();y(zd(r,"radius"),function(t){i.scale.unionextentfromdata(r,t)}),y(zd(r,"angle"),function(t){n.scale.unionextentfromdata(r,t)})}}),fd(n.scale,n.model),fd(i.scale,i.model),"category"===n.type&&!n.onband){var r=n.getextent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setextent(r[0],r[1])}}function hx(t){return"angleaxis"===t.maintype}function wx(t,e){if(t.type=e.get("type"),t.scale=vd(e),t.onband=e.get("boundarygap")&&"category"===t.type,t.inverse=e.get("inverse"),hx(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startangle");t.setextent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}function ux(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordtopoint([e[0],n]),r=t.coordtopoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function xx(t){var e=t.getradiusaxis();return e.inverse?0:1}function yx(t){var e=t[0],n=t[t.length-1];e&&n&&math.abs(math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}function jx(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*math.pi,labeldirection:-1,tickdirection:-1,namedirection:1,labelrotate:e.getmodel("axislabel").get("rotate"),z2:1}}function zx(t){return t.get("stack")||"__ec_stack_"+t.seriesindex}function qx(t,e){return e.dim+t.model.componentindex}function kx(t,e){var n={},i=jx(_(e.getseriesbytype(t),function(t){return!e.isseriesfiltered(t)&&t.coordinatesystem&&"polar"===t.coordinatesystem.type}));e.eachseriesbytype(t,function(t){if("polar"===t.coordinatesystem.type){var e=t.getdata(),r=t.coordinatesystem,o=r.getbaseaxis(),a=qx(r,o),s=zx(t),l=i[a][s],u=l.offset,h=l.width,c=r.getotheraxis(o),p=t.coordinatesystem.cx,d=t.coordinatesystem.cy,f=t.get("barminheight")||0,g=t.get("barminangle")||0;n[s]=n[s]||[];for(var y=e.mapdimension(c.dim),v=e.mapdimension(o.dim),m=qp(e,y),_="radius"!==o.dim||!t.get("roundcap",!0),x=c.datatocoord(0),b=0,w=e.count();w>b;b++){var s=e.get(y,b),m=e.get(v,b),t=s>=0?"p":"n",c=x;m&&(n[s][m]||(n[s][m]={p:x,n:x}),c=n[s][m][t]);var i=void 0,d=void 0,a=void 0,k=void 0;if("radius"===c.dim){var l=c.datatocoord(s)-x,p=o.datatocoord(m);math.abs(l)l?-1:1)*f),i=c,d=c+l,a=p-u,k=a-h,m&&(n[s][m][t]=d)}else{var o=c.datatocoord(s,_)-x,r=o.datatocoord(m);math.abs(o)o?-1:1)*g),i=r+u,d=i+h,a=c,k=c+o,m&&(n[s][m][t]=k)}e.setitemlayout(b,{cx:p,cy:d,r0:i,r:d,startangle:-a*math.pi/180,endangle:-k*math.pi/180,clockwise:a>=k})}}})}function jx(t){var e={};y(t,function(t){var n=t.getdata(),i=t.coordinatesystem,r=i.getbaseaxis(),o=qx(i,r),a=r.getextent(),s="category"===r.type?r.getbandwidth():math.abs(a[1]-a[0])/n.count(),l=e[o]||{bandwidth:s,remainedwidth:s,autowidthcount:0,categorygap:"20%",gap:"30%",stacks:{}},u=l.stacks;e[o]=l;var h=zx(t);u[h]||l.autowidthcount++,u[h]=u[h]||{width:0,maxwidth:0};var c=ui(t.get("barwidth"),s),p=ui(t.get("barmaxwidth"),s),d=t.get("bargap"),f=t.get("barcategorygap");c&&!u[h].width&&(c=math.min(l.remainedwidth,c),u[h].width=c,l.remainedwidth-=c),p&&(u[h].maxwidth=p),null!=d&&(l.gap=d),null!=f&&(l.categorygap=f)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandwidth,o=ui(t.categorygap,r),a=ui(t.gap,1),s=t.remainedwidth,l=t.autowidthcount,u=(s-o)/(l+(l-1)*a);u=math.max(u,0),y(i,function(t){var e=t.maxwidth;e&&u>e&&(e=math.min(e,s),t.width&&(e=math.min(e,t.width)),s-=e,t.width=e,l--)}),u=(s-o)/(l+(l-1)*a),u=math.max(u,0);var h,c=0;y(i,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+a)}),h&&(c-=h.width*a);var p=-c/2;y(i,function(t,i){n[e][i]=n[e][i]||{offset:p,width:t.width},p+=t.width*(1+a)})}),n}function $x(t){qd(bx),hn.registeraxispointerclass("polaraxispointer",fz),t.registercoordinatesystem("polar",ib),t.registercomponentmodel(zz),t.registercomponentview(db),yy(t,"angle",kz,cb),yy(t,"radius",jz,pb),t.registercomponentview(ob),t.registercomponentview(ub),t.registerlayout(s(kx,"bar"))}function qx(t,e){e=e||{};var n=t.coordinatesystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getrect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var h={horizontal:0,vertical:1};r.rotation=math.pi/2*h[a];var c={top:-1,bottom:1,right:1,left:-1};r.labeldirection=r.tickdirection=r.namedirection=c[o],t.get(["axistick","inside"])&&(r.tickdirection=-r.tickdirection),z(e.labelinside,t.get(["axislabel","inside"]))&&(r.labeldirection=-r.labeldirection);var p=e.rotate;return null==p&&(p=t.get(["axislabel","rotate"])),r.labelrotation="top"===o?-p:p,r.z2=1,r}function tb(t){var e=t.seriesmodel,n=t.singleaxismodel;return n&&n.coordinatesystem||e&&e.coordinatesystem}function eb(t,e){var n=[];return t.eachcomponent("singleaxis",function(i,r){var o=new bb(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinatesystem=o,n.push(o)}),t.eachseries(function(t){if("singleaxis"===t.get("coordinatesystem")){var e=t.getreferringcomponents("singleaxis",et).models[0];t.coordinatesystem=e&&e.coordinatesystem}}),n}function nb(t){return t.ishorizontal()?0:1}function ib(t,e){var n=t.getrect();return[n[sb[e]],n[sb[e]]+n[mb[e]]]}function rb(t){qd(bx),hn.registeraxispointerclass("singleaxispointer",tb),t.registercomponentview(ib),t.registercomponentview(yb),t.registercomponentmodel(mb),yy(t,"single",mb,mb.defaultoption),t.registercoordinatesystem("single",wb)}function ob(t){t.registercomponentmodel(db),t.registercomponentview(ab)}function ab(t,e){var n=pd(e.get("padding")),i=e.getitemstyle(["color","opacity"]);return i.fill=e.get("backgroundcolor"),t=new gc({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderradius")},style:i,silent:!0,z2:-1}) }function sb(t,e,n,i,r,o,a){function s(t,e){"auto"===t.linewidth&&(t.linewidth=e.linewidth>0?2:0),ob(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getmodel("itemstyle"),u=l.getitemstyle(),h=0===t.lastindexof("empty",0)?"fill":"stroke",c=l.getshallow("decal");u.decal=c&&"inherit"!==c?kc(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getmodel("linestyle"),d=p.getlinestyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveborderwidth"),g=u[h];u.linewidth="auto"===f?i.linewidth>0&&g?2:0:u.linewidth,u.fill=e.get("inactivecolor"),u.stroke=e.get("inactivebordercolor"),d.stroke=p.get("inactivecolor"),d.linewidth=p.get("inactivewidth")}return{itemstyle:u,linestyle:d}}function lb(t){var e=t.icon||"roundrect",n=vc(e,0,0,t.itemwidth,t.itemheight,t.itemstyle.fill,t.symbolkeepaspect);return n.setstyle(t.itemstyle),n.rotation=(t.iconrotate||0)*math.pi/180,n.setorigin([t.itemwidth/2,t.itemheight/2]),e.indexof("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.linewidth=2),n}function ub(t,e,n,i){pb(t,e,n,i),n.dispatchaction({type:"legendtoggleselect",name:null!=t?t:e}),cb(t,e,n,i)}function hb(t){for(var e,n=t.getzr().storage.getdisplaylist(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverlayer}function cb(t,e,n,i){hb(n)||n.dispatchaction({type:"highlight",seriesname:t,name:e,excludeseriesid:i})}function pb(t,e,n,i){hb(n)||n.dispatchaction({type:"downplay",seriesname:t,name:e,excludeseriesid:i})}function db(t){var e=t.findcomponents({maintype:"legend"});e&&e.length&&t.filterseries(function(t){for(var n=0;nn;n++)if(t[n]in e)return t[n]}function wb(t,e){if(!t)return e;e=nl(e,!0);var n=t.indexof(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.tolowercase()}function sb(t,e){var n=t.currentstyle||document.defaultview&&document.defaultview.getcomputedstyle(t);return n?e?n[e]:n:null}function mb(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function tb(t,e,n){if(!c(n)||"inside"===n)return"";var i=t.get("backgroundcolor"),r=t.get("borderwidth");e=gl(e);var o,a=mb(n),s=math.max(1.5*math.round(r),6),l="",u=xb+":";p(["left","right"],a)>-1?(l+="top:50%",u+="translatey(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translatex(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*math.pi/180,c=s+r,d=c*math.abs(math.cos(h))+c*math.abs(math.sin(h)),f=math.round(100*((d-math.sqrt2*r)/2+math.sqrt2*r-(d-c)/2))/100;l+=";"+a+":-"+f+"px";var g=e+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'
'}function cb(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=cw.transformsupported?","+xb+i:",left"+i+",top"+i),ub+":"+r}function ib(t,e,n){var i=t.tofixed(0)+"px",r=e.tofixed(0)+"px";if(!cw.transformsupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=cw.transform3dsupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+xb+":"+a+";":[["top",0],["left",0],[hb,a]]}function db(t){var e=[],n=t.get("fontsize"),i=t.gettextcolor();i&&e.push("color:"+i),e.push("font:"+t.getfont()),n&&e.push("line-height:"+math.round(3*n/2)+"px");var r=t.get("textshadowcolor"),o=t.get("textshadowblur")||0,a=t.get("textshadowoffsetx")||0,s=t.get("textshadowoffsety")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),y(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function ab(t,e,n){var i=[],r=t.get("transitionduration"),o=t.get("backgroundcolor"),a=t.get("shadowblur"),s=t.get("shadowcolor"),l=t.get("shadowoffsetx"),u=t.get("shadowoffsety"),h=t.getmodel("textstyle"),c=lh(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(cb(r,n)),o&&i.push("background-color:"+o),y(["width","color","radius"],function(e){var n="border-"+e,r=nl(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(db(h)),null!=c&&i.push("padding:"+pd(c).join("px ")+"px"),i.join(";")+";"}function kb(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getviewportroot();a&&we(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getviewportrootoffset();s&&(t[0]+=s.offsetleft,t[1]+=s.offsettop)}t[2]=t[0]/e.getwidth(),t[3]=t[1]/e.getheight()}function lb(t){return math.max(0,t)}function pb(t){var e=lb(t.shadowblur||0),n=lb(t.shadowoffsetx||0),i=lb(t.shadowoffsety||0);return{left:lb(e-n),right:lb(e+n),top:lb(e-i),bottom:lb(e+i)}}function ob(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getwidth(),t[3]=t[1]/e.getheight()}function rb(t,e,n){var i,r=e.ecmodel;n?(i=new pd(n,r,r),i=new pd(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof pd&&(a=a.get("tooltip",!0)),c(a)&&(a={formatter:a}),a&&(i=new pd(a,i,r)))}return i}function nb(t,e){return t.dispatchaction||ow(e.dispatchaction,e)}function eb(t,e,n,i,r,o,a){var s=n.getsize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function zb(t,e,n,i,r){var o=n.getsize(),a=o[0],s=o[1];return t=math.min(t+a,i)-a,e=math.min(e+s,r)-s,t=math.max(t,0),e=math.max(e,0),[t,e]}function bb(t,e,n,i){var r=n[0],o=n[1],a=math.ceil(math.sqrt2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function fb(t){return"center"===t||"middle"===t}function vb(t,e,n){var i=nr(t).queryoptionmap,r=i.keys()[0];if(r&&"series"!==r){var o=er(e,r,i.get(r),{usedefault:!1,enableall:!1,enablenone:!1}),a=o.models[0];if(a){var s,l=n.getviewofcomponentmodel(a);return l.group.traverse(function(e){var n=sc(e).tooltipconfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentmaintype:r,componentindex:a.componentindex,el:s}:void 0}}}function gb(t){qd(bx),t.registercomponentmodel(gb),t.registercomponentview(kb),t.registeraction({type:"showtip",event:"showtip",update:"tooltip:manuallyshowtip"},$),t.registeraction({type:"hidetip",event:"hidetip",update:"tooltip:manuallyhidetip"},$)}function hb(t,e){if(!t)return!1;for(var n=m(t)?t:[t],i=0;i=0&&(a[o]=+a[o].tofixed(p)),[a,c]}function jb(t,e){if(e){var n=t.getdata(),i=t.coordinatesystem,r=i.dimensions;if(!xb(e)&&!m(e.coord)&&i){var o=zb(e,n,i,t);if(e=s(e),e.type&&tf[e.type]&&o.baseaxis&&o.valueaxis){var a=p(r,o.baseaxis.dim),l=p(r,o.valueaxis.dim),u=tf[e.type](n,o.basedatadim,o.valuedatadim,a,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xaxis?e.xaxis:e.radiusaxis,null!=e.yaxis?e.yaxis:e.angleaxis]}if(null==e.coord)e.coord=[];else for(var h=e.coord,c=0;2>c;c++)tf[h[c]]&&(h[c]=$b(n,n.mapdimension(r[c]),h[c]));return e}}function zb(t,e,n,i){var r={};return null!=t.valueindex||null!=t.valuedim?(r.valuedatadim=null!=t.valueindex?e.getdimension(t.valueindex):t.valuedim,r.valueaxis=n.getaxis(qb(i,r.valuedatadim)),r.baseaxis=n.getotheraxis(r.valueaxis),r.basedatadim=e.mapdimension(r.baseaxis.dim)):(r.baseaxis=i.getbaseaxis(),r.valueaxis=n.getotheraxis(r.baseaxis),r.basedatadim=e.mapdimension(r.baseaxis.dim),r.valuedatadim=e.mapdimension(r.valueaxis.dim)),r}function qb(t,e){var n=t.getdata().getdimensioninfo(e);return n&&n.coorddim}function kb(t,e){return t&&t.containdata&&e.coord&&!ub(e)?t.containdata(e.coord):!0}function jb(t,e){return t?function(t,n,i,r){var o=2>r?t.coord&&t.coord[r]:t.value;return qu(o,e[r])}:function(t,n,i,r){return qu(t.value,e[r])}}function $b(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t){isnan(t)||(i+=t,r++)}),i/r}return"median"===n?t.getmedian(e):t.getdataextent(e)["max"===n?1:0]}function qb(t,e,n){var i=e.coordinatesystem;t.each(function(r){var o,a=t.getitemmodel(r),s=ui(a.get("x"),n.getwidth()),l=ui(a.get("y"),n.getheight());if(isnan(s)||isnan(l)){if(e.getmarkerposition)o=e.getmarkerposition(t.getvalues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.datatopoint([u,h])}}else o=[s,l];isnan(s)||(o[0]=s),isnan(l)||(o[1]=l),t.setitemlayout(r,o)})}function tw(t,e,n){var i;i=t?v(t&&t.dimensions,function(t){var n=e.getdata().getdimensioninfo(e.getdata().mapdimension(t))||{};return h(h({},n),{name:t,ordinalmeta:null})}):[{name:"value",type:"float"}];var r=new bp(i,n),o=v(n.get("data"),s(jb,e));t&&(o=_(o,s(kb,t)));var a=jb(!!t,i);return r.initdata(o,null,a),r}function ew(t){t.registercomponentmodel(qb),t.registercomponentview(if),t.registerpreprocessor(function(t){hb(t.series,"markpoint")&&(t.markpoint=t.markpoint||{})})}function nw(t){return!isnan(t)&&!isfinite(t)}function iw(t,e,n,i){var r=1-t,o=i.dimensions[t];return nw(e[r])&&nw(n[r])&&e[t]===n[t]&&i.getaxis(o).containdata(e[t])}function rw(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(iw(1,n,i,t)||iw(0,n,i,t)))return!0}return kb(t,e[0])&&kb(t,e[1])}function ow(t,e,n,i,r){var o,a=i.coordinatesystem,s=t.getitemmodel(e),l=ui(s.get("x"),r.getwidth()),u=ui(s.get("y"),r.getheight());if(isnan(l)||isnan(u)){if(i.getmarkerposition)o=i.getmarkerposition(t.getvalues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.datatopoint([c,p])}if(sg(a,"cartesian2d")){var d=a.getaxis("x"),f=a.getaxis("y"),h=a.dimensions;nw(t.get(h[0],e))?o[0]=d.toglobalcoord(d.getextent()[n?0:1]):nw(t.get(h[1],e))&&(o[1]=f.toglobalcoord(f.getextent()[n?0:1]))}isnan(l)||(o[0]=l),isnan(u)||(o[1]=u)}else o=[l,u];t.setitemlayout(e,o)}function aw(t,e,n){var i;i=t?v(t&&t.dimensions,function(t){var n=e.getdata().getdimensioninfo(e.getdata().mapdimension(t))||{};return h(h({},n),{name:t,ordinalmeta:null})}):[{name:"value",type:"float"}];var r=new bp(i,n),o=new bp(i,n),a=new bp([],n),s=v(n.get("data"),s(af,e,t,n));t&&(s=_(s,s(rw,t)));var l=jb(!!t,i);return r.initdata(v(s,function(t){return t[0]}),null,l),o.initdata(v(s,function(t){return t[1]}),null,l),a.initdata(v(s,function(t){return t[2]})),a.hasitemoption=!0,{from:r,to:o,line:a}}function sw(t){t.registercomponentmodel(rf),t.registercomponentview(sf),t.registerpreprocessor(function(t){hb(t.series,"markline")&&(t.markline=t.markline||{})})}var lw=function(t,e){return(lw=object.setprototypeof||{__proto__:[]}instanceof array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)object.prototype.hasownproperty.call(e,n)&&(t[n]=e[n])})(t,e)},uw=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newedge=!1,this.wechat=!1}return t}(),hw=function(){function t(){this.browser=new uw,this.node=!1,this.wxa=!1,this.worker=!1,this.svgsupported=!1,this.toucheventssupported=!1,this.pointereventssupported=!1,this.domsupported=!1,this.transformsupported=!1,this.transform3dsupported=!1,this.hasglobalwindow="undefined"!=typeof window}return t}(),cw=new hw;"object"==typeof wx&&"function"==typeof wx.getsysteminfosync?(cw.wxa=!0,cw.toucheventssupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?cw.worker=!0:"undefined"==typeof navigator?(cw.node=!0,cw.svgsupported=!0):n(navigator.useragent,cw);var pw=12,dw="sans-serif",fw=pw+"px "+dw,gw=20,yw=100,vw="007llmw'55;n0500llllllllll00nnnlzww\\\\wqb\\0fwlg\\bwb\\wq\\wrwwq000cl5llfll0ll**f*gllll5f0lf\\fff5.5n",mw=i(vw),_w={createcanvas:function(){return"undefined"!=typeof document&&document.createelement("canvas")},measuretext:function(){var t,e;return function(n,i){if(!t){var r=_w.createcanvas();t=r&&r.getcontext("2d")}if(t)return e!==i&&(e=t.font=i||fw),t.measuretext(n);n=n||"",i=i||fw;var o=/(\d+)px/.exec(i),a=o&&+o[1]||pw,s=0;if(i.indexof("mono")>=0)s=a*n.length;else for(var l=0;lr;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;ns;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.aftertrigger&&r.aftertrigger(t),this},t.prototype.triggerwithcontext=function(t){for(var e=[],n=1;nl;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.aftertrigger&&r.aftertrigger(t),this},t}(),zw=math.log(2),qw="___zreventsaved",kw=[],jw=/([&<>"'])/g,$w={"&":"&","<":"<",">":">",'"':""","'":"'"},qw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ts=[],es=cw.browser.firefox&&+cw.browser.version.split(".")[0]<39,ns=function(t){t.preventdefault(),t.stoppropagation(),t.cancelbubble=!0},is=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._dotrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._dotrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=de(n,s,{});r.points.push([l.zrx,l.zry]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in rs)if(rs.hasownproperty(e)){var n=rs[e](this._track,t);if(n)return n}},t}(),rs={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=ee(i)/ee(r);!isfinite(o)&&(o=1),e.pinchscale=o;var a=ze(i);return e.pinchx=a[0],e.pinchy=a[1],{type:"pinch",target:t[0].target,event:e}}}}},os=(object.freeze||object)({create:be,identity:fe,copy:ve,mul:ge,translate:he,rotate:we,scale:ue,invert:xe,clone:ye}),as=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleandadd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lensquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return math.sqrt(e*e+n*n)},t.prototype.distancesquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toarray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromarray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return math.sqrt(t.x*t.x+t.y*t.y)},t.lensquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleandadd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ss=math.min,ls=math.max,us=new as,hs=new as,cs=new as,ps=new as,ds=new as,fs=new as,gs=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ss(t.x,this.x),n=ss(t.y,this.y);this.width=isfinite(this.x)&&isfinite(this.width)?ls(t.x+t.width,this.x+this.width)-e:t.width,this.height=isfinite(this.y)&&isfinite(this.height)?ls(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applytransform=function(e){t.applytransform(this,this,e)},t.prototype.calculatetransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=be();return he(r,r,[-e.x,-e.y]),ue(r,r,[n,i]),he(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(n){var d=1/0,f=0,g=math.abs(o-l),y=math.abs(u-r),v=math.abs(s-h),m=math.abs(c-a),_=math.min(g,y),x=math.min(v,m);l>o||r>u?_>f&&(f=_,y>g?as.set(fs,-g,0):as.set(fs,y,0)):d>_&&(d=_,y>g?as.set(ds,g,0):as.set(ds,-y,0)),h>s||a>c?x>f&&(f=x,m>v?as.set(fs,0,-v):as.set(fs,0,m)):d>_&&(d=_,m>v?as.set(ds,0,v):as.set(ds,0,-m))}return n&&as.copy(n,p?ds:fs),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isfinite=function(){return isfinite(this.x)&&isfinite(this.y)&&isfinite(this.width)&&isfinite(this.height)},t.prototype.iszero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applytransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}us.x=cs.x=n.x,us.y=ps.y=n.y,hs.x=ps.x=n.x+n.width,hs.y=cs.y=n.y+n.height,us.transform(i),ps.transform(i),hs.transform(i),cs.transform(i),e.x=ss(us.x,hs.x,cs.x,ps.x),e.y=ss(us.y,hs.y,cs.y,ps.y);var l=ls(us.x,hs.x,cs.x,ps.x),u=ls(us.y,hs.y,cs.y,ps.y);e.width=l-e.x,e.height=u-e.y},t}(),ys="silent",vs=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setcursor=function(){},n}(jw),ms=function(){function t(t,e){this.x=t,this.y=e}return t}(),_s=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xs=new gs(0,0,0,0),bs=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new ms(0,0),a.storage=e,a.painter=n,a.painterroot=r,a._pointersize=o,i=i||new vs,a.proxy=null,a.sethandlerproxy(i),a._draggingmgr=new yw(a),a}return e(n,t),n.prototype.sethandlerproxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(_s,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrx,n=t.zry,i=je(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findhover(r.x,r.y),o=r.target);var a=this._hovered=i?new ms(e,n):this.findhover(e,n),s=a.target,l=this.proxy;l.setcursor&&l.setcursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchtoelement(r,"mouseout",t),this.dispatchtoelement(a,"mousemove",t),s&&s!==o&&this.dispatchtoelement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zreventcontrol;"only_globalout"!==e&&this.dispatchtoelement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new ms(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setcursorstyle=function(t){var e=this.proxy;e.setcursor&&e.setcursor(t)},n.prototype.dispatchtoelement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=je(e,t,n);i&&(i[r]&&(o.cancelbubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hosttarget?i.__hosttarget:i.parent,!o.cancelbubble););o.cancelbubble||(this.trigger(e,o),this.painter&&this.painter.eachotherlayer&&this.painter.eachotherlayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findhover=function(t,e,n){var i=this.storage.getdisplaylist(),r=new ms(t,e);if(ke(i,r,t,e,n),this._pointersize&&!r.target){for(var o=[],a=this._pointersize,s=a/2,l=new gs(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignorecoarsepointer||h.parent&&h.parent.ignorecoarsepointer||(xs.copy(h.getboundingrect()),h.transform&&xs.applytransform(h.transform),xs.intersect(l)&&o.push(h))}if(o.length)for(var c=4,p=math.pi/12,d=2*math.pi,f=0;s>f;f+=c)for(var g=0;d>g;g+=p){var y=t+f*math.cos(g),v=e+f*math.sin(g);if(ke(o,r,y,v,n),r.target)return r}}return r},n.prototype.processgesture=function(t,e){this._gesturemgr||(this._gesturemgr=new is);var n=this._gesturemgr;"start"===e&&n.clear();var i=n.recognize(t,this.findhover(t.zrx,t.zry,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureevent=r;var o=new ms;o.target=i.target,this.dispatchtoelement(o,r,i.event)}},n}(jw);y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){bs.prototype[t]=function(e){var n,i,r=e.zrx,o=e.zry,a=je(this,r,o);if("mouseup"===t&&a||(n=this.findhover(r,o),i=n.target),"mousedown"===t)this._downel=i,this._downpoint=[e.zrx,e.zry],this._upel=i;else if("mouseup"===t)this._upel=i;else if("click"===t){if(this._downel!==this._upel||!this._downpoint||hw(this._downpoint,[e.zrx,e.zry])>4)return;this._downpoint=null}this.dispatchtoelement(n,t,e)}});var ws,ss=32,ms=7,ts=1,cs=2,is=4,ds=!1,as=function(){function t(){this._roots=[],this._displaylist=[],this._displaylistlen=0,this.displayablesortfunc=ln}return t.prototype.traverse=function(t,e){for(var n=0;ni;i++)this._updateandadddisplayable(e[i],null,t);n.length=this._displaylistlen,an(n,ln)},t.prototype._updateandadddisplayable=function(t,e,n){if(!t.ignore||n){t.beforeupdate(),t.update(),t.afterupdate();var i=t.getclippath();if(t.ignoreclip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updatetransform(),e.push(r),o=r,r=r.getclippath()}if(t.childrenref){for(var a=t.childrenref(),s=0;s0&&(u.__clippaths=[]),isnan(u.z)&&(sn(),u.z=0),isnan(u.z2)&&(sn(),u.z2=0),isnan(u.zlevel)&&(sn(),u.zlevel=0),this._displaylist[this._displaylistlen++]=u}var h=t.getdecalelement&&t.getdecalelement();h&&this._updateandadddisplayable(h,e,n);var c=t.gettextguideline();c&&this._updateandadddisplayable(c,e,n);var p=t.gettextcontent();p&&this._updateandadddisplayable(p,e,n)}},t.prototype.addroot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delroot=function(t){if(t instanceof array)for(var e=0,n=t.length;n>e;e++)this.delroot(t[e]);else{var i=p(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delallroots=function(){this._roots=[],this._displaylist=[],this._displaylistlen=0},t.prototype.getroots=function(){return this._roots},t.prototype.dispose=function(){this._displaylist=null,this._roots=null},t}();ws=cw.hasglobalwindow&&(window.requestanimationframe&&window.requestanimationframe.bind(window)||window.msrequestanimationframe&&window.msrequestanimationframe.bind(window)||window.mozrequestanimationframe||window.webkitrequestanimationframe)||function(t){return settimeout(t,16)};var ks=ws,ls={linear:function(t){return t},quadraticin:function(t){return t*t},quadraticout:function(t){return t*(2-t)},quadraticinout:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicin:function(t){return t*t*t},cubicout:function(t){return--t*t*t+1},cubicinout:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticin:function(t){return t*t*t*t},quarticout:function(t){return 1- --t*t*t*t},quarticinout:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticin:function(t){return t*t*t*t*t},quinticout:function(t){return--t*t*t*t*t+1},quinticinout:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalin:function(t){return 1-math.cos(t*math.pi/2)},sinusoidalout:function(t){return math.sin(t*math.pi/2)},sinusoidalinout:function(t){return.5*(1-math.cos(math.pi*t))},exponentialin:function(t){return 0===t?0:math.pow(1024,t-1)},exponentialout:function(t){return 1===t?1:1-math.pow(2,-10*t)},exponentialinout:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*math.pow(1024,t-1):.5*(-math.pow(2,-10*(t-1))+2) },circularin:function(t){return 1-math.sqrt(1-t*t)},circularout:function(t){return math.sqrt(1- --t*t)},circularinout:function(t){return(t*=2)<1?-.5*(math.sqrt(1-t*t)-1):.5*(math.sqrt(1-(t-=2)*t)+1)},elasticin:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*math.asin(1/n)/(2*math.pi),-(n*math.pow(2,10*(t-=1))*math.sin(2*(t-e)*math.pi/i)))},elasticout:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*math.asin(1/n)/(2*math.pi),n*math.pow(2,-10*t)*math.sin(2*(t-e)*math.pi/i)+1)},elasticinout:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*math.asin(1/n)/(2*math.pi),(t*=2)<1?-.5*n*math.pow(2,10*(t-=1))*math.sin(2*(t-e)*math.pi/i):n*math.pow(2,-10*(t-=1))*math.sin(2*(t-e)*math.pi/i)*.5+1)},backin:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backout:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backinout:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bouncein:function(t){return 1-ls.bounceout(1-t)},bounceout:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceinout:function(t){return.5>t?.5*ls.bouncein(2*t):.5*ls.bounceout(2*t-1)+.5}},ps=math.pow,os=math.sqrt,rs=1e-8,ns=1e-4,es=os(3),zs=1/3,bs=q(),fs=q(),vs=q(),gs=/cubic-bezier\(([0-9,\.e ]+)\)/,hs=function(){function t(t){this._inited=!1,this._starttime=0,this._pausedtime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||$,this.ondestroy=t.ondestroy||$,this.onrestart=t.onrestart||$,t.easing&&this.seteasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._starttime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedtime+=e);var n=this._life,i=t-this._starttime-this._pausedtime,r=i/n;0>r&&(r=0),r=math.min(r,1);var o=this.easingfunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._starttime=t-s,this._pausedtime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.seteasing=function(t){this.easing=t,this.easingfunc=t(t)?t:ls[t]||tn(t)},t}(),ws=function(){function t(t){this.value=t}return t}(),us=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new ws(t);return this.insertentry(e),e},t.prototype.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),xs=function(){function t(t){this._list=new us,this._maxsize=10,this._map={},this._maxsize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastremovedentry;if(o>=this._maxsize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastremovedentry=s}a?a.value=e:a=new ws(e),a.key=t,n.insertentry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertentry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),ys={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]},js=new xs(20),zs=null,qs=gn,ks=hn,js=(object.freeze||object)({parse:en,lift:fn,tohex:vn,fastlerp:gn,fastmaptocolor:qs,lerp:hn,maptocolor:ks,modifyhsl:wn,modifyalpha:un,stringify:xn,lum:yn,random:jn}),$s=(function(){return cw.hasglobalwindow&&t(window.btoa)?function(t){return window.btoa(unescape(encodeuricomponent(t)))}:"undefined"!=typeof buffer?function(t){return buffer.from(t).tostring("base64")}:function(){return null}}(),array.prototype.slice),qs=0,tm=1,em=2,nm=3,im=4,rm=5,om=6,am=[0,0,0,0],sm=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needssort=!1,this._lastfr=0,this._lastfrp=0,this.propname=t}return t.prototype.isfinished=function(){return this._finished},t.prototype.setfinished=function(){this._finished=!0,this._additivetrack&&this._additivetrack.setfinished()},t.prototype.needsanimate=function(){return this.keyframes.length>=1},t.prototype.getadditivetrack=function(){return this._additivetrack},t.prototype.addkeyframe=function(t,e,n){this._needssort=!0;var i=this.keyframes,r=i.length,o=!1,a=om,s=e;if(g(e)){var l=oi(e);a=l,(1===l&&!d(e[0])||2===l&&!d(e[0][0]))&&(o=!0)}else if(d(e)&&!e(e))a=qs;else if(c(e))if(isnan(+e)){var u=en(e);u&&(s=u,a=nm)}else a=qs;else if(o(e)){var c=h({},s);c.colorstops=v(e.colorstops,function(t){return{offset:t.offset,color:en(t.color)}}),zn(e)?a=im:qn(e)&&(a=rm),s=c}0===r?this.valtype=a:(a!==this.valtype||a===om)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawvalue:e,percent:0};return n&&(p.easing=n,p.easingfunc=t(n)?n:ls[n]||tn(n)),i.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needssort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valtype,r=n.length,o=n[r-1],a=this.discrete,s=si(i),l=ai(i),u=0;r>u;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?ni(c,p,i):l&&ei(c.colorstops,p.colorstops))}if(!a&&i!==rm&&e&&this.needsanimate()&&e.needsanimate()&&i===e.valtype&&!e._finished){this._additivetrack=e;for(var d=n[0].value,u=0;r>u;u++)i===qs?n[u].additivevalue=n[u].value-d:i===nm?n[u].additivevalue=qn([],n[u].value,d,-1):si(i)&&(n[u].additivevalue=i===tm?qn([],n[u].value,d,-1):ti([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additivetrack&&this._additivetrack._finished&&(this._additivetrack=null);var n,i,r,o=null!=this._additivetrack,a=o?"additivevalue":"value",s=this.valtype,l=this.keyframes,u=l.length,h=this.propname,c=s===nm,p=this._lastfr,d=math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastfr=n,this._lastfrp=e;var g=r.percent-i.percent,y=0===g?1:d((e-i.percent)/g,1);r.easingfunc&&(y=r.easingfunc(y));var m=o?this._additivevalue:c?am:t[h];if(!si(s)&&!c||m||(m=this._additivevalue=[]),this.discrete)t[h]=1>y?i.rawvalue:r.rawvalue;else if(si(s))s===tm?jn(m,i[a],r[a],y):$n(m,i[a],r[a],y);else if(ai(s)){var _=i[a],x=r[a],b=s===im;t[h]={type:b?"linear":"radial",x:kn(_.x,x.x,y),y:kn(_.y,x.y,y),colorstops:v(_.colorstops,function(t,e){var n=x.colorstops[e];return{offset:kn(t.offset,n.offset,y),color:ri(jn([],t.color,n.color,y))}}),global:x.global},b?(t[h].x2=kn(_.x2,x.x2,y),t[h].y2=kn(_.y2,x.y2,y)):t[h].r=kn(_.r,x.r,y)}else if(c)jn(m,i[a],r[a],y),o||(t[h]=ri(m));else{var w=kn(i[a],r[a],y);o?this._additivevalue=w:t[h]=w}o&&this._addtotarget(t)}}},t.prototype._addtotarget=function(t){var e=this.valtype,n=this.propname,i=this._additivevalue;e===qs?t[n]=t[n]+i:e===nm?(en(t[n],am),qn(am,am,i,1),t[n]=ri(am)):e===tm?qn(t[n],t[n],i,1):e===em&&ti(t[n],t[n],i,1)},t}(),lm=function(){function t(t,e,n,i){return this._tracks={},this._trackkeys=[],this._maxtime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void a("can' use additive animation on looped animation."):(this._additiveanimators=i,void(this._allowdiscrete=n))}return t.prototype.getmaxtime=function(){return this._maxtime},t.prototype.getdelay=function(){return this._delay},t.prototype.getloop=function(){return this._loop},t.prototype.gettarget=function(){return this._target},t.prototype.changetarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenwithkeys(t,e,b(e),n)},t.prototype.whenwithkeys=function(t,e,n,i){for(var r=this._tracks,o=0;o0&&s.addkeyframe(0,ii(l),i),this._trackkeys.push(a)}s.addkeyframe(t,ii(e[a]),i)}return this._maxtime=math.max(this._maxtime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.ispaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxtime=t,this._force=!0,this},t.prototype._donecallback=function(){this._settracksfinished(),this._clip=null;var t=this._donecbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedcallback=function(){this._settracksfinished();var t=this.animation,e=this._abortedcbs;if(t&&t.removeclip(this._clip),this._clip=null,e)for(var n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxtime||0,r=0;r1){var a=o.pop();r.addkeyframe(a.time,t[i]),r.prepare(this._maxtime,r.getadditivetrack())}}}},t}(),um=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedtime=0,n._pausestart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addclip=function(t){t.animation&&this.removeclip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addanimator=function(t){t.animation=this;var e=t.getclip();e&&this.addclip(e)},n.prototype.removeclip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeanimator=function(t){var e=t.getclip();e&&this.removeclip(e),t.animation=null},n.prototype.update=function(t){for(var e=li()-this._pausedtime,n=e-this._time,i=this._head;i;){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeclip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startloop=function(){function t(){e._running&&(ks(t),!e._paused&&e.update())}var e=this;this._running=!0,ks(t)},n.prototype.start=function(){this._running||(this._time=li(),this._pausedtime=0,this._startloop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pausestart=li(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedtime+=li()-this._pausestart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isfinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new lm(t,e.loop);return this.addanimator(n),n},n}(jw),hm=300,cm=cw.domsupported,pm=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=v(t,function(t){var e=t.replace("mouse","pointer");return n.hasownproperty(e)?e:t});return{mouse:t,touch:e,pointer:i}}(),dm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},fm=!1,gm=function(){function t(t,e){this.stoppropagation=$,this.stopimmediatepropagation=$,this.preventdefault=$,this.type=e.type,this.target=this.currenttarget=t.dom,this.pointertype=e.pointertype,this.clientx=e.clientx,this.clienty=e.clienty}return t}(),ym={mousedown:function(t){t=le(this.dom,t),this.__maypointercapture=[t.zrx,t.zry],this.trigger("mousedown",t)},mousemove:function(t){t=le(this.dom,t);var e=this.__maypointercapture;!e||t.zrx===e[0]&&t.zry===e[1]||this.__togglepointercapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=le(this.dom,t),this.__togglepointercapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=le(this.dom,t);var e=t.toelement||t.relatedtarget;di(this,e)||(this.__pointercapturing&&(t.zreventcontrol="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){fm=!0,t=le(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){fm||(t=le(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=le(this.dom,t),ci(t),this.__lasttouchmoment=new date,this.handler.processgesture(t,"start"),ym.mousemove.call(this,t),ym.mousedown.call(this,t)},touchmove:function(t){t=le(this.dom,t),ci(t),this.handler.processgesture(t,"change"),ym.mousemove.call(this,t)},touchend:function(t){t=le(this.dom,t),ci(t),this.handler.processgesture(t,"end"),ym.mouseup.call(this,t),+new date-+this.__lasttouchmoment1e-10&&lm(t[3]-1)>1e-10?math.sqrt(lm(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copytransform=function(t){_i(this,t)},t.getlocaltransform=function(t,e){e=e||[];var n=t.originx||0,i=t.originy||0,r=t.scalex,o=t.scaley,a=t.anchorx,s=t.anchory,l=t.rotation||0,u=t.x,h=t.y,c=t.skewx?math.tan(t.skewx):0,p=t.skewy?math.tan(-t.skewy):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&we(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initdefaultprops=function(){var e=t.prototype;e.scalex=e.scaley=e.globalscaleratio=1,e.x=e.y=e.originx=e.originy=e.skewx=e.skewy=e.rotation=e.anchorx=e.anchory=0}(),t}(),om=["x","y","originx","originy","anchorx","anchory","rotation","scalex","scaley","skewx","skewy"],rm={},nm="__zr_normal__",em=om.concat(["ignore"]),zm=m(om,function(t,e){return t[e]=!0,t},{ignore:!1}),bm={},fm=new gs(0,0,0,0),vm=function(){function t(t){this.id=o(),this.animators=[],this.currentstates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposetransform(),this.markredraw()},t.prototype.beforeupdate=function(){},t.prototype.afterupdate=function(){},t.prototype.update=function(){this.updatetransform(),this.__dirty&&this.updateinnertext()},t.prototype.updateinnertext=function(t){var e=this._textcontent;if(e&&(!e.ignore||t)){this.textconfig||(this.textconfig={});var n=this.textconfig,i=n.local,r=e.innertransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copytransform(e),null!=n.position){var u=fm;u.copy(n.layoutrect?n.layoutrect:this.getboundingrect()),i||u.applytransform(this.transform),this.calculatetextposition?this.calculatetextposition(bm,n,u):ii(bm,n,u),r.x=bm.x,r.y=bm.y,o=bm.align,a=bm.verticalalign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=ci(h[0],u.width),p=ci(h[1],u.height)),l=!0,r.originx=-r.x+c+(i?0:u.x),r.originy=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originx=-d[0],r.originy=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexof("inside")>=0:n.inside,g=this._innertextdefaultstyle||(this._innertextdefaultstyle={}),y=void 0,v=void 0,m=void 0;f&&this.canbeinsidetext()?(y=n.insidefill,v=n.insidestroke,(null==y||"auto"===y)&&(y=this.getinsidetextfill()),(null==v||"auto"===v)&&(v=this.getinsidetextstroke(y),m=!0)):(y=n.outsidefill,v=n.outsidestroke,(null==y||"auto"===y)&&(y=this.getoutsidefill()),(null==v||"auto"===v)&&(v=this.getoutsidestroke(y),m=!0)),y=y||"#000",(y!==g.fill||v!==g.stroke||m!==g.autostroke||o!==g.align||a!==g.verticalalign)&&(s=!0,g.fill=y,g.stroke=v,g.autostroke=m,g.align=o,g.verticalalign=a,e.setdefaulttextstyle(g)),e.__dirty|=ts,s&&e.dirtystyle(!0)}},t.prototype.canbeinsidetext=function(){return!0},t.prototype.getinsidetextfill=function(){return"#fff"},t.prototype.getinsidetextstroke=function(){return"#000"},t.prototype.getoutsidefill=function(){return this.__zr&&this.__zr.isdarkmode()?mm:sm},t.prototype.getoutsidestroke=function(){var t=this.__zr&&this.__zr.getbackgroundcolor(),e="string"==typeof t&&en(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isdarkmode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,xn(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrkv=function(t,e){"textconfig"===t?this.settextconfig(e):"textcontent"===t?this.settextcontent(e):"clippath"===t?this.setclippath(e):"extra"===t?(this.extra=this.extra||{},h(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markredraw()},t.prototype.show=function(){this.ignore=!1,this.markredraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrkv(t,e);else if(a(t))for(var n=t,i=b(n),r=0;r0},t.prototype.getstate=function(t){return this.states[t]},t.prototype.ensurestate=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearstates=function(t){this.usestate(nm,!1,t)},t.prototype.usestate=function(t,e,n,i){var r=t===nm,o=this.hasstate();if(o||!r){var s=this.currentstates,l=this.statetransition;if(!(p(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateproxy&&!r&&(u=this.stateproxy(t)),u||(u=this.states&&this.states[t]),!u&&!r)return void a("state "+t+" not exists.");r||this.savecurrenttonormalstate(u);var h=!!(u&&u.hoverlayer||i);h&&this._togglehoverlayerflag(!0),this._applystateobj(t,u,this._normalstate,e,!n&&!this.__inhover&&l&&l.duration>0,l);var c=this._textcontent,d=this._textguide;return c&&c.usestate(t,e,n,h),d&&d.usestate(t,e,n,h),r?(this.currentstates=[],this._normalstate={}):e?this.currentstates.push(t):this.currentstates=[t],this._updateanimationtargets(),this.markredraw(),!h&&this.__inhover&&(this._togglehoverlayerflag(!1),this.__dirty&=~ts),u}}},t.prototype.usestates=function(t,e,n){if(t.length){var i=[],r=this.currentstates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateproxy&&(u=this.stateproxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverlayer||n);c&&this._togglehoverlayerflag(!0);var p=this._mergestates(i),d=this.statetransition;this.savecurrenttonormalstate(p),this._applystateobj(t.join(","),p,this._normalstate,!1,!e&&!this.__inhover&&d&&d.duration>0,d);var f=this._textcontent,g=this._textguide;f&&f.usestates(t,e,c),g&&g.usestates(t,e,c),this._updateanimationtargets(),this.currentstates=t.slice(),this.markredraw(),!c&&this.__inhover&&(this._togglehoverlayerflag(!1),this.__dirty&=~ts)}else this.clearstates()},t.prototype._updateanimationtargets=function(){for(var t=0;t=0){var n=this.currentstates.slice();n.splice(e,1),this.usestates(n)}},t.prototype.replacestate=function(t,e,n){var i=this.currentstates.slice(),r=p(i,t),o=p(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.usestates(i)},t.prototype.togglestate=function(t,e){e?this.usestate(t,!0):this.removestate(t)},t.prototype._mergestates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addanimator(t),n&&n.wakeup()},t.prototype.updateduringanimation=function(){this.markredraw()},t.prototype.stopanimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateto=function(t,e,n){di(this,t,e,n)},t.prototype.animatefrom=function(t,e,n){di(this,t,e,n,!0)},t.prototype._transitionstate=function(t,e,n,i){for(var r=di(this,e,n,i),o=0;o=0&&(n.splice(i,0,t),this._doadd(t))}return this},n.prototype.replace=function(t,e){var n=p(this._children,t);return n>=0&&this.replaceat(e,n),this},n.prototype.replaceat=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeselffromzr(r),this._doadd(t)}return this},n.prototype._doadd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addselftozr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=p(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeselffromzr(e),e&&e.refresh(),this)},n.prototype.removeall=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillframeaccum++,this._stillframeaccum>this._sleepafterstill&&this.animation.stop())},t.prototype.setsleepafterstill=function(t){this._sleepafterstill=t},t.prototype.wakeup=function(){this.animation.start(),this._stillframeaccum=0},t.prototype.refreshhover=function(){this._needsrefreshhover=!0},t.prototype.refreshhoverimmediately=function(){this._needsrefreshhover=!1,this.painter.refreshhover&&"canvas"===this.painter.gettype()&&this.painter.refreshhover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearanimation=function(){this.animation.clear()},t.prototype.getwidth=function(){return this.painter.getwidth()},t.prototype.getheight=function(){return this.painter.getheight()},t.prototype.setcursorstyle=function(t){this.handler.setcursorstyle(t)},t.prototype.findhover=function(t,e){return this.handler.findhover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getroots(),e=0;e0&&(this._ux=ut(n/bm/t)||0,this._uy=ut(n/bm/e)||0)},t.prototype.setdpr=function(t){this.dpr=t},t.prototype.setcontext=function(t){this._ctx=t},t.prototype.getcontext=function(){return this._ctx},t.prototype.beginpath=function(){return this._ctx&&this._ctx.beginpath(),this.reset(),this},t.prototype.reset=function(){this._savedata&&(this._len=0),this._pathseglen&&(this._pathseglen=null,this._pathlen=0),this._version++},t.prototype.moveto=function(t,e){return this._drawpendingpt(),this.adddata(ot.m,t,e),this._ctx&&this._ctx.moveto(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineto=function(t,e){var n=ut(t-this._xi),i=ut(e-this._yi),r=n>this._ux||i>this._uy;if(this.adddata(ot.l,t,e),this._ctx&&r&&this._ctx.lineto(t,e),r)this._xi=t,this._yi=e,this._pendingptdist=0;else{var o=n*n+i*i;o>this._pendingptdist&&(this._pendingptx=t,this._pendingpty=e,this._pendingptdist=o)}return this},t.prototype.beziercurveto=function(t,e,n,i,r,o){return this._drawpendingpt(),this.adddata(ot.c,t,e,n,i,r,o),this._ctx&&this._ctx.beziercurveto(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticcurveto=function(t,e,n,i){return this._drawpendingpt(),this.adddata(ot.q,t,e,n,i),this._ctx&&this._ctx.quadraticcurveto(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawpendingpt(),zt[0]=i,zt[1]=r,bo(zt,o),i=zt[0],r=zt[1];var a=r-i;return this.adddata(ot.a,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ht(r)*n+t,this._yi=wt(r)*n+e,this},t.prototype.arcto=function(t,e,n,i,r){return this._drawpendingpt(),this._ctx&&this._ctx.arcto(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawpendingpt(),this._ctx&&this._ctx.rect(t,e,n,i),this.adddata(ot.r,t,e,n,i),this},t.prototype.closepath=function(){this._drawpendingpt(),this.adddata(ot.z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closepath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.tostatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.tostatic()},t.prototype.len=function(){return this._len},t.prototype.setdata=function(t){var e=t.length;this.data&&this.data.length===e||!jt||(this.data=new float32array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendpath=function(t){t instanceof array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();jt&&this.data instanceof float32array&&(this.data=new float32array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;at.length&&(this._expanddata(),t=this.data);for(var e=0;e0&&(this._ctx&&this._ctx.lineto(this._pendingptx,this._pendingpty),this._pendingptdist=0)},t.prototype._expanddata=function(){if(!(this.data instanceof array)){for(var t=[],e=0;e11&&(this.data=new float32array(t)))}},t.prototype.getboundingrect=function(){et[0]=et[1]=bt[0]=bt[1]=number.max_value,zt[0]=zt[1]=ft[0]=ft[1]=-number.max_value;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tc;){var p=t[c++],d=1===c;d&&(r=t[c],o=t[c+1],a=r,s=o);var f=-1;switch(p){case ot.m:r=a=t[c++],o=s=t[c++];break;case ot.l:var g=t[c++],y=t[c++],v=g-r,m=y-o;(ut(v)>n||ut(m)>i||c===e-1)&&(f=math.sqrt(v*v+m*m),r=g,o=y);break;case ot.c:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];f=vn(r,o,_,x,g,y,b,w,10),r=b,o=w;break;case ot.q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];f=mn(r,o,_,x,g,y,10),r=g,o=y;break;case ot.a:var s=t[c++],m=t[c++],t=t[c++],c=t[c++],i=t[c++],d=t[c++],a=d+i;c+=1;{!t[c++]}d&&(a=ht(i)*t+s,s=wt(i)*c+m),f=gt(t,c)*vt(yt,math.abs(d)),r=ht(a)*t+s,o=wt(a)*c+m;break;case ot.r:a=r=t[c++],s=o=t[c++];var k=t[c++],l=t[c++];f=2*k+2*l;break;case ot.z:var v=a-r,m=s-o;f=math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathlen=u,u},t.prototype.rebuildpath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=1>e,m=0,_=0,x=0;if(!v||(this._pathseglen||this._calculatelength(),l=this._pathseglen,u=this._pathlen,h=e*u))t:for(var b=0;y>b;){var w=d[b++],s=1===b;switch(s&&(r=d[b],o=d[b+1],n=r,i=o),w!==ot.l&&x>0&&(t.lineto(c,p),x=0),w){case ot.m:n=r=d[b++],i=o=d[b++],t.moveto(r,o);break;case ot.l:a=d[b++],s=d[b++];var m=ut(a-r),t=ut(s-o);if(m>f||t>g){if(v){var c=l[_++];if(m+c>h){var i=(h-m)/c;t.lineto(r*(1-i)+a*i,o*(1-i)+s*i);break t}m+=c}t.lineto(a,s),r=a,o=s,x=0}else{var d=m*m+t*t;d>x&&(c=a,p=s,x=d)}break;case ot.c:var a=d[b++],k=d[b++],l=d[b++],p=d[b++],o=d[b++],r=d[b++];if(v){var c=l[_++];if(m+c>h){var i=(h-m)/c;gn(r,a,l,o,i,rt),gn(o,k,p,r,i,nt),t.beziercurveto(rt[1],nt[1],rt[2],nt[2],rt[3],nt[3]);break t}m+=c}t.beziercurveto(a,k,l,p,o,r),r=o,o=r;break;case ot.q:var a=d[b++],k=d[b++],l=d[b++],p=d[b++];if(v){var c=l[_++];if(m+c>h){var i=(h-m)/c;wn(r,a,l,i,rt),wn(o,k,p,i,nt),t.quadraticcurveto(rt[1],nt[1],rt[2],nt[2]);break t}m+=c}t.quadraticcurveto(a,k,l,p),r=l,o=p;break;case ot.a:var n=d[b++],e=d[b++],z=d[b++],b=d[b++],f=d[b++],v=d[b++],g=d[b++],h=!d[b++],w=z>b?z:b,u=ut(z-b)>.001,x=f+v,y=!1;if(v){var c=l[_++];m+c>h&&(x=f+v*(h-m)/c,y=!0),m+=c}if(u&&t.ellipse?t.ellipse(n,e,z,b,g,f,x,h):t.arc(n,e,w,f,x,h),y)break t;s&&(n=ht(f)*z+n,i=wt(f)*b+e),r=ht(x)*z+n,o=wt(x)*b+e;break;case ot.r:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var j=d[b++],z=d[b++];if(v){var c=l[_++];if(m+c>h){var q=h-m;t.moveto(a,s),t.lineto(a+vt(q,j),s),q-=j,q>0&&t.lineto(a+j,s+vt(q,z)),q-=z,q>0&&t.lineto(a+gt(j-q,0),s+z),q-=j,q>0&&t.lineto(a,s+gt(z-q,0));break t}m+=c}t.rect(a,s,j,z);break;case ot.z:if(v){var c=l[_++];if(m+c>h){var i=(h-m)/c;t.lineto(r*(1-i)+n*i,o*(1-i)+i*i);break t}m+=c}t.closepath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():array.prototype.slice.call(n),e._len=this._len,e},t.cmd=ot,t.initdefaultprops=function(){var e=t.prototype;e._savedata=!0,e._ux=0,e._uy=0,e._pendingptdist=0,e._version=0}(),t}(),kt=2*math.pi,jt=2*math.pi,$t=qt.cmd,qt=2*math.pi,tc=1e-4,ec=[-1,-1,-1],nc=[-1,-1],ic=c({fill:"#000",stroke:null,strokepercent:1,fillopacity:1,strokeopacity:1,linedashoffset:0,linewidth:1,linecap:"butt",miterlimit:10,strokenoscale:!1,strokefirst:!1},yt),rc={style:c({fill:!0,stroke:!0,strokepercent:!0,fillopacity:!0,strokeopacity:!0,linedashoffset:!0,linewidth:!0,miterlimit:!0},vt.style)},oc=om.concat(["invisible","culling","z","z2","zlevel","parent"]),ac=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalel=this._decalel||new n;r.buildpath===n.prototype.buildpath&&(r.buildpath=function(t){e.buildpath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowcolor=null,i.strokefirst&&(o.stroke=null);for(var s=0;s.5?sm:e>.2?tm:mm}if(t)return mm}return sm},n.prototype.getinsidetextstroke=function(t){var e=this.style.fill;if(c(e)){var n=this.__zr,i=!(!n||!n.isdarkmode()),r=yn(t,0)0))},n.prototype.hasfill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getboundingrect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createpathproxy());var r=this.path;(i||this.__dirty&is)&&(r.beginpath(),this.buildpath(r,this.shape,!1),this.pathupdated()),t=r.getboundingrect()}if(this._rect=t,this.hasstroke()&&this.path&&this.path.len()>0){var o=this._rectstroke||(this._rectstroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokenoscale?this.getlinescale():1,s=e.linewidth;if(!this.hasfill()){var l=this.strokecontainthreshold;s=math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformcoordtolocal(t,e),i=this.getboundingrect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasstroke()){var a=r.linewidth,s=r.strokenoscale?this.getlinescale():1;if(s>1e-10&&(this.hasfill()||(a=math.max(a,this.strokecontainthreshold)),no(o,a/s,t,e)))return!0}if(this.hasfill())return ro(o,t,e)}return!1},n.prototype.dirtyshape=function(){this.__dirty|=is,this._rect&&(this._rect=null),this._decalel&&this._decalel.dirtyshape(),this.markredraw()},n.prototype.dirty=function(){this.dirtystyle(),this.dirtyshape()},n.prototype.animateshape=function(t){return this.animate("shape",t)},n.prototype.updateduringanimation=function(t){"style"===t?this.dirtystyle():"shape"===t?this.dirtyshape():this.markredraw()},n.prototype.attrkv=function(e,n){"shape"===e?this.setshape(n):t.prototype.attrkv.call(this,e,n)},n.prototype.setshape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:h(n,t),this.dirtyshape(),this},n.prototype.shapechanged=function(){return!!(this.__dirty&is)},n.prototype.createstyle=function(t){return q(ic,t)},n.prototype._innersavetonormal=function(e){t.prototype._innersavetonormal.call(this,e);var n=this._normalstate;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applystateobj=function(e,n,i,r,o,a){t.prototype._applystateobj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=h({},i.shape),h(s,n.shape)):(s=h({},r?this.shape:i.shape),h(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=b(s),p=0;p0},n.prototype.hasfill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createstyle=function(t){return q(sc,t)},n.prototype.setboundingrect=function(t){this._rect=t},n.prototype.getboundingrect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=wi(e,t.font,t.textalign,t.textbaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasstroke()){var i=t.linewidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initdefaultprops=function(){var t=n.prototype;t.dirtyrecttolerance=10}(),n}(xt);lc.prototype.type="tspan";var uc=c({x:0,y:0},yt),hc={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,swidth:!0,sheight:!0},vt.style)},cc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createstyle=function(t){return q(uc,t)},n.prototype._getsize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=eo(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getwidth=function(){return this._getsize("width")},n.prototype.getheight=function(){return this._getsize("height")},n.prototype.getanimationstyleprops=function(){return hc},n.prototype.getboundingrect=function(){var t=this.style;return this._rect||(this._rect=new gs(t.x||0,t.y||0,this.getwidth(),this.getheight())),this._rect},n}(xt);cc.prototype.type="image";var pc=math.round,dc=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),fc={},gc=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new dc},n.prototype.buildpath=function(t,e){var n,i,r,o;if(this.subpixeloptimize){var a=fo(fc,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?zo(t,e):t.rect(n,i,r,o)},n.prototype.iszeroarea=function(){return!this.shape.width||!this.shape.height},n}(ac);gc.prototype.type="rect";var yc={fill:"#000"},vc=2,mc={style:c({fill:!0,stroke:!0,fillopacity:!0,strokeopacity:!0,linewidth:!0,fontsize:!0,lineheight:!0,width:!0,height:!0,textshadowcolor:!0,textshadowblur:!0,textshadowoffsetx:!0,textshadowoffsety:!0,backgroundcolor:!0,padding:!0,bordercolor:!0,borderwidth:!0,borderradius:!0},vt.style)},_c=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultstyle=yc,n.attr(e),n}return e(n,t),n.prototype.childrenref=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.stylechanged()&&this._updatesubtexts();for(var e=0;e0,c=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakall"===t.overflow),i=r.calculatedlineheight,d=0;dm&&(d=x[m],!d.align||"left"===d.align);)this._placetoken(d,t,w,g,t,"left",v),s-=d.width,t+=d.width,m++;for(;i>=0&&(d=x[i],"right"===d.align);)this._placetoken(d,t,w,g,c,"right",v),s-=d.width,c-=d.width,i--;for(t+=(i-(t-f)-(y-c)-s)/2;i>=m;)d=x[m],this._placetoken(d,t,w,g,t+d.width/2,"center",v),t+=d.width,m++;g+=w}},n.prototype._placetoken=function(t,e,n,i,r,o,a){var s=e.rich[t.stylename]||{};s.text=t.text;var l=t.verticalalign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);var h=!t.islineholder&&ko(s);h&&this._renderbackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundcolor,p=t.textpadding;p&&(r=zo(r,o,p),u-=t.height/2-p[0]-t.innerheight/2);var d=this._getorcreatechild(lc),f=d.createstyle();d.usestyle(f);var g=this._defaultstyle,y=!1,v=0,m=jo("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=yo("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autostroke&&!y?null:(v=vc,g.stroke)),x=s.textshadowblur>0||e.textshadowblur>0;f.text=t.text,f.x=r,f.y=u,x&&(f.shadowblur=s.textshadowblur||e.textshadowblur||0,f.shadowcolor=s.textshadowcolor||e.textshadowcolor||"transparent",f.shadowoffsetx=s.textshadowoffsetx||e.textshadowoffsetx||0,f.shadowoffsety=s.textshadowoffsety||e.textshadowoffsety||0),f.textalign=o,f.textbaseline="middle",f.font=t.font||fw,f.opacity=f(s.opacity,e.opacity,1),ho(f,s),_&&(f.linewidth=f(s.linewidth,e.linewidth,v),f.linedash=b(s.linedash,e.linedash),f.linedashoffset=e.linedashoffset||0,f.stroke=_),m&&(f.fill=m);var b=t.contentwidth,w=t.contentheight;d.setboundingrect(new gs(si(f.x,b,f.textalign),mi(f.y,w,f.textbaseline),b,w))},n.prototype._renderbackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundcolor,u=t.borderwidth,h=t.bordercolor,c=l&&l.image,p=l&&!c,d=t.borderradius,f=this;if(p||t.lineheight||u&&h){a=this._getorcreatechild(gc),a.usestyle(a.createstyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyshape()}if(p){var y=a.style;y.fill=l||null,y.fillopacity=b(t.fillopacity,1)}else if(c){s=this._getorcreatechild(cc),s.onload=function(){f.dirtystyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.linewidth=u,y.stroke=h,y.strokeopacity=b(t.strokeopacity,1),y.linedash=t.borderdash,y.linedashoffset=t.borderdashoffset||0,a.strokecontainthreshold=0,a.hasfill()&&a.hasstroke()&&(y.strokefirst=!0,y.linewidth*=2)}var m=(a||s).style;m.shadowblur=t.shadowblur||0,m.shadowcolor=t.shadowcolor||"transparent",m.shadowoffsetx=t.shadowoffsetx||0,m.shadowoffsety=t.shadowoffsety||0,m.opacity=f(t.opacity,e.opacity,1)},n.makefont=function(t){var e="";return wo(t)&&(e=[t.fontstyle,t.fontweight,go(t.fontsize),t.fontfamily||"sans-serif"].join(" ")),e&&w(e)||t.textfont||t.font},n}(xt),xc={left:!0,right:1,center:1},bc={top:1,bottom:1,middle:1},wc=["fontstyle","fontweight","fontsize","fontfamily"],sc=or(),mc=function(t,e,n,i){if(i){var r=sc(i);r.dataindex=n,r.datatype=e,r.seriesindex=t,"group"===i.type&&i.traverse(function(i){var r=sc(i);r.seriesindex=t,r.dataindex=n,r.datatype=e})}},tc=1,cc={},ic=or(),dc=or(),ac=0,kc=1,lc=2,pc=["emphasis","blur","select"],oc=["normal","emphasis","blur","select"],rc=10,nc=9,ec="highlight",zc="downplay",bc="select",fc="unselect",vc="toggleselect",gc=new xs(100),hc=["emphasis","blur","select"],wc={itemstyle:"getitemstyle",linestyle:"getlinestyle",areastyle:"getareastyle"},uc=qt.cmd,xc=[[],[],[]],yc=math.sqrt,jc=math.atan2,zc=math.sqrt,qc=math.sin,kc=math.cos,jc=math.pi,$c=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,qc=/-?([0-9]*\.)?[0-9]+([ee]-?[0-9]+)?/g,ti=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applytransform=function(){},n}(ac),ei=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),ni=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ei},n.prototype.buildpath=function(t,e){t.moveto(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*math.pi)},n}(ac);ni.prototype.type="circle";var ii=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),ri=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ii},n.prototype.buildpath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveto(i-o,r),t.beziercurveto(i-o,r-l,i-s,r-a,i,r-a),t.beziercurveto(i+s,r-a,i+o,r-l,i+o,r),t.beziercurveto(i+o,r+l,i+s,r+a,i,r+a),t.beziercurveto(i-s,r+a,i-o,r+l,i-o,r),t.closepath()},n}(ac);ri.prototype.type="ellipse";var oi=math.pi,ai=2*oi,si=math.sin,li=math.cos,ui=math.acos,hi=math.atan2,ci=math.abs,pi=math.sqrt,di=math.max,fi=math.min,gi=1e-4,yi=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startangle=0,this.endangle=2*math.pi,this.clockwise=!0,this.cornerradius=0}return t}(),vi=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new yi},n.prototype.buildpath=function(t,e){as(t,e)},n.prototype.iszeroarea=function(){return this.shape.startangle===this.shape.endangle||this.shape.r===this.shape.r0},n}(ac);vi.prototype.type="sector";var mi=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),_i=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new mi},n.prototype.buildpath=function(t,e){var n=e.cx,i=e.cy,r=2*math.pi;t.moveto(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveto(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(ac);_i.prototype.type="ring";var xi=function(){function t(){this.points=null,this.smooth=0,this.smoothconstraint=null}return t}(),bi=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new xi},n.prototype.buildpath=function(t,e){ls(t,e,!0)},n}(ac);bi.prototype.type="polygon";var wi=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothconstraint=null}return t}(),si=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultstyle=function(){return{stroke:"#000",fill:null}},n.prototype.getdefaultshape=function(){return new wi},n.prototype.buildpath=function(t,e){ls(t,e,!1)},n}(ac);si.prototype.type="polyline";var mi={},ti=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ci=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultstyle=function(){return{stroke:"#000",fill:null}},n.prototype.getdefaultshape=function(){return new ti},n.prototype.buildpath=function(t,e){var n,i,r,o;if(this.subpixeloptimize){var a=bo(mi,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveto(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineto(r,o))},n.prototype.pointat=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(ac);ci.prototype.type="line";var ii=[],di=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),ai=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultstyle=function(){return{stroke:"#000",fill:null}},n.prototype.getdefaultshape=function(){return new di},n.prototype.buildpath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveto(n,i),null==l||null==u?(1>h&&(wn(n,a,r,h,ii),a=ii[1],r=ii[2],wn(i,s,o,h,ii),s=ii[1],o=ii[2]),t.quadraticcurveto(a,s,r,o)):(1>h&&(gn(n,a,l,r,h,ii),a=ii[1],l=ii[2],r=ii[3],gn(i,s,u,o,h,ii),s=ii[1],u=ii[2],o=ii[3]),t.beziercurveto(a,s,l,u,r,o)))},n.prototype.pointat=function(t){return us(this.shape,t,!1)},n.prototype.tangentat=function(t){var e=us(this.shape,t,!0);return pe(e,e)},n}(ac);ai.prototype.type="bezier-curve";var ki=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startangle=0,this.endangle=2*math.pi,this.clockwise=!0}return t}(),li=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultstyle=function(){return{stroke:"#000",fill:null}},n.prototype.getdefaultshape=function(){return new ki},n.prototype.buildpath=function(t,e){var n=e.cx,i=e.cy,r=math.max(e.r,0),o=e.startangle,a=e.endangle,s=e.clockwise,l=math.cos(o),u=math.sin(o);t.moveto(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},n}(ac);li.prototype.type="arc";var pi=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatepathdirty=function(){for(var t=this.shape.paths,e=this.shapechanged(),n=0;nn;n++)this._corners[n]=new as;for(var n=0;2>n;n++)this._axes[n]=new as;t&&this.fromboundingrect(t,e)}return t.prototype.fromboundingrect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);as.sub(i[0],n[1],n[0]),as.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return bi.set(1/0,1/0),fi.set(0,0),!this._intersectcheckoneside(this,t,bi,fi,i,1)&&(n=!1,i)?n:!this._intersectcheckoneside(t,this,bi,fi,i,-1)&&(n=!1,i)?n:(i||as.copy(e,n?bi:fi),n)},t.prototype._intersectcheckoneside=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getprojminmaxonaxis(s,t._corners,ei),this._getprojminmaxonaxis(s,e._corners,zi),ei[1]zi[1]){if(a=!1,r)return a;var u=math.abs(zi[0]-ei[1]),h=math.abs(ei[0]-zi[1]);math.min(u,h)>i.len()&&(h>u?as.scale(i,l,-u*o):as.scale(i,l,h*o))}else if(n){var u=math.abs(zi[0]-ei[1]),h=math.abs(ei[0]-zi[1]);math.min(u,h)u?as.scale(n,l,u*o):as.scale(n,l,-h*o))}}return a},t.prototype._getprojminmaxonaxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l-1?yd:md}():md;sl(vd,fd),sl(yd,gd);var wd=1e3,sd=60*wd,md=60*sd,td=24*md,cd=365*td,id={year:"{yyyy}",month:"{mmm}",day:"{d}",hour:"{hh}:{mm}",minute:"{hh}:{mm}",second:"{hh}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {sss}",none:"{yyyy}-{mm}-{dd} {hh}:{mm}:{ss} {sss}"},dd="{yyyy}-{mm}-{dd}",ad={year:"{yyyy}",month:"{yyyy}-{mm}",day:dd,hour:dd+" "+id.hour,minute:dd+" "+id.minute,second:dd+" "+id.second,millisecond:id.none},kd=["year","month","day","hour","minute","second","millisecond"],ld=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],pd=g,od=["a","b","c","d","e","f","g"],rd=function(t,e){return"{"+t+(null==e?"":e)+"}"},nd=y,ed=["left","right","top","bottom","width","height"],zd=[["width","left","right"],["height","top","bottom"]],bd=wl,fd=(s(wl,"vertical"),s(wl,"horizontal"),or()),vd=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=il("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergedefaultandtheme(t,n)},n.prototype.mergedefaultandtheme=function(t,e){var n=xl(this),i=n?jl(t):{},r=e.gettheme();l(t,r.get(this.maintype)),l(t,this.getdefaultoption()),n&&yl(t,i,n)},n.prototype.mergeoption=function(t){l(this.option,t,!0);var e=xl(this);e&&yl(this.option,t,e)},n.prototype.optionupdated=function(){},n.prototype.getdefaultoption=function(){var t=this.constructor;if(!ur(t))return t.defaultoption;var e=fd(this);if(!e.defaultoption){for(var n=[],i=t;i;){var r=i.prototype.defaultoption;r&&n.push(r),i=i.superclass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultoption=o}return e.defaultoption},n.prototype.getreferringcomponents=function(t,e){var n=t+"index",i=t+"id";return er(this.ecmodel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getboxlayoutparams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getzlevelkey=function(){return""},n.prototype.setzlevel=function(t){this.option.zlevel=t},n.protoinitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.maintype="",t.subtype="",t.componentindex=0}(),n}(pd);jr(vd,pd),jr(vd),rl(vd),ol(vd,ql);var gd="";"undefined"!=typeof navigator&&(gd=navigator.platform||"");var hd,wd,ud="rgba(0, 0, 0, 0.2)",xd={darkmode:"auto",colorby:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientcolor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ud,dasharrayx:[1,0],dasharrayy:[2,5],symbolsize:1,rotation:math.pi/6},{color:ud,symbol:"circle",dasharrayx:[[8,8],[0,8,8,0]],dasharrayy:[6,0],symbolsize:.8},{color:ud,dasharrayx:[1,0],dasharrayy:[4,3],rotation:-math.pi/4},{color:ud,dasharrayx:[[6,6],[0,6,6,0]],dasharrayy:[6,0]},{color:ud,dasharrayx:[[1,0],[1,6]],dasharrayy:[1,0,6,0],rotation:math.pi/4},{color:ud,symbol:"triangle",dasharrayx:[[9,9],[0,9,9,0]],dasharrayy:[7,2],symbolsize:.75}]}},textstyle:{fontfamily:gd.match(/^win/)?"microsoft yahei":"sans-serif",fontsize:12,fontstyle:"normal",fontweight:"normal"},blendmode:null,stateanimation:{duration:300,easing:"cubicout"},animation:"auto",animationduration:1e3,animationdurationupdate:500,animationeasing:"cubicinout",animationeasingupdate:"cubicinout",animationthreshold:2e3,progressivethreshold:3e3,progressive:400,hoverlayerthreshold:3e3,useutc:!1},yd=j(["tooltip","label","itemname","itemid","itemgroupid","seriesname"]),jd="original",zd="arrayrows",qd="objectrows",kd="keyedcolumns",jd="typedarray",$d="unknown",qd="column",ta="row",ea={must:1,might:2,not:3},na=or(),ia=j(),ra=or(),oa=(or(),function(){function t(){}return t.prototype.getcolorfrompalette=function(t,e,n){var i=fr(this.get("color",!0)),r=this.get("colorlayer",!0);return ou(this,ra,i,r,t,e,n)},t.prototype.clearcolorpalette=function(){au(this,ra)},t}()),aa="\x00_ec_inner",sa=1,la=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new pd(i),this._locale=new pd(r),this._optionmanager=o},n.prototype.setoption=function(t,e,n){var i=cu(e);this._optionmanager.setoption(t,n,i),this._resetoption(null,i)},n.prototype.resetoption=function(t,e){return this._resetoption(t,cu(e))},n.prototype._resetoption=function(t,e){var n=!1,i=this._optionmanager;if(!t||"recreate"===t){var r=i.mountoption("recreate"===t);this.option&&"recreate"!==t?(this.restoredata(),this._mergeoption(r,e)):wd(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoredata(),!t||"recreate"===t||"timeline"===t){var o=i.gettimelineoption(this);o&&(n=!0,this._mergeoption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getmediaoption(this);a.length&&y(a,function(t){n=!0,this._mergeoption(t,e)},this)}return n},n.prototype.mergeoption=function(t){this._mergeoption(t,null)},n.prototype._mergeoption=function(t,e){function n(e){var n=iu(this,e,fr(t[e])),a=r.get(e),s=a?c&&c.get(e)?"replacemerge":"normalmerge":"replaceall",l=mr(a,n,s);kr(l,e,vd),i[e]=null,r.set(e,null),o.set(e,0);var u,p=[],d=[],f=0;y(l,function(t,n){var i=t.existing,r=t.newoption;if(r){var o="series"===e,a=vd.getclass(e,t.keyinfo.subtype,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyinfo.name,i.mergeoption(r,this),i.optionupdated(r,!1);else{var s=h({componentindex:n},t.keyinfo);i=new a(r,this,this,s),h(i,s),t.brandnew&&(i.__requirenewview=!0),i.init(r,this,this),i.optionupdated(null,!0)}}else i&&(i.mergeoption({},this),i.optionupdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))},this),i[e]=p,r.set(e,d),o.set(e,f),"series"===e&&hd(this)}var i=this.option,r=this._componentsmap,o=this._componentscount,a=[],u=j(),c=e&&e.replacemergemaintypemap;kl(this),y(t,function(t,e){null!=t&&(vd.hasclass(e)?e&&(a.push(e),u.set(e,!0)):i[e]=null==i[e]?s(t):l(i[e],t,!0))}),c&&c.each(function(t,e){vd.hasclass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),vd.topologicaltravel(a,vd.getallclassmaintypes(),n,this),this._seriesindices||hd(this)},n.prototype.getoption=function(){var t=s(this.option);return y(t,function(e,n){if(vd.hasclass(n)){for(var i=fr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ar(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[aa],t},n.prototype.gettheme=function(){return this._theme},n.prototype.getlocalemodel=function(){return this._locale},n.prototype.setupdatepayload=function(t){this._payload=t},n.prototype.getupdatepayload=function(){return this._payload},n.prototype.getcomponent=function(t,e){var n=this._componentsmap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;ra;a++)du(n[a].query,t,e)&&r.push(a);return!r.length&&i&&(r=[-1]),r.length&&!gu(r,this._currentmediaindices)&&(o=v(r,function(t){return s(-1===t?i.option:n[t].option)})),this._currentmediaindices=r,o},t}(),ba=y,wa=a,sa=["areastyle","linestyle","nodestyle","linkstyle","chordstyle","label","labelline"],ma=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ta=["grid","geo","parallel","legend","toolbox","title","visualmap","datazoom","timeline"],ca=[["borderradius","barborderradius"],["bordercolor","barbordercolor"],["borderwidth","barborderwidth"]],ia=function(){function t(t){this.data=t.data||(t.sourceformat===kd?{}:[]),this.sourceformat=t.sourceformat||$d,this.serieslayoutby=t.serieslayoutby||qd,this.startindex=t.startindex||0,this.dimensionsdetectedcount=t.dimensionsdetectedcount,this.metarawoption=t.metarawoption;var e=this.dimensionsdefine=t.dimensionsdefine;if(e)for(var n=0;no;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimsize,a=0;o>a;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;h>p;p++){var d=r[p*o+a];c[t+p]=d,l>d&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimsize:0};e={},e[zd+"_"+qd]={pure:!0,appenddata:t},e[zd+"_"+ta]={pure:!0,appenddata:function(){throw new error('do not support appenddata when set serieslayoutby: "row".')}},e[qd]={pure:!0,appenddata:t},e[kd]={pure:!0,appenddata:function(t){var e=this._data;y(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[jd]={appenddata:t},e[jd]={persistent:!1,pure:!0,appenddata:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},pa=e}(),t}(),aa=function(t,e,n,i){return t[i]},ka=(ua={},ua[zd+"_"+qd]=function(t,e,n,i){return t[i+e]},ua[zd+"_"+ta]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s=0&&(s=o.interpolatedvalue[l])}return null!=s?s+"":""})}},t.prototype.getrawvalue=function(t,e){return ku(this.getdata(e),t)},t.prototype.formattooltip=function(){},t}(),za=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._ondirty=t.ondirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputdata=n.context.outputdata}this.__pipeline&&(this.__pipeline.currenttask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modby),s=this._moddatacount||0,l=e(t&&t.modby),u=t&&t.moddatacount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doreset(i)),this._modby=l,this._moddatacount=u;var c=t&&t.step;if(this._dueend=n?n._outputdueend:this._count?this._count(this.context):1/0,this._progress){var p=this._dueindex,d=math.min(null!=c?this._dueindex+c:1/0,this._dueend);if(!i&&(h||d>p)){var f=this._progress;if(m(f))for(var g=0;gi?i++:null}function e(){var t=i%a*r+math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),fa=(j({number:function(t){return parsefloat(t)},time:function(t){return+er(t)},trim:function(t){return c(t)?w(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),va=(function(){function t(t,e){if(!d(e)){var n="";pr(n)}this._opfn=fa[t],this._rvalfloat=sr(e)}return t.prototype.evaluate=function(t){return d(t)?this._opfn(t,this._rvalfloat):this._opfn(sr(t),this._rvalfloat)},t}(),function(){function t(t,e){var n="desc"===t;this._resultlt=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=d(t)?t:sr(t),i=d(e)?e:sr(e),r=isnan(n),o=isnan(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=c(t),s=c(e);a&&(n=s?t:0),s&&(i=a?e:0)}return i>n?this._resultlt:n>i?-this._resultlt:0},t}()),ga=(function(){function t(t,e){this._rval=e,this._iseq=t,this._rvaltypeof=typeof e,this._rvalfloat=sr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvaltypeof||"number"!==n&&"number"!==this._rvaltypeof||(e=sr(t)===this._rvalfloat)}return this._iseq?e:!e},t}(),function(){function t(){}return t.prototype.getrawdata=function(){throw new error("not supported")},t.prototype.getrawdataitem=function(){throw new error("not supported")},t.prototype.clonerawdata=function(){},t.prototype.getdimensioninfo=function(){},t.prototype.clonealldimensioninfo=function(){},t.prototype.count=function(){},t.prototype.retrievevalue=function(){},t.prototype.retrievevaluefromitem=function(){},t.prototype.convertvalue=function(t,e){return qu(t,e)},t}()),ha=j(),wa="undefined",ua=typeof uint32array===wa?array:uint32array,xa=typeof uint16array===wa?array:uint16array,ya=typeof int32array===wa?array:int32array,ja=typeof float64array===wa?array:float64array,za={"float":ja,"int":ya,ordinal:array,number:array,time:ja},qa=function(){function t(){this._chunks=[],this._rawextent=[],this._extent=[],this._count=0,this._rawcount=0,this._calcdimnametoidx=j()}return t.prototype.initdata=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getrawindex=this._getrawidxidentity;var i=t.getsource(),r=this.defaultdimvaluegetter=fa[i.sourceformat];this._dimvaluegetter=n||r,this._rawextent=[];xu(i);this._dimensions=v(e,function(t){return{type:t.type,property:t.property}}),this._initdatafromprovider(0,t.count())},t.prototype.getprovider=function(){return this._provider},t.prototype.getsource=function(){return this._provider.getsource()},t.prototype.ensurecalculationdimension=function(t,e){var n=this._calcdimnametoidx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new za[e||"float"](this._rawcount),this._rawextent[r]=hh(),r},t.prototype.collectordinalmeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawextent,o=i.ordinaloffset||0,a=n.length;0===o&&(r[t]=hh());for(var s=r[t],l=o;a>l;l++){var u=n[l]=e.parseandcollect(n[l]);isnan(u)||(s[0]=math.min(u,s[0]),s[1]=math.max(u,s[1]))}i.ordinalmeta=e,i.ordinaloffset=a,i.type="ordinal"},t.prototype.getordinalmeta=function(t){var e=this._dimensions[t],n=e.ordinalmeta;return n},t.prototype.getdimensionproperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appenddata=function(t){var e=this._provider,n=this.count();e.appenddata(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initdatafromprovider(n,i,!0),[n,i]},t.prototype.appendvalues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawextent,a=this.count(),s=a+math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];ph(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,d=0;r>d;d++){var u=i[d],f=fa.arrayrows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=o[d];fg[1]&&(g[1]=f)}return this._rawcount=this._count=s,{start:a,end:s}},t.prototype._initdatafromprovider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawextent,l=v(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=hh()),ph(r,u,h.type,e,n)}if(i.fillstorage)i.fillstorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=i.getitem(p,c);for(var d=0;a>d;d++){var f=r[d],g=this._dimvaluegetter(c,l[d],p,d);f[p]=g;var y=s[d];gy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawcount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&er;r++)n.push(this.get(i[r],e));return n},t.prototype.getbyrawindex=function(t,e){if(!(e>=0&&ei;i++){var o=this.get(t,i);isnan(o)||(n+=o)}return n},t.prototype.getmedian=function(t){var e=[];this.each([t],function(t){isnan(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexofrawindex=function(t){if(t>=this._rawcount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n=i;){var o=(i+r)/2|0;if(e[o]t))return o;r=o-1}}return-1},t.prototype.indicesofnearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getrawindex(u),p=e-r[c],d=math.abs(p);n>=d&&((a>d||d===a&&p>=0&&0>s)&&(a=d,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getindices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=uh(this._rawcount);t=new n(this.count());for(var r=0;rc;c++){var p=void 0,d=n.getrawindex(c);if(0===s)p=e(c);else if(1===s){var f=h[u][d];p=e(f,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][d];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=d)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updategetrawidx(),n},t.prototype.selectrange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=b(t),r=i.length;if(!r)return this;var o=e.count(),a=uh(e._rawcount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var g=p[i[0]],y=0;n>y;y++){var v=g[y];(v>=h&&c>=v||isnan(v))&&(s[l++]=f),f++}d=!0}else if(2===r){for(var g=p[i[0]],m=p[i[1]],_=t[i[1]][0],x=t[i[1]][1],y=0;n>y;y++){var v=g[y],w=m[y];(v>=h&&c>=v||isnan(v))&&(w>=_&&x>=w||isnan(w))&&(s[l++]=f),f++}d=!0}}if(!d)if(1===r)for(var y=0;o>y;y++){var s=e.getrawindex(y),v=p[i[0]][s];(v>=h&&c>=v||isnan(v))&&(s[l++]=s)}else for(var y=0;o>y;y++){for(var m=!0,s=e.getrawindex(y),t=0;r>t;t++){var c=i[t],v=p[c][s];(vt[c][1])&&(m=!1)}m&&(s[l++]=e.getrawindex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updategetrawidx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updatedims(n,t,e),n},t.prototype.modify=function(t,e){this._updatedims(this,t,e)},t.prototype._updatedims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawextent,u=0;uh;h++){for(var c=t.getrawindex(h),p=0;o>p;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(var u=0;uy[1]&&(y[1]=g)}}}},t.prototype.lttbdownsample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=math.floor(1/e),c=this.getrawindex(0),p=new(uh(this._rawcount))(math.min(2*(math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;l-1>d;d+=h){for(var f=math.min(d+h,l-1),g=math.min(d+2*h,l),y=(g+f)/2,v=0,m=f;g>m;m++){var _=this.getrawindex(m),x=s[_];isnan(x)||(v+=x)}v/=g-f;var b=d,w=math.min(d+h,l),s=d-1,m=s[c];n=-1,r=b;for(var t=-1,c=0,m=b;w>m;m++){var _=this.getrawindex(m),x=s[_];isnan(x)?(c++,0>t&&(t=_)):(i=math.abs((s-y)*(x-m)-(s-m)*(v-m)),i>n&&(n=i,r=_))}c>0&&w-b>c&&(p[u++]=math.min(t,r),r=math.max(t,r)),p[u++]=r,c=r}return p[u++]=this.getrawindex(l-1),o._count=u,o._indices=p,o.getrawindex=this._getrawidx,o},t.prototype.downsample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=math.floor(1/e),l=o[t],u=this.count(),h=r._rawextent[t]=hh(),c=new(uh(this._rawcount))(math.ceil(u/s)),p=0,d=0;u>d;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;s>f;f++){var g=this.getrawindex(d+f);a[f]=l[g]}var y=n(a),v=this.getrawindex(math.min(d+i(a,y)||0,u-1));l[v]=y,yh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updategetrawidx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getrawindex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getdataextent=function(t){var e=this._chunks[t],n=hh();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawextent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var a=i[0],s=i[1],l=0;r>l;l++){var u=this.getrawindex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return i=[a,s],this._extent[t]=i,i},t.prototype.getrawdataitem=function(t){var e=this.getrawindex(t);if(this._provider.persistent)return this._provider.getitem(e);for(var n=[],i=this._chunks,r=0;ri;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getrawidxidentity=function(t){return t},t.prototype._getrawidx=function(t){return t=0?this._indices[t]:-1},t.prototype._updategetrawidx=function(){this.getrawindex=this._indices?this._getrawidx:this._getrawidxidentity},t.internalfield=function(){function t(t,e,n,i){return qu(t[i],this._dimensions[i])}fa={arrayrows:t,objectrows:function(t,e,n,i){return qu(t[e],this._dimensions[i])},keyedcolumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return qu(r instanceof array?r[i]:r,this._dimensions[i])},typedarray:function(t,e,n,i){return t[i]}}}(),t}(),ka=function(){function t(t){this._sourcelist=[],this._storelist=[],this._upstreamsignlist=[],this._versionsignbase=0,this._dirty=!0,this._sourcehost=t}return t.prototype.dirty=function(){this._setlocalsource([],[]),this._storelist=[],this._dirty=!0},t.prototype._setlocalsource=function(t,e){this._sourcelist=t,this._upstreamsignlist=e,this._versionsignbase++,this._versionsignbase>9e10&&(this._versionsignbase=0)},t.prototype._getversionsign=function(){return this._sourcehost.uid+"_"+this._versionsignbase},t.prototype.preparesource=function(){this._isdirty()&&(this._createsource(),this._dirty=!1)},t.prototype._createsource=function(){this._setlocalsource([],[]);var t,e,n=this._sourcehost,i=this._getupstreamsourcemanagers(),r=!!i.length;if(fh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.preparesource(),l=u.getsource(),a=l.data,s=l.sourceformat,e=[u._getversionsign()]}else a=o.get("data",!0),s=l(a)?jd:jd,e=[];var h=this._getsourcemetarawoption()||{},c=l&&l.metarawoption||{},p=b(h.serieslayoutby,c.serieslayoutby)||null,d=b(h.sourceheader,c.sourceheader),f=b(h.dimensions,c.dimensions),g=p!==c.serieslayoutby||!!d!=!!c.sourceheader||f;t=g?[zu(a,{serieslayoutby:p,sourceheader:d,dimensions:f},s)]:[]}else{var y=n;if(r){var v=this._applytransform(i);t=v.sourcelist,e=v.upstreamsignlist}else{var m=y.get("source",!0);t=[zu(m,this._getsourcemetarawoption(),null)],e=[]}}this._setlocalsource(t,e)},t.prototype._applytransform=function(t){var e=this._sourcehost,n=e.get("transform",!0),i=e.get("fromtransformresult",!0);if(null!=i){var r="";1!==t.length&&gh(r)}var o,a=[],s=[];return y(t,function(t){t.preparesource();var e=t.getsource(i||0),n="";null==i||e||gh(n),a.push(e),s.push(t._getversionsign())}),n?o=ah(n,a,{datasetindex:e.componentindex}):null!=i&&(o=[fu(a[0])]),{sourcelist:o,upstreamsignlist:s}},t.prototype._isdirty=function(){if(this._dirty)return!0;for(var t=this._getupstreamsourcemanagers(),e=0;ethis.getshallow("animationthreshold")&&(e=!1),!!e},n.prototype.restoredata=function(){this.datatask.dirty()},n.prototype.getcolorfrompalette=function(t,e,n){var i=this.ecmodel,r=oa.prototype.getcolorfrompalette.call(this,t,e,n);return r||(r=i.getcolorfrompalette(t,e,n)),r},n.prototype.coorddimtodatadim=function(t){return this.getrawdata().mapdimensionsall(t)},n.prototype.getprogressive=function(){return this.get("progressive")},n.prototype.getprogressivethreshold=function(){return this.get("progressivethreshold")},n.prototype.select=function(t,e){this._innerselect(this.getdata(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedmap;if(n){var i=this.option.selectedmode,r=this.getdata(e);if("series"===i||"all"===n)return this.option.selectedmap={},void(this._selecteddataindicesmap={});for(var o=0;o=0&&n.push(r)}return n},n.prototype.isselected=function(t,e){var n=this.option.selectedmap;if(!n)return!1;var i=this.getdata(e);return("all"===n||n[rh(i,t)])&&!i.getitemmodel(t).get(["select","disabled"])},n.prototype.isuniversaltransitionenabled=function(){if(this[nk])return!0;var t=this.option.universaltransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerselect=function(t,e){var n,i,r=this.option,o=r.selectedmode,a=e.length;if(o&&a)if("series"===o)r.selectedmap="all";else if("multiple"===o){a(r.selectedmap)||(r.selectedmap={});for(var s=r.selectedmap,l=0;a>l;l++){var u=e[l],h=rh(t,u);s[h]=!0,this._selecteddataindicesmap[h]=t.getrawindex(u)}}else if("single"===o||o===!0){var c=e[a-1],h=rh(t,c);r.selectedmap=(n={},n[h]=!0,n),this._selecteddataindicesmap=(i={},i[h]=t.getrawindex(c),i)}},n.prototype._initselectedmapfromdata=function(t){if(!this.option.selectedmap){var e=[];t.hasitemoption&&t.each(function(n){var i=t.getrawdataitem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerselect(t,e)}},n.registerclass=function(t){return vd.registerclass(t)},n.protoinitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesindex=0,t.ignorestyleondata=!1,t.hassymbolvisual=!1,t.defaultsymbol="circle",t.visualstyleaccesspath="itemstyle",t.visualdrawtype="fill"}(),n}(vd);f(ik,ea),f(ik,oa),jr(ik,vd);var rk=function(){function t(){this.group=new gm,this.uid=il("viewcomponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateview=function(){},t.prototype.updatelayout=function(){},t.prototype.updatevisual=function(){},t.prototype.toggleblurseries=function(){},t.prototype.eachrendered=function(t){var e=this.group;e&&e.traverse(t)},t}();xr(rk),jr(rk);var ok=or(),ak=wh(),sk=function(){function t(){this.group=new gm,this.uid=il("viewchart"),this.rendertask=$u({plan:yh,reset:jh}),this.rendertask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){var r=t.getdata(i&&i.datatype); r&&xh(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getdata(i&&i.datatype);r&&xh(r,i,"normal")},t.prototype.remove=function(){this.group.removeall()},t.prototype.dispose=function(){},t.prototype.updateview=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updatelayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updatevisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachrendered=function(t){us(this.group,t)},t.markupdatemethod=function(t,e){ok(t).updatemethod=e},t.protoinitialize=function(){var e=t.prototype;e.type="chart"}(),t}();xr(sk,["dispose"]),jr(sk);var lk,uk={incrementalpreparerender:{progress:function(t,e){e.view.incrementalrender(t,e.model,e.ecmodel,e.api,e.payload)}},render:{forcefirstprogress:!0,progress:function(t,e){e.view.render(e.model,e.ecmodel,e.api,e.payload)}}},hk="\x00__throttleoriginmethod",ck="\x00__throttlerate",pk="\x00__throttletype",dk=or(),fk={itemstyle:$r(ud,!0),linestyle:$r(ad,!0)},gk={linestyle:"stroke",itemstyle:"fill"},yk={createonallseries:!0,performrawseries:!0,reset:function(t,e){var n=t.getdata(),i=t.visualstyleaccesspath||"itemstyle",r=t.getmodel(i),o=jh(t,i),a=o(r),s=r.getshallow("decal");s&&(n.setvisual("decal",s),s.dirty=!0);var l=$h(t,i),u=a[l],c=t(u)?u:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||p){var d=t.getcolorfrompalette(t.name,null,e.getseriescount());a[l]||(a[l]=d,n.setvisual("colorfrompalette",!0)),a.fill="auto"===a.fill||t(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||t(a.stroke)?d:a.stroke}return n.setvisual("style",a),n.setvisual("drawtype",l),!e.isseriesfiltered(t)&&c?(n.setvisual("colorfrompalette",!1),{dataeach:function(e,n){var i=t.getdataparams(n),r=h({},a);r[l]=c(i),e.setitemvisual(n,"style",r)}}):void 0}},vk=new pd,mk={createonallseries:!0,performrawseries:!0,reset:function(t,e){if(!t.ignorestyleondata&&!e.isseriesfiltered(t)){var n=t.getdata(),i=t.visualstyleaccesspath||"itemstyle",r=jh(t,i),o=n.getvisual("drawtype");return{dataeach:n.hasitemoption?function(t,e){var n=t.getrawdataitem(e);if(n&&n[i]){vk.option=n[i];var a=r(vk),s=t.ensureuniqueitemvisual(e,"style");h(s,a),vk.option.decal&&(t.setitemvisual(e,"decal",vk.option.decal),vk.option.decal.dirty=!0),o in a&&t.setitemvisual(e,"colorfrompalette",!1)}}:null}}}},_k={performrawseries:!0,overallreset:function(t){var e=j();t.eachseries(function(t){var n=t.getcolorby();if(!t.iscolorbyseries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),dk(t).scope=r}}),t.eachseries(function(e){if(!e.iscolorbyseries()&&!t.isseriesfiltered(e)){var n=e.getrawdata(),i={},r=e.getdata(),o=dk(e).scope,a=e.visualstyleaccesspath||"itemstyle",s=$h(e,a);r.each(function(t){var e=r.getrawindex(t);i[e]=t}),n.each(function(t){var a=i[t],l=r.getitemvisual(a,"colorfrompalette");if(l){var u=r.ensureuniqueitemvisual(a,"style"),h=n.getname(t)||t+"",c=n.count();u[s]=e.getcolorfrompalette(h,o,c)}})}})}},xk=math.pi,bk=function(){function t(t,e,n,i){this._stagetaskmap=j(),this.ecinstance=t,this.api=e,n=this._dataprocessorhandlers=n.slice(),i=this._visualhandlers=i.slice(),this._allhandlers=n.concat(i)}return t.prototype.restoredata=function(t,e){t.restoredata(e),this._stagetaskmap.each(function(t){var e=t.overalltask;e&&e.dirty()})},t.prototype.getperformargs=function(t,e){if(t.__pipeline){var n=this._pipelinemap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveenabled&&(!i||i.progressiverender)&&t.__idxinpipeline>n.blockindex,o=r?n.step:null,a=i&&i.moddatacount,s=null!=a?math.ceil(a/o):null;return{step:o,modby:s,moddatacount:a}}},t.prototype.getpipeline=function(t){return this._pipelinemap.get(t)},t.prototype.updatestreammodes=function(t,e){var n=this._pipelinemap.get(t.uid),i=t.getdata(),r=i.count(),o=n.progressiveenabled&&e.incrementalpreparerender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largethreshold"),s="mod"===t.get("progressivechunkmode")?r:null;t.pipelinecontext=n.context={progressiverender:o,moddatacount:s,large:a}},t.prototype.restorepipelines=function(t){var e=this,n=e._pipelinemap=j();t.eachseries(function(t){var i=t.getprogressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getprogressivethreshold(),progressiveenabled:i&&!(t.preventincremental&&t.preventincremental()),blockindex:-1,step:math.round(i||700),count:0}),e._pipe(t,t.datatask)})},t.prototype.preparestagetasks=function(){var t=this._stagetaskmap,e=this.api.getmodel(),n=this.api;y(this._allhandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";h(!(i.reset&&i.overallreset),o),i.reset&&this._createseriesstagetask(i,r,e,n),i.overallreset&&this._createoverallstagetask(i,r,e,n)},this)},t.prototype.prepareview=function(t,e,n,i){var r=t.rendertask,o=r.context;o.model=e,o.ecmodel=n,o.api=i,r.__block=!t.incrementalpreparerender,this._pipe(e,r)},t.prototype.performdataprocessortasks=function(t,e){this._performstagetasks(this._dataprocessorhandlers,t,e,{block:!0})},t.prototype.performvisualtasks=function(t,e,n){this._performstagetasks(this._visualhandlers,t,e,n)},t.prototype._performstagetasks=function(t,e,n,i){function r(t,e){return t.setdirty&&(!t.dirtymap||t.dirtymap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;y(t,function(t){if(!i.visualtype||i.visualtype===t.visualtype){var s=a._stagetaskmap.get(t.uid),l=s.seriestaskmap,u=s.overalltask;if(u){var h,c=u.agentstubmap;c.each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatepayload(u,n);var p=a.getperformargs(u,i.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getperformargs(s,i.block);l.skip=!t.performrawseries&&e.isseriesfiltered(s.context.model),a.updatepayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performseriestasks=function(t){var e;t.eachseries(function(t){e=t.datatask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelinemap.each(function(t){var e=t.tail;do{if(e.__block){t.blockindex=e.__idxinpipeline;break}e=e.getupstream()}while(e)})},t.prototype.updatepayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createseriesstagetask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||$u({plan:rc,reset:oc,count:sc}));l.context={model:e,ecmodel:n,api:i,useclearvisual:t.isvisual&&!t.islayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriestaskmap,s=e.seriestaskmap=j(),l=t.seriestype,u=t.gettargetseries;t.createonallseries?n.eachrawseries(r):l?n.eachrawseriesbytype(l,r):u&&u(n,i).each(r)},t.prototype._createoverallstagetask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,$u({reset:ec,ondirty:ic})));n.context={model:t,overallprogress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overalltask=e.overalltask||$u({reset:tc});a.context={ecmodel:n,api:i,overallreset:t.overallreset,scheduler:o};var s=a.agentstubmap,l=a.agentstubmap=j(),u=t.seriestype,h=t.gettargetseries,c=!0,p=!1,d="";h(!t.createonallseries,d),u?n.eachrawseriesbytype(u,r):h?h(n,i).each(r):(c=!1,y(n.getseries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelinemap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxinpipeline=i.count++,e.__pipeline=i},t.wrapstagehandler=function(t,e){return t(t)&&(t={overallreset:t,seriestype:lc(t)}),t.uid=il("stagehandler"),e&&(t.visualtype=e),t},t}(),wk=ac(0),sk={},mk={};uc(sk,la),uc(mk,ya),sk.eachseriesbytype=sk.eachrawseriesbytype=function(t){lk=t},sk.eachcomponent=function(t){"series"===t.maintype&&t.subtype&&(lk=t.subtype)};var tk=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"],ck={color:tk,colorlayer:[["#37a2da","#ffd85c","#fd7b5f"],["#37a2da","#67e0e3","#ffdb5c","#ff9f7f","#e062ae","#9d96f5"],["#37a2da","#32c5e9","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e7bcf3","#8378ea","#96bfff"],tk]},ik="#b9b8ce",dk="#100c2a",ak=function(){return{axisline:{linestyle:{color:ik}},splitline:{linestyle:{color:"#484753"}},splitarea:{areastyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorsplitline:{linestyle:{color:"#20203b"}}}},kk=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],lk={darkmode:!0,color:kk,backgroundcolor:dk,axispointer:{linestyle:{color:"#817f91"},crossstyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textstyle:{color:ik}},textstyle:{color:ik},title:{textstyle:{color:"#eef1fa"},subtextstyle:{color:"#b9b8ce"}},toolbox:{iconstyle:{bordercolor:ik}},datazoom:{bordercolor:"#71708a",textstyle:{color:ik},brushstyle:{color:"rgba(135,163,206,0.3)"},handlestyle:{color:"#353450",bordercolor:"#c5cbe3"},movehandlestyle:{color:"#b0b6c3",opacity:.3},fillercolor:"rgba(135,163,206,0.2)",emphasis:{handlestyle:{bordercolor:"#91b7f2",color:"#4d587d"},movehandlestyle:{color:"#636d9a",opacity:.7}},databackground:{linestyle:{color:"#71708a",width:1},areastyle:{color:"#71708a"}},selecteddatabackground:{linestyle:{color:"#87a3ce"},areastyle:{color:"#87a3ce"}}},visualmap:{textstyle:{color:ik}},timeline:{linestyle:{color:ik},label:{color:ik},controlstyle:{color:ik,bordercolor:ik}},calendar:{itemstyle:{color:dk},daylabel:{color:ik},monthlabel:{color:ik},yearlabel:{color:ik}},timeaxis:ak(),logaxis:ak(),valueaxis:ak(),categoryaxis:ak(),line:{symbol:"circle"},graph:{color:kk},gauge:{title:{color:ik},axisline:{linestyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axislabel:{color:ik},detail:{color:"#eef1fa"}},candlestick:{itemstyle:{color:"#f64e56",color0:"#54ea92",bordercolor:"#f64e56",bordercolor0:"#54ea92"}}};lk.categoryaxis.splitline.show=!1;var pk=function(){function t(){}return t.prototype.normalizequery=function(t){var e={},n={},i={};if(c(t)){var r=hr(t);e.maintype=r.main||null,e.subtype=r.sub||null}else{var o=["index","name","id"],a={name:1,dataindex:1,datatype:1};y(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.maintype=c,e[u.tolowercase()]=t,s=!0)}}a.hasownproperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptquery:e,dataquery:n,otherquery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventinfo;if(!i)return!0;var r=i.targetel,o=i.packedevent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptquery,u=e.dataquery;return n(l,a,"maintype")&&n(l,a,"subtype")&&n(l,a,"index","componentindex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataindex")&&n(u,o,"datatype")&&(!s.filterforexposedevent||s.filterforexposedevent(t,e.otherquery,r,o))},t.prototype.aftertrigger=function(){this.eventinfo=null},t}(),ok=["symbol","symbolsize","symbolrotate","symboloffset"],rk=ok.concat(["symbolkeepaspect"]),nk={createonallseries:!0,performrawseries:!0,reset:function(t,e){function n(e,n){for(var i=t.getrawvalue(n),r=t.getdataparams(n),a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getdom=function(){return this._dom},n.prototype.getid=function(){return this.id},n.prototype.getzr=function(){return this._zr},n.prototype.isssr=function(){return this._ssr},n.prototype.setoption=function(t,e,n){if(!this[tl]&&!this._disposed){var i,r,o;if(a(e)&&(n=e.lazyupdate,i=e.silent,r=e.replacemerge,o=e.transition,e=e.notmerge),this[tl]=!0,!this._model||e){var a=new xa(this._api),s=this._theme,l=this._model=new la;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setoption(t,{replacemerge:r},op);var u={seriestransition:o,optionchanged:!0};if(n)this[cl]={silent:i,updateparams:u},this[tl]=!1,this.getzr().wakeup();else{try{nl(this),bl.update.call(this,null,u)}catch(h){throw this[cl]=null,this[tl]=!1,h}this._ssr||this._zr.flush(),this[cl]=null,this[tl]=!1,hl.call(this,i),wl.call(this,i)}}},n.prototype.settheme=function(){},n.prototype.getmodel=function(){return this._model},n.prototype.getoption=function(){return this._model&&this._model.getoption()},n.prototype.getwidth=function(){return this._zr.getwidth()},n.prototype.getheight=function(){return this._zr.getheight()},n.prototype.getdevicepixelratio=function(){return this._zr.painter.dpr||cw.hasglobalwindow&&window.devicepixelratio||1},n.prototype.getrenderedcanvas=function(t){return this.rendertocanvas(t)},n.prototype.rendertocanvas=function(t){t=t||{};var e=this._zr.painter;return e.getrenderedcanvas({backgroundcolor:t.backgroundcolor||this._model.get("backgroundcolor"),pixelratio:t.pixelratio||this.getdevicepixelratio()})},n.prototype.rendertosvgstring=function(t){t=t||{};var e=this._zr.painter;return e.rendertostring({useviewbox:t.useviewbox})},n.prototype.getsvgdataurl=function(){if(cw.svgsupported){var t=this._zr,e=t.storage.getdisplaylist();return y(e,function(t){t.stopanimation(null,!0)}),t.painter.todataurl()}},n.prototype.getdataurl=function(t){if(!this._disposed){t=t||{};var e=t.excludecomponents,n=this._model,i=[],r=this;y(e,function(t){n.eachcomponent({maintype:t},function(t){var e=r._componentsmap[t.__viewid];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.gettype()?this.getsvgdataurl():this.rendertocanvas(t).todataurl("image/"+(t&&t.type||"png"));return y(i,function(t){t.group.ignore=!1}),o}},n.prototype.getconnecteddataurl=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=math.min,r=math.max,o=1/0;if(hp[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelratio||this.getdevicepixelratio();y(up,function(o){if(o.group===n){var p=e?o.getzr().painter.getsvgdom().innerhtml:o.rendertocanvas(s(t)),d=o.getdom().getboundingclientrect();a=i(d.left,a),l=i(d.top,l),u=r(d.right,u),h=r(d.bottom,h),c.push({dom:p,left:d.left,top:d.top})}}),a*=p,l*=p,u*=p,h*=p;var d=u-a,f=h-l,g=_w.createcanvas(),v=zi(g,{renderer:e?"svg":"canvas"});if(v.resize({width:d,height:f}),e){var m="";return y(c,function(t){var e=t.left-a,n=t.top-l;m+=''+t.dom+""}),v.painter.getsvgroot().innerhtml=m,t.connectedbackgroundcolor&&v.painter.setbackgroundcolor(t.connectedbackgroundcolor),v.refreshimmediately(),v.painter.todataurl()}return t.connectedbackgroundcolor&&v.add(new gc({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedbackgroundcolor}})),y(c,function(t){var e=new cc({style:{x:t.left*p-a,y:t.top*p-l,image:t.dom}});v.add(e)}),v.refreshimmediately(),g.todataurl("image/"+(t&&t.type||"png"))}return this.getdataurl(t)}},n.prototype.converttopixel=function(t,e){return fl(this,"converttopixel",t,e)},n.prototype.convertfrompixel=function(t,e){return fl(this,"convertfrompixel",t,e)},n.prototype.containpixel=function(t,e){if(!this._disposed){var n,i=this._model,r=rr(i,t);return y(r,function(t,i){i.indexof("models")>=0&&y(t,function(t){var r=t.coordinatesystem;if(r&&r.containpoint)n=n||!!r.containpoint(e);else if("seriesmodels"===i){var o=this._chartsmap[t.__viewid];o&&o.containpoint&&(n=n||o.containpoint(e,t))}},this)},this),!!n}},n.prototype.getvisual=function(t,e){var n=this._model,i=rr(n,t,{defaultmaintype:"series"}),r=i.seriesmodel,o=r.getdata(),a=i.hasownproperty("dataindexinside")?i.dataindexinside:i.hasownproperty("dataindex")?o.indexofrawindex(i.dataindex):null;return null!=a?hc(o,a,e):cc(o,e)},n.prototype.getviewofcomponentmodel=function(t){return this._componentsmap[t.__viewid]},n.prototype.getviewofseriesmodel=function(t){return this._chartsmap[t.__viewid]},n.prototype._initevents=function(){var t=this;y(ep,function(e){var n=function(n){var i,r=t.getmodel(),o=n.target,a="globalout"===e;if(a?i={}:o&&gc(o,function(t){var e=sc(t);if(e&&null!=e.dataindex){var n=e.datamodel||r.getseriesbyindex(e.seriesindex);return i=n&&n.getdataparams(e.dataindex,e.datatype)||{},!0}return e.eventdata?(i=h({},e.eventdata),!0):void 0},!0),i){var s=i.componenttype,l=i.componentindex;("markline"===s||"markpoint"===s||"markarea"===s)&&(s="series",l=i.seriesindex);var u=s&&null!=l&&r.getcomponent(s,l),c=u&&t["series"===u.maintype?"_chartsmap":"_componentsmap"][u.__viewid];i.event=n,i.type=e,t._$eventprocessor.eventinfo={targetel:o,packedevent:i,model:u,view:c},t.trigger(e,i)}};n.zreventfulcallatlast=!0,t._zr.on(e,n,t)}),y(ip,function(e,n){t._messagecenter.on(n,function(t){this.trigger(n,t)},t)}),y(["selectchanged"],function(e){t._messagecenter.on(e,function(t){this.trigger(e,t)},t)}),fc(this._messagecenter,this,this._api)},n.prototype.isdisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setoption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.getdom();t&&zr(this.getdom(),dp,"");var e=this,n=e._api,i=e._model;y(e._componentsviews,function(t){t.dispose(i,n)}),y(e._chartsviews,function(t){t.dispose(i,n)}),e._zr.dispose(),e._dom=e._model=e._chartsmap=e._componentsmap=e._chartsviews=e._componentsviews=e._scheduler=e._api=e._zr=e._throttledzrflush=e._theme=e._coordsysmgr=e._messagecenter=null,delete up[e.id]}},n.prototype.resize=function(t){if(!this[tl]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingfx&&this._loadingfx.resize(),e){var n=e.resetoption("media"),i=t&&t.silent;this[cl]&&(null==i&&(i=this[cl].silent),n=!0,this[cl]=null),this[tl]=!0;try{n&&nl(this),bl.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)})}catch(r){throw this[tl]=!1,r}this[tl]=!1,hl.call(this,i),wl.call(this,i)}}},n.prototype.showloading=function(t,e){if(!this._disposed&&(a(t)&&(e=t,t=""),t=t||"default",this.hideloading(),lp[t])){var n=lp[t](this._api,e),i=this._zr;this._loadingfx=n,i.add(n)}},n.prototype.hideloading=function(){this._disposed||(this._loadingfx&&this._zr.remove(this._loadingfx),this._loadingfx=null)},n.prototype.makeactionfromevent=function(t){var e=h({},t);return e.type=ip[t.type],e},n.prototype.dispatchaction=function(t,e){if(!this._disposed&&(a(e)||(e={silent:!!e}),np[t.type]&&this._model)){if(this[tl])return void this._pendingactions.push(t);var n=e.silent;gl.call(this,t,n);var i=e.flush;i?this._zr.flush():i!==!1&&cw.browser.wechat&&this._throttledzrflush(),hl.call(this,n),wl.call(this,n)}},n.prototype.updatelabellayout=function(){rl.trigger("series:layoutlabels",this._model,this._api,{updatedseries:[]})},n.prototype.appenddata=function(t){if(!this._disposed){var e=t.seriesindex,n=this.getmodel(),i=n.getseriesbyindex(e);i.appenddata(t),this._scheduler.unfinished=!0,this.getzr().wakeup()}},n.internalfield=function(){function t(t){t.clearcolorpalette(),t.eachseries(function(t){t.clearcolorpalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachcomponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getzlevelkey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentindex,type:t,key:s})}),i){var r,o,a=e.concat(n);an(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),y(a,function(e){var n=t.getcomponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setzlevel(i)})}}function i(t){for(var e=[],n=t.currentstates,i=0;ie.get("hoverlayerthreshold")&&!cw.node&&!cw.worker&&e.eachseries(function(e){if(!e.preventusinghoverlayer){var n=t._chartsmap[e.__viewid];n.__alive&&n.eachrendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverlayer=!0)})}})}function o(t,e){var n=t.get("blendmode")||null;e.eachrendered(function(t){t.isgroup||(t.style.blend=n)})}function a(t,e){if(!t.preventautoz){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachrendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.gettextcontent(),o=t.gettextguideline(),a=t.isgroup;if(a)for(var l=t.childrenref(),u=0;u0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachrendered(function(t){if(t.states&&t.states.emphasis){if(fs(t))return;if(t instanceof ac&&xa(t),t.__dirty){var e=t.prevstates;e&&t.usestates(e)}if(r){t.statetransition=a;var n=t.gettextcontent(),o=t.gettextguideline();n&&(n.statetransition=a),o&&(o.statetransition=a)}t.__dirty&&i(t)}})}nl=function(t){var e=t._scheduler;e.restorepipelines(t._model),e.preparestagetasks(),el(t,!0),el(t,!1),e.plan()},el=function(t,e){function n(t){var n=t.__requirenewview;t.__requirenewview=!1;var u="_ec_"+t.id+"_"+t.type,h=!n&&a[u];if(!h){var c=hr(t.type),p=e?rk.getclass(c.main,c.sub):sk.getclass(c.sub);h=new p,h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewid=h.__id=u,h.__alive=!0,h.__model=t,h.group.__eccomponentinfo={maintype:t.maintype,index:t.componentindex},!e&&r.prepareview(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsviews:t._chartsviews,a=e?t._componentsmap:t._chartsmap,s=t._zr,l=t._api,u=0;u1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performrestadd(r,n)},t.prototype._executemultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initindexmap(t,n,r,"_oldkeygetter"),this._initindexmap(e,i,o,"_newkeygetter");for(var a=0;a1&&1===c)this._updatemanytoone&&this._updatemanytoone(u,l),i[s]=null;else if(1===h&&c>1)this._updateonetomany&&this._updateonetomany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updatemanytomany&&this._updatemanytomany(u,l),i[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performrestadd(o,i)},t.prototype._performrestadd=function(t,e){for(var n=0;n1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initindexmap=function(t,e,n,i){for(var r=this._diffmodemultiple,o=0;oo;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storedimindex===o)s=e?h.name:null,l=h.type,u=h.ordinalmeta,a++;else{var c=this.getsourcedimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalmeta:u}),!e||null==s||h&&h.iscalculationcoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=ap[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source,d=[p.serieslayoutby,p.startindex,i].join("$$");return{dimensions:r,hash:d}},t.prototype.makeoutputdimensionnames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-i;this._namelist[a]=e[s],o&&sp(this,a)}},t.prototype._updateordinalmeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,i=n.getprovider();this._updateordinalmeta();var r=this._namelist,o=this._idlist,a=i.getsource().sourceformat,s=a===jd;if(s&&!i.pure)for(var l=[],u=t;e>u;u++){var h=i.getitem(u,l);if(!this.hasitemoption&&vr(h)&&(this.hasitemoption=!0),h){var c=h.name;null==r[u]&&null!=c&&(r[u]=ir(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=ir(p,null))}}if(this._shouldmakeidfromname())for(var u=t;e>u;u++)sp(this,u);vp(this)}},t.prototype.getapproximateextent=function(t){return this._approximateextent[t]||this._store.getdataextent(this._getstoredimindex(t))},t.prototype.setapproximateextent=function(t,e){e=this.getdimension(e),this._approximateextent[e]=t.slice()},t.prototype.getcalculationinfo=function(t){return this._calculationinfo[t]},t.prototype.setcalculationinfo=function(t,e){lp(t)?h(this._calculationinfo,t):this._calculationinfo[t]=e},t.prototype.getname=function(t){var e=this.getrawindex(t),n=this._namelist[e];return null==n&&null!=this._namedimidx&&(n=_p(this,this._namedimidx,e)),null==n&&(n=""),n},t.prototype._getcategory=function(t,e){var n=this._store.get(t,e),i=this._store.getordinalmeta(t);return i?i.categories[n]:n},t.prototype.getid=function(t){return mp(this,this.getrawindex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._diminfos[t];return i?n.get(i.storedimindex,e):void 0},t.prototype.getbyrawindex=function(t,e){var n=this._store,i=this._diminfos[t];return i?n.getbyrawindex(i.storedimindex,e):void 0},t.prototype.getindices=function(){return this._store.getindices()},t.prototype.getdataextent=function(t){return this._store.getdataextent(this._getstoredimindex(t))},t.prototype.getsum=function(t){return this._store.getsum(this._getstoredimindex(t))},t.prototype.getmedian=function(t){return this._store.getmedian(this._getstoredimindex(t))},t.prototype.getvalues=function(t,e){var n=this,i=this._store;return m(t)?i.getvalues(pp(t,function(t){return n._getstoredimindex(t)}),e):i.getvalues(t)},t.prototype.hasvalue=function(t){for(var e=this._dimsummary.datadimindicesoncoord,n=0,i=e.length;i>n;n++)if(isnan(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexofname=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getname(e)===t)return e;return-1},t.prototype.getrawindex=function(t){return this._store.getrawindex(t)},t.prototype.indexofrawindex=function(t){return this._store.indexofrawindex(t)},t.prototype.rawindexof=function(t,e){var n=t&&this._invertedindicesmap[t],i=n[e];return null==i||isnan(i)?np:i},t.prototype.indicesofnearest=function(t,e,n){return this._store.indicesofnearest(this._getstoredimindex(t),e,n)},t.prototype.each=function(t,e,n){t(t)&&(n=e,e=t,t=[]);var i=n||this,r=pp(xp(t),this._getstoredimindex,this);this._store.each(r,i?ow(e,i):e)},t.prototype.filterself=function(t,e,n){t(t)&&(n=e,e=t,t=[]);var i=n||this,r=pp(xp(t),this._getstoredimindex,this);return this._store=this._store.filter(r,i?ow(e,i):e),this},t.prototype.selectrange=function(t){var e=this,n={},i=b(t),r=[];return y(i,function(i){var o=e._getstoredimindex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectrange(n),this},t.prototype.maparray=function(t,e,n){t(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=pp(xp(t),this._getstoredimindex,this),a=wp(this);return a._store=this._store.map(o,r?ow(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=pp(xp(t),this._getstoredimindex,this);this._store.modify(o,r?ow(e,r):e)},t.prototype.downsample=function(t,e,n,i){var r=wp(this);return r._store=this._store.downsample(this._getstoredimindex(t),e,n,i),r},t.prototype.lttbdownsample=function(t,e){var n=wp(this);return n._store=this._store.lttbdownsample(this._getstoredimindex(t),e),n},t.prototype.getrawdataitem=function(t){return this._store.getrawdataitem(t)},t.prototype.getitemmodel=function(t){var e=this.hostmodel,n=this.getrawdataitem(t);return new pd(n,e,e&&e.ecmodel)},t.prototype.diff=function(t){var e=this;return new tp(t?t.getstore().getindices():[],this.getstore().getindices(),function(e){return mp(t,e)},function(t){return mp(e,t)})},t.prototype.getvisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setvisual=function(t,e){this._visual=this._visual||{},lp(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getitemvisual=function(t,e){var n=this._itemvisuals[t],i=n&&n[e];return null==i?this.getvisual(e):i},t.prototype.hasitemvisual=function(){return this._itemvisuals.length>0},t.prototype.ensureuniqueitemvisual=function(t,e){var n=this._itemvisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getvisual(e),m(r)?r=r.slice():lp(r)&&(r=h({},r)),i[e]=r),r},t.prototype.setitemvisual=function(t,e,n){var i=this._itemvisuals[t]||{};this._itemvisuals[t]=i,lp(e)?h(i,e):i[e]=n},t.prototype.clearallvisual=function(){this._visual={},this._itemvisuals=[]},t.prototype.setlayout=function(t,e){lp(t)?h(this._layout,t):this._layout[t]=e},t.prototype.getlayout=function(t){return this._layout[t]},t.prototype.getitemlayout=function(t){return this._itemlayouts[t]},t.prototype.setitemlayout=function(t,e,n){this._itemlayouts[t]=n?h(this._itemlayouts[t]||{},e):e},t.prototype.clearitemlayouts=function(){this._itemlayouts.length=0},t.prototype.setitemgraphicel=function(t,e){var n=this.hostmodel&&this.hostmodel.seriesindex;mc(n,this.datatype,t,e),this._graphicels[t]=e},t.prototype.getitemgraphicel=function(t){return this._graphicels[t]},t.prototype.eachitemgraphicel=function(t,e){y(this._graphicels,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneshallow=function(e){return e||(e=new t(this._schema?this._schema:pp(this.dimensions,this._getdiminfo,this),this.hostmodel)),bp(e,this),e._store=this._store,e},t.prototype.wrapmethod=function(t,e){var n=this[t];t(n)&&(this.__wrappedmethods=this.__wrappedmethods||[],this.__wrappedmethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(v(arguments)))})},t.internalfield=function(){vp=function(t){var e=t._invertedindicesmap;y(e,function(n,i){var r=t._diminfos[i],o=r.ordinalmeta,a=t._store;if(o){n=e[i]=new op(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),fp=function(){function t(t){this.coordsysdims=[],this.axismap=j(),this.categoryaxismap=j(),this.coordsysname=t}return t}(),vp={cartesian2d:function(t,e,n,i){var r=t.getreferringcomponents("xaxis",et).models[0],o=t.getreferringcomponents("yaxis",et).models[0];e.coordsysdims=["x","y"],n.set("x",r),n.set("y",o),yp(r)&&(i.set("x",r),e.firstcategorydimindex=0),yp(o)&&(i.set("y",o),null==e.firstcategorydimindex&&(e.firstcategorydimindex=1))},singleaxis:function(t,e,n,i){var r=t.getreferringcomponents("singleaxis",et).models[0];e.coordsysdims=["single"],n.set("single",r),yp(r)&&(i.set("single",r),e.firstcategorydimindex=0)},polar:function(t,e,n,i){var r=t.getreferringcomponents("polar",et).models[0],o=r.findaxismodel("radiusaxis"),a=r.findaxismodel("angleaxis");e.coordsysdims=["radius","angle"],n.set("radius",o),n.set("angle",a),yp(o)&&(i.set("radius",o),e.firstcategorydimindex=0),yp(a)&&(i.set("angle",a),null==e.firstcategorydimindex&&(e.firstcategorydimindex=1))},geo:function(t,e){e.coordsysdims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecmodel,o=r.getcomponent("parallel",t.get("parallelindex")),a=e.coordsysdims=o.dimensions.slice();y(o.parallelaxisindex,function(t,o){var s=r.getcomponent("parallelaxis",t),l=a[o];n.set(l,s),yp(s)&&(i.set(l,s),null==e.firstcategorydimindex&&(e.firstcategorydimindex=o))})}},gp=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getsetting=function(t){return this._setting[t]},t.prototype.unionextent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionextentfromdata=function(t,e){this.unionextent(t.getapproximateextent(e))},t.prototype.getextent=function(){return this._extent.slice()},t.prototype.setextent=function(t,e){var n=this._extent;isnan(t)||(n[0]=t),isnan(e)||(n[1]=e)},t.prototype.isinextentrange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isblank=function(){return this._isblank},t.prototype.setblank=function(t){this._isblank=t},t}();jr(gp);var hp=0,wp=function(){function t(t){this.categories=t.categories||[],this._needcollect=t.needcollect,this._deduplication=t.deduplication,this.uid=++hp}return t.createbyaxismodel=function(e){var n=e.option,i=n.data,r=i&&v(i,nd);return new t({categories:r,needcollect:!r,deduplication:n.dedplication!==!1})},t.prototype.getordinal=function(t){return this._getorcreatemap().get(t)},t.prototype.parseandcollect=function(t){var e,n=this._needcollect;if(!c(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getorcreatemap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e},t.prototype._getorcreatemap=function(){return this._map||(this._map=j(this.categories))},t}(),up=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getsetting("ordinalmeta");return i||(i=new wp({})),m(i)&&(i=new wp({categories:v(i,function(t){return a(t)?t.value:t})})),n._ordinalmeta=i,n._extent=n.getsetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?0/0:c(t)?this._ordinalmeta.getordinal(t):math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),ud(t,this._extent)&&null!=this._ordinalmeta.categories[t]},n.prototype.normalize=function(t){return t=this._getticknumber(this.parse(t)),hd(t,this._extent)},n.prototype.scale=function(t){return t=math.round(cd(t,this._extent)),this.getrawordinalnumber(t)},n.prototype.getticks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getminorticks=function(){},n.prototype.setsortinfo=function(t){if(null==t)return void(this._ordinalnumbersbytick=this._ticksbyordinalnumber=null);for(var e=t.ordinalnumbers,n=this._ordinalnumbersbytick=[],i=this._ticksbyordinalnumber=[],r=0,o=this._ordinalmeta.categories.length,a=math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getticknumber=function(t){var e=this._ticksbyordinalnumber;return e&&t>=0&&t=0&&t=t},n.prototype.getordinalmeta=function(){return this._ordinalmeta},n.prototype.calcniceticks=function(){},n.prototype.calcniceextent=function(){},n.type="ordinal",n}(gp);gp.registerclass(up);var xp=xi,yp=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalprecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return ud(t,this._extent)},n.prototype.normalize=function(t){return hd(t,this._extent)},n.prototype.scale=function(t){return cd(t,this._extent)},n.prototype.setextent=function(t,e){var n=this._extent;isnan(t)||(n[0]=parsefloat(t)),isnan(e)||(n[1]=parsefloat(e))},n.prototype.unionextent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setextent(e[0],e[1])},n.prototype.getinterval=function(){return this._interval},n.prototype.setinterval=function(t){this._interval=t,this._niceextent=this._extent.slice(),this._intervalprecision=ad(t)},n.prototype.getticks=function(t){var e=this._interval,n=this._extent,i=this._niceextent,r=this._intervalprecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[];var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&o.push(t?{value:xp(l+e,r)}:{value:n[1]}),o},n.prototype.getminorticks=function(t){for(var e=this.getticks(!0),n=[],i=this.getextent(),r=1;rs;){var c=xp(a.value+(s+1)*h);c>i[0]&&cr&&(r=-r,i.reverse());var o=rd(i,t,e,n);this._intervalprecision=o.intervalprecision,this._interval=o.interval,this._niceextent=o.nicetickextent}},n.prototype.calcniceextent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=math.abs(e[0]);t.fixmax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isfinite(i)||(e[0]=0,e[1]=1),this.calcniceticks(t.splitnumber,t.mininterval,t.maxinterval);var r=this._interval;t.fixmin||(e[0]=xp(math.floor(e[0]/r)*r)),t.fixmax||(e[1]=xp(math.ceil(e[1]/r)*r))},n.prototype.setniceextent=function(t,e){this._niceextent=[t,e]},n.type="interval",n}(gp);gp.registerclass(yp);var jp="undefined"!=typeof float32array,zp=jp?float32array:array,qp="__ec_stack_",kp=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]n&&(this._approxinterval=n);var o=$p.length,a=math.min(kp($p,this._approxinterval,0,o),o-1);this._interval=$p[a][1],this._minlevelunit=$p[math.max(a-1,0)][0]},n.prototype.parse=function(t){return d(t)?t:+er(t)},n.prototype.contain=function(t){return ud(this.parse(t),this._extent)},n.prototype.normalize=function(t){return hd(this.parse(t),this._extent)},n.prototype.scale=function(t){return cd(t,this._extent)},n.type="time",n}(yp),$p=[["second",wd],["minute",sd],["hour",md],["quarter-day",6*md],["half-day",12*md],["day",1.2*td],["half-week",3.5*td],["week",7*td],["month",31*td],["quarter",95*td],["half-year",cd/2],["year",cd]];gp.registerclass(jp);var qp=gp.prototype,to=yp.prototype,eo=xi,no=math.floor,io=math.ceil,ro=math.pow,oo=math.log,ao=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalscale=new yp,e._interval=0,e}return e(n,t),n.prototype.getticks=function(t){var e=this._originalscale,n=this._extent,i=e.getextent(),r=to.getticks.call(this,t);return v(r,function(t){var e=t.value,r=xi(ro(this.base,e));return r=e===n[0]&&this._fixmin?rd(r,i[0]):r,r=e===n[1]&&this._fixmax?rd(r,i[1]):r,{value:r}},this)},n.prototype.setextent=function(t,e){var n=oo(this.base);t=oo(math.max(0,t))/n,e=oo(math.max(0,e))/n,to.setextent.call(this,t,e)},n.prototype.getextent=function(){var t=this.base,e=qp.getextent.call(this);e[0]=ro(t,e[0]),e[1]=ro(t,e[1]);var n=this._originalscale,i=n.getextent();return this._fixmin&&(e[0]=rd(e[0],i[0])),this._fixmax&&(e[1]=rd(e[1],i[1])),e},n.prototype.unionextent=function(t){this._originalscale.unionextent(t);var e=this.base;t[0]=oo(t[0])/oo(e),t[1]=oo(t[1])/oo(e),qp.unionextent.call(this,t)},n.prototype.unionextentfromdata=function(t,e){this.unionextent(t.getapproximateextent(e))},n.prototype.calcniceticks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=nr(n),r=t/n*i;for(.5>=r&&(i*=10);!isnan(i)&&math.abs(i)<1&&math.abs(i)>0;)i*=10;var o=[xi(io(e[0]/i)*i),xi(no(e[1]/i)*i)];this._interval=i,this._niceextent=o}},n.prototype.calcniceextent=function(t){to.calcniceextent.call(this,t),this._fixmin=t.fixmin,this._fixmax=t.fixmax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=oo(t)/oo(this.base),ud(t,this._extent)},n.prototype.normalize=function(t){return t=oo(t)/oo(this.base),hd(t,this._extent)},n.prototype.scale=function(t){return t=cd(t,this._extent),ro(this.base,t)},n.type="log",n}(gp),so=ao.prototype;so.getminorticks=to.getminorticks,so.getlabel=to.getlabel,gp.registerclass(ao);var lo=function(){function t(t,e,n){this._prepareparams(t,e,n)}return t.prototype._prepareparams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedmin,p=this._determinedmax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minfixed:l,maxfixed:u,isblank:h}},t.prototype.modifydataminmax=function(t,e){this[ho[t]]=e},t.prototype.setdeterminedminmax=function(t,e){var n=uo[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),uo={min:"_determinedmin",max:"_determinedmax"},ho={min:"_datamin",max:"_datamax"},co=function(){function t(){}return t.prototype.getneedcrosszero=function(){var t=this.option;return!t.scale},t.prototype.getcoordsysmodel=function(){},t}(),po={isdimensionstacked:qp,enabledatastack:jp,getstackeddimension:kp},do=(object.freeze||object)({createlist:qd,getlayoutrect:ul,datastack:po,createscale:kd,mixinaxismodelcommonmethods:jd,getecdata:sc,createtextstyle:$d,createdimensions:vp,createsymbol:vc,enablehoveremphasis:ra}),fo=[],go={registerpreprocessor:gp,registerprocessor:yp,registerpostinit:vp,registerpostupdate:mp,registerupdatelifecycle:_p,registeraction:xp,registercoordinatesystem:bp,registerlayout:sp,registervisual:mp,registertransform:yp,registerloading:cp,registermap:dp,registerimpl:ip,priority:ml,componentmodel:vd,componentview:rk,seriesmodel:ik,chartview:sk,registercomponentmodel:function(t){vd.registerclass(t) },registercomponentview:function(t){rk.registerclass(t)},registerseriesmodel:function(t){ik.registerclass(t)},registerchartview:function(t){sk.registerclass(t)},registersubtypedefaulter:function(t,e){vd.registersubtypedefaulter(t,e)},registerpainter:function(t,e){gi(t,e)}},yo=1e-8,vo=[],mo=function(){function t(t){this.name=t}return t.prototype.setcenter=function(t){this._center=t},t.prototype.getcenter=function(){var t=this._center;return t||(t=this._center=this.calccenter()),t},t}(),_o=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),xo=function(){function t(t){this.type="linestring",this.points=t}return t}(),bo=function(t){function n(e,n,i){var r=t.call(this,e)||this;return r.type="geojson",r.geometries=n,r._center=i&&[i[0],i[1]],r}return e(n,t),n.prototype.calccenter=function(){for(var t,e=this.geometries,n=0,i=0;in&&(t=r,n=a)}if(t)return of(t.exterior);var s=this.getboundingrect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getboundingrect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return y(r,function(e){"polygon"===e.type?rf(e.exterior,n,i,t):y(e.points,function(e){rf(e,n,i,t)})}),isfinite(n[0])&&isfinite(n[1])&&isfinite(i[0])&&isfinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new gs(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getboundingrect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(ef(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(ef(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformto=function(t,e,n,i){var r=this.getboundingrect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new gs(t,e,n,i),s=r.calculatetransform(a),l=this.geometries,u=0;u=n&&i>=t},t.prototype.containdata=function(t){return this.scale.contain(t)},t.prototype.getextent=function(){return this._extent.slice()},t.prototype.getpixelprecision=function(t){return qi(t||this.scale.getextent(),this._extent)},t.prototype.setextent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.datatocoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onband&&"ordinal"===i.type&&(n=n.slice(),mf(n,i.count())),wi(t,ao,n,e)},t.prototype.coordtodata=function(t,e){var n=this._extent,i=this.scale;this.onband&&"ordinal"===i.type&&(n=n.slice(),mf(n,i.count()));var r=wi(t,n,ao,e);return this.scale.scale(r)},t.prototype.pointtodata=function(){},t.prototype.gettickscoords=function(t){t=t||{};var e=t.tickmodel||this.gettickmodel(),n=cf(this,e),i=n.ticks,r=v(i,function(t){return{coord:this.datatocoord("ordinal"===this.scale.type?this.scale.getrawordinalnumber(t):t),tickvalue:t}},this),o=e.get("alignwithlabel");return tf(this,r,o,t.clamp),r},t.prototype.getminortickscoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getmodel("minortick"),e=t.get("splitnumber");e>0&&100>e||(e=5);var n=this.scale.getminorticks(e),i=v(n,function(t){return v(t,function(t){return{coord:this.datatocoord(t),tickvalue:t}},this)},this);return i},t.prototype.getviewlabels=function(){return hf(this).labels},t.prototype.getlabelmodel=function(){return this.model.getmodel("axislabel")},t.prototype.gettickmodel=function(){return this.model.getmodel("axistick")},t.prototype.getbandwidth=function(){var t=this._extent,e=this.scale.getextent(),n=e[1]-e[0]+(this.onband?1:0);0===n&&(n=1);var i=math.abs(t[1]-t[0]);return math.abs(i)/n},t.prototype.calculatecategoryinterval=function(){return xf(this)},t}(),lo=2*math.pi,po=qt.cmd,oo=["top","right","bottom","left"],ro=[],no=new as,eo=new as,zo=new as,bo=new as,fo=new as,vo=[],go=new as,ho=["align","verticalalign","width","height","fontsize"],wo=new pm,uo=or(),xo=or(),yo=["x","y","rotation"],jo=function(){function t(){this._labellist=[],this._chartviewlist=[]}return t.prototype.clearlabels=function(){this._labellist=[],this._chartviewlist=[]},t.prototype._addlabel=function(t,e,n,i,r){var o=i.style,a=i.__hosttarget,s=a.textconfig||{},l=i.getcomputedtransform(),u=i.getboundingrect().plain();gs.applytransform(u,u,l),l?wo.setlocaltransform(l):(wo.x=wo.y=wo.rotation=wo.originx=wo.originy=0,wo.scalex=wo.scaley=1);var h,c=i.__hosttarget;if(c){h=c.getboundingrect().plain();var p=c.getcomputedtransform();gs.applytransform(h,h,p)}var d=h&&c.gettextguideline();this._labellist.push({label:i,labelline:d,seriesmodel:n,dataindex:t,datatype:e,layoutoption:r,computedlayoutoption:null,rect:u,hostrect:h,priority:h?h.width*h.height:0,defaultattr:{ignore:i.ignore,labelguideignore:d&&d.ignore,x:wo.x,y:wo.y,scalex:wo.scalex,scaley:wo.scaley,rotation:wo.rotation,style:{x:o.x,y:o.y,align:o.align,verticalalign:o.verticalalign,width:o.width,height:o.height,fontsize:o.fontsize},cursor:i.cursor,attachedpos:s.position,attachedrot:s.rotation}})},t.prototype.addlabelsofseries=function(t){var e=this;this._chartviewlist.push(t);var n=t.__model,i=n.get("labellayout");(t(i)||b(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.gettextcontent(),o=sc(t);r&&!r.disablelabellayout&&e._addlabel(o.dataindex,o.datatype,n,r,i)})},t.prototype.updatelayoutconfig=function(t){function e(t,e){return function(){ef(t,e)}}for(var n=t.getwidth(),i=t.getheight(),r=0;r=0&&n.attr(r.oldlayoutselect),p(h,"emphasis")>=0&&n.attr(r.oldlayoutemphasis)),ps(n,l,e,s)}else if(n.attr(l),!ed(n).valueanimation){var c=b(n.style.opacity,1);n.style.opacity=0,ds(n,{style:{opacity:c}},e,s)}if(r.oldlayout=l,n.states.select){var d=r.oldlayoutselect={};kf(d,l,yo),kf(d,n.states.select,yo)}if(n.states.emphasis){var f=r.oldlayoutemphasis={};kf(f,l,yo),kf(f,n.states.emphasis,yo)}nl(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=xo(i),o=r.oldlayout,g={points:i.shape.points};o?(i.attr({shape:o}),ps(i,{shape:g},e)):(i.setshape(g),i.style.strokepercent=0,ds(i,{style:{strokepercent:1}},e)),r.oldlayout=g}},t}(),zo=or();qd(jf);var qo=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionblur=!1,r.lastframealpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxrepaintrectcount=5,r.__dirty=!0,r.__firsttimepaint=!0,r.__used=!1,r.__drawindex=0,r.__startindex=0,r.__endindex=0,r.__prevstartindex=null,r.__prevendindex=null;var o;i=i||bm,"string"==typeof e?o=$f(e,n,i):a(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(k(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderwidth="0"),r.painter=n,r.dpr=i,r}return e(n,t),n.prototype.getelementcount=function(){return this.__endindex-this.__startindex},n.prototype.afterbrush=function(){this.__prevstartindex=this.__startindex,this.__prevendindex=this.__endindex},n.prototype.initcontext=function(){this.ctx=this.dom.getcontext("2d"),this.ctx.dpr=this.dpr},n.prototype.setunpainted=function(){this.__firsttimepaint=!0},n.prototype.createbackbuffer=function(){var t=this.dpr;this.domback=$f("back-"+this.id,this.painter,t),this.ctxback=this.domback.getcontext("2d"),1!==t&&this.ctxback.scale(t,t)},n.prototype.createrepaintrects=function(t,e,n,i){function r(t){if(t.isfinite()&&!t.iszero())if(0===o.length){var e=new gs(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;ug&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new gs(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firsttimepaint)return this.__firsttimepaint=!1,null;for(var o=[],a=this.maxrepaintrectcount,s=!1,l=new gs(0,0,0,0),u=this.__startindex;uo;o++){var a=t[o];a.__inhover&&(n||(n=this._hoverlayer=this.getlayer(ko)),i||(i=n.ctx,i.save()),zc(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.gethoverlayer=function(){return this.getlayer(ko)},t.prototype.paintone=function(t,e){jc(t,e)},t.prototype._paintlist=function(t,e,n,i){if(this._redrawid===i){n=n||!1,this._updatelayerstatus(t);var r=this._dopaintlist(t,e,n),o=r.finished,a=r.needsrefreshhover;if(this._needsmanuallycompositing&&this._compositemanually(),a&&this._painthoverlist(t),o)this.eachlayer(function(t){t.afterbrush&&t.afterbrush()});else{var s=this;ks(function(){s._paintlist(t,e,n,i)})}}},t.prototype._compositemanually=function(){var t=this.getlayer(jo).ctx,e=this._domroot.width,n=this._domroot.height;t.clearrect(0,0,e,n),this.eachbuiltinlayer(function(i){i.virtual&&t.drawimage(i.dom,0,0,e,n)})},t.prototype._dopaintlist=function(t,e,n){for(var i=this,r=[],o=this._opts.usedirtyrect,a=0;a15)break}}n.prevelclippaths&&l.restore()};if(c)if(0===c.length)m=s.__endindex;else for(var x=p.dpr,b=0;b0&&t>i[0]){for(s=0;r-1>s&&!(i[s]t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextsibling?o.insertbefore(e.dom,l.nextsibling):o.appendchild(e.dom)}else o.firstchild?o.insertbefore(e.dom,o.firstchild):o.appendchild(e.dom);e.__painter=this}},t.prototype.eachlayer=function(t,e){for(var n=this._zlevellist,i=0;i0?$o:0),this._needsmanuallycompositing),h.__builtin__||a("zlevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startindex!==o&&(h.__dirty=!0),h.__startindex=o,h.__drawindex=h.incremental?-1:o,e(o),s=h),i.__dirty&ts&&!i.__inhover&&(h.__dirty=!0,h.incremental&&h.__drawindex<0&&(h.__drawindex=o))}e(o),this.eachbuiltinlayer(function(t){!t.__used&&t.getelementcount()>0&&(t.__dirty=!0,t.__startindex=t.__endindex=t.__drawindex=0),t.__dirty&&t.__drawindex<0&&(t.__drawindex=t.__startindex)})},t.prototype.clear=function(){return this.eachbuiltinlayer(this._clearlayer),this},t.prototype._clearlayer=function(t){t.clear()},t.prototype.setbackgroundcolor=function(t){this._backgroundcolor=t,y(this._layers,function(t){t.setunpainted()})},t.prototype.configlayer=function(t,e){if(e){var n=this._layerconfig;n[t]?l(n[t],e,!0):n[t]=e;for(var i=0;is;s++){var u=a[s];zc(n,u,o,s===l-1)}return e.dom},t.prototype.getwidth=function(){return this._width},t.prototype.getheight=function(){return this._height},t}(),er=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourcemanager=new ka(this),dh(this)},n.prototype.mergeoption=function(e,n){t.prototype.mergeoption.call(this,e,n),dh(this)},n.prototype.optionupdated=function(){this._sourcemanager.dirty()},n.prototype.getsourcemanager=function(){return this._sourcemanager},n.type="dataset",n.defaultoption={serieslayoutby:qd},n}(vd),nr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(rk);qd([eg,ng]),qd(jf);var ir={average:function(t){for(var e=0,n=0,i=0;ie&&(e=t[n]);return isfinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;na.length-1&&(s=a.length-1),0>s&&(s=0),a[s]&&(r[o]=n.toglobalcoord(a[s].coord))}});else{var o=this.getdata(),a=o.getlayout("offset"),s=o.getlayout("size"),l=i.getbaseaxis().ishorizontal()?0:1;r[l]+=a+s/2}return r}return[0/0,0/0]},n.type="series.__base_bar__",n.defaultoption={z:2,coordinatesystem:"cartesian2d",legendhoverlink:!0,barminheight:0,barminangle:0,large:!1,largethreshold:400,progressive:3e3,progressivechunkmode:"mod"},n}(ik);ik.registerclass(or);var ar=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getinitialdata=function(){return qp(null,this,{useencodedefaulter:!0,createinvertedindices:!!this.get("realtimesort",!0)||null})},n.prototype.getprogressive=function(){return this.get("large")?this.get("progressive"):!1},n.prototype.getprogressivethreshold=function(){var t=this.get("progressivethreshold"),e=this.get("largethreshold");return e>t&&(t=e),t},n.prototype.brushselector=function(t,e,n){return n.rect(e.getitemlayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultoption=al(or.defaultoption,{clip:!0,roundcap:!1,showbackground:!1,backgroundstyle:{color:"rgba(180, 180, 180, 0.2)",bordercolor:null,borderwidth:0,bordertype:"solid",borderradius:0,shadowblur:0,shadowcolor:null,shadowoffsetx:0,shadowoffsety:0,opacity:1},select:{itemstyle:{bordercolor:"#212121"}},realtimesort:!1}),n}(or),sr=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startangle=0,this.endangle=2*math.pi,this.clockwise=!0}return t}(),lr=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getdefaultshape=function(){return new sr},n.prototype.buildpath=function(t,e){var n=e.cx,i=e.cy,r=math.max(e.r0||0,0),o=math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startangle,u=e.endangle,h=e.clockwise,c=2*math.pi,p=h?c>u-l:c>l-u;p||(l=u-(h?c:-c));var d=math.cos(l),f=math.sin(l),g=math.cos(u),y=math.sin(u);p?(t.moveto(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-math.pi+l,l,!h)):t.moveto(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,y*s+i,a,u-2*math.pi,u-math.pi,!h),0!==r&&t.arc(n,i,r,u,l,h)},n}(ac),ur=math.max,hr=math.min,cr=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isfirstframe=!0,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._model=t,this._removeonrenderedlistener(n),this._updatedrawmode(t);var r=t.get("coordinatesystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveels=null,this._islargedraw?this._renderlarge(t,e,n):this._rendernormal(t,e,n,i))},n.prototype.incrementalpreparerender=function(t){this._clear(),this._updatedrawmode(t),this._updatelargeclip(t)},n.prototype.incrementalrender=function(t,e){this._progressiveels=[],this._incrementalrenderlarge(t,e)},n.prototype.eachrendered=function(t){us(this._progressiveels||this.group,t)},n.prototype._updatedrawmode=function(t){var e=t.pipelinecontext.large;(null==this._islargedraw||e!==this._islargedraw)&&(this._islargedraw=e,this._clear())},n.prototype._rendernormal=function(t,e,n,i){function r(t){var e=vr[u.type](s,t),n=tg(u,o,e);return n.usestyle(v.getitemstyle()),"cartesian2d"===u.type&&n.setshape("r",m),_[t]=n,n}var o,a=this.group,s=t.getdata(),l=this._data,u=t.coordinatesystem,h=u.getbaseaxis();"cartesian2d"===u.type?o=h.ishorizontal():"polar"===u.type&&(o="angle"===h.dim);var c=t.isanimationenabled()?t:null,p=gg(t,u);p&&this._enablerealtimesort(p,s,n);var d=t.get("clip",!0)||p,f=fg(u,s);a.removeclippath();var g=t.get("roundcap",!0),y=t.get("showbackground",!0),v=t.getmodel("backgroundstyle"),m=v.get("borderradius")||0,_=[],x=this._backgroundels,b=i&&i.isinitsort,w=i&&"changeaxisorder"===i.type;s.diff(l).add(function(e){var n=s.getitemmodel(e),i=vr[u.type](s,e,n);if(y&&r(e),s.hasvalue(e)&&yr[u.type](i)){var l=!1;d&&(l=pr[u.type](f,i));var v=dr[u.type](t,s,e,i,o,c,h.model,!1,g);p&&(v.forcelabelanimation=!0),xg(v,s,e,n,i,t,o,"polar"===u.type),b?v.attr({shape:i}):p?yg(p,c,v,i,e,o,!1,!1):ds(v,{shape:i},t,e),s.setitemgraphicel(e,v),a.add(v),v.ignore=l}}).update(function(e,n){var i=s.getitemmodel(e),s=vr[u.type](s,e,i);if(y){var m=void 0;0===x.length?m=r(n):(m=x[n],m.usestyle(v.getitemstyle()),"cartesian2d"===u.type&&m.setshape("r",m),_[e]=m);var t=vr[u.type](s,e),c=mg(o,t,u);ps(m,{shape:c},c,e)}var i=l.getitemgraphicel(n);if(!s.hasvalue(e)||!yr[u.type](s))return void a.remove(i);var d=!1;if(d&&(d=pr[u.type](f,s),d&&a.remove(i)),i?ms(i):i=dr[u.type](t,s,e,s,o,c,h.model,!!i,g),p&&(i.forcelabelanimation=!0),w){var a=i.gettextcontent();if(a){var k=ed(a);null!=k.prevvalue&&(k.prevvalue=k.value)}}else xg(i,s,e,i,s,t,o,"polar"===u.type);b?i.attr({shape:s}):p?yg(p,c,i,s,e,o,!0,w):ps(i,{shape:s},t,e,null),s.setitemgraphicel(e,i),i.ignore=d,a.add(i)}).remove(function(e){var n=l.getitemgraphicel(e);n&&vs(n,t,e)}).execute();var s=this._backgroundgroup||(this._backgroundgroup=new gm);s.removeall();for(var m=0;m<_.length;++m)s.add(_[m]);a.add(s),this._backgroundels=_,this._data=s},n.prototype._renderlarge=function(t){this._clear(),wg(t,this.group),this._updatelargeclip(t)},n.prototype._incrementalrenderlarge=function(t,e){this._removebackground(),wg(e,this.group,this._progressiveels,!0)},n.prototype._updatelargeclip=function(t){var e=t.get("clip",!0)&&ag(t.coordinatesystem,!1,t),n=this.group;e?n.setclippath(e):n.removeclippath()},n.prototype._enablerealtimesort=function(t,e,n){var i=this;if(e.count()){var r=t.baseaxis;if(this._isfirstframe)this._dispatchinitsort(e,t,n),this._isfirstframe=!1;else{var o=function(t){var n=e.getitemgraphicel(t),i=n&&n.shape;return i&&math.abs(r.ishorizontal()?i.height:i.width)||0};this._onrendered=function(){i._updatesortwithinsamedata(e,o,r,n)},n.getzr().on("rendered",this._onrendered)}}},n.prototype._datasort=function(t,e,n){var i=[];return t.each(t.mapdimension(e.dim),function(t,e){var r=n(e);r=null==r?0/0:r,i.push({dataindex:e,mappedvalue:r,ordinalnumber:t})}),i.sort(function(t,e){return e.mappedvalue-t.mappedvalue}),{ordinalnumbers:v(i,function(t){return t.ordinalnumber})}},n.prototype._isorderchangedwithinsamedata=function(t,e,n){for(var i=n.scale,r=t.mapdimension(n.dim),o=number.max_value,a=0,s=i.getordinalmeta().categories.length;s>a;++a){var l=t.rawindexof(r,i.getrawordinalnumber(a)),u=0>l?number.min_value:e(t.indexofrawindex(l));if(u>o)return!0;o=u}return!1},n.prototype._isorderdifferentinview=function(t,e){for(var n=e.scale,i=n.getextent(),r=math.max(0,i[0]),o=math.min(i[1],n.getordinalmeta().categories.length-1);o>=r;++r)if(t.ordinalnumbers[r]!==n.getrawordinalnumber(r))return!0},n.prototype._updatesortwithinsamedata=function(t,e,n,i){if(this._isorderchangedwithinsamedata(t,e,n)){var r=this._datasort(t,n,e);this._isorderdifferentinview(r,n)&&(this._removeonrenderedlistener(i),i.dispatchaction({type:"changeaxisorder",componenttype:n.dim+"axis",axisid:n.index,sortinfo:r}))}},n.prototype._dispatchinitsort=function(t,e,n){var i=e.baseaxis,r=this._datasort(t,i,function(n){return t.get(t.mapdimension(e.otheraxis.dim),n)});n.dispatchaction({type:"changeaxisorder",componenttype:i.dim+"axis",isinitsort:!0,axisid:i.index,sortinfo:r})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeonrenderedlistener(e)},n.prototype.dispose=function(t,e){this._removeonrenderedlistener(e)},n.prototype._removeonrenderedlistener=function(t){this._onrendered&&(t.getzr().off("rendered",this._onrendered),this._onrendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isanimationenabled()&&n&&!this._islargedraw?(this._removebackground(),this._backgroundels=[],n.eachitemgraphicel(function(e){vs(e,t,sc(e).dataindex)})):e.removeall(),this._data=null,this._isfirstframe=!0},n.prototype._removebackground=function(){this.group.remove(this._backgroundgroup),this._backgroundgroup=null},n.type="bar",n}(sk),pr={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1; 0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=ur(e.x,t.x),s=hr(e.x+e.width,r),l=ur(e.y,t.y),u=hr(e.y+e.height,o),h=a>s,c=l>u;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}var r=hr(e.r,t.r),o=ur(e.r0,t.r0);e.r=r,e.r0=o;var a=0>r-o;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}return a}},dr={cartesian2d:function(t,e,n,i,r,o){var a=new gc({shape:h({},i),z2:1});if(a.__dataindex=n,a.name="item",o){var s=a.shape,l=r?"height":"width";s[l]=0}return a},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?lr:vi,h=new u({shape:i,z2:1});h.name="item";var c=_g(r);if(h.calculatetextposition=hg(c,{isroundcap:u===lr}),o){var p=h.shape,d=r?"r":"endangle",f={};p[d]=r?0:i.startangle,f[d]=i[d],(s?ps:ds)(h,{shape:f},o)}return h}},fr=["x","y","width","height"],gr=["cx","cy","r","startangle","endangle"],yr={cartesian2d:function(t){return!vg(t,fr)},polar:function(t){return!vg(t,gr)}},vr={cartesian2d:function(t,e,n){var i=t.getitemlayout(e),r=n?bg(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e){var n=t.getitemlayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startangle:n.startangle,endangle:n.endangle,clockwise:n.clockwise}}},mr=function(){function t(){}return t}(),_r=function(t){function n(e){var n=t.call(this,e)||this;return n.type="largebar",n}return e(n,t),n.prototype.getdefaultshape=function(){return new mr},n.prototype.buildpath=function(t,e){for(var n=e.points,i=this.basedimidx,r=1-this.basedimidx,o=[],a=[],s=this.barwidth,l=0;l=0?n:null},30,!1);qd(cg);var br=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hassymbolvisual=!0,e}return e(n,t),n.prototype.getinitialdata=function(){return qp(null,this,{useencodedefaulter:!0})},n.prototype.getlegendicon=function(t){var e=new gm,n=vc("line",0,t.itemheight/2,t.itemwidth,0,t.linestyle.stroke,!1);e.add(n),n.setstyle(t.linestyle);var i=this.getdata().getvisual("symbol"),r=this.getdata().getvisual("symbolrotate"),o="none"===i?"circle":i,a=.8*t.itemheight,s=vc(o,(t.itemwidth-a)/2,(t.itemheight-a)/2,a,a,t.itemstyle.fill);e.add(s),s.setstyle(t.itemstyle);var l="inherit"===t.iconrotate?r:t.iconrotate||0;return s.rotation=l*math.pi/180,s.setorigin([t.itemwidth/2,t.itemheight/2]),o.indexof("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.linewidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultoption={z:3,coordinatesystem:"cartesian2d",legendhoverlink:!0,clip:!0,label:{position:"top"},endlabel:{show:!1,valueanimation:!0,distance:8},linestyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothmonotone:null,symbol:"emptycircle",symbolsize:4,symbolrotate:null,showsymbol:!0,showallsymbol:"auto",connectnulls:!1,sampling:"none",animationeasing:"linear",progressive:0,hoverlayerthreshold:1/0,universaltransition:{divideshape:"clone"},triggerlineevent:!1},n}(ik),wr=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updatedata(e,n,i,r),o}return e(n,t),n.prototype._createsymbol=function(t,e,n,i,r){this.removeall();var o=vc(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scalex:i[0]/2,scaley:i[1]/2}),o.drift=ig,this._symboltype=t,this.add(o)},n.prototype.stopsymbolanimation=function(t){this.childat(0).stopanimation(null,t)},n.prototype.getsymboltype=function(){return this._symboltype},n.prototype.getsymbolpath=function(){return this.childat(0)},n.prototype.highlight=function(){va(this.childat(0))},n.prototype.downplay=function(){ma(this.childat(0))},n.prototype.setz=function(t,e){var n=this.childat(0);n.zlevel=t,n.z=e},n.prototype.setdraggable=function(t,e){var n=this.childat(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},n.prototype.updatedata=function(t,e,i,r){this.silent=!1;var o=t.getitemvisual(e,"symbol")||"circle",a=t.hostmodel,s=n.getsymbolsize(t,e),l=o!==this._symboltype,u=r&&r.disableanimation;if(l){var h=t.getitemvisual(e,"symbolkeepaspect");this._createsymbol(o,t,e,s,h)}else{var c=this.childat(0);c.silent=!1;var p={scalex:s[0]/2,scaley:s[1]/2};u?c.attr(p):ps(c,p,a,e),ms(c)}if(this._updatecommon(t,e,s,i,r),l){var c=this.childat(0);if(!u){var p={scalex:this._sizex,scaley:this._sizey,style:{opacity:c.style.opacity}};c.scalex=c.scaley=0,c.style.opacity=0,ds(c,p,a,e)}}u&&this.childat(0).stopanimation("leave")},n.prototype._updatecommon=function(t,e,n,i,r){function o(e){return i?t.getname(e):lg(t,e)}var a,s,l,u,c,p,d,f,g,y=this.childat(0),v=t.hostmodel;if(i&&(a=i.emphasisitemstyle,s=i.bluritemstyle,l=i.selectitemstyle,u=i.focus,c=i.blurscope,d=i.labelstatesmodels,f=i.hoverscale,g=i.cursorstyle,p=i.emphasisdisabled),!i||t.hasitemoption){var m=i&&i.itemmodel?i.itemmodel:t.getitemmodel(e),_=m.getmodel("emphasis");a=_.getmodel("itemstyle").getitemstyle(),l=m.getmodel(["select","itemstyle"]).getitemstyle(),s=m.getmodel(["blur","itemstyle"]).getitemstyle(),u=_.get("focus"),c=_.get("blurscope"),p=_.get("disabled"),d=zs(m),f=_.getshallow("scale"),g=m.getshallow("cursor")}var x=t.getitemvisual(e,"symbolrotate");y.attr("rotation",(x||0)*math.pi/180||0);var b=_c(t.getitemvisual(e,"symboloffset"),n);b&&(y.x=b[0],y.y=b[1]),g&&y.attr("cursor",g);var w=t.getitemvisual(e,"style"),s=w.fill;if(y instanceof cc){var m=y.style;y.usestyle(h({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},w))}else y.usestyle(y.__isemptybrush?h({},w):w),y.style.decal=null,y.setcolor(s,r&&r.symbolinnercolor),y.style.strokenoscale=!0;var t=t.getitemvisual(e,"liftz"),c=this._z2;null!=t?null==c&&(this._z2=y.z2,y.z2+=t):null!=c&&(y.z2=c,this._z2=null);var i=r&&r.usenamelabel;js(y,d,{labelfetcher:v,labeldataindex:e,defaulttext:o,inheritcolor:s,defaultopacity:w.opacity}),this._sizex=n[0]/2,this._sizey=n[1]/2;var d=y.ensurestate("emphasis");d.style=a,y.ensurestate("select").style=l,y.ensurestate("blur").style=s;var a=null==f||f===!0?math.max(1.1,3/this._sizey):isfinite(f)&&f>0?+f:1;d.scalex=this._sizex*a,d.scaley=this._sizey*a,this.setsymbolscale(1),ea(this,u,c,p)},n.prototype.setsymbolscale=function(t){this.scalex=this.scaley=t},n.prototype.fadeout=function(t,e,n){var i=this.childat(0),r=sc(this).dataindex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadelabel){var a=i.gettextcontent();a&&gs(a,{style:{opacity:0}},e,{dataindex:r,removeopt:o,cb:function(){i.removetextcontent()}})}else i.removetextcontent();gs(i,{style:{opacity:0},scalex:0,scaley:0},e,{dataindex:r,cb:t,removeopt:o})},n.getsymbolsize=function(t,e){return mc(t.getitemvisual(e,"symbolsize"))},n}(gm),sr=function(){function t(t){this.group=new gm,this._symbolctor=t||wr}return t.prototype.updatedata=function(t,e){this._progressiveels=null,e=ag(e);var n=this.group,i=t.hostmodel,r=this._data,o=this._symbolctor,a=e.disableanimation,s=kg(t),l={disableanimation:a},u=e.getsymbolpoint||function(e){return t.getitemlayout(e)};r||n.removeall(),t.diff(r).add(function(i){var r=u(i);if(dg(t,r,i,e)){var a=new o(t,i,s,l);a.setposition(r),t.setitemgraphicel(i,a),n.add(a)}}).update(function(h,c){var p=r.getitemgraphicel(c),d=u(h);if(!dg(t,d,h,e))return void n.remove(p);var f=t.getitemvisual(h,"symbol")||"circle",g=p&&p.getsymboltype&&p.getsymboltype();if(!p||g&&g!==f)n.remove(p),p=new o(t,h,s,l),p.setposition(d);else{p.updatedata(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):ps(p,y,i)}n.add(p),t.setitemgraphicel(h,p)}).remove(function(t){var e=r.getitemgraphicel(t);e&&e.fadeout(function(){n.remove(e)},i)}).execute(),this._getsymbolpoint=u,this._data=t},t.prototype.updatelayout=function(){var t=this,e=this._data;e&&e.eachitemgraphicel(function(e,n){var i=t._getsymbolpoint(n);e.setposition(i),e.markredraw()})},t.prototype.incrementalprepareupdate=function(t){this._seriesscope=kg(t),this._data=null,this.group.removeall()},t.prototype.incrementalupdate=function(t,e,n){function i(t){t.isgroup||(t.incremental=!0,t.ensurestate("emphasis").hoverlayer=!0)}this._progressiveels=[],n=ag(n);for(var r=t.start;r0&&eg(n[2*r-2],n[2*r-1]);r--);for(;r>i&&eg(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=zg(t,n,i,r,r,1,e.smooth,e.smoothmonotone,e.connectnulls)+1},n.prototype.getpointon=function(t,e){this.path||(this.createpathproxy(),this.buildpath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=qt.cmd,s="x"===e,l=[],u=0;u=v&&v>=0){var m=s?(p-i)*v+i:(c-n)*v+n;return s?[t,m]:[m,t]}n=c,i=p;break;case a.c:c=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++],y=o[u++];var _=s?dn(n,c,d,g,t,l):dn(i,p,f,y,t,l);if(_>0)for(var x=0;_>x;x++){var b=l[x];if(1>=b&&b>=0){var m=s?cn(i,p,f,y,b):cn(n,c,d,g,b);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(ac),dr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(cr),ar=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getdefaultshape=function(){return new dr},n.prototype.buildpath=function(t,e){var n=e.points,i=e.stackedonpoints,r=0,o=n.length/2,a=e.smoothmonotone;if(e.connectnulls){for(;o>0&&eg(n[2*o-2],n[2*o-1]);o--);for(;o>r&&eg(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=zg(t,n,r,o,o,1,e.smooth,a,e.connectnulls);zg(t,i,r+s-1,s,o,-1,e.stackedonsmooth,a,e.connectnulls),r+=s+1,t.closepath()}},n}(ac),kr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new gm,e=new sr;this.group.add(e.group),this._symboldraw=e,this._linegroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinatesystem,o=this.group,a=t.getdata(),s=t.getmodel("linestyle"),l=t.getmodel("areastyle"),u=a.getlayout("points")||[],h="polar"===r.type,p=this._coordsys,d=this._symboldraw,f=this._polyline,g=this._polygon,y=this._linegroup,v=t.get("animation"),m=!l.isempty(),_=l.get("origin"),x=lg(r,a,_),b=m&&hg(r,a,x),w=t.get("showsymbol"),s=t.get("connectnulls"),m=w&&!h&&yg(t,a,r),t=this._data;t&&t.eachitemgraphicel(function(t,e){t.__temp&&(o.remove(t),t.setitemgraphicel(e,null))}),w||d.remove(),o.add(y);var c,i=h?!1:t.get("step");r&&r.getarea&&t.get("clip",!0)&&(c=r.getarea(),null!=c.width?(c.x-=.1,c.y-=.1,c.width+=.2,c.height+=.2):c.r0&&(c.r0-=.5,c.r+=.5)),this._clipshapeforsymbol=c;var d=xg(a,r,n)||a.getvisual("style")[a.getvisual("drawtype")];if(f&&p.type===r.type&&i===this._step){m&&!g?g=this._newpolygon(u,b):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initorupdateendlabel(t,r,gl(d));var a=y.getclippath();if(a){var k=qg(this,r,!1,t);ds(a,{shape:k.shape},t)}else y.setclippath(qg(this,r,!0,t));w&&d.updatedata(a,{isignore:m,clipshape:c,disableanimation:!0,getsymbolpoint:function(t){return[u[2*t],u[2*t+1]]}}),bg(this._stackedonpoints,b)&&bg(this._points,u)||(v?this._doupdateanimation(a,b,r,n,i,_,s):(i&&(u=wg(u,r,i,s),b&&(b=wg(b,r,i,s))),f.setshape({points:u}),g&&g.setshape({points:u,stackedonpoints:b})))}else w&&d.updatedata(a,{isignore:m,clipshape:c,disableanimation:!0,getsymbolpoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initsymbollabelanimation(a,r,c),i&&(u=wg(u,r,i,s),b&&(b=wg(b,r,i,s))),f=this._newpolyline(u),m?g=this._newpolygon(u,b):g&&(y.remove(g),g=this._polygon=null),h||this._initorupdateendlabel(t,r,gl(d)),y.setclippath(qg(this,r,!0,t));var l=t.getmodel("emphasis"),p=l.get("focus"),o=l.get("blurscope"),r=l.get("disabled");if(f.usestyle(c(s.getlinestyle(),{fill:"none",stroke:d,linejoin:"bevel"})),ba(f,t,"linestyle"),f.style.linewidth>0&&"bolder"===t.get(["emphasis","linestyle","width"])){var n=f.getstate("emphasis").style;n.linewidth=+f.style.linewidth+1}sc(f).seriesindex=t.seriesindex,ea(f,p,o,r);var e=gg(t.get("smooth")),z=t.get("smoothmonotone");if(f.setshape({smooth:e,smoothmonotone:z,connectnulls:s}),g){var b=a.getcalculationinfo("stackedonseries"),f=0;g.usestyle(c(l.getareastyle(),{fill:d,opacity:.7,linejoin:"bevel",decal:a.getvisual("style").decal})),b&&(f=gg(b.get("smooth"))),g.setshape({smooth:e,stackedonsmooth:f,smoothmonotone:z,connectnulls:s}),ba(g,t,"areastyle"),sc(g).seriesindex=t.seriesindex,ea(g,p,o,r)}var v=function(t){i._changepolystate(t)};a.eachitemgraphicel(function(t){t&&(t.onhoverstatechange=v)}),this._polyline.onhoverstatechange=v,this._data=a,this._coordsys=r,this._stackedonpoints=b,this._points=u,this._step=i,this._valueorigin=_,t.get("triggerlineevent")&&(this.packeventdata(t,f),g&&this.packeventdata(t,g))},n.prototype.packeventdata=function(t,e){sc(e).eventdata={componenttype:"series",componentsubtype:"line",componentindex:t.componentindex,seriesindex:t.seriesindex,seriesname:t.name,seriestype:"line"}},n.prototype.highlight=function(t,e,n,i){var r=t.getdata(),o=pr(r,i);if(this._changepolystate("emphasis"),!(o instanceof array)&&null!=o&&o>=0){var a=r.getlayout("points"),s=r.getitemgraphicel(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isnan(l)||isnan(u))return;if(this._clipshapeforsymbol&&!this._clipshapeforsymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;s=new wr(r,o),s.x=l,s.y=u,s.setz(h,c);var p=s.getsymbolpath().gettextcontent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setitemgraphicel(o,s),s.stopsymbolanimation(!0),this.group.add(s)}s.highlight()}else sk.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getdata(),o=pr(r,i);if(this._changepolystate("normal"),null!=o&&o>=0){var a=r.getitemgraphicel(o);a&&(a.__temp?(r.setitemgraphicel(o,null),this.group.remove(a)):a.downplay())}else sk.prototype.downplay.call(this,t,e,n,i)},n.prototype._changepolystate=function(t){var e=this._polygon;la(this._polyline,t),e&&la(e,t)},n.prototype._newpolyline=function(t){var e=this._polyline;return e&&this._linegroup.remove(e),e=new ir({shape:{points:t},segmentignorethreshold:2,z2:10}),this._linegroup.add(e),this._polyline=e,e},n.prototype._newpolygon=function(t,e){var n=this._polygon;return n&&this._linegroup.remove(n),n=new ar({shape:{points:t,stackedonpoints:e},segmentignorethreshold:2}),this._linegroup.add(n),this._polygon=n,n},n.prototype._initsymbollabelanimation=function(t,e,n){var i,r,o=e.getbaseaxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.ishorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostmodel,l=s.get("animationduration");t(l)&&(l=l(null));var u=s.get("animationdelay")||0,h=t(u)?u(null):u;t.eachitemgraphicel(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointtocoord(c);i?(p=g.startangle,d=g.endangle,f=-y[1]/180*math.pi):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _=t(u)?u(o):l*m+h,x=s.getsymbolpath(),b=x.gettextcontent();s.attr({scalex:0,scaley:0}),s.animateto({scalex:1,scaley:1},{duration:200,settofinal:!0,delay:_}),b&&b.animatefrom({style:{opacity:0}},{duration:300,delay:_}),x.disablelabelanimation=!0}})},n.prototype._initorupdateendlabel=function(t,e,n){var i=t.getmodel("endlabel");if($g(t)){var r=t.getdata(),o=this._polyline,a=r.getlayout("points");if(!a)return o.removetextcontent(),void(this._endlabel=null);var s=this._endlabel;s||(s=this._endlabel=new _c({z2:200}),s.ignoreclip=!0,o.settextcontent(this._endlabel),o.disablelabelanimation=!0);var l=qg(a);l>=0&&(js(o,zs(t,"endlabel"),{inheritcolor:n,labelfetcher:t,labeldataindex:l,defaulttext:function(t,e,n){return null!=n?ug(r,n):lg(r,t)},enabletextsetter:!0},ty(i,e)),o.textconfig.position=null)}else this._endlabel&&(this._polyline.removetextcontent(),this._endlabel=null)},n.prototype._endlabelonduring=function(t,e,n,i,r,o,a){var s=this._endlabel,l=this._polyline;if(s){1>t&&null==i.originalx&&(i.originalx=s.x,i.originaly=s.y);var u=n.getlayout("points"),h=n.hostmodel,c=h.get("connectnulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getbaseaxis(),g=f.ishorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?d:0)*(y?-1:1),x=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=jg(u,m,b),s=w.range,m=s[1]-s[0],t=void 0;if(m>=1){if(m>1&&!c){var c=kg(u,s[0]);s.attr({x:c[0]+_,y:c[1]+x}),r&&(t=h.getrawvalue(s[0]))}else{var c=l.getpointon(m,b);c&&s.attr({x:c[0]+_,y:c[1]+x});var i=h.getrawvalue(s[0]),d=h.getrawvalue(s[1]);r&&(t=gr(n,p,i,d,w.t))}i.lastframeindex=s[0]}else{var a=1===t||i.lastframeindex>0?s[0]:0,c=kg(u,a);r&&(t=h.getrawvalue(a)),s.attr({x:c[0]+_,y:c[1]+x})}r&&ed(s).setlabeltext(t)}},n.prototype._doupdateanimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostmodel,h=ng(this._data,t,this._stackedonpoints,e,this._coordsys,n,this._valueorigin,o),c=h.current,p=h.stackedoncurrent,d=h.next,f=h.stackedonnext;if(r&&(c=wg(h.current,n,r,a),p=wg(h.stackedoncurrent,n,r,a),d=wg(h.next,n,r,a),f=wg(h.stackedonnext,n,r,a)),vg(c,d)>3e3||l&&vg(p,f)>3e3)return s.stopanimation(),s.setshape({points:d}),void(l&&(l.stopanimation(),l.setshape({points:d,stackedonpoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopanimation(),ps(s,g,u),l&&(l.setshape({points:c,stackedonpoints:p}),l.stopanimation(),ps(l,{shape:{stackedonpoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;m0){for(var s=r.getitemlayout(0),l=1;isnan(s&&s.startangle)&&l=i.r0}},n.type="pie",n}(sk),er=function(){function t(t,e){this._getdatawithencodedvisual=t,this._getrawdata=e}return t.prototype.getallnames=function(){var t=this._getrawdata();return t.maparray(t.getname)},t.prototype.containname=function(t){var e=this._getrawdata();return e.indexofname(t)>=0},t.prototype.indexofname=function(t){var e=this._getdatawithencodedvisual();return e.indexofname(t)},t.prototype.getitemvisual=function(t,e){var n=this._getdatawithencodedvisual();return n.getitemvisual(t,e)},t}(),zr=or(),br=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendvisualprovider=new er(ow(this.getdata,this),ow(this.getrawdata,this)),this._defaultlabelline(e)},n.prototype.mergeoption=function(){t.prototype.mergeoption.apply(this,arguments)},n.prototype.getinitialdata=function(){return dy(this,{coorddimensions:["value"],encodedefaulter:s($l,this)})},n.prototype.getdataparams=function(e){var n=this.getdata(),i=zr(n),r=i.seats;if(!r){var o=[];n.each(n.mapdimension("value"),function(t){o.push(t)}),r=i.seats=ji(o,n.hostmodel.get("percentprecision"))}var a=t.prototype.getdataparams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},n.prototype._defaultlabelline=function(t){gr(t,"labelline",["show"]);var e=t.labelline,n=t.emphasis.labelline;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultoption={z:2,legendhoverlink:!0,colorby:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startangle:90,minangle:0,minshowlabelangle:0,selectedoffset:10,percentprecision:2,stillshowzerosum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignto:"none",edgedistance:"25%",bleedmargin:10,distancetolabelline:5},labelline:{show:!0,length:15,length2:15,smooth:!1,minturnangle:90,maxsurfaceangle:90,linestyle:{width:1,type:"solid"}},itemstyle:{borderwidth:1,borderjoin:"round"},showemptycircle:!0,emptycirclestyle:{color:"lightgray",opacity:1},labellayout:{hideoverlap:!0},emphasis:{scale:!0,scalesize:5},avoidlabeloverlap:!0,animationtype:"expansion",animationduration:1e3,animationtypeupdate:"transition",animationeasingupdate:"cubicinout",animationdurationupdate:500,animationeasing:"cubicinout"},n}(ik);qd(gy);var fr=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hassymbolvisual=!0,e}return e(n,t),n.prototype.getinitialdata=function(){return qp(null,this,{useencodedefaulter:!0})},n.prototype.getprogressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},n.prototype.getprogressivethreshold=function(){var t=this.option.progressivethreshold;return null==t?this.option.large?1e4:this.get("progressivethreshold"):t},n.prototype.brushselector=function(t,e,n){return n.point(e.getitemlayout(t))},n.prototype.getzlevelkey=function(){return this.getdata().count()>this.getprogressivethreshold()?this.id:""},n.type="series.scatter",n.dependencies=["grid","polar","geo","singleaxis","calendar"],n.defaultoption={coordinatesystem:"cartesian2d",z:2,legendhoverlink:!0,symbolsize:10,large:!1,largethreshold:2e3,itemstyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemstyle:{bordercolor:"#212121"}},universaltransition:{divideshape:"clone"}},n}(ik),vr=4,gr=function(){function t(){}return t}(),hr=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverdataidx=-1,n}return e(n,t),n.prototype.getdefaultshape=function(){return new gr},n.prototype.reset=function(){this.notclear=!1,this._off=0},n.prototype.buildpath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolproxy,a=o.shape,s=t.getcontext?t.getcontext():t,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&u+o>=t&&h+a>=e)return s}return-1},n.prototype.contain=function(t,e){var n=this.transformcoordtolocal(t,e),i=this.getboundingrect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverdataidx=this.finddataindex(t,e);return r>=0}return this.hoverdataidx=-1,!1},n.prototype.getboundingrect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataindex=e+(t.startindex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newadded=[],this.group.removeall()},t}(),ur=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=t.getdata(),n=this._updatesymboldraw(e,t);n.updatedata(e,{clipshape:this._getclipshape(t)}),this._finished=!0},n.prototype.incrementalpreparerender=function(t){var e=t.getdata(),n=this._updatesymboldraw(e,t);n.incrementalprepareupdate(e),this._finished=!1},n.prototype.incrementalrender=function(t,e){this._symboldraw.incrementalupdate(t,e.getdata(),{clipshape:this._getclipshape(e)}),this._finished=t.end===e.getdata().count()},n.prototype.updatetransform=function(t,e,n){var i=t.getdata();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=ey("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symboldraw.updatelayout(i)},n.prototype.eachrendered=function(t){this._symboldraw&&this._symboldraw.eachrendered(t)},n.prototype._getclipshape=function(t){var e=t.coordinatesystem,n=e&&e.getarea&&e.getarea();return t.get("clip",!0)?n:null},n.prototype._updatesymboldraw=function(t,e){var n=this._symboldraw,i=e.pipelinecontext,r=i.large;return n&&r===this._islargedraw||(n&&n.remove(),n=this._symboldraw=r?new wr:new sr,this._islargedraw=r,this.group.removeall()),this.group.add(n.group),n},n.prototype.remove=function(){this._symboldraw&&this._symboldraw.remove(!0),this._symboldraw=null},n.prototype.dispose=function(){},n.type="scatter",n}(sk),xr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xaxis","yaxis"],n.layoutmode="box",n.defaultoption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containlabel:!1,backgroundcolor:"rgba(0,0,0,0)",borderwidth:1,bordercolor:"#ccc"},n}(vd),yr=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getcoordsysmodel=function(){return this.getreferringcomponents("grid",et).models[0]},n.type="cartesian2daxis",n}(vd);f(yr,co);var jr={show:!0,z:0,inverse:!1,name:"",namelocation:"end",namerotate:null,nametruncate:{maxwidth:null,ellipsis:"...",placeholder:"."},nametextstyle:{},namegap:15,silent:!1,triggerevent:!1,tooltip:{show:!1},axispointer:{},axisline:{show:!0,onzero:!0,onzeroaxisindex:null,linestyle:{color:"#6e7079",width:1,type:"solid"},symbol:["none","none"],symbolsize:[10,15]},axistick:{show:!0,inside:!1,length:5,linestyle:{width:1}},axislabel:{show:!0,inside:!1,rotate:0,showminlabel:null,showmaxlabel:null,margin:8,fontsize:12},splitline:{show:!0,linestyle:{color:["#e0e6f1"],width:1,type:"solid"}},splitarea:{show:!1,areastyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},zr=l({boundarygap:!0,deduplication:null,splitline:{show:!1},axistick:{alignwithlabel:!1,interval:"auto"},axislabel:{interval:"auto"}},jr),qr=l({boundarygap:[0,0],axisline:{show:"auto"},axistick:{show:"auto"},splitnumber:5,minortick:{show:!1,splitnumber:5,length:3,linestyle:{}},minorsplitline:{show:!1,linestyle:{color:"#f4f7fd",width:1}}},jr),kr=l({splitnumber:6,axislabel:{showminlabel:!1,showmaxlabel:!1,rich:{primary:{fontweight:"bold"}}},splitline:{show:!1}},qr),jr=c({logbase:10},qr),$r={category:zr,value:qr,time:kr,log:jr},qr={value:1,category:1,time:1,log:1},tn=function(){function t(t){this.type="cartesian",this._dimlist=[],this._axes={},this.name=t||"" }return t.prototype.getaxis=function(t){return this._axes[t]},t.prototype.getaxes=function(){return v(this._dimlist,function(t){return this._axes[t]},this)},t.prototype.getaxesbyscale=function(t){return t=t.tolowercase(),_(this.getaxes(),function(e){return e.scale.type===t})},t.prototype.addaxis=function(t){var e=t.dim;this._axes[e]=t,this._dimlist.push(e)},t}(),en=["x","y"],nn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=en,e}return e(n,t),n.prototype.calcaffinetransform=function(){this._transform=this._invtransform=null;var t=this.getaxis("x").scale,e=this.getaxis("y").scale;if(my(t)&&my(e)){var n=t.getextent(),i=e.getextent(),r=this.datatopoint([n[0],i[0]]),o=this.datatopoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invtransform=xe([],p)}}},n.prototype.getbaseaxis=function(){return this.getaxesbyscale("ordinal")[0]||this.getaxesbyscale("time")[0]||this.getaxis("x")},n.prototype.containpoint=function(t){var e=this.getaxis("x"),n=this.getaxis("y");return e.contain(e.tolocalcoord(t[0]))&&n.contain(n.tolocalcoord(t[1]))},n.prototype.containdata=function(t){return this.getaxis("x").containdata(t[0])&&this.getaxis("y").containdata(t[1])},n.prototype.containzone=function(t,e){var n=this.datatopoint(t),i=this.datatopoint(e),r=this.getarea(),o=new gs(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},n.prototype.datatopoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isfinite(i)&&null!=r&&isfinite(r))return ve(n,t,this._transform);var o=this.getaxis("x"),a=this.getaxis("y");return n[0]=o.toglobalcoord(o.datatocoord(i,e)),n[1]=a.toglobalcoord(a.datatocoord(r,e)),n},n.prototype.clampdata=function(t,e){var n=this.getaxis("x").scale,i=this.getaxis("y").scale,r=n.getextent(),o=i.getextent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=math.min(math.max(math.min(r[0],r[1]),a),math.max(r[0],r[1])),e[1]=math.min(math.max(math.min(o[0],o[1]),s),math.max(o[0],o[1])),e},n.prototype.pointtodata=function(t,e){var n=[];if(this._invtransform)return ve(n,t,this._invtransform);var i=this.getaxis("x"),r=this.getaxis("y");return n[0]=i.coordtodata(i.tolocalcoord(t[0]),e),n[1]=r.coordtodata(r.tolocalcoord(t[1]),e),n},n.prototype.getotheraxis=function(t){return this.getaxis("x"===t.dim?"y":"x")},n.prototype.getarea=function(){var t=this.getaxis("x").getglobalextent(),e=this.getaxis("y").getglobalextent(),n=math.min(t[0],t[1]),i=math.min(e[0],e[1]),r=math.max(t[0],t[1])-n,o=math.max(e[0],e[1])-i;return new gs(n,i,r,o)},n}(tn),in=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.ishorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.getglobalextent=function(t){var e=this.getextent();return e[0]=this.toglobalcoord(e[0]),e[1]=this.toglobalcoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},n.prototype.pointtodata=function(t,e){return this.coordtodata(this.tolocalcoord(t["x"===this.dim?0:1]),e)},n.prototype.setcategorysortinfo=function(t){return"category"!==this.type?!1:(this.model.option.categorysortinfo=t,void this.scale.setsortinfo(t))},n}(ko),rn=math.log,on=function(){function t(t,e,n){this.type="grid",this._coordsmap={},this._coordslist=[],this._axesmap={},this._axeslist=[],this.axispointerenabled=!0,this.dimensions=en,this._initcartesian(t,e,n),this.model=t}return t.prototype.getrect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=b(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;id(u)&&l.get("alignticks")&&null==l.get("interval")?r.push(s):(fd(u,l),id(u)&&(e=s))}r.length&&(e||(e=r.pop(),fd(e.scale,e.model)),y(r,function(t){wy(t.scale,t.model,e.scale)}))}}var i=this._axesmap;this._updatescale(t,this.model),n(i.x),n(i.y);var r={};y(i.x,function(t){my(i,"y",t,r)}),y(i.y,function(t){my(i,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){y(s,function(t){var e=t.ishorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setextent(n[i],n[1-i]),cy(t,e?a.x:a.y)})}var r=t.getboxlayoutparams(),o=!n&&t.get("containlabel"),a=ul(r,{width:e.getwidth(),height:e.getheight()});this._rect=a;var s=this._axeslist;i(),o&&(y(s,function(t){if(!t.model.get(["axislabel","inside"])){var e=ud(t);if(e){var n=t.ishorizontal()?"height":"width",i=t.model.get(["axislabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}}),i()),y(this._coordslist,function(t){t.calcaffinetransform()})},t.prototype.getaxis=function(t,e){var n=this._axesmap[t];return null!=n?n[e||0]:void 0},t.prototype.getaxes=function(){return this._axeslist.slice()},t.prototype.getcartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsmap[n]}a(t)&&(e=t.yaxisindex,t=t.xaxisindex);for(var i=0,r=this._coordslist;i0?"top":"bottom",i="center"):tr(o-an)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&an>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textalign:i,textverticalalign:r}},t.makeaxiseventdatabase=function(t){var e={componenttype:t.maintype,componentindex:t.componentindex};return e[t.maintype+"index"]=t.componentindex,e},t.islabelsilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerevent")||e&&e.show)},t}(),ln={axisline:function(t,e,n,i){var r=e.get(["axisline","show"]);if("auto"===r&&t.handleautoshown&&(r=t.handleautoshown("axisline")),r){var o=e.axis.getextent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ve(s,s,a),ve(l,l,a));var c=h({linecap:"round"},e.getmodel(["axisline","linestyle"]).getlinestyle()),p=new ci({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokecontainthreshold:t.strokecontainthreshold||5,silent:!0,z2:1});is(p.shape,p.style.linewidth),p.anid="line",n.add(p);var d=e.get(["axisline","symbol"]);if(null!=d){var f=e.get(["axisline","symbolsize"]);c(d)&&(d=[d,d]),(c(f)||d(f))&&(f=[f,f]);var g=_c(e.get(["axisline","symboloffset"])||0,f),v=f[0],m=f[1];y([{rotate:t.rotation+math.pi/2,offset:g[0],r:0},{rotate:t.rotation-math.pi/2,offset:g[1],r:math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==d[i]&&null!=d[i]){var r=vc(d[i],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*math.cos(t.rotation),y:a[1]-o*math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisticklabel:function(t,e,n,i){var r=oy(n,i,e,t),o=ny(n,i,e,t);if(dy(e,o,r),ry(n,i,e,t.tickdirection),e.get(["axislabel","hideoverlap"])){var a=wf(v(o,function(t){return{label:t,priority:t.z2,defaultattr:{ignore:t.ignore}}}));jf(a)}},axisname:function(t,e,n,i){var r=z(t.axisname,e.get("name"));if(r){var o,a=e.get("namelocation"),s=t.namedirection,l=e.getmodel("nametextstyle"),u=e.get("namegap")||0,h=e.axis.getextent(),c=h[0]>h[1]?-1:1,p=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,ly(a)?t.labeloffset+s*u:0],d=e.get("namerotate");null!=d&&(d=d*an/180);var f;ly(a)?o=sn.innertextlayout(t.rotation,null!=d?d:t.rotation,s):(o=iy(t.rotation,a,d||0,h),f=t.axisnameavailablewidth,null!=f&&(f=math.abs(f/math.sin(o.rotation)),!isfinite(f)&&(f=null)));var g=l.getfont(),y=e.get("nametruncate",!0)||{},v=y.ellipsis,m=z(t.nametruncatemaxwidth,y.maxwidth,f),_=new _c({x:p[0],y:p[1],rotation:o.rotation,silent:sn.islabelsilent(e),style:qs(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:l.gettextcolor()||e.get(["axisline","linestyle","color"]),align:l.get("align")||o.textalign,verticalalign:l.get("verticalalign")||o.textverticalalign}),z2:1});if(hs({el:_,componentmodel:e,itemname:r}),_.__fulltext=r,_.anid="name",e.get("triggerevent")){var x=sn.makeaxiseventdatabase(e);x.targettype="axisname",x.name=r,sc(_).eventdata=x}i.add(_),_.updatetransform(),n.add(_),_.decomposetransform()}}},un={},hn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axispointerclass&&hy(e),t.prototype.render.apply(this,arguments),this._doupdateaxispointerclass(e,i,!0)},n.prototype.updateaxispointer=function(t,e,n){this._doupdateaxispointerclass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axispointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeaxispointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doupdateaxispointerclass=function(t,e,i){var r=n.getaxispointerclass(this.axispointerclass);if(r){var o=uy(t);o?(this._axispointer||(this._axispointer=new r)).render(t,o,e,i):this._disposeaxispointer(e)}},n.prototype._disposeaxispointer=function(t){this._axispointer&&this._axispointer.dispose(t),this._axispointer=null},n.registeraxispointerclass=function(t,e){un[t]=e},n.getaxispointerclass=function(t){return t&&un[t]},n.type="axis",n}(rk),cn=or(),pn=["axisline","axisticklabel","axisname"],dn=["splitarea","splitline","minorsplitline"],fn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axispointerclass="cartesianaxispointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeall();var o=this._axisgroup;if(this._axisgroup=new gm,this.group.add(this._axisgroup),e.get("show")){var a=e.getcoordsysmodel(),s=_y(a,e),l=new sn(e,h({handleautoshown:function(){for(var t=a.coordinatesystem.getcartesians(),n=0;no;o++){var a=vc(e,-1,-1,2,2,n);a.attr({style:{strokenoscale:!0},z2:99,silent:!0,scalex:.5,scaley:.5});var s=-o/i*t.period+t.effectoffset;a.animate("",!0).when(t.period,{scalex:t.ripplescale/2,scaley:t.ripplescale/2}).delay(s).start(),a.animatestyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}jy(r,t)},n.prototype.updateeffectanimation=function(t){for(var e=this._effectcfg,n=this.childat(1),i=["symboltype","period","ripplescale","ripplenumber"],r=0;rd;++d){var f=t[d],g=f[0],y=f[1],v=f[2],m=i(v);c.globalalpha=m,c.drawimage(a,g-u,y-u)}if(!h.width||!h.height)return h;for(var _=c.getimagedata(0,0,h.width,h.height),x=_.data,b=0,w=x.length,s=this.minopacity,m=this.maxopacity,t=m-s;w>b;){var m=x[b+3]/256,c=4*math.floor(m*(sn-1));if(m>0){var i=o(m)?s:l;m>0&&(m=m*t+s),x[b++]=i[c],x[b++]=i[c+1],x[b++]=i[c+2],x[b++]=i[c+3]*m*256}else b+=4}return c.putimagedata(_,0,0),h},t.prototype._getbrush=function(){var t=this._brushcanvas||(this._brushcanvas=_w.createcanvas()),e=this.pointsize+this.blursize,n=2*e;t.width=n,t.height=n;var i=t.getcontext("2d");return i.clearrect(0,0,n,n),i.shadowoffsetx=n,i.shadowblur=this.blursize,i.shadowcolor="#000",i.beginpath(),i.arc(-e,e,this.pointsize,0,2*math.pi,!0),i.closepath(),i.fill(),t},t.prototype._getgradient=function(t,e){for(var n=this._gradientpixels,i=n[e]||(n[e]=new uint8clampedarray(1024)),r=[0,0,0,0],o=0,a=0;256>a;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),tn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i;e.eachcomponent("visualmap",function(e){e.eachtargetseries(function(n){n===t&&(i=e)})}),this._progressiveels=null,this.group.removeall();var r=t.coordinatesystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderoncartesianandcalendar(t,n,0,t.getdata().count()):ev(r)&&this._renderongeo(r,t,i,n)},n.prototype.incrementalpreparerender=function(){this.group.removeall()},n.prototype.incrementalrender=function(t,e,n,i){var r=e.coordinatesystem;r&&(ev(r)?this.render(e,n,i):(this._progressiveels=[],this._renderoncartesianandcalendar(e,i,t.start,t.end,!0)))},n.prototype.eachrendered=function(t){us(this._progressiveels||this.group,t)},n.prototype._renderoncartesianandcalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinatesystem,h=sg(u,"cartesian2d");if(h){var c=u.getaxis("x"),p=u.getaxis("y");o=c.getbandwidth()+.5,a=p.getbandwidth()+.5,s=c.scale.getextent(),l=p.scale.getextent()}for(var d=this.group,f=t.getdata(),g=t.getmodel(["emphasis","itemstyle"]).getitemstyle(),y=t.getmodel(["blur","itemstyle"]).getitemstyle(),v=t.getmodel(["select","itemstyle"]).getitemstyle(),m=t.get(["itemstyle","borderradius"]),_=zs(t),x=t.getmodel("emphasis"),b=x.get("focus"),w=x.get("blurscope"),s=x.get("disabled"),m=h?[f.mapdimension("x"),f.mapdimension("y"),f.mapdimension("value")]:[f.mapdimension("time"),f.mapdimension("value")],t=n;i>t;t++){var c=void 0,i=f.getitemvisual(t,"style");if(h){var d=f.get(m[0],t),a=f.get(m[1],t);if(isnan(f.get(m[2],t))||isnan(d)||isnan(a)||ds[1]||al[1])continue;var k=u.datatopoint([d,a]);c=new gc({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:i})}else{if(isnan(f.get(m[1],t)))continue;c=new gc({z2:1,shape:u.datatorect([f.get(m[0],t)]).contentshape,style:i})}if(f.hasitemoption){var l=f.getitemmodel(t),p=l.getmodel("emphasis");g=p.getmodel("itemstyle").getitemstyle(),y=l.getmodel(["blur","itemstyle"]).getitemstyle(),v=l.getmodel(["select","itemstyle"]).getitemstyle(),m=l.get(["itemstyle","borderradius"]),b=p.get("focus"),w=p.get("blurscope"),s=p.get("disabled"),_=zs(l)}c.shape.r=m;var o=t.getrawvalue(t),r="-";o&&null!=o[2]&&(r=o[2]+""),js(c,_,{labelfetcher:t,labeldataindex:t,defaultopacity:i.opacity,defaulttext:r}),c.ensurestate("emphasis").style=g,c.ensurestate("blur").style=y,c.ensurestate("select").style=v,ea(c,b,w,s),c.incremental=r,r&&(c.states.emphasis.hoverlayer=!0),d.add(c),f.setitemgraphicel(t,c),this._progressiveels&&this._progressiveels.push(c)}},n.prototype._renderongeo=function(t,e,n,i){var r=n.targetvisuals.inrange,o=n.targetvisuals.outofrange,a=e.getdata(),s=this._hmlayer||this._hmlayer||new mn;s.blursize=e.get("blursize"),s.pointsize=e.get("pointsize"),s.minopacity=e.get("minopacity"),s.maxopacity=e.get("maxopacity");var l=t.getviewrect().clone(),u=t.getroamtransform();l.applytransform(u);var h=math.max(l.x,0),c=math.max(l.y,0),p=math.min(l.width+l.x,i.getwidth()),d=math.min(l.height+l.y,i.getheight()),f=p-h,g=d-c,y=[a.mapdimension("lng"),a.mapdimension("lat"),a.mapdimension("value")],v=a.maparray(y,function(e,n,i){var r=t.datatopoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r}),m=n.getextent(),_="visualmap.continuous"===n.type?tv(m,n.option.range):qy(m,n.getpiecelist(),n.option.selected);s.update(v,f,g,r.color.getnormalizer(),{inrange:r.color.getcolormapper(),outofrange:o.color.getcolormapper()},_);var x=new cc({style:{width:f,height:g,x:h,y:c,image:s.canvas},silent:!0});this.group.add(x)},n.type="heatmap",n}(sk),cn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getinitialdata=function(){return qp(null,this,{generatecoord:"value"})},n.prototype.preventincremental=function(){var t=ma.get(this.get("coordinatesystem"));return t&&t.dimensions?"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]:void 0},n.type="series.heatmap",n.dependencies=["grid","geo","calendar"],n.defaultoption={coordinatesystem:"cartesian2d",z:2,geoindex:0,blursize:30,pointsize:20,maxopacity:1,minopacity:0,select:{itemstyle:{bordercolor:"#212121"}}},n}(ik);qd(nv);var in="\x00_ec_interaction_mutex";xp({type:"takeglobalcursor",event:"globalcursortaken",update:"update"},$);for(var dn,an=function(t){function n(e){var n=t.call(this)||this;n._zr=e;var i=ow(n._mousedownhandler,n),r=ow(n._mousemovehandler,n),o=ow(n._mouseuphandler,n),a=ow(n._mousewheelhandler,n),l=ow(n._pinchhandler,n);return n.enable=function(t,n){this.disable(),this._opt=c(s(n)||{},{zoomonmousewheel:!0,moveonmousemove:!0,moveonmousewheel:!1,preventdefaultmousemove:!0}),null==t&&(t=!0),(t===!0||"move"===t||"pan"===t)&&(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),(t===!0||"scale"===t||"zoom"===t)&&(e.on("mousewheel",a),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",l)},n}return e(n,t),n.prototype.isdragging=function(){return this._dragging},n.prototype.ispinching=function(){return this._pinching},n.prototype.setpointerchecker=function(t){this.pointerchecker=t},n.prototype.dispose=function(){this.disable()},n.prototype._mousedownhandler=function(t){if(!ne(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hosttarget||e.parent}var n=t.offsetx,i=t.offsety;this.pointerchecker&&this.pointerchecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},n.prototype._mousemovehandler=function(t){if(this._dragging&&sv("moveonmousemove",t,this._opt)&&"pinch"!==t.gestureevent&&!iv(this._zr,"globalpan")){var e=t.offsetx,n=t.offsety,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventdefaultmousemove&&ns(t.event),av(this,"pan","moveonmousemove",t,{dx:o,dy:a,oldx:i,oldy:r,newx:e,newy:n,isavailablebehavior:null})}},n.prototype._mouseuphandler=function(t){ne(t)||(this._dragging=!1)},n.prototype._mousewheelhandler=function(t){var e=sv("zoomonmousewheel",t,this._opt),n=sv("moveonmousewheel",t,this._opt),i=t.wheeldelta,r=math.abs(i),o=t.offsetx,a=t.offsety;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;ov(this,"zoom","zoomonmousewheel",t,{scale:l,originx:o,originy:a,isavailablebehavior:null})}if(n){var u=math.abs(i),h=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);ov(this,"scrollmove","moveonmousewheel",t,{scrolldelta:h,originx:o,originy:a,isavailablebehavior:null})}}},n.prototype._pinchhandler=function(t){if(!iv(this._zr,"globalpan")){var e=t.pinchscale>1?1.1:1/1.1;ov(this,"zoom",null,t,{scale:e,originx:t.pinchx,originy:t.pinchy,isavailablebehavior:null})}},n}(jw),kn={axispointer:1,tooltip:1,brush:1},ln={fill:"fill",stroke:"stroke","stroke-width":"linewidth",opacity:"opacity","fill-opacity":"fillopacity","stroke-opacity":"strokeopacity","stroke-dasharray":"linedash","stroke-dashoffset":"linedashoffset","stroke-linecap":"linecap","stroke-linejoin":"linejoin","stroke-miterlimit":"miterlimit","font-family":"fontfamily","font-size":"fontsize","font-style":"fontstyle","font-weight":"fontweight","text-anchor":"textalign",visibility:"visibility",display:"display"},pn=b(ln),on={"alignment-baseline":"textbaseline","stop-color":"stopcolor"},rn=b(on),nn=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=cv(t);this._defsusepending=[];var i=new gm;this._root=i;var r=[],o=n.getattribute("viewbox")||"",a=parsefloat(n.getattribute("width")||e.width),s=parsefloat(n.getattribute("height")||e.height);isnan(a)&&(a=null),isnan(s)&&(s=null),yv(n,i,null,!0,!1);for(var l=n.firstchild;l;)this._parsenode(l,i,r,null,!1,!1),l=l.nextsibling;_v(this._defs,this._defsusepending),this._defsusepending=[];var u,h;if(o){var c=xv(o);c.length>=4&&(u={x:parsefloat(c[0]||0),y:parsefloat(c[1]||0),width:parsefloat(c[2]),height:parsefloat(c[3])})}if(u&&null!=a&&null!=s&&(h=mv(u,{x:0,y:0,width:a,height:s}),!e.ignoreviewbox)){var p=i;i=new gm,i.add(p),p.scalex=p.scaley=h.scale,p.x=h.x,p.y=h.y}return e.ignorerootclip||null==a||null==s||i.setclippath(new gc({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewboxrect:u,viewboxtransform:h,named:r}},t.prototype._parsenode=function(t,e,n,i,r,o){var a,s=t.nodename.tolowercase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=dn[s];if(u&&j(dn,s)){a=u.call(this,t,e);var h=t.getattribute("name");if(h){var c={name:h,namedfrom:null,svgnodetaglower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedfrom:i,svgnodetaglower:s,el:a});e.add(a)}}var p=en[s];if(p&&j(en,s)){var d=p.call(this,t),f=t.getattribute("id");f&&(this._defs[f]=d)}}if(a&&a.isgroup)for(var g=t.firstchild;g;)1===g.nodetype?this._parsenode(g,a,n,l,r,o):3===g.nodetype&&o&&this._parsetext(g,a),g=g.nextsibling},t.prototype._parsetext=function(t,e){var n=new lc({style:{text:t.textcontent},silent:!0,x:this._textx||0,y:this._texty||0});fv(e,n),yv(t,n,this._defsusepending,!1,!1),vv(n,e);var i=n.style,r=i.fontsize;r&&9>r&&(i.fontsize=9,n.scalex*=r/9,n.scaley*=r/9);var o=(i.fontsize||i.fontfamily)&&[i.fontstyle,i.fontweight,(i.fontsize||12)+"px",i.fontfamily||"sans-serif"].join(" ");i.font=o;var a=n.getboundingrect();return this._textx+=a.width,e.add(n),n},t.internalfield=function(){dn={g:function(t,e){var n=new gm;return fv(e,n),yv(t,n,this._defsusepending,!1,!1),n},rect:function(t,e){var n=new gc;return fv(e,n),yv(t,n,this._defsusepending,!1,!1),n.setshape({x:parsefloat(t.getattribute("x")||"0"),y:parsefloat(t.getattribute("y")||"0"),width:parsefloat(t.getattribute("width")||"0"),height:parsefloat(t.getattribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new ni;return fv(e,n),yv(t,n,this._defsusepending,!1,!1),n.setshape({cx:parsefloat(t.getattribute("cx")||"0"),cy:parsefloat(t.getattribute("cy")||"0"),r:parsefloat(t.getattribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new ci;return fv(e,n),yv(t,n,this._defsusepending,!1,!1),n.setshape({x1:parsefloat(t.getattribute("x1")||"0"),y1:parsefloat(t.getattribute("y1")||"0"),x2:parsefloat(t.getattribute("x2")||"0"),y2:parsefloat(t.getattribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ri;return fv(e,n),yv(t,n,this._defsusepending,!1,!1),n.setshape({cx:parsefloat(t.getattribute("cx")||"0"),cy:parsefloat(t.getattribute("cy")||"0"),rx:parsefloat(t.getattribute("rx")||"0"),ry:parsefloat(t.getattribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getattribute("points");i&&(n=gv(i));var r=new bi({shape:{points:n||[]},silent:!0});return fv(e,r),yv(t,r,this._defsusepending,!1,!1),r},polyline:function(t,e){var n,i=t.getattribute("points");i&&(n=gv(i));var r=new si({shape:{points:n||[]},silent:!0});return fv(e,r),yv(t,r,this._defsusepending,!1,!1),r},image:function(t,e){var n=new cc;return fv(e,n),yv(t,n,this._defsusepending,!1,!1),n.setstyle({image:t.getattribute("xlink:href")||t.getattribute("href"),x:+t.getattribute("x"),y:+t.getattribute("y"),width:+t.getattribute("width"),height:+t.getattribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getattribute("x")||"0",i=t.getattribute("y")||"0",r=t.getattribute("dx")||"0",o=t.getattribute("dy")||"0";this._textx=parsefloat(n)+parsefloat(r),this._texty=parsefloat(i)+parsefloat(o); var a=new gm;return fv(e,a),yv(t,a,this._defsusepending,!1,!0),a},tspan:function(t,e){var n=t.getattribute("x"),i=t.getattribute("y");null!=n&&(this._textx=parsefloat(n)),null!=i&&(this._texty=parsefloat(i));var r=t.getattribute("dx")||"0",o=t.getattribute("dy")||"0",a=new gm;return fv(e,a),yv(t,a,this._defsusepending,!1,!0),this._textx+=parsefloat(r),this._texty+=parsefloat(o),a},path:function(t,e){var n=t.getattribute("d")||"",i=ts(n);return fv(e,i),yv(t,i,this._defsusepending,!1,!1),i.silent=!0,i}}}(),t}(),en={lineargradient:function(t){var e=parseint(t.getattribute("x1")||"0",10),n=parseint(t.getattribute("y1")||"0",10),i=parseint(t.getattribute("x2")||"10",10),r=parseint(t.getattribute("y2")||"0",10),o=new ri(e,n,i,r);return pv(t,o),dv(t,o),o},radialgradient:function(t){var e=parseint(t.getattribute("cx")||"0",10),n=parseint(t.getattribute("cy")||"0",10),i=parseint(t.getattribute("r")||"0",10),r=new ni(e,n,i);return pv(t,r),dv(t,r),r}},zn=/^url\(\s*#(.*?)\)/,bn=/-?([0-9]*\.)?[0-9]+([ee]-?[0-9]+)?/g,fn=/(translate|scale|rotate|skewx|skewy|matrix)\(([\-\s0-9\.ee,]*)\)/g,vn=math.pi/180,gn=/([^\s:;]+)\s*:\s*([^:;]+)/g,hn=j(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),wn=function(){function t(t,e){this.type="geosvg",this._usedgraphicmap=j(),this._freedgraphics=[],this._mapname=t,this._parsedxml=cv(e)}return t.prototype.load=function(){var t=this._firstgraphic;if(!t){t=this._firstgraphic=this._buildgraphic(this._parsedxml),this._freedgraphics.push(t),this._boundingrect=this._firstgraphic.boundingrect.clone();var e=iv(t.named),n=e.regions,i=e.regionsmap;this._regions=n,this._regionsmap=i}return{boundingrect:this._boundingrect,regions:this._regions,regionsmap:this._regionsmap}},t.prototype._buildgraphic=function(t){var e,n;try{e=t&&tv(t,{ignoreviewbox:!0,ignorerootclip:!0})||{},n=e.root,h(null!=n)}catch(i){throw new error("invalid svg format\n"+i.message)}var r=new gm;r.add(n),r.isgeosvggraphicroot=!0;var o=e.width,a=e.height,s=e.viewboxrect,l=this._boundingrect;if(!l){var u=void 0,h=void 0,c=void 0,p=void 0;if(null!=o?(u=0,c=o):s&&(u=s.x,c=s.width),null!=a?(h=0,p=a):s&&(h=s.y,p=s.height),null==u||null==h){var d=n.getboundingrect();null==u&&(u=d.x,c=d.width),null==h&&(h=d.y,p=d.height)}l=this._boundingrect=new gs(u,h,c,p)}if(s){var f=mv(s,l);n.scalex=n.scaley=f.scale,n.x=f.x,n.y=f.y}r.setclippath(new gc({shape:l.plain()}));var g=[];return y(e.named,function(t){null!=hn.get(t.svgnodetaglower)&&(g.push(t),cv(t.el))}),{root:r,boundingrect:l,named:g}},t.prototype.usegraphic=function(t){var e=this._usedgraphicmap,n=e.get(t);return n?n:(n=this._freedgraphics.pop()||this._buildgraphic(this._parsedxml),e.set(t,n),n)},t.prototype.freegraphic=function(t){var e=this._usedgraphicmap,n=e.get(t);n&&(e.removekey(t),this._freedgraphics.push(n))},t}(),un=[126,25],xn="南海诸岛",yn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],jn=0;jn0,g={api:n,geo:s,maporgeomodel:t,data:a,isvisualencodedbyvisualmap:f,isgeo:o,transforminforaw:c};"geojson"===s.resourcetype?this._buildgeojson(g):"geosvg"===s.resourcetype&&this._buildsvg(g),this._updatecontroller(t,e,n),this._updatemapselecthandler(t,l,n,i)},t.prototype._buildgeojson=function(t){function e(t,e){return e&&(t=e(t)),t&&[t[0]*s.scalex+s.x,t[1]*s.scaley+s.y]}function n(t){for(var n=[],i=!c&&h&&h.project,r=0;ri;i++){var o=t.getname(i);e.set(o,!0)}var a=te.load(this.getmaptype(),this.option.namemap,this.option.nameproperty);return y(a.regions,function(t){var i=t.name;e.get(i)||n.push(i)}),t.appendvalues([],n),t},n.prototype.gethostgeomodel=function(){var t=this.option.geoindex;return null!=t?this.ecmodel.getcomponent("geo",t):null},n.prototype.getmaptype=function(){return(this.gethostgeomodel()||this).option.map},n.prototype.getrawvalue=function(t){var e=this.getdata();return e.get(e.mapdimension("value"),t)},n.prototype.getregionmodel=function(t){var e=this.getdata();return e.getitemmodel(e.indexofname(t))},n.prototype.formattooltip=function(t){for(var e=this.getdata(),n=this.getrawvalue(t),i=e.getname(t),r=this.seriesgroup,o=[],a=0;a-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.linewidth=2),n},n.type="series.map",n.dependencies=["geo"],n.layoutmode="box",n.defaultoption={z:2,coordinatesystem:"geo",map:"",left:"center",top:"center",aspectscale:null,showlegendsymbol:!0,boundingcoords:null,center:null,zoom:1,scalelimit:null,selectedmode:!0,label:{show:!1,color:"#000"},itemstyle:{borderwidth:.5,bordercolor:"#444",areacolor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemstyle:{areacolor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemstyle:{color:"rgba(255,215,0,0.8)"}},nameproperty:"name"},n}(ik),ue=ve,he=function(t){function n(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamtransformable=new pm,n._rawtransformable=new pm,n.name=e,n}return e(n,t),n.prototype.setboundingrect=function(t,e,n,i){return this._rect=new gs(t,e,n,i),this._rect},n.prototype.getboundingrect=function(){return this._rect},n.prototype.setviewrect=function(t,e,n,i){this._transformto(t,e,n,i),this._viewrect=new gs(t,e,n,i)},n.prototype._transformto=function(t,e,n,i){var r=this.getboundingrect(),o=this._rawtransformable;o.transform=r.calculatetransform(new gs(t,e,n,i));var a=o.parent;o.parent=null,o.decomposetransform(),o.parent=a,this._updatetransform()},n.prototype.setcenter=function(t,e){t&&(this._center=[ui(t[0],e.getwidth()),ui(t[1],e.getheight())],this._updatecenterandzoom())},n.prototype.setzoom=function(t){t=t||1;var e=this.zoomlimit;e&&(null!=e.max&&(t=math.min(e.max,t)),null!=e.min&&(t=math.max(e.min,t))),this._zoom=t,this._updatecenterandzoom()},n.prototype.getdefaultcenter=function(){var t=this.getboundingrect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},n.prototype.getcenter=function(){return this._center||this.getdefaultcenter()},n.prototype.getzoom=function(){return this._zoom||1},n.prototype.getroamtransform=function(){return this._roamtransformable.getlocaltransform()},n.prototype._updatecenterandzoom=function(){var t=this._rawtransformable.getlocaltransform(),e=this._roamtransformable,n=this.getdefaultcenter(),i=this.getcenter(),r=this.getzoom();i=ve([],i,t),n=ve([],n,t),e.originx=i[0],e.originy=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scalex=e.scaley=r,this._updatetransform()},n.prototype._updatetransform=function(){var t=this._roamtransformable,e=this._rawtransformable;e.parent=t,t.updatetransform(),e.updatetransform(),ve(this.transform||(this.transform=[]),e.transform||be()),this._rawtransform=e.getlocaltransform(),this.invtransform=this.invtransform||[],xe(this.invtransform,this.transform),this.decomposetransform()},n.prototype.gettransforminfo=function(){var t=this._rawtransformable,e=this._roamtransformable,n=new pm;return n.transform=e.transform,n.decomposetransform(),{roam:{x:n.x,y:n.y,scalex:n.scalex,scaley:n.scaley},raw:{x:t.x,y:t.y,scalex:t.scalex,scaley:t.scaley}}},n.prototype.getviewrect=function(){return this._viewrect},n.prototype.getviewrectafterroam=function(){var t=this.getboundingrect().clone();return t.applytransform(this.transform),t},n.prototype.datatopoint=function(t,e,n){var i=e?this._rawtransform:this.transform;return n=n||[],i?ue(n,t,i):te(n,t)},n.prototype.pointtodata=function(t){var e=this.invtransform;return e?ue([],t,e):[t[0],t[1]]},n.prototype.converttopixel=function(t,e,n){var i=uv(e);return i===this?i.datatopoint(n):null},n.prototype.convertfrompixel=function(t,e,n){var i=uv(e);return i===this?i.pointtodata(n):null},n.prototype.containpoint=function(t){return this.getviewrectafterroam().contain(t[0],t[1])},n.dimensions=["x","y"],n}(pm),ce={geojson:{aspectscale:.75,invertlongitute:!0},geosvg:{aspectscale:1,invertlongitute:!1}},pe=["lng","lat"],de=function(t){function n(e,n,i){var r=t.call(this,e)||this;r.dimensions=pe,r.type="geo",r._namecoordmap=j(),r.map=n;var o=i.projection,a=te.load(n,i.namemap,i.nameproperty),s=te.getgeoresource(n),l=(r.resourcetype=s?s.type:null,r.regions=a.regions),u=ce[s.type];r._regionsmap=a.regionsmap,r.regions=a.regions,r.projection=o;var h;if(o)for(var c=0;c0&&(_[0]=-_[0],_[1]=-_[1]);var b=m[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var w=-math.atan2(m[1],m[0]);h[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*g+u[0],r.y=-c[1]*y+u[1],p=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insidestarttop":case"insidestart":case"insidestartbottom":r.x=g*b+u[0],r.y=u[1]+s,p=m[0]<0?"right":"left",r.originx=-g*b,r.originy=-s;break;case"insidemiddletop":case"insidemiddle":case"insidemiddlebottom":case"middle":r.x=x[0],r.y=x[1]+s,p="center",r.originy=-s;break;case"insideendtop":case"insideend":case"insideendbottom":r.x=-g*b+h[0],r.y=h[1]+s,p=m[0]>=0?"right":"left",r.originx=g*b,r.originy=-s}r.scalex=r.scaley=o,r.setstyle({verticalalign:r.__verticalalign||d,align:r.__align||p})}}}},n}(gm),me=function(){function t(t){this.group=new gm,this._linector=t||se}return t.prototype.updatedata=function(t){var e=this;this._progressiveels=null;var n=this,i=n.group,r=n._linedata;n._linedata=t,r||i.removeall();var o=om(t);t.diff(r).add(function(n){e._doadd(t,n,o)}).update(function(n,i){e._doupdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getitemgraphicel(t))}).execute()},t.prototype.updatelayout=function(){var t=this._linedata;t&&t.eachitemgraphicel(function(e,n){e.updatelayout(t,n)},this)},t.prototype.incrementalprepareupdate=function(t){this._seriesscope=om(t),this._linedata=null,this.group.removeall()},t.prototype.incrementalupdate=function(t,e){function n(t){t.isgroup||rm(t)||(t.incremental=!0,t.ensurestate("emphasis").hoverlayer=!0)}this._progressiveels=[];for(var i=t.start;i0&&(o=this._getlinelength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundtrip){i.stopanimation();var h=void 0; h=t(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animatesymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundtrip=s}},n.prototype._animatesymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updatesymbolposition(t)});i||a.done(function(){o.remove(t)}),a.start()}},n.prototype._getlinelength=function(t){return hw(t.__p1,t.__cp1)+hw(t.__cp1,t.__p2)},n.prototype._updateanimationpoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},n.prototype.updatedata=function(t,e,n){this.childat(0).updatedata(t,e,n),this._updateeffectsymbol(t,e)},n.prototype._updatesymbolposition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=mn,l=_n;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-math.atan2(h,u)-math.pi/2,("line"===this._symboltype||"rect"===this._symboltype||"roundrect"===this._symboltype)&&(void 0!==t.__lastt&&t.__lastt=0&&!(i[o]<=e);o--);o=math.min(o,r-2)}else{for(o=a;r>o&&!(i[o]>e);o++);o=math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),u=n[o],h=n[o+1];t.x=u[0]*(1-l)+l*h[0],t.y=u[1]*(1-l)+l*h[1];var c=t.__t<1?h[0]-u[0]:u[0]-h[0],p=t.__t<1?h[1]-u[1]:u[1]-h[1];t.rotation=-math.atan2(p,c)-math.pi/2,this._lastframe=o,this._lastframepercent=e,t.ignore=!1}},n}(te),de=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),ae=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverdataidx=-1,n}return e(n,t),n.prototype.reset=function(){this.notclear=!1,this._off=0},n.prototype.getdefaultstyle=function(){return{stroke:"#000",fill:null}},n.prototype.getdefaultshape=function(){return new de},n.prototype.buildpath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveto(i[n++],i[n++]);for(var a=1;o>a;a++)t.lineto(i[n++],i[n++])}}else for(n=this._off;n0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticcurveto(c,p,u,h)}else t.lineto(u,h)}this.incremental&&(this._off=n,this.notclear=!0)},n.prototype.finddataindex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.linewidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;l>c;c++){var p=i[s++],d=i[s++];if(wo(u,h,p,d,o,t,e))return a}a++}else for(var a=0,s=0;s0){var f=(u+p)/2-(h-d)*r,g=(h+d)/2-(p-u)*r;if(mo(u,h,f,g,p,d,o,t,e))return a}else if(wo(u,h,p,d,o,t,e))return a;a++}return-1},n.prototype.contain=function(t,e){var n=this.transformcoordtolocal(t,e),i=this.getboundingrect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverdataidx=this.finddataindex(t,e);return r>=0}return this.hoverdataidx=-1,!1},n.prototype.getboundingrect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(r.dataindex=e+t.__startindex)})},t.prototype._clear=function(){this._newadded=[],this.group.removeall()},t}(),le={seriestype:"lines",plan:wh(),reset:function(t){var e=t.coordinatesystem;if(e){var n=t.get("polyline"),i=t.pipelinecontext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;hf;f++)p=e.datatopoint(a[f],!1,p),s[c++]=p[0],s[c++]=p[1]}o.setlayout("linespoints",s)}else for(var h=r.start;hv;v++)y.push(e.datatopoint(a[v]));else{y[0]=e.datatopoint(a[0]),y[1]=e.datatopoint(a[1]);var m=g.get(["linestyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setitemlayout(h,y)}}}}}},pe=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getdata(),r=this._updatelinedraw(i,t),o=t.get("zlevel"),a=t.get(["effect","traillength"]),s=n.getzr(),l="svg"===s.painter.gettype();l||s.painter.getlayer(o).clear(!0),null==this._lastzlevel||l||s.configlayer(this._lastzlevel,{motionblur:!1}),this._showeffect(t)&&a>0&&(l||s.configlayer(o,{motionblur:!0,lastframealpha:math.max(math.min(a/10+.9,1),0)})),r.updatedata(i);var u=t.get("clip",!0)&&ag(t.coordinatesystem,!1,t);u?this.group.setclippath(u):this.group.removeclippath(),this._lastzlevel=o,this._finished=!0},n.prototype.incrementalpreparerender=function(t,e,n){var i=t.getdata(),r=this._updatelinedraw(i,t);r.incrementalprepareupdate(i),this._clearlayer(n),this._finished=!1},n.prototype.incrementalrender=function(t,e){this._linedraw.incrementalupdate(t,e.getdata()),this._finished=t.end===e.getdata().count()},n.prototype.eachrendered=function(t){this._linedraw&&this._linedraw.eachrendered(t)},n.prototype.updatetransform=function(t,e,n){var i=t.getdata(),r=t.pipelinecontext;if(!this._finished||r.large||r.progressiverender)return{update:!0};var o=le.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._linedraw.updatelayout(),this._clearlayer(n)},n.prototype._updatelinedraw=function(t,e){var n=this._linedraw,i=this._showeffect(e),r=!!e.get("polyline"),o=e.pipelinecontext,a=o.large;return n&&i===this._haseffet&&r===this._ispolyline&&a===this._islargedraw||(n&&n.remove(),n=this._linedraw=a?new ke:new me(r?i?ie:ce:i?te:se),this._haseffet=i,this._ispolyline=r,this._islargedraw=a),this.group.add(n.group),n},n.prototype._showeffect=function(t){return!!t.get(["effect","show"])},n.prototype._clearlayer=function(t){var e=t.getzr(),n="svg"===e.painter.gettype();n||null==this._lastzlevel||e.painter.getlayer(this._lastzlevel).clear(!0)},n.prototype.remove=function(t,e){this._linedraw&&this._linedraw.remove(),this._linedraw=null,this._clearlayer(e)},n.prototype.dispose=function(t,e){this.remove(t,e)},n.type="lines",n}(sk),oe="undefined"==typeof uint32array?array:uint32array,re="undefined"==typeof float64array?array:float64array,ne=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualstyleaccesspath="linestyle",e.visualdrawtype="stroke",e}return e(n,t),n.prototype.init=function(e){e.data=e.data||[],lm(e);var n=this._processflatcoordsarray(e.data);this._flatcoords=n.flatcoords,this._flatcoordsoffset=n.flatcoordsoffset,n.flatcoords&&(e.data=new float32array(n.count)),t.prototype.init.apply(this,arguments)},n.prototype.mergeoption=function(e){if(lm(e),e.data){var n=this._processflatcoordsarray(e.data);this._flatcoords=n.flatcoords,this._flatcoordsoffset=n.flatcoordsoffset,n.flatcoords&&(e.data=new float32array(n.count))}t.prototype.mergeoption.apply(this,arguments)},n.prototype.appenddata=function(t){var e=this._processflatcoordsarray(t.data);e.flatcoords&&(this._flatcoords?(this._flatcoords=z(this._flatcoords,e.flatcoords),this._flatcoordsoffset=z(this._flatcoordsoffset,e.flatcoordsoffset)):(this._flatcoords=e.flatcoords,this._flatcoordsoffset=e.flatcoordsoffset),t.data=new float32array(e.count)),this.getrawdata().appenddata(t.data)},n.prototype._getcoordsfromitemmodel=function(t){var e=this.getdata().getitemmodel(t),n=e.option instanceof array?e.option:e.getshallow("coords");return n},n.prototype.getlinecoordscount=function(t){return this._flatcoordsoffset?this._flatcoordsoffset[2*t+1]:this._getcoordsfromitemmodel(t).length},n.prototype.getlinecoords=function(t,e){if(this._flatcoordsoffset){for(var n=this._flatcoordsoffset[2*t],i=this._flatcoordsoffset[2*t+1],r=0;i>r;r++)e[r]=e[r]||[],e[r][0]=this._flatcoords[n+2*r],e[r][1]=this._flatcoords[n+2*r+1];return i}for(var o=this._getcoordsfromitemmodel(t),r=0;rl;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var h=0;u>h;h++){var c=t[l++],p=t[l++];r[o++]=c,r[o++]=p}}return{flatcoordsoffset:new uint32array(i.buffer,0,a),flatcoords:r,count:s}}return{flatcoordsoffset:null,flatcoords:null,count:t.length}},n.prototype.getinitialdata=function(t){var e=new bp(["value"],this);return e.hasitemoption=!1,e.initdata(t.data,[],function(t,n,i,r){if(t instanceof array)return 0/0;e.hasitemoption=!0;var o=t.value;return null!=o?o instanceof array?o[r]:o:void 0}),e},n.prototype.formattooltip=function(t){var e=this.getdata(),n=e.getitemmodel(t),i=n.get("name");if(i)return i;var r=n.get("fromname"),o=n.get("toname"),a=[];return null!=r&&a.push(r),null!=o&&a.push(o),vh("namevalue",{name:a.join(" > ")})},n.prototype.preventincremental=function(){return!!this.get(["effect","show"])},n.prototype.getprogressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},n.prototype.getprogressivethreshold=function(){var t=this.option.progressivethreshold;return null==t?this.option.large?2e4:this.get("progressivethreshold"):t},n.prototype.getzlevelkey=function(){var t=this.getmodel("effect"),e=t.get("traillength");return this.getdata().count()>this.getprogressivethreshold()?this.id:t.get("show")&&e>0?e+"":""},n.type="series.lines",n.dependencies=["grid","polar","geo","calendar"],n.defaultoption={coordinatesystem:"geo",z:2,legendhoverlink:!0,xaxisindex:0,yaxisindex:0,symbol:["none","none"],symbolsize:[10,10],geoindex:0,effect:{show:!1,period:4,constantspeed:0,symbol:"circle",symbolsize:3,loop:!0,traillength:.2},large:!1,largethreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},linestyle:{opacity:.5}},n}(ik),ee={seriestype:"lines",reset:function(t){function e(t,e){var n=t.getitemmodel(e),i=um(n.getshallow("symbol",!0)),r=um(n.getshallow("symbolsize",!0));i[0]&&t.setitemvisual(e,"fromsymbol",i[0]),i[1]&&t.setitemvisual(e,"tosymbol",i[1]),r[0]&&t.setitemvisual(e,"fromsymbolsize",r[0]),r[1]&&t.setitemvisual(e,"tosymbolsize",r[1])}var n=um(t.get("symbol")),i=um(t.get("symbolsize")),r=t.getdata();return r.setvisual("fromsymbol",n&&n[0]),r.setvisual("tosymbol",n&&n[1]),r.setvisual("fromsymbolsize",i&&i[0]),r.setvisual("tosymbolsize",i&&i[1]),{dataeach:r.hasitemoption?e:null}}};qd(hm);var ze="-->",be=function(t){return t.get("autocurveness")||null},fe=function(t,e){var n=be(t),i=20,r=[];if(d(n))i=n;else if(m(n))return void(t.__curvenesslist=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;o>a;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenesslist=r},ve=function(t,e,n){var i=[t.id,t.dataindex].join("."),r=[e.id,e.dataindex].join(".");return[n.uid,i,r].join(ze)},ge=function(t){var e=t.split(ze);return[e[0],e[2],e[1]].join(ze)},he=function(t,e){var n=ve(t.node1,t.node2,e);return e.__edgemap[n]},we=function(t,e){var n=ue(ve(t.node1,t.node2,e),e),i=ue(ve(t.node2,t.node1,e),e);return n+i},ue=function(t,e){var n=e.__edgemap;return n[t]?n[t].length:0},xe=math.pi,ye=[],je={value:function(t,e,n,i,r,o,a){var s=0,l=n.getsum("value"),u=2*math.pi/(l||a);e.eachnode(function(t){var e=t.getvalue("value"),n=u*(l?e:1)/2;s+=n,t.setlayout([i*math.cos(s)+r,i*math.sin(s)+o]),s+=n})},symbolsize:function(t,e,n,i,r,o,a){var s=0;ye.length=a;var l=bm(t);e.eachnode(function(t){var e=wm(t);isnan(e)&&(e=2),0>e&&(e=0),e*=l;var n=math.asin(e/2/i);isnan(n)&&(n=xe/2),ye[t.dataindex]=n,s+=2*n});var u=(2*xe-s)/a/2,h=0;e.eachnode(function(t){var e=u+ye[t.dataindex];h+=e,(!t.getlayout()||!t.getlayout().fixed)&&t.setlayout([i*math.cos(h)+r,i*math.sin(h)+o]),h+=e})}},ze=re,qe=[],ke=[],je=[],$e=mn,qe=ww,tz=math.abs,ez=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){var n=new sr,i=new me,r=this.group;this._controller=new an(e.getzr()),this._controllerhost={target:r},r.add(n.group),r.add(i.group),this._symboldraw=n,this._linedraw=i,this._firstrender=!0},n.prototype.render=function(t,e,n){var i=this,r=t.coordinatesystem;this._model=t;var o=this._symboldraw,a=this._linedraw,s=this.group;if(pm(r)){var l={x:r.x,y:r.y,scalex:r.scalex,scaley:r.scaley};this._firstrender?s.attr(l):ps(s,l,t)}lm(t.getgraph(),bm(t));var u=t.getdata();o.updatedata(u);var h=t.getedgedata();a.updatedata(h),this._updatenodeandlinkscale(),this._updatecontroller(t,e,n),cleartimeout(this._layouttimeout);var c=t.forcelayout,p=t.get(["force","layoutanimation"]);c&&this._startforcelayoutiteration(c,p);var d=t.get("layout");u.graph.eachnode(function(e){var n=e.dataindex,r=e.getgraphicel(),o=e.getmodel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",function(o){switch(d){case"force":c.warmup(),!i._layouting&&i._startforcelayoutiteration(c,p),c.setfixed(n),u.setitemlayout(n,[r.x,r.y]);break;case"circular":u.setitemlayout(n,[r.x,r.y]),e.setlayout({fixed:!0},!0),sm(t,"symbolsize",e,[o.offsetx,o.offsety]),i.updatelayout(t);break;case"none":default:u.setitemlayout(n,[r.x,r.y]),_m(t.getgraph(),t),i.updatelayout(t)}}).on("dragend",function(){c&&c.setunfixed(n)}),r.setdraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(sc(r).focus=e.getadjacentdataindices())}}),u.graph.eachedge(function(t){var e=t.getgraphicel(),n=t.getmodel().get(["emphasis","focus"]);e&&"adjacency"===n&&(sc(e).focus={edge:[t.dataindex],node:[t.node1.dataindex,t.node2.dataindex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotatelabel"]),g=u.getlayout("cx"),y=u.getlayout("cy");u.graph.eachnode(function(t){mm(t,f,g,y)}),this._firstrender=!1},n.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerhost=null},n.prototype._startforcelayoutiteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updatelayout(n._model),(n._layouting=!t)&&(e?n._layouttimeout=settimeout(i,16):i())})}()},n.prototype._updatecontroller=function(t,e,n){var i=this,r=this._controller,o=this._controllerhost,a=this.group;return r.setpointerchecker(function(e,i,r){var o=a.getboundingrect();return o.applytransform(a.transform),o.contain(i,r)&&!hv(e,n,t)}),pm(t.coordinatesystem)?(r.enable(t.get("roam")),o.zoomlimit=t.get("scalelimit"),o.zoom=t.coordinatesystem.getzoom(),void r.off("pan").off("zoom").on("pan",function(e){lv(o,e.dx,e.dy),n.dispatchaction({seriesid:t.id,type:"graphroam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){uv(o,e.scale,e.originx,e.originy),n.dispatchaction({seriesid:t.id,type:"graphroam",zoom:e.scale,originx:e.originx,originy:e.originy}),i._updatenodeandlinkscale(),lm(t.getgraph(),bm(t)),i._linedraw.updatelayout(),n.updatelabellayout()})):void r.disable()},n.prototype._updatenodeandlinkscale=function(){var t=this._model,e=t.getdata(),n=bm(t);e.eachitemgraphicel(function(t){t&&t.setsymbolscale(n)})},n.prototype.updatelayout=function(t){lm(t.getgraph(),bm(t)),this._symboldraw.updatelayout(),this._linedraw.updatelayout()},n.prototype.remove=function(){this._symboldraw&&this._symboldraw.remove(),this._linedraw&&this._linedraw.remove()},n.type="graph",n}(sk),nz=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesmap={},this._edgesmap={},this._directed=t||!1}return t.prototype.isdirected=function(){return this._directed},t.prototype.addnode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesmap;if(!n[om(t)]){var i=new iz(t,e);return i.hostgraph=this,this.nodes.push(i),n[om(t)]=i,i}},t.prototype.getnodebyindex=function(t){var e=this.data.getrawindex(t);return this.nodes[e]},t.prototype.getnodebyid=function(t){return this._nodesmap[om(t)]},t.prototype.addedge=function(t,e,n){var i=this._nodesmap,r=this._edgesmap;if(d(t)&&(t=this.nodes[t]),d(e)&&(e=this.nodes[e]),t instanceof iz||(t=i[om(t)]),e instanceof iz||(e=i[om(e)]),t&&e){var o=t.id+"-"+e.id,a=new rz(t,e,n);return a.hostgraph=this,this._directed&&(t.outedges.push(a),e.inedges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getedgebyindex=function(t){var e=this.edgedata.getrawindex(t);return this.edges[e]},t.prototype.getedge=function(t,e){t instanceof iz&&(t=t.id),e instanceof iz&&(e=e.id);var n=this._edgesmap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachnode=function(t,e){for(var n=this.nodes,i=n.length,r=0;i>r;r++)n[r].dataindex>=0&&t.call(e,n[r],r)},t.prototype.eachedge=function(t,e){for(var n=this.edges,i=n.length,r=0;i>r;r++)n[r].dataindex>=0&&n[r].node1.dataindex>=0&&n[r].node2.dataindex>=0&&t.call(e,n[r],r)},t.prototype.breadthfirsttraverse=function(t,e,n,i){if(e instanceof iz||(e=this._nodesmap[om(e)]),e){for(var r="out"===n?"outedges":"in"===n?"inedges":"edges",o=0;or;r++)n[r].dataindex=-1;for(var r=0,o=t.count();o>r;r++)n[t.getrawindex(r)].dataindex=r;e.filterself(function(t){var n=i[e.getrawindex(t)];return n.node1.dataindex>=0&&n.node2.dataindex>=0});for(var r=0,o=i.length;o>r;r++)i[r].dataindex=-1;for(var r=0,o=e.count();o>r;r++)i[e.getrawindex(r)].dataindex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r "),value:r.value,novalue:null==r.value})}var u=ph({series:this,dataindex:t,multipleseries:e});return u},n.prototype._updatecategoriesdata=function(){var t=v(this.option.categories||[],function(t){return null!=t.value?t:h({value:0},t)}),e=new bp(["value"],this);e.initdata(t),this._categoriesdata=e,this._categoriesmodels=e.maparray(function(t){return e.getitemmodel(t)})},n.prototype.setzoom=function(t){this.option.zoom=t},n.prototype.setcenter=function(t){this.option.center=t},n.prototype.isanimationenabled=function(){return t.prototype.isanimationenabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutanimation"]))},n.type="series.graph",n.dependencies=["grid","polar","geo","singleaxis","calendar"],n.defaultoption={z:2,coordinatesystem:"view",legendhoverlink:!0,layout:null,circular:{rotatelabel:!1},force:{initlayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgelength:30,layoutanimation:!0},left:"center",top:"center",symbol:"circle",symbolsize:10,edgesymbol:["none","none"],edgesymbolsize:10,edgelabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodescaleratio:.6,label:{show:!1,formatter:"{b}"},itemstyle:{},linestyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemstyle:{bordercolor:"#212121"}}},n}(ik),sz={type:"graphroam",event:"graphroam",update:"none"};qd(xm);var lz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._layers=[],e}return e(n,t),n.prototype.render=function(t){function e(t){return t.name}function n(e,n,s){var l=r._layers;if("remove"===e)return void o.remove(l[n]);for(var u,h=[],p=[],d=a[n].indices,f=0;fa;++a){for(var s=r[a].name,l=0;li;++i)n[i]=i;var r=t.mapdimension("single"),o=vr(n,function(e){return t.get("name",e)}),a=[];return o.buckets.each(function(e,n){e.sort(function(e,n){return t.get(r,e)-t.get(r,n)}),a.push({name:n,indices:e})}),a},n.prototype.getaxistooltipdata=function(t,e){m(t)||(t=t?[t]:[]);for(var n,i=this.getdata(),r=this.getlayerseries(),o=[],a=r.length,s=0;a>s;++s){for(var l=number.max_value,u=-1,h=r[s].indices.length,c=0;h>c;++c){var p=i.get(t[0],r[s].indices[c]),d=math.abs(p-e);l>=d&&(n=p,l=d,u=r[s].indices[c])}o.push(u)}return{dataindices:o,nestestvalue:n}},n.prototype.formattooltip=function(t){var e=this.getdata(),n=e.getname(t),i=e.get(e.mapdimension("value"),t);return vh("namevalue",{name:n,value:i})},n.type="series.themeriver",n.dependencies=["singleaxis"],n.defaultoption={z:2,colorby:"data",coordinatesystem:"singleaxis",boundarygap:["10%","10%"],singleaxisindex:0,animationeasing:"linear",label:{margin:4,show:!0,position:"left",fontsize:11},emphasis:{label:{show:!0}}},n}(ik);qd(km);var cz={color:"fill",bordercolor:"stroke"},pz={symbol:1,symbolsize:1,symbolkeepaspect:1,legendicon:1,visualmeta:1,liftz:1,decal:1},dz=or(),fz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionupdated=function(){this.currentzlevel=this.get("zlevel",!0),this.currentz=this.get("z",!0)},n.prototype.getinitialdata=function(){return qp(null,this)},n.prototype.getdataparams=function(e,n,i){var r=t.prototype.getdataparams.call(this,e,n);return i&&(r.info=dz(i).info),r},n.type="series.custom",n.dependencies=["grid","polar","geo","singleaxis","calendar"],n.defaultoption={coordinatesystem:"cartesian2d",z:2,legendhoverlink:!0,clip:!1},n}(ik),gz={position:["x","y"],scale:["scalex","scaley"],origin:["originx","originy"]},yz=b(gz),vz=(m(om,function(t,e){return t[e]=1,t},{}),om.join(", "),["","style","shape","extra"]),mz=or(),_z={},xz={settransform:function(t,e){return _z.el[t]=e,this},gettransform:function(t){return _z.el[t]},setshape:function(t,e){var n=_z.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyshape&&n.dirtyshape(),this},getshape:function(t){var e=_z.el.shape;return e?e[t]:void 0},setstyle:function(t,e){var n=_z.el,i=n.style;return i&&(i[t]=e,n.dirtystyle&&n.dirtystyle()),this},getstyle:function(t){var e=_z.el.style;return e?e[t]:void 0},setextra:function(t,e){var n=_z.el.extra||(_z.el.extra={});return n[t]=e,this},getextra:function(t){var e=_z.el.extra;return e?e[t]:void 0}},bz=or(),wz=["percent","easing","shape","style","extra"],sz="emphasis",mz="normal",tz="blur",cz="select",iz=[mz,sz,tz,cz],dz={normal:["itemstyle"],emphasis:[sz,"itemstyle"],blur:[tz,"itemstyle"],select:[cz,"itemstyle"]},az={normal:["label"],emphasis:[sz,"label"],blur:[tz,"label"],select:[cz,"label"]},kz=["x","y"],lz="e\x00\x00",pz={normal:{},emphasis:{},blur:{},select:{}},oz={cartesian2d:$m,geo:t_,single:n_,polar:r_,calendar:o_},rz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._progressiveels=null;var r=this._data,o=t.getdata(),a=this.group,s=e_(t,o,e,n);r||a.removeall(),o.diff(r).add(function(e){b_(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getitemgraphicel(e);n&&f_(n,dz(n).option,t)}).update(function(e,l){var u=r.getitemgraphicel(l);b_(n,u,e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?ag(t.coordinatesystem,!1,t):null;l?a.setclippath(l):a.removeclippath(),this._data=o},n.prototype.incrementalpreparerender=function(){this.group.removeall(),this._data=null},n.prototype.incrementalrender=function(t,e,n,i,r){function o(t){t.isgroup||(t.incremental=!0,t.ensurestate("emphasis").hoverlayer=!0) }for(var a=e.getdata(),s=e_(e,a,n,i),l=this._progressiveels=[],u=t.start;ua)return!0;if(o){var s=wy(t).seriesdatacount,l=i.getextent();return math.abs(l[0]-l[1])/s>a}return!1}return n===!0},t.prototype.makeeloption=function(){},t.prototype.createpointerel=function(t,e){var n=e.pointer;if(n){var i=nz(t).pointerel=new ki[n.type](ez(e.pointer));t.add(i)}},t.prototype.createlabelel=function(t,e,n,i){if(e.label){var r=nz(t).labelel=new _c(ez(e.label));t.add(r),ix(r,i)}},t.prototype.updatepointerel=function(t,e,n){var i=nz(t).pointerel;i&&e.pointer&&(i.setstyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updatelabelel=function(t,e,n,i){var r=nz(t).labelel;r&&(r.setstyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),ix(r,i))},t.prototype._renderhandle=function(t){if(!this._dragging&&this.updatehandletransform){var e=this._axispointermodel,n=this._api.getzr(),i=this._handle,r=e.getmodel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=zs(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ns(t.event)},onmousedown:zz(this._onhandledragmove,this,0,0),drift:zz(this._onhandledragmove,this),ondragend:zz(this._onhandledragend,this)}),n.add(i)),ox(i,e,!1),i.setstyle(r.getitemstyle(null,["color","bordercolor","borderwidth","opacity","shadowcolor","shadowblur","shadowoffsetx","shadowoffsety"]));var s=r.get("size");m(s)||(s=[s,s]),i.scalex=s[0]/2,i.scaley=s[1]/2,qh(this,"_dodispatchaxispointer",r.get("throttle")||0,"fixrate"),this._movehandletovalue(t,a)}},t.prototype._movehandletovalue=function(t,e){ex(this._axispointermodel,!e&&this._moveanimation,this._handle,rx(this.gethandletransform(t,this._axismodel,this._axispointermodel)))},t.prototype._onhandledragmove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updatehandletransform(rx(n),[t,e],this._axismodel,this._axispointermodel);this._payloadinfo=i,n.stopanimation(),n.attr(rx(i)),nz(n).lastprop=null,this._dodispatchaxispointer()}},t.prototype._dodispatchaxispointer=function(){var t=this._handle;if(t){var e=this._payloadinfo,n=this._axismodel;this._api.dispatchaction({type:"updateaxispointer",x:e.cursorpoint[0],y:e.cursorpoint[1],tooltipoption:e.tooltipoption,axesinfo:[{axisdim:n.axis.dim,axisindex:n.componentindex}]})}},t.prototype._onhandledragend=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axispointermodel.get("value");this._movehandletovalue(e),this._api.dispatchaction({type:"hidetip"})}},t.prototype.clear=function(t){this._lastvalue=null,this._laststatus=null;var e=t.getzr(),n=this._group,i=this._handle;e&&n&&(this._lastgraphickey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadinfo=null),kh(this,"_dodispatchaxispointer")},t.prototype.doclear=function(){},t.prototype.buildlabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),fz=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeeloption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationthreshold=math.pi/18);var a=o.polar,s=a.getotheraxis(o),l=s.getextent(),u=o.datatocoord(e),h=i.get("type");if(h&&"none"!==h){var c=ax(i),p=vz[h](o,a,u,l);p.style=c,t.graphickey=p.type,t.pointer=p}var d=i.get(["label","margin"]),f=gx(e,n,i,a,d);sx(t,n,i,r,f)},n}(bz),vz={line:function(t,e,n,i){return"angle"===t.dim?{type:"line",shape:px(e.coordtopoint([i[0],n]),e.coordtopoint([i[1],n]))}:{type:"circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=math.max(1,t.getbandwidth()),o=math.pi/180;return"angle"===t.dim?{type:"sector",shape:fx(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:"sector",shape:fx(e.cx,e.cy,n-r/2,n+r/2,0,2*math.pi)}}},gz=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeeloption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=yx(a,o).getotheraxis(o).getglobalextent(),u=o.toglobalcoord(o.datatocoord(e,!0));if(s&&"none"!==s){var h=ax(i),c=hz[s](o,u,l);c.style=h,t.graphickey=c.type,t.pointer=c}var p=_y(a.model,n);cx(e,t,p,n,i,r)},n.prototype.gethandletransform=function(t,e,n){var i=_y(e.axis.grid.model,e,{labelinside:!1});i.labelmargin=n.get(["handle","margin"]);var r=hx(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labeldirection<0?math.pi:0)}},n.prototype.updatehandletransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getglobalextent(!0),a=yx(r,i).getotheraxis(i).getglobalextent(),s="x"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=math.min(o[1],l[s]),l[s]=math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalalign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorpoint:h,tooltipoption:c[s]}},n}(bz),hz={line:function(t,e,n){var i=px([e,n[0]],[e,n[1]],vx(t));return{type:"line",subpixeloptimize:!0,shape:i}},shadow:function(t,e,n){var i=math.max(1,t.getbandwidth()),r=n[1]-n[0];return{type:"rect",shape:dx([e-i/2,n[0]],[i,r],vx(t))}}},wz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axispointer",n.defaultoption={show:"auto",z:50,type:"line",snap:!1,triggertooltip:!0,value:null,status:null,link:[],animation:null,animationdurationupdate:200,linestyle:{color:"#b9bec9",width:1,type:"dashed"},shadowstyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundcolor:"auto",bordercolor:null,borderwidth:0,borderradius:3},handle:{show:!1,icon:"m10.7,11.9v-1.3h9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4c19.5,16.3,15.6,12.2,10.7,11.9z m13.3,24.4h6.7v-1.2h6.6z m13.3,22h6.7v-1.2h6.6z m13.3,19.6h6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowblur:3,shadowcolor:"#aaa",shadowoffsetx:0,shadowoffsety:2,throttle:40}},n}(vd),uz=or(),xz=y,yz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getcomponent("tooltip"),r=t.get("triggeron")||i&&i.get("triggeron")||"mousemove|click";mx("axispointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexof(t)>=0)&&n({type:"updateaxispointer",currtrigger:t,x:e&&e.offsetx,y:e&&e.offsety})})},n.prototype.remove=function(t,e){tx("axispointer",e)},n.prototype.dispose=function(t,e){tx("axispointer",e)},n.type="axispointer",n}(rk),jz=or(),zz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.findaxismodel=function(t){var e,n=this.ecmodel;return n.eachcomponent(t,function(t){t.getcoordsysmodel()===this&&(e=t)},this),e},n.type="polar",n.dependencies=["radiusaxis","angleaxis"],n.defaultoption={z:0,center:["50%","50%"],radius:"80%"},n}(vd),qz=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getcoordsysmodel=function(){return this.getreferringcomponents("polar",et).models[0]},n.type="polaraxis",n}(vd);f(qz,co);var kz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="angleaxis",n}(qz),jz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="radiusaxis",n}(qz),$z=function(t){function n(e,n){return t.call(this,"radius",e,n)||this}return e(n,t),n.prototype.pointtodata=function(t,e){return this.polar.pointtodata(t,e)["radius"===this.dim?0:1]},n}(ko);$z.prototype.datatoradius=ko.prototype.datatocoord,$z.prototype.radiustodata=ko.prototype.coordtodata;var qz=or(),tb=function(t){function n(e,n){return t.call(this,"angle",e,n||[0,360])||this}return e(n,t),n.prototype.pointtodata=function(t,e){return this.polar.pointtodata(t,e)["radius"===this.dim?0:1]},n.prototype.calculatecategoryinterval=function(){var t=this,e=t.getlabelmodel(),n=t.scale,i=n.getextent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.datatocoord(o+1)-t.datatocoord(o),s=math.abs(a),l=wi(null==o?"":o+"",e.getfont(),"center","top"),u=math.max(l.height,7),h=u/s;isnan(h)&&(h=1/0);var c=math.max(0,math.floor(h)),p=qz(t.model),d=p.lastautointerval,f=p.lasttickcount;return null!=d&&null!=f&&math.abs(d-c)<=1&&math.abs(f-r)<=1&&d>c?c=d:(p.lasttickcount=r,p.lastautointerval=c),c},n}(ko);tb.prototype.datatoangle=ko.prototype.datatocoord,tb.prototype.angletodata=ko.prototype.coordtodata;var eb=["radius","angle"],nb=function(){function t(t){this.dimensions=eb,this.type="polar",this.cx=0,this.cy=0,this._radiusaxis=new $z,this._angleaxis=new tb,this.axispointerenabled=!0,this.name=t||"",this._radiusaxis.polar=this._angleaxis.polar=this}return t.prototype.containpoint=function(t){var e=this.pointtocoord(t);return this._radiusaxis.contain(e[0])&&this._angleaxis.contain(e[1])},t.prototype.containdata=function(t){return this._radiusaxis.containdata(t[0])&&this._angleaxis.containdata(t[1])},t.prototype.getaxis=function(t){var e="_"+t+"axis";return this[e]},t.prototype.getaxes=function(){return[this._radiusaxis,this._angleaxis]},t.prototype.getaxesbyscale=function(t){var e=[],n=this._angleaxis,i=this._radiusaxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getangleaxis=function(){return this._angleaxis},t.prototype.getradiusaxis=function(){return this._radiusaxis},t.prototype.getotheraxis=function(t){var e=this._angleaxis;return t===e?this._radiusaxis:e},t.prototype.getbaseaxis=function(){return this.getaxesbyscale("ordinal")[0]||this.getaxesbyscale("time")[0]||this.getangleaxis()},t.prototype.gettooltipaxes=function(t){var e=null!=t&&"auto"!==t?this.getaxis(t):this.getbaseaxis();return{baseaxes:[e],otheraxes:[this.getotheraxis(e)]}},t.prototype.datatopoint=function(t,e){return this.coordtopoint([this._radiusaxis.datatoradius(t[0],e),this._angleaxis.datatoangle(t[1],e)])},t.prototype.pointtodata=function(t,e){var n=this.pointtocoord(t);return[this._radiusaxis.radiustodata(n[0],e),this._angleaxis.angletodata(n[1],e)]},t.prototype.pointtocoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getangleaxis(),r=i.getextent(),o=math.min(r[0],r[1]),a=math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=math.atan2(-n,e)/math.pi*180,u=o>l?1:-1;o>l||l>a;)l+=360*u;return[s,l]},t.prototype.coordtopoint=function(t){var e=t[0],n=t[1]/180*math.pi,i=math.cos(n)*e+this.cx,r=-math.sin(n)*e+this.cy;return[i,r]},t.prototype.getarea=function(){var t=this.getangleaxis(),e=this.getradiusaxis(),n=e.getextent().slice();n[0]>n[1]&&n.reverse();var i=t.getextent(),r=math.pi/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startangle:-i[0]*r,endangle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return o*o>=r&&r>=a*a}}},t.prototype.converttopixel=function(t,e,n){var i=fx(e);return i===this?this.datatopoint(n):null},t.prototype.convertfrompixel=function(t,e,n){var i=fx(e);return i===this?this.pointtodata(n):null},t}(),ib={dimensions:eb,create:function(t,e){var n=[];return t.eachcomponent("polar",function(t,i){var r=new nb(i+"");r.update=gx;var o=r.getradiusaxis(),a=r.getangleaxis(),s=t.findaxismodel("radiusaxis"),l=t.findaxismodel("angleaxis");wx(o,s),wx(a,l),vx(r,t,e),n.push(r),t.coordinatesystem=r,r.model=t}),t.eachseries(function(t){if("polar"===t.get("coordinatesystem")){var e=t.getreferringcomponents("polar",et).models[0];t.coordinatesystem=e.coordinatesystem}}),n}},rb=["axisline","axislabel","axistick","minortick","splitline","minorsplitline","splitarea"],ob=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axispointerclass="polaraxispointer",e}return e(n,t),n.prototype.render=function(t){if(this.group.removeall(),t.get("show")){var e=t.axis,n=e.polar,i=n.getradiusaxis().getextent(),r=e.gettickscoords(),o=e.getminortickscoords(),a=v(e.getviewlabels(),function(t){t=s(t);var n=e.scale,i="ordinal"===n.type?n.getrawordinalnumber(t.tickvalue):t.tickvalue;return t.coord=e.datatocoord(i),t});yx(a),yx(r),y(rb,function(s){!t.get([s,"show"])||e.scale.isblank()&&"axisline"!==s||ab[s](this.group,t,n,r,o,i,a)},this)}},n.type="angleaxis",n}(hn),ab={axisline:function(t,e,n,i,r,o){var a,s=e.getmodel(["axisline","linestyle"]),l=xx(n),u=l?0:1;a=0===o[u]?new ni({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getlinestyle(),z2:1,silent:!0}):new _i({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getlinestyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axistick:function(t,e,n,i,r,o){var a=e.getmodel("axistick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[xx(n)],u=v(i,function(t){return new ci({shape:ux(n,[l,l+s],t.coord)})});t.add(zi(u,{style:c(a.getmodel("linestyle").getlinestyle(),{stroke:e.get(["axisline","linestyle","color"])})}))},minortick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getmodel("axistick"),s=e.getmodel("minortick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[xx(n)],h=[],p=0;pd?"left":"right",y=math.abs(p[1]-f)/c<.3?"middle":p[1]>f?"top":"bottom";if(s&&s[a]){var v=s[a];a(v)&&v.textstyle&&(r=new pd(v.textstyle,l,l.ecmodel))}var m=new _c({silent:sn.islabelsilent(e),style:qs(r,{x:p[0],y:p[1],fill:r.gettextcolor()||e.get(["axisline","linestyle","color"]),text:i.formattedlabel,align:g,verticalalign:y})});if(t.add(m),h){var _=sn.makeaxiseventdatabase(e);_.targettype="axislabel",_.value=i.rawlabel,sc(m).eventdata=_}},this)},splitline:function(t,e,n,i,r,o){var a=e.getmodel("splitline"),s=a.getmodel("linestyle"),l=s.get("color"),u=0;l=l instanceof array?l:[l];for(var h=[],p=0;p=v;v++){var _=v===m?i[0].coord:i[v].coord,x=u++%l.length;h[x]=h[x]||[],h[x].push(new vi({shape:{cx:n.cx,cy:n.cy,r0:f,r:g,startangle:d,endangle:-_*p,clockwise:y},silent:!0})),d=-_*p}for(var v=0;v=e.y&&t[1]<=e.y+e.height:n.contain(n.tolocalcoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointtodata=function(t){var e=this.getaxis();return[e.coordtodata(e.tolocalcoord(t["horizontal"===e.orient?0:1]))]},t.prototype.datatopoint=function(t){var e=this.getaxis(),n=this.getrect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof array&&(t=t[0]),i[r]=e.toglobalcoord(e.datatocoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.converttopixel=function(t,e,n){var i=tb(e);return i===this?this.datatopoint(n):null},t.prototype.convertfrompixel=function(t,e,n){var i=tb(e);return i===this?this.pointtodata(n):null},t}(),wb={create:eb,dimensions:xb},sb=["x","y"],mb=["width","height"],tb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeeloption=function(t,e,n,i,r){var o=n.axis,a=o.coordinatesystem,s=ib(a,1-nb(o)),l=a.datatopoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=ax(i),c=cb[u](o,l,s);c.style=h,t.graphickey=c.type,t.pointer=c}var p=qx(n);cx(e,t,p,n,i,r)},n.prototype.gethandletransform=function(t,e,n){var i=qx(e,{labelinside:!1});i.labelmargin=n.get(["handle","margin"]);var r=hx(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labeldirection<0?math.pi:0)}},n.prototype.updatehandletransform=function(t,e,n){var i=n.axis,r=i.coordinatesystem,o=nb(i),a=ib(r,o),s=[t.x,t.y];s[o]+=e[o],s[o]=math.min(a[1],s[o]),s[o]=math.max(a[0],s[o]);var l=ib(r,1-o),u=(l[1]+l[0])/2,h=[u,u];return h[o]=s[o],{x:s[0],y:s[1],rotation:t.rotation,cursorpoint:h,tooltipoption:{verticalalign:"middle"}}},n}(bz),cb={line:function(t,e,n){var i=px([e,n[0]],[e,n[1]],nb(t));return{type:"line",subpixeloptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getbandwidth(),r=n[1]-n[0];return{type:"rect",shape:dx([e-i/2,n[0]],[i,r],nb(t))}}},ib=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="single",n}(rk);qd(rb);var db=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutmode={type:"box",ignoresize:!0},e}return e(n,t),n.type="title",n.defaultoption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderwidth:0,padding:5,itemgap:10,textstyle:{fontsize:18,fontweight:"bold",color:"#464646"},subtextstyle:{fontsize:12,color:"#6e7079"}},n}(vd),ab=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){if(this.group.removeall(),t.get("show")){var i=this.group,r=t.getmodel("textstyle"),o=t.getmodel("subtextstyle"),a=t.get("textalign"),s=b(t.get("textbaseline"),t.get("textverticalalign")),l=new _c({style:qs(r,{text:t.get("text"),fill:r.gettextcolor()},{disablebox:!0}),z2:10}),u=l.getboundingrect(),h=t.get("subtext"),c=new _c({style:qs(o,{text:h,fill:o.gettextcolor(),y:u.height+t.get("itemgap"),verticalalign:"top"},{disablebox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerevent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",function(){hl(p,"_"+t.get("target"))}),d&&c.on("click",function(){hl(d,"_"+t.get("subtarget"))}),sc(l).eventdata=sc(c).eventdata=f?{componenttype:"title",componentindex:t.componentindex}:null,i.add(l),h&&i.add(c);var g=i.getboundingrect(),y=t.getboxlayoutparams();y.width=g.width,y.height=g.height;var v=ul(y,{width:n.getwidth(),height:n.getheight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markredraw();var m={align:a,verticalalign:s};l.setstyle(m),c.setstyle(m),g=i.getboundingrect();var _=v.margin,x=t.getitemstyle(["color","opacity"]);x.fill=t.get("backgroundcolor");var b=new gc({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderradius")},style:x,subpixeloptimize:!0,silent:!0});i.add(b)}},n.type="title",n}(rk);qd(ob);var kb=function(t,e){return"all"===e?{type:"all",title:t.getlocalemodel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getlocalemodel().get(["legend","selector","inverse"])}:void 0},lb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutmode={type:"box",ignoresize:!0},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergedefaultandtheme(t,n),t.selected=t.selected||{},this._updateselector(t)},n.prototype.mergeoption=function(e,n){t.prototype.mergeoption.call(this,e,n),this._updateselector(e)},n.prototype._updateselector=function(t){var e=t.selector,n=this.ecmodel;e===!0&&(e=t.selector=["all","inverse"]),m(e)&&y(e,function(t,i){c(t)&&(t={type:t}),e[i]=l(t,kb(n,t.type))})},n.prototype.optionupdated=function(){this._updatedata(this.ecmodel);var t=this._data;if(t[0]&&"single"===this.get("selectedmode")){for(var e=!1,n=0;n=0},n.prototype.getorient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},n.type="legend.plain",n.dependencies=["series"],n.defaultoption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderradius:0,borderwidth:0,padding:5,itemgap:10,itemwidth:25,itemheight:14,symbolrotate:"inherit",symbolkeepaspect:!0,inactivecolor:"#ccc",inactivebordercolor:"#ccc",inactiveborderwidth:"auto",itemstyle:{color:"inherit",opacity:"inherit",bordercolor:"inherit",borderwidth:"auto",bordercap:"inherit",borderjoin:"inherit",borderdashoffset:"inherit",bordermiterlimit:"inherit"},linestyle:{width:"auto",color:"inherit",inactivecolor:"#ccc",inactivewidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashoffset:"inherit",miterlimit:"inherit"},textstyle:{color:"#333"},selectedmode:!0,selector:!1,selectorlabel:{show:!0,borderradius:10,padding:[3,5,3,5],fontsize:12,fontfamily:"sans-serif",color:"#666",borderwidth:1,bordercolor:"#666"},emphasis:{selectorlabel:{show:!0,color:"#eee",backgroundcolor:"#666"}},selectorposition:"auto",selectoritemgap:7,selectorbuttongap:10,tooltip:{show:!1}},n}(vd),pb=s,ob=y,rb=gm,nb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlinedisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentgroup=new rb),this.group.add(this._selectorgroup=new rb),this._isfirstrender=!0},n.prototype.getcontentgroup=function(){return this._contentgroup},n.prototype.getselectorgroup=function(){return this._selectorgroup},n.prototype.render=function(t,e,n){var i=this._isfirstrender;if(this._isfirstrender=!1,this.resetinner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorposition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderinner(r,t,e,n,a,o,s);var l=t.getboxlayoutparams(),u={width:n.getwidth(),height:n.getheight()},h=t.get("padding"),p=ul(l,u,h),d=this.layoutinner(t,r,p,i,a,s),f=ul(c({width:d.width,height:d.height},l),u,h);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markredraw(),this.group.add(this._backgroundel=ab(d,t))}},n.prototype.resetinner=function(){this.getcontentgroup().removeall(),this._backgroundel&&this.group.remove(this._backgroundel),this.getselectorgroup().removeall()},n.prototype.renderinner=function(t,e,n,i,r,o,a){var s=this.getcontentgroup(),l=j(),u=e.get("selectedmode"),c=[];n.eachrawseries(function(t){!t.get("legendhoverlink")&&c.push(t.id)}),ob(e.getdata(),function(r,o){var a=r.get("name");if(!this.newlinedisabled&&(""===a||"\n"===a)){var p=new rb;return p.newline=!0,void s.add(p) }var d=n.getseriesbyname(a)[0];if(!l.get(a))if(d){var f=d.getdata(),g=f.getvisual("legendlinestyle")||{},y=f.getvisual("legendicon"),v=f.getvisual("style"),m=this._createitem(d,a,o,r,e,t,g,v,y,u,i);m.on("click",pb(ub,a,null,i,c)).on("mouseover",pb(cb,d.name,null,i,c)).on("mouseout",pb(pb,d.name,null,i,c)),l.set(a,!0)}else n.eachrawseries(function(n){if(!l.get(a)&&n.legendvisualprovider){var s=n.legendvisualprovider;if(!s.containname(a))return;var p=s.indexofname(a),d=s.getitemvisual(p,"style"),f=s.getitemvisual(p,"legendicon"),g=en(d.fill);g&&0===g[3]&&(g[3]=.2,d=h(h({},d),{fill:xn(g,"rgba")}));var y=this._createitem(n,a,o,r,e,t,{},d,f,u,i);y.on("click",pb(ub,null,a,i,c)).on("mouseover",pb(cb,null,a,i,c)).on("mouseout",pb(pb,null,a,i,c)),l.set(a,!0)}},this)},this),r&&this._createselector(r,e,i,o,a)},n.prototype._createselector=function(t,e,n){var i=this.getselectorgroup();ob(t,function(t){var r=t.type,o=new _c({style:{x:0,y:0,align:"center",verticalalign:"middle"},onclick:function(){n.dispatchaction({type:"all"===r?"legendallselect":"legendinverseselect"})}});i.add(o);var a=e.getmodel("selectorlabel"),s=e.getmodel(["emphasis","selectorlabel"]);js(o,{normal:a,emphasis:s},{defaulttext:t.title}),ra(o)})},n.prototype._createitem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualdrawtype,p=r.get("itemwidth"),d=r.get("itemheight"),f=r.isselected(e),g=i.get("symbolrotate"),y=i.get("symbolkeepaspect"),v=i.get("icon");l=v||l||"roundrect";var m=sb(l,i,a,s,c,f,h),_=new rb,x=i.getmodel("textstyle");if(!t(t.getlegendicon)||v&&"inherit"!==v){var b="inherit"===v&&t.getdata().getvisual("symbol")?"inherit"===g?t.getdata().getvisual("symbolrotate"):g:0;_.add(lb({itemwidth:p,itemheight:d,icon:l,iconrotate:b,itemstyle:m.itemstyle,linestyle:m.linestyle,symbolkeepaspect:y}))}else _.add(t.getlegendicon({itemwidth:p,itemheight:d,icon:l,iconrotate:g,itemstyle:m.itemstyle,linestyle:m.linestyle,symbolkeepaspect:y}));var w="left"===o?p+5:-5,s=o,m=r.get("formatter"),i=e;c(m)&&m?i=m.replace("{name}",null!=e?e:""):t(m)&&(i=m(e));var d=i.get("inactivecolor");_.add(new _c({style:qs(x,{text:i,x:w,y:d/2,fill:f?x.gettextcolor():d,align:s,verticalalign:"middle"})}));var a=new gc({shape:_.getboundingrect(),invisible:!0}),k=i.getmodel("tooltip");return k.get("show")&&hs({el:a,componentmodel:r,itemname:e,itemtooltipoption:k.option}),_.add(a),_.eachchild(function(t){t.silent=!0}),a.silent=!u,this.getcontentgroup().add(_),ra(_),_.__legenddataindex=n,_},n.prototype.layoutinner=function(t,e,n,i,r,o){var a=this.getcontentgroup(),s=this.getselectorgroup();bd(t.get("orient"),a,t.get("itemgap"),n.width,n.height);var l=a.getboundingrect(),u=[-l.x,-l.y];if(s.markredraw(),a.markredraw(),r){bd("horizontal",s,t.get("selectoritemgap",!0));var h=s.getboundingrect(),c=[-h.x,-h.y],p=t.get("selectorbuttongap",!0),d=t.getorient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=math.max(l[g],h[g]),v[y]=math.min(0,h[y]+c[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getboundingrect()},n.prototype.remove=function(){this.getcontentgroup().removeall(),this._isfirstrender=!0},n.type="legend.plain",n}(rk),eb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setscrolldataindex=function(t){this.option.scrolldataindex=t},n.prototype.init=function(e,n,i){var r=jl(e);t.prototype.init.call(this,e,n,i),vb(this,e,r)},n.prototype.mergeoption=function(e,n){t.prototype.mergeoption.call(this,e,n),vb(this,this.option,e)},n.type="legend.scroll",n.defaultoption=al(lb.defaultoption,{scrolldataindex:0,pagebuttonitemgap:5,pagebuttongap:null,pagebuttonposition:"end",pageformatter:"{current}/{total}",pageicons:{horizontal:["m0,0l12,-10l12,10z","m0,0l-12,-10l-12,10z"],vertical:["m0,0l20,0l10,-20z","m0,0l20,0l10,20z"]},pageiconcolor:"#2f4554",pageiconinactivecolor:"#aaa",pageiconsize:15,pagetextstyle:{color:"#333"},animationdurationupdate:800}),n}(lb),zb=gm,bb=["width","height"],fb=["x","y"],vb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlinedisabled=!0,e._currentindex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containergroup=new zb),this._containergroup.add(this.getcontentgroup()),this.group.add(this._controllergroup=new zb)},n.prototype.resetinner=function(){t.prototype.resetinner.call(this),this._controllergroup.removeall(),this._containergroup.removeclippath(),this._containergroup.__rectsize=null},n.prototype.renderinner=function(e,n,i,r,o,a,s){function l(t,e){var i=t+"dataindex",o=zs(n.get("pageicons",!0)[n.getorient().name][e],{onclick:ow(u._pagego,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,h.add(o)}var u=this;t.prototype.renderinner.call(this,e,n,i,r,o,a,s);var h=this._controllergroup,c=n.get("pageiconsize",!0),p=m(c)?c:[c,c];l("pageprev",0);var d=n.getmodel("pagetextstyle");h.add(new _c({name:"pagetext",style:{text:"xx/xx",fill:d.gettextcolor(),font:d.getfont(),verticalalign:"middle",align:"center"},silent:!0})),l("pagenext",1)},n.prototype.layoutinner=function(t,e,n,i,r,o){var a=this.getselectorgroup(),l=t.getorient().index,u=bb[l],h=fb[l],c=bb[1-l],p=fb[1-l];r&&bd("horizontal",a,t.get("selectoritemgap",!0));var d=t.get("selectorbuttongap",!0),f=a.getboundingrect(),g=[-f.x,-f.y],y=s(n);r&&(y[u]=n[u]-f[u]-d);var v=this._layoutcontentandcontroller(t,i,y,l,u,c,p,h);if(r){if("end"===o)g[l]+=v[u]+d;else{var m=f[u]+d;g[l]-=m,v[h]-=m}v[u]+=f[u]+d,g[1-l]+=v[p]+v[c]/2-f[c]/2,v[c]=math.max(v[c],f[c]),v[p]=math.min(v[p],f[p]+g[1-l]),a.x=g[0],a.y=g[1],a.markredraw()}return v},n.prototype._layoutcontentandcontroller=function(t,e,n,i,r,o,a,s){var l=this.getcontentgroup(),u=this._containergroup,h=this._controllergroup;bd(t.get("orient"),l,t.get("itemgap"),i?n.width:null,i?null:n.height),bd("horizontal",h,t.get("pagebuttonitemgap",!0));var c=l.getboundingrect(),p=h.getboundingrect(),d=this._showcontroller=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=b(t.get("pagebuttongap",!0),t.get("itemgap",!0));if(d){var m=t.get("pagebuttonposition",!0);"end"===m?y[i]+=n[r]-p[r]:g[i]+=p[r]+v}y[1-i]+=c[o]/2-p[o]/2,l.setposition(f),u.setposition(g),h.setposition(y);var _={x:0,y:0};if(_[r]=d?n[r]:c[r],_[o]=math.max(c[o],p[o]),_[a]=math.min(0,p[a]+y[1-i]),u.__rectsize=n[r],d){var x={x:0,y:0};x[r]=math.max(n[r]-p[r]-v,0),x[o]=_[o],u.setclippath(new gc({shape:x})),u.__rectsize=x[r]}else h.eachchild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getpageinfo(t);return null!=b.pageindex&&ps(l,{x:b.contentposition[0],y:b.contentposition[1]},d?t:null),this._updatepageinfoview(t,b),_},n.prototype._pagego=function(t,e,n){var i=this._getpageinfo(e)[t];null!=i&&n.dispatchaction({type:"legendscroll",scrolldataindex:i,legendid:e.id})},n.prototype._updatepageinfoview=function(t,e){var n=this._controllergroup;y(["pageprev","pagenext"],function(i){var r=i+"dataindex",o=null!=e[r],a=n.childofname(i);a&&(a.setstyle("fill",o?t.get("pageiconcolor",!0):t.get("pageiconinactivecolor",!0)),a.cursor=o?"pointer":"default")});var i=n.childofname("pagetext"),r=t.get("pageformatter"),o=e.pageindex,a=null!=o?o+1:0,s=e.pagecount;i&&r&&i.setstyle("text",c(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},n.prototype._getpageinfo=function(t){function e(t){if(t){var e=t.getboundingrect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legenddataindex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrolldataindex",!0),r=this.getcontentgroup(),o=this._containergroup.__rectsize,a=t.getorient().index,s=bb[a],l=fb[a],u=this._findtargetitemindex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentposition:[r.x,r.y],pagecount:d,pageindex:d-1,pageprevdataindex:null,pagenextdataindex:null};if(!c)return f;var g=e(c);f.contentposition[a]=-g.s;for(var y=u+1,v=g,m=g,_=null;p>=y;++y)_=e(h[y]),(!_&&m.e>v.s+o||_&&!n(_,v.s))&&(v=m.i>v.i?m:_,v&&(null==f.pagenextdataindex&&(f.pagenextdataindex=v.i),++f.pagecount)),m=_;for(var y=u-1,v=g,m=g,_=null;y>=-1;--y)_=e(h[y]),_&&n(m,_.s)||!(v.i=0?this._tryshow(n,i):"leave"===t&&this._hide(i))},this))},n.prototype._keepshow=function(){var t=this._tooltipmodel,e=this._ecmodel,n=this._api,i=t.get("triggeron");if(null!=this._lastx&&null!=this._lasty&&"none"!==i&&"click"!==i){var r=this;cleartimeout(this._refreshupdatetimeout),this._refreshupdatetimeout=settimeout(function(){!n.isdisposed()&&r.manuallyshowtip(t,e,n,{x:r._lastx,y:r._lasty,databycoordsys:r._lastdatabycoordsys})})}},n.prototype.manuallyshowtip=function(t,e,n,i){if(i.from!==this.uid&&!cw.node&&n.getdom()){var r=nb(i,n);this._ticket="";var o=i.databycoordsys,a=vb(i,e,n);if(a){var s=a.el.getboundingrect().clone();s.applytransform(a.el.transform),this._tryshow({offsetx:s.x+s.width/2,offsety:s.y+s.height/2,target:a.el,position:i.position,positiondefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=qb;l.x=i.x,l.y=i.y,l.update(),sc(l).tooltipconfig={name:null,option:i.tooltip},this._tryshow({offsetx:i.x,offsety:i.y,target:l},r)}else if(o)this._tryshow({offsetx:i.x,offsety:i.y,position:i.position,databycoordsys:o,tooltipoption:i.tooltipoption},r);else if(null!=i.seriesindex){if(this._manuallyaxisshowtip(t,e,n,i))return;var u=cx(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryshow({offsetx:h,offsety:c,target:u.el,position:i.position,positiondefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchaction({type:"updateaxispointer",x:i.x,y:i.y}),this._tryshow({offsetx:i.x,offsety:i.y,position:i.position,target:n.getzr().findhover(i.x,i.y).target},r))}},n.prototype.manuallyhidetip=function(t,e,n,i){var r=this._tooltipcontent;!this._alwaysshowcontent&&this._tooltipmodel&&r.hidelater(this._tooltipmodel.get("hidedelay")),this._lastx=this._lasty=this._lastdatabycoordsys=null,i.from!==this.uid&&this._hide(nb(i,n))},n.prototype._manuallyaxisshowtip=function(t,e,n,i){var r=i.seriesindex,o=i.dataindex,a=e.getcomponent("axispointer").coordsysaxesinfo;if(null!=r&&null!=o&&null!=a){var s=e.getseriesbyindex(r);if(s){var l=s.getdata(),u=rb([l.getitemmodel(o),s,(s.coordinatesystem||{}).model],this._tooltipmodel);if("axis"===u.get("trigger"))return n.dispatchaction({type:"updateaxispointer",seriesindex:r,dataindex:o,position:i.position}),!0}}},n.prototype._tryshow=function(t,e){var n=t.target,i=this._tooltipmodel;if(i){this._lastx=t.offsetx,this._lasty=t.offsety;var r=t.databycoordsys;if(r&&r.length)this._showaxistooltip(r,t);else if(n){this._lastdatabycoordsys=null;var o,a;gc(n,function(t){return null!=sc(t).dataindex?(o=t,!0):null!=sc(t).tooltipconfig?(a=t,!0):void 0},!0),o?this._showseriesitemtooltip(t,o,e):a?this._showcomponentitemtooltip(t,a,e):this._hide(e)}else this._lastdatabycoordsys=null,this._hide(e)}},n.prototype._showormove=function(t,e){var n=t.get("showdelay");e=ow(e,this),cleartimeout(this._showtimout),n>0?this._showtimout=settimeout(e,n):e()},n.prototype._showaxistooltip=function(t,e){var n=this._ecmodel,i=this._tooltipmodel,r=[e.offsetx,e.offsety],o=rb([e.tooltipoption],i),a=this._rendermode,s=[],l=vh("section",{blocks:[],noheader:!0}),u=[],c=new tk;y(t,function(t){y(t.databyaxis,function(t){var e=n.getcomponent(t.axisdim+"axis",t.axisindex),r=t.value;if(e&&null!=r){var o=ux(r,e.axis,n,t.seriesdataindices,t.valuelabelopt),p=vh("section",{header:o,noheader:!w(o),sortblocks:!0,blocks:[]});l.blocks.push(p),y(t.seriesdataindices,function(l){var d=n.getseriesbyindex(l.seriesindex),f=l.dataindexinside,g=d.getdataparams(f);if(!(g.dataindex<0)){g.axisdim=t.axisdim,g.axisindex=t.axisindex,g.axistype=t.axistype,g.axisid=t.axisid,g.axisvalue=wd(e.axis,{value:r}),g.axisvaluelabel=o,g.marker=c.maketooltipmarker("item",gl(g.color),a);var y=ju(d.formattooltip(f,!0,null)),v=y.frag;if(v){var m=rb([d],i).get("valueformatter");p.blocks.push(m?h({valueformatter:m},v):v)}y.text&&u.push(y.text),s.push(g)}})}})}),l.blocks.reverse(),u.reverse();var p=e.position,d=o.get("order"),f=sh(l,c,a,d,n.get("useutc"),o.get("textstyle"));f&&u.unshift(f);var g="richtext"===a?"\n\n":"
",v=u.join(g);this._showormove(o,function(){this._updatecontentnotchangedonaxis(t,s)?this._updateposition(o,p,r[0],r[1],this._tooltipcontent,s):this._showtooltipcontent(o,v,s,math.random()+"",r[0],r[1],p,null,c)})},n.prototype._showseriesitemtooltip=function(t,e,n){var i=this._ecmodel,r=sc(e),o=r.seriesindex,a=i.getseriesbyindex(o),s=r.datamodel||a,l=r.dataindex,u=r.datatype,c=s.getdata(u),p=this._rendermode,d=t.positiondefault,f=rb([c.getitemmodel(l),s,a&&(a.coordinatesystem||{}).model],this._tooltipmodel,d?{position:d}:null),g=f.get("trigger");if(null==g||"item"===g){var y=s.getdataparams(l,u),v=new tk;y.marker=v.maketooltipmarker("item",gl(y.color),p);var m=ju(s.formattooltip(l,!1,u)),_=f.get("order"),x=f.get("valueformatter"),b=m.frag,w=b?sh(x?h({valueformatter:x},b):b,v,p,_,i.get("useutc"),f.get("textstyle")):m.text,s="item_"+s.name+"_"+l;this._showormove(f,function(){this._showtooltipcontent(f,w,y,s,t.offsetx,t.offsety,t.position,t.target,v)}),n({type:"showtip",dataindexinside:l,dataindex:c.getrawindex(l),seriesindex:o,from:this.uid})}},n.prototype._showcomponentitemtooltip=function(t,e,n){var i=sc(e),r=i.tooltipconfig,o=r.option||{};if(c(o)){var a=o;o={content:a,formatter:a}}var l=[o],u=this._ecmodel.getcomponent(i.componentmaintype,i.componentindex);u&&l.push(u),l.push({formatter:o.content});var h=t.positiondefault,c=rb(l,this._tooltipmodel,h?{position:h}:null),p=c.get("content"),d=math.random()+"",f=new tk;this._showormove(c,function(){var n=s(c.get("formatterparams")||{});this._showtooltipcontent(c,p,n,d,t.offsetx,t.offsety,t.position,e,f)}),n({type:"showtip",from:this.uid})},n.prototype._showtooltipcontent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showcontent")&&t.get("show")){var u=this._tooltipcontent;u.setenterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getnearestpoint([r,o],n,t.get("trigger"),t.get("bordercolor")),d=p.color;if(h)if(c(h)){var f=t.ecmodel.get("useutc"),g=m(n)?n[0]:n,y=g&&g.axistype&&g.axistype.indexof("time")>=0;c=h,y&&(c=gl(g.axisvalue,c,f)),c=zl(c,n,!0)}else if(t(h)){var v=ow(function(e,i){e===this._ticket&&(u.setcontent(i,l,t,d,a),this._updateposition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setcontent(c,l,t,d,a),u.show(t,d),this._updateposition(t,a,r,o,u,n,s)}},n.prototype._getnearestpoint=function(t,e,n,i){return"axis"===n||m(e)?{color:i||("html"===this._rendermode?"#fff":"none")}:m(e)?void 0:{color:i||e.color||e.bordercolor}},n.prototype._updateposition=function(t,e,n,i,r,o,a){var s=this._api.getwidth(),l=this._api.getheight();e=e||t.get("position");var u=r.getsize(),h=t.get("align"),c=t.get("verticalalign"),p=a&&a.getboundingrect().clone();if(a&&p.applytransform(a.transform),t(e)&&(e=e([n,i],o,r.el,p,{viewsize:[s,l],contentsize:u.slice()})),m(e))n=ui(e[0],s),i=ui(e[1],l);else if(a(e)){var d=e;d.width=u[0],d.height=u[1];var f=ul(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(c(e)&&a){var g=bb(e,p,u,t.get("borderwidth"));n=g[0],i=g[1]}else{var g=eb(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=fb(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=fb(c)?u[1]/2:"bottom"===c?u[1]:0),xb(t)){var g=zb(n,i,r,s,l);n=g[0],i=g[1]}r.moveto(n,i)},n.prototype._updatecontentnotchangedonaxis=function(t,e){var n=this._lastdatabycoordsys,i=this._cbparamslist,r=!!n&&n.length===t.length;return r&&y(n,function(n,o){var a=n.databyaxis||[],s=t[o]||{},l=s.databyaxis||[];r=r&&a.length===l.length,r&&y(a,function(t,n){var o=l[n]||{},a=t.seriesdataindices||[],s=o.seriesdataindices||[];r=r&&t.value===o.value&&t.axistype===o.axistype&&t.axisid===o.axisid&&a.length===s.length,r&&y(a,function(t,e){var n=s[e];r=r&&t.seriesindex===n.seriesindex&&t.dataindex===n.dataindex}),i&&y(t.seriesdataindices,function(t){var n=t.seriesindex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastdatabycoordsys=t,this._cbparamslist=e,!!r},n.prototype._hide=function(t){this._lastdatabycoordsys=null,t({type:"hidetip",from:this.uid})},n.prototype.dispose=function(t,e){!cw.node&&e.getdom()&&(kh(this,"_updateposition"),this._tooltipcontent.dispose(),tx("itemtooltip",e))},n.type="tooltip",n}(rk);qd(gb);var jb=or(),$b=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.createdbyself=!1,e}return e(n,t),n.prototype.init=function(t,e,n){this.mergedefaultandtheme(t,n),this._mergeoption(t,n,!1,!0)},n.prototype.isanimationenabled=function(){if(cw.node)return!1;var t=this.__hostseries;return this.getshallow("animation")&&t&&t.isanimationenabled()},n.prototype.mergeoption=function(t,e){this._mergeoption(t,e,!1,!1)},n.prototype._mergeoption=function(t,e,n,i){var r=this.maintype;n||e.eachseries(function(t){var n=t.get(this.maintype,!0),o=jb(t)[r];return n&&n.data?(o?o._mergeoption(n,e,!0):(i&&wb(n),y(n.data,function(t){t instanceof array?(wb(t[0]),wb(t[1])):wb(t)}),o=this.createmarkermodelfromseries(n,this,e),h(o,{maintype:this.maintype,seriesindex:t.seriesindex,name:t.name,createdbyself:!0}),o.__hostseries=t),void(jb(t)[r]=o)):void(jb(t)[r]=null)},this)},n.prototype.formattooltip=function(t){var e=this.getdata(),n=this.getrawvalue(t),i=e.getname(t);return vh("section",{header:this.name,blocks:[vh("namevalue",{name:i,value:n,noname:!i,novalue:null==n})]})},n.prototype.getdata=function(){return this._data},n.prototype.setdata=function(t){this._data=t},n.getmarkermodelfromseries=function(t,e){return jb(t)[e]},n.type="marker",n.dependencies=["series","grid","polar","geo"],n}(vd);f($b,ea.prototype);var qb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createmarkermodelfromseries=function(t,e,i){return new n(t,e,i)},n.type="markpoint",n.defaultoption={z:5,symbol:"pin",symbolsize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemstyle:{borderwidth:2},emphasis:{label:{show:!0}}},n}($b),tf={min:s(yb,"min"),max:s(yb,"max"),average:s(yb,"average"),median:s(yb,"median")},ef=or(),nf=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markergroupmap=j()},n.prototype.render=function(t,e,n){var i=this,r=this.markergroupmap;r.each(function(t){ef(t).keep=!1}),e.eachseries(function(t){var r=$b.getmarkermodelfromseries(t,i.type);r&&i.renderseries(t,r,e,n)}),r.each(function(t){!ef(t).keep&&i.group.remove(t.group)})},n.prototype.markkeep=function(t){ef(t).keep=!0},n.prototype.toggleblurseries=function(t,e){var n=this;y(t,function(t){var i=$b.getmarkermodelfromseries(t,n.type);if(i){var r=i.getdata();r.eachitemgraphicel(function(t){t&&(e?_a(t):xa(t))})}})},n.type="marker",n}(rk),if=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updatetransform=function(t,e,n){e.eachseries(function(t){var e=$b.getmarkermodelfromseries(t,"markpoint");e&&(qb(e.getdata(),t,n),this.markergroupmap.get(t.id).updatelayout())},this)},n.prototype.renderseries=function(t,e,n,i){var r=t.coordinatesystem,o=t.id,a=t.getdata(),s=this.markergroupmap,l=s.get(o)||s.set(o,new sr),u=tw(r,t,e);e.setdata(u),qb(e.getdata(),t,i),u.each(function(t){var n=u.getitemmodel(t),i=n.getshallow("symbol"),r=n.getshallow("symbolsize"),o=n.getshallow("symbolrotate"),s=n.getshallow("symboloffset"),l=n.getshallow("symbolkeepaspect");if(t(i)||t(r)||t(o)||t(s)){var h=e.getrawvalue(t),c=e.getdataparams(t);t(i)&&(i=i(h,c)),t(r)&&(r=r(h,c)),t(o)&&(o=o(h,c)),t(s)&&(s=s(h,c))}var p=n.getmodel("itemstyle").getitemstyle(),d=cc(a,"color");p.fill||(p.fill=d),u.setitemvisual(t,{symbol:i,symbolsize:r,symbolrotate:o,symboloffset:s,symbolkeepaspect:l,style:p})}),l.updatedata(u),this.group.add(l.group),u.eachitemgraphicel(function(t){t.traverse(function(t){sc(t).datamodel=e})}),this.markkeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markpoint",n}(nf);qd(ew);var rf=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createmarkermodelfromseries=function(t,e,i){return new n(t,e,i)},n.type="markline",n.defaultoption={z:5,symbol:["circle","arrow"],symbolsize:[8,16],symboloffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},linestyle:{type:"dashed"},emphasis:{label:{show:!0},linestyle:{width:3}},animationeasing:"linear"},n}($b),of=or(),af=function(t,e,n,i){var r,o=t.getdata();if(m(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xaxis||null!=i.yaxis){var u=void 0,c=void 0;if(null!=i.yaxis||null!=i.xaxis)u=e.getaxis(null!=i.yaxis?"y":"x"),c=z(i.yaxis,i.xaxis);else{var p=zb(i,o,e,t);u=p.valueaxis;var d=kp(o,p.valuedatadim);c=$b(o,d,a)}var f="x"===u.dim?0:1,g=1-f,y=s(i),v={coord:[]};y.type=null,y.coord=[],y.coord[g]=-1/0,v.coord[g]=1/0;var m=n.get("precision");m>=0&&d(c)&&(c=+c.tofixed(math.min(m,20))),y.coord[f]=v.coord[f]=c,r=[y,v,{type:a,valueindex:i.valueindex,value:c}]}else r=[]}var _=[jb(t,r[0]),jb(t,r[1]),h({},r[2])];return _[2].type=_[2].type||null,l(_[2],_[0]),l(_[2],_[1]),_},sf=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updatetransform=function(t,e,n){e.eachseries(function(t){var e=$b.getmarkermodelfromseries(t,"markline");if(e){var i=e.getdata(),r=of(e).from,o=of(e).to;r.each(function(e){ow(r,e,!0,t,n),ow(o,e,!1,t,n)}),i.each(function(t){i.setitemlayout(t,[r.getitemlayout(t),o.getitemlayout(t)])}),this.markergroupmap.get(t.id).updatelayout()}},this)},n.prototype.renderseries=function(t,e,n,i){function r(e,n,r){var o=e.getitemmodel(n);ow(e,n,r,t,i);var a=o.getmodel("itemstyle").getitemstyle();null==a.fill&&(a.fill=cc(s,"color")),e.setitemvisual(n,{symbolkeepaspect:o.get("symbolkeepaspect"),symboloffset:b(o.get("symboloffset",!0),v[r?0:1]),symbolrotate:b(o.get("symbolrotate",!0),y[r?0:1]),symbolsize:b(o.get("symbolsize"),g[r?0:1]),symbol:b(o.get("symbol",!0),f[r?0:1]),style:a})}var o=t.coordinatesystem,a=t.id,s=t.getdata(),l=this.markergroupmap,u=l.get(a)||l.set(a,new me);this.group.add(u.group);var h=aw(o,t,e),c=h.from,p=h.to,d=h.line;of(e).from=c,of(e).to=p,e.setdata(d);var f=e.get("symbol"),g=e.get("symbolsize"),y=e.get("symbolrotate"),v=e.get("symboloffset");m(f)||(f=[f,f]),m(g)||(g=[g,g]),m(y)||(y=[y,y]),m(v)||(v=[v,v]),h.from.each(function(t){r(c,t,!0),r(p,t,!1)}),d.each(function(t){var e=d.getitemmodel(t).getmodel("linestyle").getlinestyle();d.setitemlayout(t,[c.getitemlayout(t),p.getitemlayout(t)]),null==e.stroke&&(e.stroke=c.getitemvisual(t,"style").fill),d.setitemvisual(t,{fromsymbolkeepaspect:c.getitemvisual(t,"symbolkeepaspect"),fromsymboloffset:c.getitemvisual(t,"symboloffset"),fromsymbolrotate:c.getitemvisual(t,"symbolrotate"),fromsymbolsize:c.getitemvisual(t,"symbolsize"),fromsymbol:c.getitemvisual(t,"symbol"),tosymbolkeepaspect:p.getitemvisual(t,"symbolkeepaspect"),tosymboloffset:p.getitemvisual(t,"symboloffset"),tosymbolrotate:p.getitemvisual(t,"symbolrotate"),tosymbolsize:p.getitemvisual(t,"symbolsize"),tosymbol:p.getitemvisual(t,"symbol"),style:e})}),u.updatedata(d),h.line.eachitemgraphicel(function(t){sc(t).datamodel=e,t.traverse(function(t){sc(t).datamodel=e})}),this.markkeep(u),u.group.silent=e.get("silent")||t.get("silent")},n.type="markline",n}(nf);qd(sw),t.version=al,t.dependencies=sl,t.priority=ml,t.init=lp,t.connect=up,t.disconnect=hp,t.disconnect=fp,t.dispose=cp,t.getinstancebydom=pp,t.getinstancebyid=dp,t.registertheme=fp,t.registerpreprocessor=gp,t.registerprocessor=yp,t.registerpostinit=vp,t.registerpostupdate=mp,t.registerupdatelifecycle=_p,t.registeraction=xp,t.registercoordinatesystem=bp,t.getcoordinatesystemdimensions=wp,t.registerlayout=sp,t.registervisual=mp,t.registerloading=cp,t.setcanvascreator=ip,t.registermap=dp,t.getmap=ap,t.registertransform=yp,t.datatool=mp,t.registerlocale=sl,t.zrender=ym,t.matrix=os,t.vector=uw,t.zrutil=fw,t.color=js,t.helper=do,t.number=so,t.time=mo,t.graphic=to,t.format=co,t.util=io,t.list=bp,t.componentmodel=vd,t.componentview=rk,t.seriesmodel=ik,t.chartview=sk,t.extendcomponentmodel=cf,t.extendcomponentview=if,t.extendseriesmodel=df,t.extendchartview=af,t.throttle=zh,t.use=qd,t.setplatformapi=r,t.parsegeojson=uf,t.parsegeojson=uf,t.env=cw,t.model=pd,t.axis=ko,t.innerdrawelementoncanvas=jc});