!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");y_(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(ox[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(!rx[n]&&!x(t)&&!l(t)){e={};for(var a in t)t.hasownproperty(a)&&a!==dx&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!d(e)||!d(t))return n?s(e):t;for(var i in e)if(e.hasownproperty(i)&&i!==dx){var r=t[i],o=e[i];!d(o)||!d(r)||m(o)||m(r)||l(o)||l(r)||a(o)||a(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!==dx&&(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 f(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 d(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===cx)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===ux)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 e(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 d=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,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===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(zx,function(t,e){return bx[e]})}function ke(t,e,n,i){return n=n||{},i?de(t,e,n):vx&&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):de(t,e,n),n}function de(t,e,n){if(z_.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(fx,t,i,r))return n.zrx=fx[0],void(n.zry=fx[1])}n.zrx=n.zry=0}function ae(t){return t||window.event}function pe(t,e,n){if(e=ae(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&&ke(t,o,e,n)}else{ke(t,e,e,n);var a=le(e);e.zrdelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&ex.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function le(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){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 ee(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function fe(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 ve(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 ge(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 we(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 ue(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 xe(t){var e=be();return fe(e,t),e}function ye(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:je}}function je(){hx(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?eb:!0}return!1}function ze(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!==eb)){e.target=a;break}}}function ke(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>=lb;)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++;je(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function je(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function tn(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 en(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 nn(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 rn(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,f,d,g=h;;){c=0,f=0,d=!1;do if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,c=0,0===--o){d=!0;break}}else if(t[u++]=p[s++],c++,f=0,1===--i){d=!0;break}while(g>(c|f));if(d)break;do{if(c=nn(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){d=!0;break}}if(t[u++]=t[l++],0===--o){d=!0;break}if(f=en(p[s],t,l,o,0,e),0!==f){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,o-=f,0===o){d=!0;break}}if(t[u++]=p[s++],1===--i){d=!0;break}g--}while(c>=ub||f>=ub);if(d)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,f=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,f=u+1,c=s+1,a=i-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=p[l])}for(var d=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(d>(g|y));if(v)break;do{if(g=i-nn(p[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1===--o){v=!0;break}if(y=o-en(t[s],p,0,o,o-1,e),0!==y){for(u-=y,l-=y,o-=y,f=u+1,c=l+1,a=0;y>a;a++)t[f+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--i){v=!0;break}d--}while(g>=ub||y>=ub);if(v)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=i,s-=i,f=u+1,c=s+1,a=i-1;a>=0;a--)t[f+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=ub,c=0,p=[];return l=[],u=[],{mergeruns:i,forcemergeruns:r,pushrun:n}}function on(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(lb>r)return o=qe(t,n,i,e),void tn(t,n,i,n+o,e);var a=rn(t,e),s=$e(r);do{if(o=qe(t,n,i,e),s>o){var l=r;l>s&&(l=s),tn(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 an(){fb||(fb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function ln(t){return t>-_b&&_b>t}function un(t){return t>_b||-_b>t}function hn(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 cn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function pn(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,f=0;if(ln(h)&&ln(c))if(ln(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=c*c-4*h*p;if(ln(g)){var y=c/h,d=-s/a+y,v=-y/2;d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v)}else if(g>0){var m=mb(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-vb(-_,wb):vb(_,wb),x=0>x?-vb(-x,wb):vb(x,wb);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var b=(2*h*s-3*a*c)/(2*mb(h*h*h)),w=math.acos(b)/3,s=mb(h),m=math.cos(w),d=(-s-2*s*m)/(3*a),v=(-s+s*(m+bb*math.sin(w)))/(3*a),t=(-s+s*(m-bb*math.sin(w)))/(3*a);d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v),t>=0&&1>=t&&(o[f++]=t)}}return f}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(ln(a)){if(un(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(ln(h))r[0]=-o/(2*a);else if(h>0){var c=mb(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 dn(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 gn(t,e,n,i,r,o,a,s,l,u,h){var c,p,f,d,g,y=.005,v=1/0;sb[0]=l,sb[1]=u;for(var m=0;1>m;m+=.05)mb[0]=hn(t,n,r,a,m),mb[1]=hn(e,i,o,s,m),d=kx(sb,mb),v>d&&(c=m,v=d);v=1/0;for(var _=0;32>_&&!(xb>y);_++)p=c-y,f=c+y,mb[0]=hn(t,n,r,a,p),mb[1]=hn(e,i,o,s,p),d=kx(mb,sb),p>=0&&v>d?(c=p,v=d):(tb[0]=hn(t,n,r,a,f),tb[1]=hn(e,i,o,s,f),g=kx(tb,sb),1>=f&&v>g?(c=f,v=g):y*=.5);return h&&(h[0]=hn(t,n,r,a,c),h[1]=hn(e,i,o,s,c)),mb(v)}function yn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=hn(t,n,r,a,d),y=hn(e,i,o,s,d),v=g-u,m=y-h;c+=math.sqrt(v*v+m*m),u=g,h=y}return c}function vn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function mn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function _n(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(ln(o)){if(un(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(ln(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=mb(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 xn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function bn(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 wn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;sb[0]=a,sb[1]=s;for(var p=0;1>p;p+=.05){mb[0]=vn(t,n,r,p),mb[1]=vn(e,i,o,p);var f=kx(sb,mb);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!(xb>h);d++){var g=u-h,y=u+h;mb[0]=vn(t,n,r,g),mb[1]=vn(e,i,o,g);var f=kx(mb,sb);if(g>=0&&c>f)u=g,c=f;else{tb[0]=vn(t,n,r,y),tb[1]=vn(e,i,o,y);var v=kx(tb,sb);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=vn(t,n,r,u),l[1]=vn(e,i,o,u)),mb(c)}function sn(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,f=vn(t,n,r,p),d=vn(e,i,o,p),g=f-s,y=d-l;u+=math.sqrt(g*g+y*y),s=f,l=d}return u}function mn(t){var e=t&&cb.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:pn(0,i,o,1,t,s)&&hn(0,r,a,1,s[0])}}}function tn(t){return t=math.round(t),0>t?0:t>255?255:t}function cn(t){return t=math.round(t),0>t?0:t>360?360:t}function in(t){return 0>t?0:t>1?1:t}function kn(t){var e=t;return tn(e.length&&"%"===e.charat(e.length-1)?parsefloat(e)/100*255:parseint(e,10))}function dn(t){var e=t;return in(e.length&&"%"===e.charat(e.length-1)?parsefloat(e)/100:parsefloat(e))}function an(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 ln(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function on(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function rn(t,e){ob&&on(ob,e),ob=lb.put(t,ob||e.slice())}function nn(t,e){if(t){e=e||[];var n=lb.get(t);if(n)return on(e,n);t+="";var i=t.replace(/ /g,"").tolowercase();if(i in pb)return on(e,pb[i]),rn(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?ln(e,+l[0],+l[1],+l[2],1):ln(e,0,0,0,1);u=dn(l.pop());case"rgb":return l.length>=3?(ln(e,kn(l[0]),kn(l[1]),kn(l[2]),3===l.length?u:dn(l[3])),rn(t,e),e):void ln(e,0,0,0,1);case"hsla":return 4!==l.length?void ln(e,0,0,0,1):(l[3]=dn(l[3]),zn(l,e),rn(t,e),e);case"hsl":return 3!==l.length?void ln(e,0,0,0,1):(zn(l,e),rn(t,e),e);default:return}}ln(e,0,0,0,1)}else{if(4===r||5===r){var h=parseint(i.slice(1,4),16);return h>=0&&4095>=h?(ln(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),rn(t,e),e):void ln(e,0,0,0,1)}if(7===r||9===r){var h=parseint(i.slice(1,7),16);return h>=0&&16777215>=h?(ln(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseint(i.slice(7),16)/255:1),rn(t,e),e):void ln(e,0,0,0,1)}}}}function zn(t,e){var n=(parsefloat(t[0])%360+360)%360/360,i=dn(t[1]),r=dn(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],ln(e,tn(255*an(a,o,n+1/3)),tn(255*an(a,o,n)),tn(255*an(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 f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function en(t,e){var n=nn(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 un(n,4===n.length?"rgba":"rgb")}}function fn(t){var e=nn(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).tostring(16).slice(1):void 0}function vn(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]=tn(pn(a[0],s[0],l)),n[1]=tn(pn(a[1],s[1],l)),n[2]=tn(pn(a[2],s[2],l)),n[3]=in(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=nn(e[r]),s=nn(e[o]),l=i-r,u=un([tn(pn(a[0],s[0],l)),tn(pn(a[1],s[1],l)),tn(pn(a[2],s[2],l)),in(pn(a[3],s[3],l))],"rgba");return n?{color:u,leftindex:r,rightindex:o,value:i}:u}}function gn(t,e,n,i){var r=nn(t);return t?(r=bn(r),null!=e&&(r[0]=cn(e)),null!=n&&(r[1]=dn(n)),null!=i&&(r[2]=dn(i)),un(zn(r),"rgba")):void 0}function wn(t,e){var n=nn(t);return n&&null!=e?(n[3]=in(e),un(n,"rgba")):void 0}function un(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 xn(t,e){var n=nn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function yn(){return un([math.round(255*math.random()),math.round(255*math.random()),math.round(255*math.random())],"rgb")}function jn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexof("rgba")>-1){var n=nn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function qn(t){return eb>t&&t>-eb}function zn(t){return bb(1e3*t)/1e3}function kn(t){return bb(1e4*t)/1e4}function $n(t){return"matrix("+zn(t[0])+","+zn(t[1])+","+zn(t[2])+","+zn(t[3])+","+kn(t[4])+","+kn(t[5])+")"}function qn(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function jn(t){return t&&(t.shadowblur||t.shadowoffsetx||t.shadowoffsety)}function ti(t){var e=t.style,n=t.getglobalscale();return[e.shadowcolor,(e.shadowblur||0).tofixed(2),(e.shadowoffsetx||0).tofixed(2),(e.shadowoffsety||0).tofixed(2),n[0],n[1]].join(",")}function ei(t){return t&&!!t.image}function ni(t){return t&&!!t.svgelement}function ii(t){return ei(t)||ni(t)}function ri(t){return"linear"===t.type}function oi(t){return"radial"===t.type}function ai(t){return t&&("linear"===t.type||"radial"===t.type)}function si(t){return"url(#"+t+")"}function li(t){var e=t.getglobalscale(),n=math.max(e[0],e[1]);return math.max(math.ceil(math.log(n)/math.log(10)),1)}function ui(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*sx,r=e(t.scalex,1),o=e(t.scaley,1),a=t.skewx||0,s=t.skewy||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),(1!==r||1!==o)&&l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+bb(a*sx)+"deg, "+bb(s*sx)+"deg)"),l.join(" ")}function hi(t,e,n){return(e-t)*n+t}function ci(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=hi(e[o],n[o],i);return t}function pi(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]=hi(e[a][s],n[a][s],i)}return t}function fi(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function di(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 gi(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]:hb.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 vi(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push(hb.call(t[i]));return n}return hb.call(t)}return t}function mi(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 _i(t){return g(t&&t[0])?2:1}function xi(t){return t===yb||t===jb}function bi(t){return t===wb||t===ub}function wi(){return(new date).gettime()}function si(t){var e=t.pointertype;return"pen"===e||"touch"===e}function mi(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 ti(t){t&&(t.zrbytouch=!0)}function ci(t,e){return pe(t.dom,new rw(t,e),!0)}function ii(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 ki(t,e){var n=e.domhandlers;z_.pointereventssupported?y(ew.pointer,function(i){ai(e,i,function(e){n[i].call(t,e)})}):(z_.toucheventssupported&&y(ew.touch,function(i){ai(e,i,function(r){n[i].call(t,r),mi(e)})}),y(ew.mouse,function(i){ai(e,i,function(r){r=ae(r),e.touching||n[i].call(t,r)})}))}function di(t,e){function n(n){function i(i){i=ae(i),ii(t,i.target)||(i=ci(t,i),e.domhandlers[n].call(t,i))}ai(e,n,i,{capture:!0})}z_.pointereventssupported?y(nw.pointer,n):z_.toucheventssupported||y(nw.mouse,n)}function ai(t,e,n,i){t.mounted[e]=n,t.listeneropts[e]=i,oe(t.domtarget,e,n,i)}function pi(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 li(t){return t>yw||-yw>t}function oi(t,e){for(var n=0;n=0?parsefloat(t)/100*e:parsefloat(t):t}function hi(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+=vi(i[0],n.width),u+=vi(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 gi(t,e,n,i,r){n=n||{};var o=[];qi(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 ui(t){return g(t[0])}function xi(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),p(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),wi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(ui(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?wi(o[l],r[l],s):o[l]=array.prototype.slice.call(r[l]);else wi(o,r,a);o.length=r.length}else t[n]=e[n]}function yi(t,e){return t===e||g(t)&&g(e)&&ji(t,e)}function ji(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 qi(t,e,n,i,r,o,a,s){for(var l=b(i),u=r.duration,h=r.delay,c=r.additive,f=r.settofinal,d=!d(o),y=t.animators,v=[],m=0;m0||r.force&&!a.length){var k=void 0,a=void 0,p=void 0;if(s){a={},f&&(k={});for(var m=0;s>m;m++){var x=v[m];a[x]=n[x],f?k[x]=i[x]:n[x]=i[x]}}else if(f){p={};for(var m=0;s>m;m++){var x=v[m];p[x]=vi(n[x]),xi(n,i,x)}}var t=new $b(n,!1,!1,c?_(y,function(t){return t.targetname===e}):null);t.targetname=e,r.scope&&(t.scope=r.scope),f&&k&&t.whenwithkeys(0,k,v),p&&t.whenwithkeys(0,p,v),t.whenwithkeys(null==u?500:u,s?a:i,v).delay(h||0),t.addanimator(t,e),a.push(t)}}function zi(t){delete lw[t]}function ki(t){if(!t)return!1;if("string"==typeof t)return xn(t,1)r;r++)n+=xn(e[r].color,1);return n/=i,cw>n}return!1}function $i(t,e){var n=new ow(o(),t,e);return lw[n.id]=n,n}function qi(t){t.dispose()}function ji(){for(var t in lw)lw.hasownproperty(t)&&lw[t].dispose();lw={}}function tr(t){return lw[t]}function er(t,e){pw[t]=e}function nr(t){return t.replace(/^\s+|\s+$/g,"")}function ir(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 rr(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)?nr(t).match(/%$/)?parsefloat(t)/100*e:parsefloat(t):null==t?0/0:+t }function or(t,e,n){return null==e&&(e=10),e=math.min(math.max(0,e),bw),t=(+t).tofixed(e),n?t:+t}function ar(t){return t.sort(function(t,e){return t-e}),t}function sr(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 lr(t)}function lr(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 ur(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 hr(t,e,n){if(!t[e])return 0;var i=cr(t,n);return i[e]||0}function cr(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 pr(t,e){var n=math.max(sr(t),sr(e)),i=t+e;return n>bw?i:or(i,n)}function fr(t){var e=2*math.pi;return(t%e+e)%e}function dr(t){return t>-zw&&zw>t}function gr(t){if(t instanceof date)return t;if(c(t)){var e=fw.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 yr(t){return math.pow(10,vr(t))}function vr(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 mr(t,e){var n,i=vr(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 _r(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 xr(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 br(t){var e=parsefloat(t);return e==t&&(0!==e||!c(t)||t.indexof("x")<=0)?e:0/0}function wr(t){return!isnan(br(t))}function sr(){return math.round(9*math.random())}function mr(t,e){return 0===e?t:mr(e,t%e)}function tr(t,e){return null==t?e:null==e?t:t*e/mr(t,e)}function cr(t){throw new error(t)}function ir(t,e,n){return(e-t)*n+t}function kr(t){return t instanceof array?t:null==t?[]:[t]}function dr(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 ar(t){return!d(t)||m(t)||t instanceof date?t:t.value}function pr(t){return d(t)&&!(t instanceof array)}function lr(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 d(t)?void 0:void(e[n]=null)});var s=or(t,a,n);return(i||r)&&rr(s,t,a,e),i&&nr(s,e),i||r?zr(s,e,r):o&&br(s,e),er(s),s}function or(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 f=l&&l[c]?l[c]:0,d=u[c],a=ir(f,d,r);s[c]=or(a,o?math.max(sr(f),sr(d)):e)}}return s}function eo(t){var e={main:"",sub:""};if(t){var n=t.split(xw);e.main=n[0]||"",e.sub=n[1]||""}return e}function no(t){g(/^[a-za-z0-9_]+([.][a-za-z0-9_]+)?$/.test(t),'componenttype "'+t+'" illegal')}function io(t){return!(!t||!t[jw])}function ro(t){t.$constructor=t,t.extend=function(t){var n,i=this;return oo(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)},f(n,this)),h(n.prototype,t),n[jw]=!0,n.extend=this.extend,n.supercall=lo,n.superapply=uo,n.superclass=i,n}}function oo(t){return t(t)&&/^class\s/.test(function.prototype.tostring.call(t))}function ao(t,e){t.extend=e.extend}function so(t){var e=["__\x00is_clz",qw++].join("_");t.prototype[e]=!0,t.isinstance=function(t){return!(!t||!t[e])}}function lo(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 po(t){if("string"==typeof t){var e=qw.get(t);return e&&e.image}return t}function fo(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrimagesrc===t||!n)return e;var o=qw.get(t),a={hostel:n,cb:i,cbpayload:r};return o?(e=o.image,!yo(e)&&o.pending.push(a)):(e=ix.loadimage(t,go,go),e.__zrimagesrc=t,qw.put(t,e.__cachedimgobj={image:e,pending:[a]})),e}return t}return e}function go(){var t=this.__cachedimgobj;this.onload=this.onerror=this.__cachedimgobj=null;for(var e=0;ea;a++)o[a]=_o(o[a],r);return o.join("\n")}function mo(t,e,n,i){i=i||{};var r=h({},i);r.font=e,n=e(n,"..."),r.maxiterations=e(i.maxiterations,2);var o=r.minchar=e(i.minchar,0);r.cncharwidth=ri("鍥?,e);var a=r.asccharwidth=ri("a",e);r.placeholder=e(i.placeholder,"");for(var s=t=math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=ri(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 _o(t,e){var n=e.containerwidth,i=e.font,r=e.contentwidth;if(!n)return"";var o=ri(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?xo(t,r,e.asccharwidth,e.cncharwidth):o>0?math.floor(t.length*r/o):0;t=t.substr(0,s),o=ri(t,i)}return""===t&&(t=e.placeholder),t}function xo(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 bo(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=fi(o),l=e(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?co(t,e.font,c,"breakall"===i,0).lines:[];var p=n.length*l,f=e(e.height,p);if(p>f&&h){var d=math.floor(f/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=mo(c,o,e.ellipsis,{minchar:e.truncateminchar,placeholder:e.placeholder}),y=0;yu&&so(i,t.substring(u,h),e,l),so(i,r[2],e,l,r[1]),u=jw.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 k=s.width,d=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charat(k.length-1))w.percentwidth=k,c.push(w),w.contentwidth=ri(w.text,c);else{if(d){var a=s.backgroundcolor,p=a&&a.image;p&&(p=po(p),yo(p)&&(w.width=math.max(w.width,p.width*i/p.height)))}var l=g&&null!=o?o-x:null;null!=l&&ll?(w.text="",w.width=w.contentwidth=0):(w.text=vo(w.text,l-t,c,e.ellipsis,{minchar:e.truncateminchar}),w.width=w.contentwidth=ri(w.text,c)):w.contentwidth=ri(w.text,c)}w.width+=t,x+=w.width,s&&(_=math.max(_,w.lineheight))}n(m,x,_)}i.outerwidth=i.width=e(o,f),i.outerheight=i.height=e(a,p),i.contentheight=p,i.contentwidth=f,d&&(i.outerwidth+=d[1]+d[3],i.outerheight+=d[0]+d[2]);for(var v=0;v0&&d+i.accumwidth>i.width&&(o=e.split("\n"),c=!0),i.accumwidth=d}else{var g=co(e,h,i.width,i.breakall,i.accumwidth);i.accumwidth=g.accumwidth+f,a=g.lineswidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}function to(t){return mo(t)?is[t]?!0:!1:!0}function co(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+f>n)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(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 io(t,e,n){return hs.copy(t.getboundingrect()),t.transform&&hs.applytransform(t.transform),cs.width=e,cs.height=n,!hs.intersect(cs)}function ko(t,e,n,i,r,o){r[0]=ps(t,n),r[1]=ps(e,i),o[0]=fs(t,n),o[1]=fs(e,i)}function do(t,e,n,i,r,o,a,s,l,u){var h=fn,c=hn,p=h(t,n,r,a,xs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;p>f;f++){var d=c(t,n,r,a,xs[f]);l[0]=ps(d,l[0]),u[0]=fs(d,u[0])}p=h(e,i,o,s,bs);for(var f=0;p>f;f++){var g=c(e,i,o,s,bs[f]);l[1]=ps(g,l[1]),u[1]=fs(g,u[1])}l[0]=ps(t,l[0]),u[0]=fs(t,u[0]),l[0]=ps(a,l[0]),u[0]=fs(a,u[0]),l[1]=ps(e,l[1]),u[1]=fs(e,u[1]),l[1]=ps(s,l[1]),u[1]=fs(s,u[1])}function ao(t,e,n,i,r,o,a,s){var l=xn,u=vn,h=fs(ps(l(t,n,r),1),0),c=fs(ps(l(e,i,o),1),0),p=u(t,n,r,h),f=u(e,i,o,c);a[0]=ps(t,r,p),a[1]=ps(e,o,f),s[0]=fs(t,r,p),s[1]=fs(e,o,f)}function po(t,e,n,i,r,o,a,s,l){var u=me,h=_e,c=math.abs(r-o);if(1e-4>c%ys&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(vs[0]=gs(r)*n+t,vs[1]=ds(r)*i+e,ms[0]=gs(o)*n+t,ms[1]=ds(o)*i+e,u(s,vs,ms),h(l,vs,ms),r%=ys,0>r&&(r+=ys),o%=ys,0>o&&(o+=ys),r>o&&!a?o+=ys:o>r&&a&&(r+=ys),a){var p=o;o=r,r=p}for(var f=0;o>f;f+=math.pi/2)f>r&&(_s[0]=gs(f)*n+t,_s[1]=ds(f)*i+e,u(s,_s,s),h(l,_s,l))}function lo(t){var e=math.round(t/rs*1e8)/1e8;return e%2*rs}function oo(t,e){var n=lo(t[0]);0>n&&(n+=ns);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ns?r=n+ns:e&&n-r>=ns?r=n-ns:!e&&n>r?r=n+(ns-lo(n-r)):e&&r>n&&(r=n-(ns-lo(r-n))),t[0]=n,t[1]=r}function ro(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 no(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=gn(t,e,n,i,r,o,a,s,u,h,null);return c/2>=p}function zo(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=wn(t,e,n,i,r,o,s,l,null);return u/2>=h}function bo(t){return t%=fs,0>t&&(t+=fs),t}function eo(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)%vs<1e-4)return!0;if(o){var c=i;i=bo(r),r=bo(c)}else i=bo(i),r=bo(r);i>r&&(r+=vs);var p=math.atan2(l,s);return 0>p&&(p+=vs),p>=i&&r>=p||p+vs>=i&&r>=p+vs}function fo(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 vo(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=pn(e,i,o,s,u,us);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var y=us[g],v=0===y||1===y?.5:1,m=hn(t,n,r,a,y);l>m||(0>p&&(p=fn(e,i,o,s,xs),xs[1]1&&ho(),f=hn(e,i,o,s,xs[0]),p>1&&(d=hn(e,i,o,s,xs[1]))),c+=2===p?yf?v:-v:yd?v:-v:d>s?v:-v:yf?v:-v:f>s?v:-v)}return c}function wo(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=_n(e,i,o,s,us);if(0===l)return 0;var u=xn(e,i,o);if(u>=0&&1>=u){for(var h=0,c=vn(e,i,o,u),p=0;l>p;p++){var f=0===us[p]||1===us[p]?.5:1,d=vn(t,n,r,us[p]);a>d||(h+=us[p]c?f:-f:c>o?f:-f)}return h}var f=0===us[0]||1===us[0]?.5:1,d=vn(t,n,r,us[0]);return a>d?0:e>o?f:-f}function uo(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);us[0]=-l,us[1]=l;var u=math.abs(i-r);if(1e-4>u)return 0;if(u>=gs-1e-4){i=0,r=gs;var h=o?1:-1;return a>=us[0]+t&&a<=us[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=gs,r+=gs);for(var p=0,f=0;2>f;f++){var d=us[f];if(d+t>a){var g=math.atan2(s,d),h=o?1:-1;0>g&&(g=gs+g),(g>=i&&r>=g||g+gs>=i&&r>=g+gs)&&(g>math.pi/2&&g<1.5*math.pi&&(h=-h),p+=h)}}return p}function xo(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,f=0,d=0;l>d;){var g=s[d++],y=1===d;switch(g===hs.m&&d>1&&(n||(u+=fo(h,c,p,f,i,r))),y&&(h=s[d],c=s[d+1],p=h,f=c),g){case hs.m:p=s[d++],f=s[d++],h=p,c=f;break;case hs.l:if(n){if(ro(h,c,s[d],s[d+1],e,i,r))return!0}else u+=fo(h,c,s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case hs.c:if(n){if(no(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=go(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case hs.q:if(n){if(zo(h,c,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=wo(h,c,s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case hs.a:var v=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++];d+=1;var s=!!(1-s[d++]);o=math.cos(b)*_+v,a=math.sin(b)*x+m,y?(p=o,f=a):u+=fo(h,c,o,a,i,r);var m=(i-v)*x/_+v;if(n){if(eo(v,m,x,b,b+w,s,e,m,r))return!0}else u+=uo(v,m,x,b,b+w,s,m,r);h=math.cos(b+w)*_+v,c=math.sin(b+w)*x+m;break;case hs.r:p=h=s[d++],f=c=s[d++];var t=s[d++],c=s[d++];if(o=p+t,a=f+c,n){if(ro(p,f,o,f,e,i,r)||ro(o,f,o,a,e,i,r)||ro(o,a,p,a,e,i,r)||ro(p,a,p,f,e,i,r))return!0}else u+=fo(o,f,o,a,i,r),u+=fo(p,a,p,f,i,r);break;case hs.z:if(n){if(ro(h,c,p,f,e,i,r))return!0}else u+=fo(h,c,p,f,i,r);h=p,c=f}}return n||vo(c,f)||(u+=fo(h,c,p,f,i,r)||0),0!==u}function yo(t,e,n){return xo(t,0,!1,e,n)}function jo(t,e,n,i){return xo(t,e,!0,n,i)}function qo(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 ko(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?(em(2*i)===em(2*r)&&(t.x1=t.x2=qo(i,s,!0)),em(2*o)===em(2*a)&&(t.y1=t.y2=qo(o,s,!0)),t):t}}function $o(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=qo(i,s,!0),t.y=qo(r,s,!0),t.width=math.max(qo(i+o,s,!1)-t.x,0===o?0:1),t.height=math.max(qo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function qo(t,e,n){if(!e)return t;var i=em(2*t);return(i+em(e))%2===0?i/2:(i+(n?1:-1))/2}function jo(t){return"string"!=typeof t||-1===t.indexof("px")&&-1===t.indexof("rem")&&-1===t.indexof("em")?isnan(+t)?k_+"px":t+"px":t}function ta(t,e){for(var n=0;n=e||"transparent"===t||"none"===t?null:t.image||t.colorstops?"#000":t}function oa(t){return null==t||"none"===t?null:t.image||t.colorstops?"#000":t}function aa(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function sa(t){var e=t.text;return null!=e&&(e+=""),e}function la(t){return!!(t.backgroundcolor||t.lineheight||t.borderwidth&&t.bordercolor)}function ua(t){return null!=t&&"none"!==t}function ha(t){if(c(t)){var e=am.get(t);return e||(e=en(t,-.1),am.put(t,e)),e}if(o(t)){var n=h({},t);return n.colorstops=v(t.colorstops,function(t){return{offset:t.offset,color:en(t.color,-.1)}}),n}return t}function ca(t,e,n){t.onhoverstatechange&&(t.hoverstate||0)!==n&&t.onhoverstatechange(e),t.hoverstate=n}function pa(t){ca(t,"emphasis",xm)}function fa(t){t.hoverstate===xm&&ca(t,"normal",mm)}function da(t){ca(t,"blur",_m)}function ga(t){t.hoverstate===_m&&ca(t,"normal",mm)}function ya(t){t.selected=!0}function va(t){t.selected=!1}function ma(t,e,n){e(t,n)}function _a(t,e,n){ma(t,e,n),t.isgroup&&t.traverse(function(t){ma(t,e,n)})}function xa(t,e){switch(e){case"emphasis":t.hoverstate=xm;break;case"normal":t.hoverstate=mm;break;case"blur":t.hoverstate=_m;break;case"select":t.selected=!0}}function ba(t,e,n,i){for(var r=t.style,o={},a=0;a=0,o=!1;if(t instanceof zs){var a=ym(t),s=r?a.selectfill||a.normalfill:a.normalfill,l=r?a.selectstroke||a.normalstroke:a.normalstroke;if(ua(s)||ua(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=h({},i),u=h({},u),u.fill=s):!ua(u.fill)&&ua(s)?(o=!0,i=h({},i),u=h({},u),u.fill=ha(s)):!ua(u.stroke)&&ua(l)&&(o||(i=h({},i),u=h({},u)),u.stroke=ha(l)),i.style=u}}if(i&&null==i.z2){o||(i=h({},i));var c=t.z2emphasislift;i.z2=t.z2+(null!=c?c:sm)}return i}function sa(t,e,n){if(n&&null==n.z2){n=h({},n);var i=t.z2selectlift;n.z2=t.z2+(null!=i?i:mm)}return n}function ma(t,e,n){var i=p(t.currentstates,e)>=0,r=t.style.opacity,o=i?null:ba(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 ta(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return wa(this,t,e,n);if("blur"===t)return ma(this,t,n);if("select"===t)return sa(this,t,n)}return n}function ca(t){t.stateproxy=ta;var e=t.gettextcontent(),n=t.gettextguideline();e&&(e.stateproxy=ta),n&&(n.stateproxy=ta)}function ia(t,e){!na(t,e)&&!t.__highbyouter&&_a(t,pa)}function ka(t,e){!na(t,e)&&!t.__highbyouter&&_a(t,fa)}function da(t,e){t.__highbyouter|=1<<(e||0),_a(t,pa)}function aa(t,e){!(t.__highbyouter&=~(1<<(e||0)))&&_a(t,fa)}function pa(t){_a(t,da)}function la(t){_a(t,ga)}function oa(t){_a(t,ya)}function ra(t){_a(t,va)}function na(t,e){return t.__highdownsilentontouch&&e.zrbytouch}function za(t){var e=t.getmodel(),n=[],i=[];e.eachcomponent(function(e,r){var o=vm(r),a="series"===e,s=a?t.getviewofseriesmodel(r):t.getviewofcomponentmodel(r);!a&&i.push(s),o.isblured&&(s.group.traverse(function(t){ga(t)}),a&&n.push(r)),o.isblured=!1}),y(i,function(t){t&&t.toggleblurseries&&t.toggleblurseries(n,!1,e)})}function ba(t,e,n,i){function r(t,e){for(var n=0;nl;)a=r.getitemgraphicel(l++);if(a){var u=pm(a);ba(i,u.focus,u.blurscope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurscope"]);null!=h&&ba(i,h,c,n)}}}function va(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 ya(t,e,n){$a(t,!0),_a(t,ca),za(t,e,n)}function ja(t){$a(t,!1)}function qa(t,e,n,i){i?ja(t):ya(t,e,n)}function za(t,e,n){var i=pm(t);null!=e?(i.focus=e,i.blurscope=n):i.focus&&(i.focus=null)}function ka(t,e,n,i){n=n||"itemstyle";for(var r=0;r=dm&&(e=gm[t]=dm++),e}function ts(t){var e=t.type;return e===im||e===km||e===dm}function es(t){var e=t.type;return e===tm||e===cm}function ns(t){var e=ym(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 is(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=om.m,c=om.c,p=om.l,f=om.r,d=om.a,g=om.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 d:var y=e[4],v=e[5],m=nm(e[0]*e[0]+e[1]*e[1]),_=nm(e[2]*e[2]+e[3]*e[3]),x=zm(-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 f: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=rm[a];b[0]=l[r++],b[1]=l[r++],ve(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseversion()}}function rs(t){return math.sqrt(t[0]*t[0]+t[1]*t[1])}function os(t,e){return(t[0]*e[0]+t[1]*e[1])/(rs(t)*rs(e))}function as(t,e){return(t[0]*e[1]1&&(a*=bm(d),s*=bm(d));var g=(r===o?-1:1)*bm((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,y=g*a*f/s,v=g*-s*p/a,m=(t+n)/2+fm(c)*y-em(c)*v,_=(e+i)/2+em(c)*y+fm(c)*v,x=as([1,0],[(p-y)/a,(f-v)/s]),b=[(p-y)/a,(f-v)/s],w=[(-1*p-y)/a,(-1*f-v)/s],s=as(b,w);if(os(b,w)<=-1&&(s=vm),os(b,w)>=1&&(s=0),0>s){var m=math.round(s/vm*1e6)/1e6;s=2*vm+m%2*vm}h.adddata(u,m,_,a,s,x,s,c,o)}function ls(t){var e=new es;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=es.cmd,l=t.match(hm);if(!l)return e;for(var u=0;ug;g++)f[g]=parsefloat(f[g]);for(var y=0;d>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+=f[y++],r+=f[y++],p=s.l,e.adddata(p,i,r);break;case"l":i=f[y++],r=f[y++],p=s.l,e.adddata(p,i,r);break;case"m":i+=f[y++],r+=f[y++],p=s.m,e.adddata(p,i,r),o=i,a=r,c="l";break;case"m":i=f[y++],r=f[y++],p=s.m,e.adddata(p,i,r),o=i,a=r,c="l";break;case"h":i+=f[y++],p=s.l,e.adddata(p,i,r);break;case"h":i=f[y++],p=s.l,e.adddata(p,i,r);break;case"v":r+=f[y++],p=s.l,e.adddata(p,i,r);break;case"v":r=f[y++],p=s.l,e.adddata(p,i,r);break;case"c":p=s.c,e.adddata(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),i=f[y-2],r=f[y-1];break;case"c":p=s.c,e.adddata(p,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r),i+=f[y-2],r+=f[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=f[y++],t=f[y++],i=f[y++],r=f[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+f[y++],t=r+f[y++],i+=f[y++],r+=f[y++],e.adddata(p,v,m,m,t,i,r);break;case"q":m=f[y++],t=f[y++],i=f[y++],r=f[y++],p=s.q,e.adddata(p,m,t,i,r); break;case"q":m=f[y++]+i,t=f[y++]+r,i+=f[y++],r+=f[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=f[y++],r=f[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+=f[y++],r+=f[y++],p=s.q,e.adddata(p,v,m,i,r);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],s=f[y++],m=i,t=r,i=f[y++],r=f[y++],p=s.a,ss(m,t,i,r,w,s,_,x,b,p,e);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],s=f[y++],m=i,t=r,i+=f[y++],r+=f[y++],p=s.a,ss(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 us(t){return null!=t.setdata}function hs(t,e){var n=ls(t),i=h({},e);return i.buildpath=function(t){if(us(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){is(n,t),this.dirtyshape()},i}function cs(t,e){return new wm(hs(t,e))}function ps(t,n){var i=hs(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}(wm);return r}function fs(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 zs(e);return a.createpathproxy(),a.buildpath=function(t){if(us(t)){t.appendpath(n);var e=t.getcontext();e&&t.rebuildpath(e,1)}},a}function ds(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 rt>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function gs(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/et(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=n+h,g=i+c,y=(p+d)/2,v=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,b=r-o,w=p*g-d*f,s=(0>_?-1:1)*et(nt(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,k=m-y,d=t-v,a=c-y,p=i-v;return k*k+d*d>a*a+p*p&&(m=c,t=i),{cx:m,cy:t,x0:-h,y0:-c,x1:m*(r/b-1),y1:t*(r/b-1)}}function ys(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 vs(t,e){var n,i=nt(e.r,0),r=nt(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,f=tt(u-l),d=f>zm&&f%zm;if(d>rt&&(f=d),i>rt)if(f>zm-rt)t.moveto(h+i*$m(l),c+i*km(l)),t.arc(h,c,i,l,u,!p),r>rt&&(t.moveto(h+r*$m(u),c+r*km(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,k=void 0,d=void 0,a=void 0,p=i*$m(l),l=i*km(l),o=r*$m(u),r=r*km(u),n=f>rt;if(n){var z=e.cornerradius;z&&(n=ys(z),g=n[0],y=n[1],v=n[2],m=n[3]);var b=tt(i-r)/2;if(_=it(b,v),x=it(b,m),b=it(b,g),w=it(b,y),t=s=nt(_,x),c=m=nt(b,w),(s>rt||m>rt)&&(i=i*$m(u),k=i*km(u),d=r*$m(l),a=r*km(l),qm>f)){var e=ds(p,l,d,a,i,k,o,r);if(e){var f=p-e[0],v=l-e[1],h=i-e[0],g=k-e[1],w=1/km(qm((f*h+v*g)/(et(f*f+v*v)*et(h*h+g*g)))/2),u=et(e[0]*e[0]+e[1]*e[1]);t=it(s,(i-u)/(w+1)),c=it(m,(r-u)/(w-1))}}}if(n)if(t>rt){var x=it(v,t),y=it(m,t),j=gs(d,a,p,l,i,x,p),q=gs(i,k,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,jm(j.y0,j.x0),jm(q.y0,q.x0),!p):(x>0&&t.arc(h+j.cx,c+j.cy,x,jm(j.y0,j.x0),jm(j.y1,j.x1),!p),t.arc(h,c,i,jm(j.cy+j.y1,j.cx+j.x1),jm(q.cy+q.y1,q.cx+q.x1),!p),y>0&&t.arc(h+q.cx,c+q.cy,y,jm(q.y1,q.x1),jm(q.y0,q.x0),!p))}else t.moveto(h+p,c+l),t.arc(h,c,i,l,u,!p);else t.moveto(h+p,c+l);if(r>rt&&n)if(c>rt){var x=it(g,c),y=it(y,c),j=gs(o,r,i,k,r,-y,p),q=gs(p,l,d,a,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,jm(j.y0,j.x0),jm(q.y0,q.x0),!p):(y>0&&t.arc(h+j.cx,c+j.cy,y,jm(j.y0,j.x0),jm(j.y1,j.x1),!p),t.arc(h,c,r,jm(j.cy+j.y1,j.cx+j.x1),jm(q.cy+q.y1,q.cx+q.x1),p),x>0&&t.arc(h+q.cx,c+q.cy,x,jm(q.y1,q.x1),jm(q.y0,q.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 ms(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,f=t.length;f>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,f=t.length;f>p;p++){var d=t[p];if(n)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-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=fe(d,r),y=fe(d,o),v=g+y;0!==v&&(g/=v,y/=v),ce(h,u,-g),ce(c,u,y);var m=ie([],d,h),_=ie([],d,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 _s(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=ms(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 xs(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?cn:hn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?cn:hn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?mn:vn)(t.x1,t.cpx1,t.x2,e),(n?mn:vn)(t.y1,t.cpy1,t.y2,e)]}function bs(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=e(i.duration,200),h=e(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 ws(t,e,n,i,r,o,a){var s,l=!1;t(r)?(a=o,o=r,r=null):d(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=bs(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,f=h.easing,d={duration:c,delay:p||0,easing:f,done:o,force:!!o||!!a,settofinal:!u,scope:t,during:a};l?e.animatefrom(n,d):e.animateto(n,d)}else e.stopanimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ss(t,e,n,i,r,o){ws("update",t,e,n,i,r,o)}function ms(t,e,n,i,r,o){ws("enter",t,e,n,i,r,o)}function ts(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 ws(t){return!t.isgroup}function us(t){return null!=t.shape}function xs(t,e,n){function i(t){var e={};return t.traverse(function(t){ws(t)&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return us(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(ws(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),ss(t,i,n,pm(t).dataindex)}}})}}function ys(t,e){return v(t,function(t){var n=t[0];n=ot(n,e.x),n=rt(n,e.x+e.width);var i=t[1];return i=ot(i,e.y),i=rt(i,e.y+e.height),[n,i]})}function js(t,e){var n=ot(t.x,e.x),i=rt(t.x+t.width,e.x+e.width),r=ot(t.y,e.y),o=rt(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 qs(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 tm(i)):rs(t.replace("path://",""),i,n,"center"):void 0}function zs(t,e,n,i,r){for(var o=0,a=r[r.length-1];og||g>1)return!1;var y=$s(f,d,h,c)/p;return 0>y||y>1?!1:!0}function $s(t,e,n,i){return t*i-n*e}function qs(t){return 1e-6>=t&&t>=-1e-6}function js(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){$(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=pm(t.el);u.componentmaintype=o,u.componentindex=a,u.tooltipconfig={name:i,option:c({content:i,formatterparams:s},r)}}function tl(t,e){var n;t.isgroup&&(n=e(t)),n||t.traverse(e)}function el(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],f=!!h[c];f&&(i.call(r,c,p.originaldeps.slice()),delete h[c]),y(p.successor,f?a:o)}y(h,function(){var t="";throw new error(t)})}}}function yl(t,e){return l(l({},t,!0),e,!0)}function vl(t,e){t=t.touppercase(),uc[t]=new ec(e),lc[t]=e}function ml(t){if(c(t)){var e=lc[t.touppercase()]||{};return t===oc||t===ac?s(e):l(s(e),s(lc[sc]),!1)}return l(s(t),s(lc[sc]),!1)}function _l(t){return uc[t]}function xl(){return uc[sc]}function bl(t,e){return t+="","0000".substr(0,e-t.length)+t}function wl(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 sl(t){return t===wl(t)}function ml(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function tl(t,e,n,i){var r=gr(t),o=r[dl(n)](),a=r[al(n)]()+1,s=math.floor((a-1)/3)+1,l=r[pl(n)](),u=r["get"+(n?"utc":"")+"day"](),h=r[ll(n)](),c=(h-1)%12+1,p=r[ol(n)](),f=r[rl(n)](),d=r[nl(n)](),g=i instanceof ec?i:_l(i||hc)||xl(),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,bl(a,2)).replace(/{m}/g,a+"").replace(/{dd}/g,bl(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{hh}/g,bl(h,2)).replace(/{h}/g,h+"").replace(/{hh}/g,bl(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,bl(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,bl(f,2)).replace(/{s}/g,f+"").replace(/{sss}/g,bl(d,3)).replace(/{s}/g,d+"")}function cl(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({},yc);if(t.level>0)for(var s=0;s<_c.length;++s)a[_c[s]]="{primary|"+a[_c[s]]+"}";var l=n?n.inherit===!1?n:c(n,a):a,u=il(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(var p=xc.indexof(u),s=p-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(m(o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=math.min(f,o.length-1),o=o[f]}}return tl(new date(t.value),o,r,i)}function il(t,e){var n=gr(t),i=n[al(e)]()+1,r=n[pl(e)](),o=n[ll(e)](),a=n[ol(e)](),s=n[rl(e)](),l=n[nl(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===r,d=f&&1===i;return d?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function kl(t,e,n){var i=k(t)?gr(t):t;switch(e=e||il(t,n)){case"year":return i[dl(n)]();case"half-year":return i[al(n)]()>=6?1:0;case"quarter":return math.floor((i[al(n)]()+1)/4);case"month":return i[al(n)]();case"day":return i[pl(n)]();case"half-day":return i[ll(n)]()/24;case"hour":return i[ll(n)]();case"minute":return i[ol(n)]();case"second":return i[rl(n)]();case"millisecond":return i[nl(n)]()}}function dl(t){return t?"getutcfullyear":"getfullyear"}function al(t){return t?"getutcmonth":"getmonth"}function pl(t){return t?"getutcdate":"getdate"}function ll(t){return t?"getutchours":"gethours"}function ol(t){return t?"getutcminutes":"getminutes"}function rl(t){return t?"getutcseconds":"getseconds"}function nl(t){return t?"getutcmilliseconds":"getmilliseconds"}function zl(t){return t?"setutcfullyear":"setfullyear"}function bl(t){return t?"setutcmonth":"setmonth"}function el(t){return t?"setutcdate":"setdate"}function fl(t){return t?"setutchours":"sethours"}function vl(t){return t?"setutcminutes":"setminutes"}function hl(t){return t?"setutcseconds":"setseconds"}function gl(t){return t?"setutcmilliseconds":"setmilliseconds"}function wl(t,e,n,i,r,o,a,s){var l=new lm({style:{text:t,font:e,align:n,verticalalign:i,padding:r,rich:o,overflow:a?"truncate":null,lineheight:s}});return l.getboundingrect()}function ul(t){if(!wr(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 xl(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 yl(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?gr(t):t;if(!isnan(+l))return tl(l,o,n);if(s)return"-"}if("ordinal"===e)return i(t)?i(t):k(t)&&r(t)?t+"":"-";var u=br(t);return r(u)?ul(u):i(t)?i(t):"boolean"==typeof t?t+"":"-"}function jl(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 zl(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="mm-dd\nyyyy");var i=gr(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",bl(a,2)).replace("m",a).replace("yyyy",o).replace("yy",bl(o%100+"",2)).replace("dd",bl(s,2)).replace("d",s).replace("hh",bl(l,2)).replace("h",l).replace("mm",bl(u,2)).replace("m",u).replace("ss",bl(h,2)).replace("s",h).replace("sss",bl(c,3))}function kl(t){return t?t.charat(0).touppercase()+t.substr(1):t}function $l(t,e){return e=e||"transparent",c(t)?t:d(t)?t.colorstops&&(t.colorstops[0]||{}).color||e:e}function ql(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}function jl(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(),f=e.childat(u+1),d=f&&f.getboundingrect();if("horizontal"===t){var g=p.width+(d?-d.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+(d?-d.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 tu(t,e,n){n=bc(n||0);var i=e.width,r=e.height,o=rr(t.left,i),a=rr(t.top,r),s=rr(t.right,i),l=rr(t.bottom,r),u=rr(t.width,i),h=rr(t.height,r),c=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isnan(u)&&(u=i-s-p-o),isnan(h)&&(h=r-l-c-a),null!=f&&(isnan(u)&&isnan(h)&&(f>i/r?u=.8*i:h=.8*r),isnan(u)&&(u=f*h),isnan(h)&&(h=u/f)),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 d=new tb(o+n[3],a+n[0],u,h);return d.margin=n,d}function eu(t){var e=t.layoutmode||t.constructor.layoutmode;return d(e)?e:e?{type:e}:null}function nu(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(mc(n,function(e){u[e]=t[e]}),mc(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=lu(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecmodel,p=xc(c).datasetmap,f=a.uid+"_"+n.serieslayoutby;t=t.slice(),y(t,function(e,n){var i=d(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var d=p.get(f)||p.set(f,{categorywaydim:l,valuewaydim:0});return y(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=d.valuewaydim;i(o[n],l,a),i(h,l,a),d.valuewaydim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=d.categorywaydim;i(o[n],l,a),i(h,l,a),d.categorywaydim+=a}}),u.length&&(o.itemname=u),h.length&&(o.seriesname=h),o}function lu(t){var e=t.get("data",!0);return e?void 0:kr(t.ecmodel,"dataset",{index:t.get("datasetindex",!0),id:t.get("datasetid",!0)},uw).models[0]}function uu(t){return t.get("transform",!0)||t.get("fromtransformresult",!0)?kr(t.ecmodel,"dataset",{index:t.get("fromdatasetindex",!0),id:t.get("fromdatasetid",!0)},uw).models:[]}function hu(t,e){return cu(t.data,t.sourceformat,t.serieslayoutby,t.dimensionsdefine,t.startindex,e)}function cu(t,e,n,i,r,o){function a(t){var e=c(t);return null!=t&&isfinite(t)&&""!==t?e?uc.might:uc.not:e&&"-"!==t?uc.must:void 0}var s,l=5;if(p(t))return uc.not;var u,h;if(i){var c=i[o];d(c)?(u=c.name,h=c.type):c(c)&&(u=c)}if(null!=h)return"ordinal"===h?uc.must:uc.not;if(e===bc){var p=t;if(n===wc){for(var f=p[o],d=0;d<(f||[]).length&&l>d;d++)if(null!=(s=a(f[r+d])))return s}else for(var d=0;dd;d++){var g=p[r+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===ec){var y=t;if(!u)return uc.not;for(var d=0;dd;d++){var v=y[d];if(v&&null!=(s=a(v[u])))return s}}else if(e===fc){var m=t;if(!u)return uc.not;var f=m[u];if(!f||p(f))return uc.not;for(var d=0;dd;d++)if(null!=(s=a(f[d])))return s}else if(e===zc)for(var _=t,d=0;d<_.length&&l>d;d++){var v=_[d],x=ar(v);if(!m(x))return uc.not;if(null!=(s=a(x[o])))return s}return uc.not}function pu(t,e,n){var i=yc.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function fu(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 du(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?fu(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 gu(t,e){e(t).paletteidx=0,e(t).palettenamemap={}}function yu(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 vu(t,e){var n=t.color&&!t.colorlayer;y(e,function(e,i){"colorlayer"===i&&n||dc.hasclass(i)||("object"==typeof e?t[i]=t[i]?l(t[i],e,!1):s(e):null==t[i]&&(t[i]=e))})}function mu(t,e,n){if(m(e)){var i=j();return y(e,function(t){if(null!=t){var e=hr(t,null);null!=e&&i.set(t,!0)}}),_(n,function(e){return e&&i.get(e[t])})}var r=hr(e,null);return _(n,function(e){return e&&null!=r&&e[t]===r})}function _u(t,e){return e.hasownproperty("subtype")?_(t,function(t){return t&&t.subtype===e.subtype}):t}function xu(t){var e=j();return t&&y(kr(t.replacemerge),function(t){e.set(t,!0)}),{replacemergemaintypemap:e}}function bu(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 wu(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return y(t,function(t,e){var n=e.match(li);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].tolowercase();su(i[a],t,o)||(r=!1)}}),r}function su(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function mu(t,e){return t.join(",")===e.join(",")}function tu(t){var e=t&&t.itemstyle;if(e)for(var n=0,i=pi.length;i>n;n++){var r=pi[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 cu(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 iu(t){cu(t,"itemstyle"),cu(t,"linestyle"),cu(t,"areastyle"),cu(t,"label"),cu(t,"labelline"),cu(t,"upperlabel"),cu(t,"edgelabel")}function ku(t,e){var n=ci(t)&&t[e],i=ci(n)&&n.textstyle;if(i)for(var r=0,o=gw.length;o>r;r++){var a=gw[r];i.hasownproperty(a)&&(n[a]=i[a])}}function du(t){t&&(iu(t),ku(t,"label"),t.emphasis&&ku(t.emphasis,"label"))}function au(t){if(ci(t)){tu(t),iu(t),ku(t,"label"),ku(t,"upperlabel"),ku(t,"edgelabel"),t.emphasis&&(ku(t.emphasis,"label"),ku(t.emphasis,"upperlabel"),ku(t.emphasis,"edgelabel"));var e=t.markpoint;e&&(tu(e),du(e));var n=t.markline;n&&(tu(n),du(n));var i=t.markarea;i&&du(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!p(o))for(var a=0;a=0;g--){var y=t[g];if(s||(f=y.data.rawindexof(y.stackedbydimension,p)),f>=0){var v=y.data.getbyrawindex(y.stackresultdimension,f);if("all"===l||"positive"===l&&v>0||"negative"===l&&0>v||"samesign"===l&&c>=0&&v>0||"samesign"===l&&0>=c&&0>v){c=pr(c,v),d=v;break}}}return i[0]=c,i[1]=d,i})})}function xu(t){return t instanceof yi}function yu(t,e,n){n=n||zu(t);var i=e.serieslayoutby,r=ku(t,n,i,e.sourceheader,e.dimensions),o=new yi({data:t,sourceformat:n,serieslayoutby:i,dimensionsdefine:r.dimensionsdefine,startindex:r.startindex,dimensionsdetectedcount:r.dimensionsdetectedcount,metarawoption:s(e)});return o}function ju(t){return new yi({data:t,sourceformat:p(t)?vc:zc})}function qu(t){return new yi({data:t.data,sourceformat:t.sourceformat,serieslayoutby:t.serieslayoutby,dimensionsdefine:s(t.dimensionsdefine),startindex:t.startindex,dimensionsdetectedcount:t.dimensionsdetectedcount})}function zu(t){var e=hc;if(p(t))e=vc;else if(m(t)){0===t.length&&(e=bc);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(m(r)){e=bc;break}if(d(r)){e=ec;break}}}}else if(d(t))for(var o in t)if($(t,o)&&g(t[o])){e=fc;break}return e}function ku(t,e,n,i,r){var o,a;if(!t)return{dimensionsdefine:qu(r),startindex:a,dimensionsdetectedcount:o};if(e===bc){var s=t;"auto"===i||null==i?ju(function(t){null!=t&&"-"!==t&&(c(t)?null==a&&(a=1):a=0)},n,s,10):a=k(i)?i:i?1:0,r||1!==a||(r=[],ju(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===wc?s.length:s[0]?s[0].length:null}else if(e===ec)r||(r=$u(t));else if(e===fc)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===zc){var l=ar(t[0]);o=m(l)&&l.length||1}return{startindex:a,dimensionsdefine:qu(r),dimensionsdetectedcount:o}}function $u(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 th(t){var e=t.sourceformat;return e===ec||e===fc}function eh(t,e){var n=_i[rh(t,e)];return n}function nh(t,e){var n=bi[rh(t,e)];return n}function ih(t){var e=si[t];return e}function rh(t,e){return t===bc?t+"_"+e:t}function oh(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 ih(o)(i,a,s)}var l=i;return o===zc&&(l=ar(i)),l}}}function ah(t){var e,n;return d(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function sh(t){return new ci(t)}function lh(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||k(t)||null==t||"-"===t||(t=+gr(t)),null==t||""===t?0/0:+t)}function uh(t,e){var n=new ai,i=t.data,r=n.sourceformat=t.sourceformat,o=t.startindex,a="";t.serieslayoutby!==gc&&cr(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="";$(l,n)&&cr(r),l[n]=i}});else for(var h=0;ho;o++)r.push(n[o].slice());return r}if(e===ec){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function ph(t,e,n){return null!=n?k(n)||!isnan(n)&&!$(e,n)?t[n]:$(e,n)?e[n]:void 0:void 0}function fh(t){return s(t)}function dh(t){t=s(t);var e=t.type,n="";e||cr(n);var i=e.split(":");2!==i.length&&cr(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isbuiltin=r,pi.set(e,t)}function gh(t,e,n){var i=kr(t),r=i.length,o="";r||cr(o);for(var a=0,s=r;s>a;a++){var l=i[a];e=yh(l,e,n,1===r?null:a),a!==s-1&&(e.length=math.max(e.length,1))}return e}function yh(t,e){var n="";e.length||cr(n),d(t)||cr(n);var i=t.type,r=pi.get(i);r||cr(n);var o=v(e,function(t){return uh(t,r)}),a=kr(r.transform({upstream:o[0],upstreamlist:o,config:s(t.config)}));return v(a,function(t,n){var i="";d(t)||cr(i),t.data||cr(i);var r=zu(t.data);vh(r)||cr(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:gc,sourceheader:s,dimensions:a.metarawoption.dimensions}}else o={serieslayoutby:gc,sourceheader:0,dimensions:t.dimensions};return yu(t.data,o,null)})}function vh(t){return t===bc||t===ec}function mh(t){return t>65535?oi:ri}function _h(){return[1/0,-1/0]}function xh(t){var e=t.constructor;return e===array?t.slice():new e(t)}function bh(t,e,n,i,r){var o=bi[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 wh(t){var e=t.option.transform;e&&u(t.option.transform)}function sh(t){return"series"===t.maintype}function mh(t){throw new error(t)}function th(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 ch(t,e){return e.type=t,e}function ih(t){return"section"===t.type}function kh(t){return ih(t)?ah:ph}function dh(t){if(ih(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noheader;return y(t.blocks,function(t){var n=dh(t);n>=e&&(e=n+ +(i&&(!n||ih(t)&&!t.noheader)))}),e}return 0}function ah(t,e,n,i){var r=e.noheader,o=oh(dh(e)),a=[],s=e.blocks||[];g(!s||m(s)),s=s||[];var l=t.ordermode;if(e.sortblocks&&l){s=s.slice();var u={valueasc:"asc",valuedesc:"desc"};if($(u,l)){var c=new di(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=kh(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):rh(a.join(""),r?n:o.html);if(r)return p;var f=yl(e.header,"ordinal",t.useutc),d=th(i,t.rendermode).namestyle;return"richtext"===t.rendermode?bh(t,f,d)+o.richtext+p:rh('
'+ie(f)+"
"+p,n)}function ph(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 yl(t,m(f)?f[e]:f,u)})};if(!o||!a){var c=s?"":t.markupstylecreator.maketooltipmarker(e.markertype,e.markercolor||"#333",r),p=o?"":yl(l,"ordinal",u),f=e.valuetype,d=a?[]:h(e.value),g=!s||!o,y=!s&&o,m=th(i,r),_=m.namestyle,x=m.valuestyle;return"richtext"===r?(s?"":c)+(o?"":bh(t,p,_))+(a?"":eh(t,d,g,y,x)):rh((s?"":c)+(o?"":nh(p,!s,_))+(a?"":zh(d,g,y,x)),n)}}function lh(t,e,n,i,r,o){if(t){var a=kh(t),s={useutc:r,rendermode:n,ordermode:i,markupstylecreator:e,valueformatter:t.valueformatter};return a(s,t,0,o)}}function oh(t){return{html:hi[t],richtext:gi[t]}}function rh(t,e){var n='
',i="margin: "+e+"px 0 0";return'
'+t+n+"
"}function nh(t,e,n){var i=e?"margin-left:2px":"";return''+ie(t)+""}function zh(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 bh(t,e,n){return t.markupstylecreator.wraprichtextstyle(e,n)}function eh(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 fh(t,e){var n=t.getdata().getitemvisual(e,"style"),i=n[t.visualdrawtype];return $l(i)}function vh(t,e){var n=t.get("padding");return null!=n?n:"richtext"===e?[8,10]:10}function hh(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),f=fh(o,a);if(h>1||p&&!h){var d=gh(c,o,a,u,f);e=d.inlinevalues,n=d.inlinevaluetypes,i=d.blocks,r=d.inlinevalues[0]}else if(h){var g=l.getdimensioninfo(u[0]);r=e=oh(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=gr(o),v=y&&o.name||"",m=l.getname(a),_=s?v:m;return ch("section",{header:v,noheader:s||!y,sortparam:r,blocks:[ch("namevalue",{markertype:"item",markercolor:f,name:_,noname:!w(_),value:e,valuetype:n})].concat(i||[])})}function gh(t,e,n,i,r){function o(t,e){var n=a.getdimensioninfo(e);n&&n.otherdims.tooltip!==!1&&(s?h.push(ch("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(oh(a,n,t),t)}):y(t,o),{inlinevalues:l,inlinevaluetypes:u,blocks:h}}function wh(t,e){return t.getname(e)||t.getid(e)}function uh(t){var e=t.name;gr(t)||(t.name=xh(t)||e)}function xh(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 yh(t){return t.model.getrawdata().count()}function jh(t){var e=t.model;return e.setdata(e.getrawdata().cloneshallow()),qh}function qh(t,e){e.outputdata&&t.end>e.outputdata.count()&&e.model.getrawdata().cloneshallow(e.outputdata)}function zh(t,e){y(q(t.changable_methods,t.downsample_methods),function(n){t.wrapmethod(n,s(kh,e))})}function kh(t,e){var n=$h(t);return n&&n.setoutputend((e||this).count()),e}function $h(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 qh(){var t=jr();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 jh(t,e,n){t&&qa(t)&&("emphasis"===e?da:aa)(t,n)}function tc(t,e,n){var i=yr(t,e),r=e&&null!=e.highlightkey?ja(e.highlightkey):null;null!=i?y(kr(i),function(e){jh(t.getitemgraphicel(e),n,r)}):t.eachitemgraphicel(function(t){jh(t,n,r)})}function ec(t){return zi(t.model)}function nc(t){var e=t.model,n=t.ecmodel,i=t.api,r=t.payload,o=e.pipelinecontext.progressiverender,a=t.view,s=r&&qi(r).updatemethod,l=o?"incrementalpreparerender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),qi[l]}function ic(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 rc(t,e,n,i){var r=t[e];if(r){var o=r[ji]||r,a=r[ek],s=r[tk];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=ic(o,n,"debounce"===i),r[ji]=o,r[ek]=i,r[tk]=n}return r}}function oc(t,e){var n=t[e];n&&n[ji]&&(n.clear&&n.clear(),t[e]=n[ji])}function ac(t,e){var n=t.visualstylemapper||ik[e];return n?n:(console.warn("unknown style type '"+e+"'."),ik.itemstyle)}function sc(t,e){var n=t.visualdrawtype||rk[e];return n?n:(console.warn("unknown style type '"+e+"'."),"fill")}function lc(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 aw,i=new rm({style:{fill:e.maskcolor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new lm({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 rm({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 xt({shape:{startangle:-uk/2,endangle:-uk/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*uk/2}).start("circularinout"),a.animateshape(!0).when(1e3,{startangle:3*uk/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 uc(t){t.overallreset(t.ecmodel,t.api,t.payload)}function hc(t){return t.overallprogress&&cc}function cc(){this.agent.dirty(),this.getdownstream().dirty()}function pc(){this.agent&&this.agent.dirty()}function fc(t){return t.plan?t.plan(t.model,t.ecmodel,t.api,t.payload):null}function dc(t){t.useclearvisual&&t.data.clearallvisual();var e=t.resetdefines=kr(t.reset(t.model,t.ecmodel,t.api,t.payload));return e.length>1?v(e,function(t,e){return gc(e)}):ck}function gc(t){return function(e,n){var i=n.data,r=n.resetdefines[t];if(r&&r.dataeach)for(var o=e.start;o=0&&kc(l)?l:.5;var u=t.createradialgradient(a,s,0,a,s,l);return u}function pc(t,e,n){for(var i="radial"===e.type?ac(t,e,n):dc(t,e,n),r=e.colorstops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:k(t)?[t]:m(t)?t:null:null}function zc(t){var e=t.style,n=e.linedash&&e.linewidth>0&&nc(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 bc(t){var e=t.stroke;return!(null==e||"none"===e||!(t.linewidth>0))}function ec(t){return"string"==typeof t&&"none"!==t}function fc(t){var e=t.fill;return null!=e&&"none"!==e}function vc(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 hc(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 gc(t,e,n){var i=fo(e.image,e.__image,n);if(yo(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)*sx),o.scaleself(e.scalex||1,e.scaley||1),r.settransform(o)}return r}}function wc(t,e,n,i){var r,o=bc(n),a=fc(n),s=n.strokepercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createpathproxy();var h=e.path||bk,c=e.__dirty;if(!i){var p=n.fill,f=n.stroke,d=a&&!!p.colorstops,g=o&&!!f.colorstops,y=a&&!!p.image,v=o&&!!f.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(d||g)&&(w=e.getboundingrect()),d&&(m=c?pc(t,p,w):e.__canvasfillgradient,e.__canvasfillgradient=m),g&&(_=c?pc(t,f,w):e.__canvasstrokegradient,e.__canvasstrokegradient=_),y&&(x=c||!e.__canvasfillpattern?gc(t,p,e):e.__canvasfillpattern,e.__canvasfillpattern=x),v&&(b=c||!e.__canvasstrokepattern?gc(t,f,e):e.__canvasstrokepattern,e.__canvasstrokepattern=x),d?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=zc(e),m=r[0],t=r[1]);var c=!0;(u||c&pb)&&(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&&hc(t,n),a&&vc(t,n)):(a&&vc(t,n),o&&hc(t,n))),m&&t.setlinedash([])}function uc(t,e,n){var i=e.__image=fo(n.image,e.__image,e,e.onload);if(i&&yo(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 xc(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||q_,t.textalign=n.textalign,t.textbaseline=n.textbaseline;var o=void 0,a=void 0;t.setlinedash&&n.linedash&&(i=zc(e),o=i[0],a=i[1]),o&&(t.setlinedash(o),t.linedashoffset=a),n.strokefirst?(bc(n)&&t.stroketext(r,n.x,n.y),fc(n)&&t.filltext(r,n.x,n.y)):(fc(n)&&t.filltext(r,n.x,n.y),bc(n)&&t.stroketext(r,n.x,n.y)),o&&t.setlinedash([])}}function yc(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){jc(t,r),o=!0;var a=math.max(math.min(e.opacity,1),0);t.globalalpha=isnan(a)?os.opacity:a}(i||e.blend!==n.blend)&&(o||(jc(t,r),o=!0),t.globalcompositeoperation=e.blend||os.blend);for(var s=0;so;o++){var l=i[o];l.beforebrush&&l.beforebrush(),l.innerbeforebrush(),np(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(),np(t,l,s,u===h-1),l.innerafterbrush(),l.afterbrush&&l.afterbrush(),s.prevel=l}e.cleartemporaldisplayables(),e.notclear=!0,t.restore()}function rp(t,e){function n(t){function e(){for(var t=1,e=0,n=v.length;n>e;++e)t=tr(t,v[e]);for(var i=1,e=0,n=y.length;n>e;++e)i=tr(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=tc(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 ep(f,h)}f&&(f.clearrect(0,0,_.width,_.height),s.backgroundcolor&&(f.fillstyle=s.backgroundcolor,f.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+d[h][v]*m,c=a+g[l]*m,i=d[h][v]*s.symbolsize,k=g[l]*s.symbolsize,d=w/2%y[c].length;t(t,c,i,k,y[c][d])}p+=d[h][v],++w,++v,v===d[h].length&&(v=0)}++h,h===d.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[i],l=!0,u=0;u=0)){ra.push(n);var o=hk.wrapstagehandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function rp(t,e){$d[t]=e}function np(t){r({createcanvas:t})}function zp(t,e,n){var i=pp("registermap");i&&i(t,e,n)}function bp(t){var e=pp("getmap");return e&&e(t)}function ep(t){return null==t?0:t.length||1}function fp(t){return t}function vp(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;hp(i,l)[u]=e,n.isextracoord||(r.set(l,1),wp(n.type)&&(o[0]=e),hp(s,l)[u]=t.getdimensionindex(n.name)),n.defaulttooltip&&a.push(e)}nc.each(function(t,e){var r=hp(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 ga(s,e),n}function hp(t,e){return t.hasownproperty(e)||(t[e]=[]),t[e]}function gp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wp(t){return!("ordinal"===t||"time"===t)}function up(t){return t instanceof _a}function xp(t){for(var e=j(),n=0;n<(t||[]).length;n++){var i=t[n],r=d(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function yp(t){var e=va(t);return e.dimnamemap||(e.dimnamemap=xp(t.dimensionsdefine))}function jp(t){return t>30}function qp(t,e){return zp(t,e).dimensions}function zp(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=d(n)?n:{name:n},r=new ya,o=i.name; null!=o&&null!=d.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!=nc.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)}xu(t)||(t=ju(t)),e=e||{};var o=e.coorddimensions||[],a=e.dimensionsdefine||t.dimensionsdefine||[],s=j(),l=[],u=$p(t,o,a,e.dimensionscount),p=e.canomitunuseddimensions&&jp(u),f=a===t.dimensionsdefine,d=f?yp(t):xp(a),g=e.encodedefine;!g&&e.encodedefaulter&&(g=e.encodedefaulter(t,u));for(var v=j(g),m=new ni(u),_=0;__;_++)n(_);v.each(function(t,e){var r=kr(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)?d.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=kr(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(f&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!d(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),k=i.coorddim;null==k&&(i.coorddim=qp(m,s,s),i.coorddimindex=0,(!b||0>=w)&&(i.isextracoord=!0),w--),r(i),null!=i.type||hu(t,t)!==uc.must&&(!i.isextracoord||null==i.otherdims.itemname&&null==i.otherdims.seriesname)||(i.type="ordinal")}return kp(l),new _a({source:t,dimensions:l,fulldimensioncount:u,dimensionomitted:p})}function kp(t){for(var e=j(),n=0;n0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function $p(t,e,n,i){var r=math.max(t.dimensionsdetectedcount||1,e.length,n.length,i||0);return y(e,function(t){var e;d(t)&&(e=t.dimsdef)&&(r=math.max(r,e.length))}),r}function qp(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 jp(t){var e=t.get("coordinatesystem"),n=new ka(e),i=da[e];return i?(i(t,n,n.axismap,n.categoryaxismap),n):void 0}function tf(t){return"category"===t.get("type")}function ef(t,e,n){n=n||{};var i,r,o,a=n.byindex,s=n.stackedcoorddimension;nf(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 f=u.coorddim,d=u.type,g=0;y(i,function(t){t.coorddim===f&&g++});var v={name:h,coorddim:f,coorddimindex:g,type:d,isextracoord:!0,iscalculationcoord:!0,storedimindex:i.length},m={name:c,coorddim:c,coorddimindex:g+1,type:d,isextracoord:!0,iscalculationcoord:!0,storedimindex:i.length+1};r?(o&&(v.storedimindex=o.ensurecalculationdimension(c,d),m.storedimindex=o.ensurecalculationdimension(h,d)),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 nf(t){return!up(t.schema)}function rf(t,e){return!!e&&e===t.getcalculationinfo("stackeddimension")}function of(t,e){return rf(t,e)?t.getcalculationinfo("stackresultdimension"):e}function af(t,e){var n,i=t.get("coordinatesystem"),r=si.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=gp(r)}return n})),n||(n=r&&(r.getdimensionsinfo?r.getdimensionsinfo():r.dimensions.slice())||["x","y"]),n}function sf(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 lf(t,e,n){n=n||{};var i,r=e.getsourcemanager(),o=!1;t?(o=!0,i=ju(t)):(i=r.getsource(),o=i.sourceformat===zc);var a=jp(e),s=af(e,a),l=n.useencodedefaulter,u=t(l)?l:l?s(su,s,e):null,h={coorddimensions:s,generatecoord:n.generatecoord,encodedefine:e.getencode(),encodedefaulter:u,canomitunuseddimensions:!o},c=zp(i,h),p=sf(c.dimensions,n.createinvertedindices,a),f=o?null:r.getshareddatastore(c),d=ef(e,{schema:c,store:f}),g=new ia(c,e);g.setcalculationinfo(d);var y=null!=p&&uf(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:f,null,y),g}function uf(t){if(t.sourceformat===zc){var e=hf(t.data||[]);return!m(ar(e))}}function hf(t){for(var e=0;ea&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalprecision=gf(a),l=r.nicetickextent=[or(math.ceil(t[0]/a)*a,s),or(math.floor(t[1]/a)*a,s)];return vf(l,t),r}function df(t){var e=math.pow(10,vr(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,or(n*e)}function gf(t){return sr(t)+2}function yf(t,e,n){t[e]=math.max(math.min(t[e],n[1]),n[0])}function vf(t,e){!isfinite(t[0])&&(t[0]=e[0]),!isfinite(t[1])&&(t[1]=e[1]),yf(t,0,e),yf(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function mf(t,e){return t>=e[0]&&t<=e[1]}function _f(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function xf(t,e){return t*(e[1]-e[0])+e[0]}function bf(t){return m(t)?za?new float32array(t):t:new ba(t)}function wf(t){return t.get("stack")||ea+t.seriesindex}function sf(t){return t.dim+t.index}function mf(t,e){var n=[];return e.eachseriesbytype(t,function(t){df(t)&&n.push(t)}),n}function tf(t){var e={};y(t,function(t){var n=t.coordinatesystem,i=n.getbaseaxis();if("time"===i.type||"value"===i.type)for(var r=t.getdata(),o=i.dim+"_"+i.index,a=r.getdimensionindex(r.mapdimension(i.dim)),s=r.getstore(),l=0,u=s.count();u>l;++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 cf(t){var e=tf(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 f=rr(t.get("barwidth"),i),d=rr(t.get("barmaxwidth"),i),g=rr(t.get("barminwidth")||(af(t)?.5:1),i),y=t.get("bargap"),v=t.get("barcategorygap");n.push({bandwidth:i,barwidth:f,barmaxwidth:d,barminwidth:g,bargap:y,barcategorygap:v,axiskey:sf(o),stackid:wf(t)})}),if(n)}function if(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=rr(o,r),l=rr(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,f=0;y(i,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var d=-f/2;y(i,function(t,i){n[e][i]=n[e][i]||{bandwidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function kf(t,e,n){if(t&&e){var i=t[sf(e)];return null!=i&&null!=n?i[wf(n)]:i}}function df(t){return t.coordinatesystem&&"cartesian2d"===t.coordinatesystem.type}function af(t){return t.pipelinecontext&&t.pipelinecontext.large}function pf(t,e,n,i){var r=gr(e),o=gr(n),a=function(t){return kl(r,t,i)===kl(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")},f=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 f()}}function lf(t){return t/=dc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function of(t){var e=30*dc;return t/=e,t>6?6:t>3?3:t>2?2:1}function rf(t){return t/=fc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function nf(t,e){return t/=e?pc:cc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function zf(t){return mr(t,!0)}function bf(t,e,n){var i=new date(t);switch(wl(e)){case"year":case"month":i[bl(n)](0);case"day":i[el(n)](1);case"hour":i[fl(n)](0);case"minute":i[vl(n)](0);case"second":i[hl(n)](0),i[gl(n)](0)}return i.gettime()}function ef(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(!pf(wl(t),i[0],i[1],n)){l&&(o=[{value:bf(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[f])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,f=0;f0&&i>0||0>n&&0>i)}function jf(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(qf(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getlabel(e)}}function qf(t,e){return"category"===t.type?t.scale.getlabel(e):e.value}function zf(t){var e=t.model,n=t.scale;if(e.get(["axislabel","show"])&&!n.isblank()){var i,r,o=n.getextent();n instanceof oa?r=n.count():(i=n.getticks(),r=i.length);var a,s=t.getlabelmodel(),l=jf(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),f=s.gettextrect(p),d=kf(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function kf(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 tb(t.x,t.y,o,a);return s}function $f(t){var e=t.get("interval");return null==e?"auto":e}function qf(t){return"category"===t.type&&0===$f(t.getlabelmodel())}function jf(t,e){var n={};return y(t.mapdimensionsall(e),function(e){n[of(t,e)]=!0}),b(n)}function td(t){return lf(null,t)}function ed(t,e){var n=e;e instanceof ec||(n=new ec(e));var i=xf(n);return i.setextent(t[0],t[1]),uf(i,n),i}function nd(t){d(t,tp)}function id(t,e){return e=e||{},al(t,null,null,"normal"!==e.state)}function rd(t){return m(t)?void y(t,function(t){rd(t)}):void(p(ip,t)>=0||(ip.push(t),t(t)&&(t={install:t}),t.install(rp)))}function od(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 hd(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=pd(r,i,n);break;case"polygon":cd(r,i,n);break;case"multilinestring":cd(r,i,n);break;case"multipolygon":y(r,function(t,e){return cd(t,i[e],n)})}}),e.utf8encoding=!1,e}function cd(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 fd(t,e){return t=hd(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 lp(o[0],o.slice(1)));break;case"multipolygon":y(i.coordinates,function(t){t[0]&&r.push(new lp(t[0],t.slice(1)))});break;case"linestring":r.push(new up([i.coordinates]));break;case"multilinestring":r.push(new up(i.coordinates))}var a=new hp(n[e||"name"],r,n.cp);return a.properties=n,a})}function dd(t){return"category"===t.type?yd(t):_d(t)}function gd(t,e){return"category"===t.type?md(t,e):{ticks:v(t.scale.getticks(),function(t){return t.value})}}function yd(t){var e=t.getlabelmodel(),n=vd(t,e);return!e.get("show")||t.scale.isblank()?{labels:[],labelcategoryinterval:n.labelcategoryinterval}:n}function vd(t,e){var n=xd(t,"labels"),i=$f(e),r=bd(n,i);if(r)return r;var o,a;return t(i)?o=id(t,i):(a="auto"===i?sd(t):i,o=cd(t,a)),wd(n,i,{labels:o,labelcategoryinterval:a})}function md(t,e){var n=xd(t,"ticks"),i=$f(e),r=bd(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isblank())&&(o=[]),t(i))o=id(t,i,!0);else if("auto"===i){var s=vd(t,t.getlabelmodel());a=s.labelcategoryinterval,o=v(s.labels,function(t){return t.tickvalue})}else a=i,o=cd(t,a,!0);return wd(n,i,{ticks:o,tickcategoryinterval:a})}function _d(t){var e=t.scale.getticks(),n=jf(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 xd(t,e){return yp(t)[e]||(yp(t)[e]=[])}function bd(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,f=0;l<=o[1];l+=s){var d=0,g=0,y=zi(n({value:l}),e.font,"center","top");d=1.3*y.width,g=1.3*y.height,p=math.max(p,d,7),f=math.max(f,g,7)}var v=p/h,m=f/c;isnan(v)&&(v=1/0),isnan(m)&&(m=1/0);var _=math.max(0,math.floor(math.min(v,m))),x=yp(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 td(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 cd(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=jf(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=qf(t),f=s.get("showminlabel")||p,d=s.get("showmaxlabel")||p;f&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return d&&g-u!==a[1]&&i(a[1]),l}function id(t,e,n){var i=t.scale,r=jf(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 kd(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function dd(t,e,n,i){function r(t,e){return t=or(t),e=or(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 ad(t){var e=dc.extend(t);return dc.registerclass(e),e}function pd(t){var e=ji.extend(t);return ji.registerclass(e),e}function ld(t){var e=yi.extend(t);return yi.registerclass(e),e}function od(t){var e=ki.extend(t);return ki.registerclass(e),e}function rd(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 nd(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)%_p<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=bo(r),r=bo(p)}else i=bo(i),r=bo(r);i>r&&(r+=_p);var f=math.atan2(s,a);if(0>f&&(f+=_p),f>=i&&r>=f||f+_p>=i&&r>=f+_p)return l[0]=h,l[1]=c,u-n;var d=n*math.cos(i)+t,g=n*math.sin(i)+e,y=n*math.cos(r)+t,v=n*math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=d,l[1]=g,math.sqrt(m)):(l[0]=y,l[1]=v,math.sqrt(_))}function zd(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 f=l*h+u*c,d=f/p;s&&(d=math.min(math.max(d,0),1)),d*=p;var g=a[0]=t+d*h,y=a[1]=e+d*c;return math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function bd(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 ed(t,e,n){var i=bd(e.x,e.y,e.width,e.height,t.x,t.y,wp);return n.set(wp[0],wp[1]),i}function fd(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,f=0;f=f&&(s=i,l=r);var s=(c-y)*_/m+y;g=nd(y,v,_,x,x+b,w,s,p,wp),o=math.cos(x+b)*m+y,a=math.sin(x+b)*_+v;break;case xp.r:s=o=h[f++],l=a=h[f++];var m=h[f++],t=h[f++];g=bd(s,l,m,t,c,p,wp);break;case xp.z:g=zd(o,a,s,l,c,p,wp,!0),o=s,a=l}u>g&&(u=g,n.set(wp[0],wp[1]))}return u}function vd(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||bp,s=i.getboundingrect().clone();s.applytransform(i.getcomputedtransform());var l=1/0,u=r.anchor,h=t.getcomputedtransform(),c=h&&ue([],h),p=e.get("length2")||0;u&&tp.copy(u);for(var f=0;fy&&(l=y,mp.transform(h),tp.transform(h),tp.toarray(o[0]),mp.toarray(o[1]),sp.toarray(o[2]))}hd(o,e.get("minturnangle")),n.setshape({points:o})}}}function hd(t,e){if(180>=e&&e>0){e=e/180*math.pi,sp.fromarray(t[0]),mp.fromarray(t[1]),tp.fromarray(t[2]),xx.sub(cp,sp,mp),xx.sub(ip,tp,mp);var n=cp.len(),i=ip.len();if(!(.001>n||.001>i)){cp.scale(1/n),ip.scale(1/i);var r=cp.dot(ip),o=math.cos(e);if(r>o){var a=zd(mp.x,mp.y,tp.x,tp.y,sp.x,sp.y,kp,!1);dp.fromarray(kp),dp.scaleandadd(ip,a/math.tan(math.pi-e));var s=tp.x!==mp.x?(dp.x-mp.x)/(tp.x-mp.x):(dp.y-mp.y)/(tp.y-mp.y);if(isnan(s))return;0>s?xx.copy(dp,mp):s>1&&xx.copy(dp,tp),dp.toarray(t[1])}}}}function gd(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 wd(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=ix(i[0],i[1]),o=ix(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&&(d=!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 f=o[s]*p;l(f,0,s+1)}else for(var s=c-1;s>0;s--){var f=o[s-1]*p;l(-f,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,f=0,d=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],_=m.rect;p=_[e]-f,0>p&&(_[e]-=p,m.label[e]-=p,d=!0);var x=math.max(-p,0);g.push(x),y+=x,f=_[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),d}}function qd(t,e,n,i){return jd(t,"x","width",e,n,i)}function zd(t,e,n,i){return jd(t,"y","height",e,n,i)}function kd(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 tb(0,0,0,0),r=0;r=0&&i.push(e[o])}return i.join(" ")}function lg(t,e){this.parent.drift(t,e)}function ug(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 hg(t){return null==t||d(t)||(t={isignore:t}),t||{}}function cg(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:ol(e),cursorstyle:e.get("cursor")}}function pg(t,e,n){var i=t.getbaseaxis(),r=t.getotheraxis(i),o=fg(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,f=e.getcalculationinfo("stackresultdimension");return rf(e,c[0])&&(p=!0,c[0]=f),rf(e,c[1])&&(p=!0,c[1]=f),{datadimsforpoint:c,valuestart:o,valueaxisdim:s,baseaxisdim:a,stacked:!!p,valuedim:l,basedim:u,basedataoffset:h,stackedoverdimension:e.getcalculationinfo("stackedoverdimension")}}function fg(t,e){var n=0,i=t.scale.getextent();return"start"===e?n=i[0]:"end"===e?n=i[1]:k(e)&&!isnan(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function dg(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 gg(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 yg(t,e,n,i,r,o,a){for(var s=gg(t,e),l=[],u=[],h=[],c=[],p=[],f=[],d=[],g=pg(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(vg(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(;vg(w,s)&&i>m;)m++,b+=o,w=e[2*b],s=e[2*b+1];var t=.5,c=0,i=0,k=void 0,d=void 0;if(m>=i||vg(w,s))f=v,d=m;else{c=w-u,i=s-h;var a=v-u,p=w-v,l=m-h,o=s-m,r=void 0,n=void 0;if("x"===s){r=math.abs(a),n=math.abs(p);var z=c>0?1:-1;f=v-z*r*a,d=m,k=v+z*n*a,d=m}else if("y"===s){r=math.abs(l),n=math.abs(o);var b=i>0?1:-1;f=v,d=m-b*r*a,k=v,d=m+b*n*a}else r=math.sqrt(a*a+l*l),n=math.sqrt(p*p+o*o),t=n/(n+r),f=v-c*a*(1-t),d=m-i*a*(1-t),k=v+c*a*t,d=m+i*a*t,k=qp(k,zp(w,v)),d=qp(d,zp(s,m)),k=zp(k,qp(w,v)),d=zp(d,qp(s,m)),c=k-v,i=d-m,f=v-c*r/n,d=m-i*r/n,f=qp(f,zp(u,v)),d=qp(d,zp(h,m)),f=zp(f,qp(u,v)),d=zp(d,qp(h,m)),c=v-f,i=m-d,k=v+c*n/r,d=m+i*n/r}t.beziercurveto(c,p,f,d,v,m),c=k,p=d}else t.lineto(v,m)}u=v,h=m,g+=o}return y}function _g(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 rm({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getbaseaxis(),f=p.ishorizontal(),d=p.inverse;f?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var g=t(r)?function(t){r(t,c)}:null;ms(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function xg(t,e,n){var i=t.getarea(),r=or(i.r0,1),o=or(i.r,1),a=new at({shape:{cx:or(t.cx,1),cy:or(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,ms(a,{shape:{endangle:i.endangle,r:o}},n)}return a}function bg(t,e,n,i,r){return t?"polar"===t.type?xg(t,e,n):"cartesian2d"===t.type?_g(t,e,n,i,r):null:null}function wg(t,e){return t.type===e}function sg(t,e){if(t.length===e.length){for(var n=0;no;o++){var a=dg(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function kg(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 ag(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=dg(u,"x"===r?n.getwidth():n.getheight()),f=p.length;if(!f&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var d=10,g=p[0].coord-d,m=p[f-1].coord+d,_=m-g;if(.001>_)return"transparent";y(p,function(t){t.offset=(t.coord-g)/_}),p.push({offset:f?p[f-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:c[0]||"transparent"});var x=new st(0,0,0,0,p,!0);return x[r]=g,x[r+"2"]=m,x}}}function pg(t,e,n){var i=t.get("showallsymbol"),r="auto"===i;if(!i||r){var o=n.getaxesbyscale("ordinal")[0];if(o&&(!r||!lg(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 lg(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*yp.getsymbolsize(e,a)[t.ishorizontal()?1:0]>i)return!1;return!0}function og(t,e){return isnan(t)||isnan(e)}function rg(t){for(var e=t.length/2;e>0&&og(t[2*e-2],t[2*e-1]);e--);return e-1}function ng(t,e){return[t[2*e],t[2*e+1]]}function zg(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 bg(t){if(t.get(["endlabel","show"]))return!0;for(var e=0;e10&&"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 f=void 0;c(r)?f=el[r]:t(r)&&(f=r),f&&t.setdata(i.downsample(i.mapdimension(l.dim),1/p,f,nl))}}}}}function gg(t){t.registerchartview(tl),t.registerseriesmodel(xp),t.registerlayout(vg("line",!0)),t.registervisual({seriestype:"line",reset:function(t){var e=t.getdata(),n=t.getmodel("linestyle").getlinestyle();n&&!n.stroke&&(n.stroke=e.getvisual("style").fill),e.setvisual("legendlinestyle",n)}}),t.registerprocessor(t.priority.processor.statistic,hg("line"))}function wg(t,e,n){var i=t.ends;return new al({shape:{points:n?yg(i,t):i},z2:100})}function ug(t,e){for(var n=!0,i=0;i0?"bordercolor":"bordercolor0"])||n.get(["itemstyle",t>0?"color":"color0"]);0===t&&(i=n.get(["itemstyle","bordercolordoji"]));var r=n.getmodel("itemstyle").getitemstyle(il);e.usestyle(r),e.style.fill=null,e.style.stroke=i}function zg(t,e,n){e=m(e)&&{coorddimensions:e}||h({encodedefine:t.getencode()},e);var i=t.getsource(),r=zp(i,e).dimensions,o=new ia(r,t);return o.initdata(i,n),o}function kg(t){t&&m(t.series)&&y(t.series,function(t){d(t)&&"k"===t.type&&(t.type="candlestick")})}function $g(t,e,n,i,r,o){var a;return a=n>i?-1:i>n?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}function qg(t,e){var n,i=t.getbaseaxis(),r="category"===i.type?i.getbandwidth():(n=i.getextent(),math.abs(n[1]-n[0])/e.count()),o=rr(e(t.get("barmaxwidth"),r),r),a=rr(e(t.get("barminwidth"),1),r),s=t.get("barwidth");return null!=s?rr(s,r):math.max(math.min(r/2,o),a)}function jg(t){t.registerchartview(rl),t.registerseriesmodel(hl),t.registerpreprocessor(kg),t.registervisual(yl),t.registerlayout(vl)}function ty(t,n,i,r){y(cl,function(o,a){var s=l(l({},tl[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=eu(this),i=n?iu(t):{},r=e.gettheme();l(t,r.get(a+"axis")),l(t,this.getdefaultoption()),t.type=ey(t),n&&nu(t,i,n)},i.prototype.optionupdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalmeta=la.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",ey)}function ey(t){return t.type||(t.data?"category":"value")}function ny(t){return"interval"===t.type||"time"===t.type}function iy(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},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var g=a.toglobalcoord(a.datatocoord(0));d[p.onzero]=math.max(math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:c[0],"x"===u?d[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?d[p[s]]-d[p.onzero]:0,e.get(["axistick","inside"])&&(o.tickdirection=-o.tickdirection),b(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 ry(t){return"cartesian2d"===t.get("coordinatesystem")}function oy(t){var e={xaxismodel:null,yaxismodel:null};return y(e,function(n,i){var r=i.replace(/model$/,""),o=t.getreferringcomponents(r,uw).models[0];e[i]=o}),e}function ay(t,e,n){var i=na.prototype,r=i.getticks.call(n),o=i.getticks.call(n,!0),a=r.length-1,s=i.getinterval.call(n),l=gf(t,e),u=l.extent,h=l.fixmin,c=l.fixmax;if("log"===t.type){var p=pl(t.base);u=[pl(u[0])/p,pl(u[1])/p]}t.setextent(u[0],u[1]),t.calcniceextent({splitnumber:a,fixmin:h,fixmax:c});var f=i.getextent.call(t);h&&(u[0]=f[0]),c&&(u[1]=f[1]);var d=i.getinterval.call(t),g=u[0],y=u[1];if(h&&c)d=(y-g)/a;else if(h)for(y=u[0]+d*a;yu[0]&&isfinite(g)&&isfinite(u[0]);)d=df(d),g=u[1]-d*a;else{var v=t.getticks().length-1;v>a&&(d=df(d));var m=d*a;y=math.ceil(u[1]/d)*d,g=or(y-m),0>g&&u[0]>=0?(g=0,y=or(m)):y>0&&u[1]<=0&&(y=0,g=-or(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setextent.call(t,g+d*_,y+d*x),i.setinterval.call(t,d),(_||x)&&i.setniceextent.call(t,g+d,y-d)}function sy(t,e){return t.getcoordsysmodel()===e}function ly(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)uy(a[u])&&(o=a[u]);else for(var h in a)if(a.hasownproperty(h)&&uy(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function uy(t){return t&&"category"!==t.type&&"time"!==t.type&&yf(t)}function hy(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 cy(t,e,n,i){var r,o,a=fr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return dr(a-ol/2)?(o=l?"bottom":"top",r="center"):dr(a-1.5*ol)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*ol>a&&a>ol/2?l?"left":"right":l?"right":"left"),{rotation:a,textalign:r,textverticalalign:o}}function py(t,e,n){if(!qf(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?(fy(o),fy(u)):dy(o,a)&&(i?(fy(a),fy(h)):(fy(o),fy(u))),r===!1?(fy(s),fy(c)):dy(l,s)&&(r?(fy(l),fy(p)):(fy(s),fy(c)))}}function fy(t){t&&(t.ignore=!0)}function dy(t,e){var n=t&&t.getboundingrect().clone(),i=e&&e.getboundingrect().clone();if(n&&i){var r=ee([]);return ge(r,r,-t.rotation),n.applytransform(ve([],r,t.getlocaltransform())),i.applytransform(ve([],r,e.getlocaltransform())),n.intersect(i)}}function gy(t){return"middle"===t||"center"===t}function yy(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function cy(t){var e=iy(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=dy(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]),a0?2:0),ql(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?rp(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"),f=p.getlinestyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var d=e.get("inactiveborderwidth"),g=u[h];u.linewidth="auto"===d?i.linewidth>0&&g?2:0:u.linewidth,u.fill=e.get("inactivecolor"),u.stroke=e.get("inactivebordercolor"),f.stroke=p.get("inactivecolor"),f.linewidth=p.get("inactivewidth")}return{itemstyle:u,linestyle:f}}function by(t){var e=t.icon||"roundrect",n=tc(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 ey(t,e,n,i){hy(t,e,n,i),n.dispatchaction({type:"legendtoggleselect",name:null!=t?t:e}),vy(t,e,n,i)}function fy(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 vy(t,e,n,i){fy(n)||n.dispatchaction({type:"highlight",seriesname:t,name:e,excludeseriesid:i})}function hy(t,e,n,i){fy(n)||n.dispatchaction({type:"downplay",seriesname:t,name:e,excludeseriesid:i})}function gy(t){var e=t.findcomponents({maintype:"legend"});e&&e.length&&t.filterseries(function(t){for(var n=0;na||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,f="x"===c||"radius"===c?1:0,d=o.mapdimension(p),g=[];g[f]=o.get(d,a),g[1-f]=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 mv(t,e,n){var i=t.currtrigger,r=[t.x,t.y],o=t,a=t.dispatchaction||vx(n.dispatchaction,n),s=e.getcomponent("axispointer").coordsysaxesinfo;if(s){kv(r)&&(r=vv({seriesindex:o.seriesindex,dataindex:o.dataindex},e).point);var l=kv(r),u=o.axesinfo,h=s.axesinfo,c="leave"===i||kv(r),p={},f={},d={list:[],map:{}},g={showpointer:s(bv,f),showtooltip:s(wv,d)};y(s.coordsysmap,function(t,e){var n=l||t.containpoint(r);y(s.coordsysaxesinfo[e],function(t){var e=t.axis,i=cv(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointtodata(r)),null!=o&&_v(t,o,g,!1,p)}})});var v={};return y(h,function(t,e){var n=t.linkgroup;n&&!f[e]&&y(n.axesinfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,iv(e),iv(t)))),v[t.key]=o}})}),y(v,function(t,e){_v(h[e],t,g,!0,p)}),sv(f,h,p),mv(d,r,t,a),tv(h,a,n),p}}function _v(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=xv(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 xv(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,f=math.abs(p);a>=f&&((a>f||p>=0&&0>s)&&(a=f,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 bv(t,e,n,i){t[e.key]={value:n,payloadbatch:i}}function wv(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=ay(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 sv(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 mv(t,e,n,i){if(kv(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 tv(t,e,n){var i=n.getzr(),r="axispointerlasthighlights",o=yo(i)[r]||{},a=yo(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 cv(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 iv(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 kv(t){return!t||null==t[0]||isnan(t[0])||null==t[1]||isnan(t[1])}function dv(t){bl.registeraxispointerclass("cartesianaxispointer",ho),t.registercomponentmodel(po),t.registercomponentview(go),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=xy(t,e)}),t.registeraction({type:"updateaxispointer",event:"updateaxispointer",update:":updateaxispointer"},mv)}function av(t){var e=t.get("confine");return null!=e?!!e:"richtext"===t.get("rendermode")}function pv(t){if(z_.domsupported)for(var e=document.documentelement.style,n=0,i=t.length;i>n;n++)if(t[n]in e)return t[n]}function lv(t,e){if(!t)return e;e=xl(e,!0);var n=t.indexof(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.tolowercase()}function ov(t,e){var n=t.currentstyle||document.defaultview&&document.defaultview.getcomputedstyle(t);return n?e?n[e]:n:null}function rv(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function nv(t,e,n){if(!c(n)||"inside"===n)return"";var i=t.get("backgroundcolor"),r=t.get("borderwidth");e=$l(e);var o,a=rv(n),s=math.max(1.5*math.round(r),6),l="",u=bo+":";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,f=c*math.abs(math.cos(h))+c*math.abs(math.sin(h)),d=math.round(100*((f-math.sqrt2*r)/2+math.sqrt2*r-(f-c)/2))/100;l+=";"+a+":-"+d+"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 zv(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+=z_.transformsupported?","+bo+i:",left"+i+",top"+i),xo+":"+r}function bv(t,e,n){var i=t.tofixed(0)+"px",r=e.tofixed(0)+"px";if(!z_.transformsupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=z_.transform3dsupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+bo+":"+a+";":[["top",0],["left",0],[mo,a]]}function ev(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 fv(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=vh(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(zv(r,n)),o&&i.push("background-color:"+o),y(["width","color","radius"],function(e){var n="border-"+e,r=xl(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(ev(h)),null!=c&&i.push("padding:"+bc(c).join("px ")+"px"),i.join(";")+";"}function vv(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 hv(t){return math.max(0,t)}function gv(t){var e=hv(t.shadowblur||0),n=hv(t.shadowoffsetx||0),i=hv(t.shadowoffsety||0);return{left:hv(e-n),right:hv(e+n),top:hv(e-i),bottom:hv(e+i)}}function wv(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getwidth(),t[3]=t[1]/e.getheight()}function uv(t,e,n){var i,r=e.ecmodel;n?(i=new ec(n,r,r),i=new ec(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ec&&(a=a.get("tooltip",!0)),c(a)&&(a={formatter:a}),a&&(i=new ec(a,i,r)))}return i}function xv(t,e){return t.dispatchaction||vx(e.dispatchaction,e)}function yv(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 jv(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 qv(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 zv(t){return"center"===t||"middle"===t}function kv(t,e,n){var i=zr(t).queryoptionmap,r=i.keys()[0];if(r&&"series"!==r){var o=kr(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=pm(e).tooltipconfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentmaintype:r,componentindex:a.componentindex,el:s}:void 0}}}function $v(t){rd(dv),t.registercomponentmodel(vo),t.registercomponentview(co),t.registeraction({type:"showtip",event:"showtip",update:"tooltip:manuallyshowtip"},q),t.registeraction({type:"hidetip",event:"hidetip",update:"tooltip:manuallyhidetip"},q)}function qv(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 im(t,e){if(e){var n=t.getdata(),i=t.coordinatesystem,r=i&&i.dimensions;if(!em(e)&&!m(e.coord)&&m(r)){var o=rm(e,n,i,t);if(e=s(e),e.type&&ao[e.type]&&o.baseaxis&&o.valueaxis){var a=p(r,o.baseaxis.dim),l=p(r,o.valueaxis.dim),u=ao[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&&m(r))for(var h=e.coord,c=0;2>c;c++)ao[h[c]]&&(h[c]=um(n,n.mapdimension(r[c]),h[c]));else e.coord=[];return e}}function rm(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(om(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 om(t,e){var n=t.getdata().getdimensioninfo(e);return n&&n.coorddim}function am(t,e){return t&&t.containdata&&e.coord&&!tm(e)?t.containdata(e.coord):!0}function sm(t,e,n){return t&&t.containzone&&e.coord&&n.coord&&!tm(e)&&!tm(n)?t.containzone(e.coord,n.coord):!0}function lm(t,e){return t?function(t,n,i,r){var o=2>r?t.coord&&t.coord[r]:t.value;return lh(o,e[r])}:function(t,n,i,r){return lh(t.value,e[r])}}function um(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 hm(t,e,n){var i=e.coordinatesystem;t.each(function(r){var o,a=t.getitemmodel(r),s=rr(a.get("x"),n.getwidth()),l=rr(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 cm(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 ia(i,n),o=v(n.get("data"),s(im,e));t&&(o=_(o,s(am,t)));var a=lm(!!t,i);return r.initdata(o,null,a),r}function pm(t){t.registercomponentmodel(do),t.registercomponentview(oo),t.registerpreprocessor(function(t){qv(t.series,"markpoint")&&(t.markpoint=t.markpoint||{})})}function fm(t){return isnan(+t.cpx1)||isnan(+t.cpy1)}function dm(t){return"_"+t+"type"}function gm(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=cc(r),u=ic(a||0,l),h=tc(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 ym(t){var e=new eo({name:"line",subpixeloptimize:!0});return vm(e.shape,t),e}function vm(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 mm(t){return t.animators&&t.animators.length>0}function _m(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:ol(e)}}function xm(t){return isnan(t[0])||isnan(t[1])}function bm(t){return t&&!xm(t[0])&&!xm(t[1])}function wm(t){return!isnan(t)&&!isfinite(t)}function sm(t,e,n,i){var r=1-t,o=i.dimensions[t];return wm(e[r])&&wm(n[r])&&e[t]===n[t]&&i.getaxis(o).containdata(e[t])}function mm(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(sm(1,n,i,t)||sm(0,n,i,t)))return!0}return am(t,e[0])&&am(t,e[1])}function tm(t,e,n,i,r){var o,a=i.coordinatesystem,s=t.getitemmodel(e),l=rr(s.get("x"),r.getwidth()),u=rr(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(wg(a,"cartesian2d")){var f=a.getaxis("x"),d=a.getaxis("y"),h=a.dimensions;wm(t.get(h[0],e))?o[0]=f.toglobalcoord(f.getextent()[n?0:1]):wm(t.get(h[1],e))&&(o[1]=d.toglobalcoord(d.getextent()[n?0:1]))}isnan(l)||(o[0]=l),isnan(u)||(o[1]=u)}else o=[l,u];t.setitemlayout(e,o)}function cm(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 ia(i,n),o=new ia(i,n),a=new ia([],n),s=v(n.get("data"),s(wo,e,t,n));t&&(s=_(s,s(mm,t)));var l=lm(!!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 im(t){t.registercomponentmodel(ro),t.registercomponentview(uo),t.registerpreprocessor(function(t){qv(t.series,"markline")&&(t.markline=t.markline||{})})}function km(t){return!isnan(t)&&!isfinite(t)}function dm(t,e,n){var i=1-t;return km(e[i])&&km(n[i])}function am(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return wg(t,"cartesian2d")?n&&i&&(dm(1,n,i,t)||dm(0,n,i,t))?!0:sm(t,r,o):am(t,r)||am(t,o)}function pm(t,e,n,i,r){var o,a=i.coordinatesystem,s=t.getitemmodel(e),l=rr(s.get(n[0]),r.getwidth()),u=rr(s.get(n[1]),r.getheight());if(isnan(l)||isnan(u)){if(i.getmarkerposition){var h=t.getvalues(["x0","y0"],e),c=t.getvalues(["x1","y1"],e),p=a.clampdata(h),f=a.clampdata(c),d=[];d[0]="x0"===n[0]?p[0]>f[0]?c[0]:h[0]:p[0]>f[0]?h[0]:c[0],d[1]="y0"===n[1]?p[1]>f[1]?c[1]:h[1]:p[1]>f[1]?h[1]:c[1],o=i.getmarkerposition(d,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];a.clampdata&&a.clampdata(v,v),o=a.datatopoint(v,!0)}if(wg(a,"cartesian2d")){var m=a.getaxis("x"),_=a.getaxis("y"),g=t.get(n[0],e),y=t.get(n[1],e);km(g)?o[0]=m.toglobalcoord(m.getextent()["x0"===n[0]?0:1]):km(y)&&(o[1]=_.toglobalcoord(_.getextent()["y0"===n[1]?0:1]))}isnan(l)||(o[0]=l),isnan(u)||(o[1]=u)}else o=[l,u];return o}function lm(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=v(t&&t.dimensions,function(t){var n=e.getdata(),i=n.getdimensioninfo(n.mapdimension(t))||{};return h(h({},i),{name:t,ordinalmeta:null})});r=v(o,function(t,e){return{name:t,type:a[e%2].type}}),i=new ia(r,n)}else r=[{name:"value",type:"float"}],i=new ia(r,n);var s=v(n.get("data"),s(jo,e,t,n));t&&(s=_(s,s(am,t)));var l=t?function(t,e,n,i){var o=t.coord[math.floor(i/2)][i%2];return lh(o,r[i])}:function(t,e,n,i){return lh(t.value,r[i])};return i.initdata(s,null,l),i.hasitemoption=!0,i}function om(t){t.registercomponentmodel(xo),t.registercomponentview(zo),t.registerpreprocessor(function(t){qv(t.series,"markarea")&&(t.markarea=t.markarea||{})})}function rm(t,e){if(e=e||t.get("type"))switch(e){case"category":return new oa({ordinalmeta:t.getcategories(),extent:[1/0,-1/0]});case"time":return new va({locale:t.ecmodel.getlocalemodel(),useutc:t.ecmodel.get("useutc")});default:return new na}}function nm(t,e){return tu(t.getboxlayoutparams(),{width:e.getwidth(),height:e.getheight()},t.get("padding"))}function zm(t,e,n,i){var r=i.style,o=qs(t.get(["controlstyle",e]),i||{},new tb(n[0],n[1],n[2],n[3]));return r&&o.setstyle(r),o}function bm(t,e,n,i,r,o){var a=e.get("color");if(r)r.setcolor(a),n.add(r),o&&o.onupdate(r);else{var s=t.get("symbol");r=tc(s,-1,-1,2,2,a),r.setstyle("strokenoscale",!0),n.add(r),o&&o.oncreate(r)}var u=e.getitemstyle(["color"]);r.setstyle(u),i=l({recthover:!0,z2:100},i,!0);var h=cc(t.get("symbolsize"));i.scalex=h[0]/2,i.scaley=h[1]/2;var c=ic(t.get("symboloffset"),h);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var p=t.get("symbolrotate");return i.rotation=(p||0)*math.pi/180||0,r.attr(i),r.updatetransform(),r}function em(t,e,n,i,r,o){if(!t.dragging){var a=r.getmodel("checkpointstyle"),s=i.datatocoord(r.getdata().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationduration",!0),easing:a.get("animationeasing",!0)};t.stopanimation(null,!0),t.animateto({x:s,y:0},l),e&&e.animateto({shape:{x2:s}},l)}}}function fm(t){t.registeraction({type:"timelinechange",event:"timelinechanged",update:"prepareandupdate"},function(t,e,n){var i=e.getcomponent("timeline");return i&&null!=t.currentindex&&(i.setcurrentindex(t.currentindex),!i.get("loop",!0)&&i.isindexmax()&&i.getplaystate()&&(i.setplaystate(!1),n.dispatchaction({type:"timelineplaychange",playstate:!1,from:t.from}))),e.resetoption("timeline",{replacemerge:i.get("replacemerge",!0)}),c({currentindex:i.option.currentindex},t)}),t.registeraction({type:"timelineplaychange",event:"timelineplaychanged",update:"update"},function(t,e){var n=e.getcomponent("timeline");n&&null!=t.playstate&&n.setplaystate(t.playstate)})}function vm(t){var e=t&&t.timeline;m(e)||(e=e?[e]:[]),y(e,function(t){t&&hm(t)})}function hm(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axistype=n[e],delete t.type),gm(t),wm(t,"controlposition")){var i=t.controlstyle||(t.controlstyle={});wm(i,"position")||(i.position=t.controlposition),"none"!==i.position||wm(i,"show")||(i.show=!1,delete i.position),delete t.controlposition}y(t.data||[],function(t){d(t)&&!m(t)&&(!wm(t,"value")&&wm(t,"name")&&(t.value=t.name),gm(t))})}function gm(t){var e=t.itemstyle||(t.itemstyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};y(i,function(t,e){o[e]||wm(r,e)||(r[e]=t)}),n.label&&!wm(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function wm(t,e){return t.hasownproperty(e)}function um(t){t.registercomponentmodel($o),t.registercomponentview(nr),t.registersubtypedefaulter("timeline",function(){return"slider"}),fm(t),t.registerpreprocessor(vm)}function xm(t){var e=t.fill;return null!=e&&e!==ur}function ym(t){var e=t.stroke;return null!=e&&e!==ur}function jm(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof tm)return void t("opacity",r);if(xm(e)){var o=jn(e.fill);t("fill",o.color);var a=null!=e.fillopacity?e.fillopacity*o.opacity*r:o.opacity*r;(i||1>a)&&t("fill-opacity",a)}else t("fill",ur);if(ym(e)){var s=jn(e.stroke);t("stroke",s.color);var l=e.strokenoscale?n.getlinescale():1,u=l?(e.linewidth||0)/l:0,h=null!=e.strokeopacity?e.strokeopacity*s.opacity*r:s.opacity*r,c=e.strokefirst;if((i||1!==u)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||1>h)&&t("stroke-opacity",h),e.linedash){var p=zc(n),f=p[0],d=p[1];f&&(d=hr(d||0),t("stroke-dasharray",f.join(",")),(d||i)&&t("stroke-dashoffset",d))}else i&&t("stroke-dasharray",ur);for(var g=0;g"}function $m(t){return""}function qm(t,e){function n(t){var e=t.children,r=t.tag,o=t.attrs,a=t.text;return km(r,o)+("style"!==r?ie(a):a||"")+(e?""+i+v(e,function(t){return n(t)}).join(i)+i:"")+$m(r)}e=e||{};var i=e.newline?"\n":"";return n(t)}function jm(t,e,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=v(b(t),function(e){return e+r+v(b(t[e]),function(n){return n+":"+t[e][n]+";"}).join(i)+o}).join(i),s=v(b(e),function(t){return"@keyframes "+t+r+v(b(e[t]),function(n){return n+r+v(b(e[t][n]),function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"}).join(i)+o}).join(i)+o}).join(i);return a||s?[""].join(i):""}function t_(t){return{zrid:t,shadowcache:{},patterncache:{},gradientcache:{},clippathcache:{},defs:{},cssnodes:{},cssanims:{},cssclassidx:0,cssanimidx:0,shadowidx:0,gradientidx:0,patternidx:0,clippathidx:0}}function e_(t,e,n,i){return zm("svg","root",{width:t,height:e,xmlns:fr,"xmlns:xlink":dr,version:"1.1",baseprofile:"full",viewbox:i?"0 0 "+t+" "+e:!1},n)}function n_(t,e,n){var i=h({},t.shape);h(i,e),t.buildpath(n,i);var r=new lr;return r.reset(li(t)),n.rebuildpath(r,1),r.generatestr(),r.getstr()}function i_(t,e){var n=e.originx,i=e.originy;(n||i)&&(t[mr]=n+"px "+i+"px")}function r_(t,e){var n=e.zrid+"-ani-"+e.cssanimidx++;return e.cssanims[n]=t,n}function o_(t,e,n){var i,r,o=t.shape.paths,a={};if(y(o,function(t){var e=t_(n.zrid);e.animation=!0,s_(t,{},e,!0);var o=e.cssanims,s=e.cssnodes,l=b(o),u=l.length;if(u){r=l[u-1];var h=o[r];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var f in s){var d=s[f].animation;d.indexof(r)>=0&&(i=d)}}}),i){e.d=!1;var s=r_(a,n);return i.replace(r,s)}}function a_(t){return c(t)?vr[t]?"cubic-bezier("+vr[t]+")":mn(t)?t:"":""}function s_(t,e,n,i){function r(r){function o(t,e,n){for(var i=t.gettracks(),r=t.getmaxtime(),o=0;of;f++){var d=a[f],g=d.targetname;g?"shape"===g&&o(d,u):!i&&o(d,l)}for(var y in l){var v={};oi(v,t),h(v,l[y]);var m=ui(v),x=l[y][p];c[y]=m?{transform:m}:{},i_(c[y],v),x&&(c[y][p]=x)}var w,s=!0;for(var y in u){c[y]=c[y]||{};var m=!w,x=u[y][p];m&&(w=new es);var t=w.len();w.reset(),c[y].d=n_(t,u[y],w);var i=w.len();if(!m&&t!==i){s=!1;break}x&&(c[y][p]=x)}if(!s)for(var y in c)delete c[y].d;if(!i)for(var f=0;s>f;f++){var d=a[f],g=d.targetname;"style"===g&&o(d,c,function(t){return _r[t]})}for(var d,a=b(c),p=!0,f=1;f0}).length){var r=r_(c,n);return r+" "+r[0]+" both"}}var o=t.animators,a=o.length,s=[];if(t instanceof bt){var l=o_(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;a>c;c++){var p=o[c],f=[p.getmaxtime()/1e3+"s"],d=a_(p.getclip().easing),g=p.getdelay();f.push(d?d:"linear"),g&&f.push(g/1e3+"s"),p.getloop()&&f.push("infinite");var y=f.join(" ");u[y]=u[y]||[y,[]],u[y][1].push(p)}for(var v in u){var l=r(u[v]);l&&s.push(l)}if(s.length){var m=n.zrid+"-cls-"+n.cssclassidx++;n.cssnodes["."+m]={animation:s.join(",")},e["class"]=m}}function l_(t){return t&&c(t.src)}function u_(t){return t&&t(t.todataurl)}function h_(t,e,n,i){jm(function(r,o){var a="fill"===r||"stroke"===r;a&&ai(o)?s_(e,t,r,i):a&&ii(o)?m_(n,t,r,i):t[r]=o},e,n,!1),w_(n,t,i)}function c_(t){return qn(t[0]-1)&&qn(t[1])&&qn(t[2])&&qn(t[3]-1)}function p_(t){return qn(t[4])&&qn(t[5])}function f_(t,e,n){if(e&&(!p_(e)||!c_(e))){var i=n?10:1e4;t.transform=c_(e)?"translate("+xr(e[4]*i)/i+" "+xr(e[5]*i)/i+")":$n(e)}}function d_(t,e,n){for(var i=t.points,r=[],o=0;ol){var h=!t.path||t.shapechanged();t.path||t.createpathproxy();var c=t.path;h&&(c.beginpath(),t.buildpath(c,t.shape),t.pathupdated());var p=c.getversion(),f=t,d=f.__svgpathbuilder;f.__svgpathversion===p&&d&&l===f.__svgpathstrokepercent||(d||(d=f.__svgpathbuilder=new lr),d.reset(u),c.rebuildpath(d,l),d.generatestr(),f.__svgpathversion=p,f.__svgpathstrokepercent=l),o.d=d.getstr()}else{s=t.type;var g=math.pow(10,u);r[0](i,o,g)}return f_(o,t.transform),h_(o,n,t,e),e.animation&&s_(t,o,e),zm(s,t.id+"",o)}function __(t,e){var n=t.style,i=n.image;if(i&&!c(i)&&(l_(i)?i=i.src:u_(i)&&(i=i.todataurl())),i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:i,width:a,height:s};return r&&(l.x=r),o&&(l.y=o),f_(l,t.transform),h_(l,n,t,e),e.animation&&s_(t,l,e),zm("image",t.id+"",l)}}function x_(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isnan(n.x)&&!isnan(n.y)){var r=n.font||q_,o=n.x||0,a=qn(n.y||0,fi(r),n.textbaseline),s=fb[n.textalign]||n.textalign,l={"dominant-baseline":"central","text-anchor":s};if(ea(n)){var u="",h=n.fontstyle,c=jo(n.fontsize);if(!parsefloat(c))return;var p=n.fontfamily||$_,f=n.fontweight;u+="font-size:"+c+";font-family:"+p+";",h&&"normal"!==h&&(u+="font-style:"+h+";"),f&&"normal"!==f&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),f_(l,t.transform),h_(l,n,t,e),e.animation&&s_(t,l,e),zm("text",t.id+"",l,void 0,i)}}function b_(t,e){return t instanceof zs?m_(t,e):t instanceof tm?__(t,e):t instanceof $s?x_(t,e):void 0}function w_(t,e,n){var i=t.style;if(jn(i)){var r=ti(t),o=n.shadowcache,a=o[r];if(!a){var s=t.getglobalscale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowoffsetx||0,c=i.shadowoffsety||0,p=i.shadowblur,f=jn(i.shadowcolor),d=f.opacity,g=f.color,y=p/2/l,v=p/2/u,m=y+" "+v;a=n.zrid+"-s"+n.shadowidx++,n.defs[a]=zm("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[zm("fedropshadow","",{dx:h/l,dy:c/u,stddeviation:m,"flood-color":g,"flood-opacity":d})]),o[r]=a}e.filter=si(a)}}function s_(t,e,n,i){var r,o=t[n],a={gradientunits:o.global?"userspaceonuse":"objectboundingbox"};if(ri(o))r="lineargradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!oi(o))return;r="radialgradient",a.cx=e(o.x,.5),a.cy=e(o.y,.5),a.r=e(o.r,.5)}for(var s=o.colorstops,l=[],u=0,h=s.length;h>u;++u){var c=100*kn(s[u].offset)+"%",p=s[u].color,f=jn(p),d=f.color,g=f.opacity,y={offset:c};y["stop-color"]=d,1>g&&(y["stop-opacity"]=g),l.push(zm("stop",u+"",y))}var v=zm(r,"",a,l),m=qm(v),_=i.gradientcache,x=_[m];x||(x=i.zrid+"-g"+i.gradientidx++,_[m]=x,a.id=x,i.defs[x]=zm(r,x,a,l)),e[n]=si(x)}function m_(t,e,n,i){var r,o=t.style[n],a=t.getboundingrect(),l={},u=o.repeat,h="no-repeat"===u,c="repeat-x"===u,p="repeat-y"===u;if(ei(o)){var f=o.imagewidth,d=o.imageheight,g=void 0,y=o.image;if(c(y)?g=y:l_(y)?g=y.src:u_(y)&&(g=y.todataurl()),"undefined"==typeof image){var v="image width/height must been given explictly in svg-ssr renderer.";g(f,v),g(d,v)}else if(null==f||null==d){var m=function(t,e){if(t){var n=t.elm,i=f||e.width,r=d||e.height;"pattern"===t.tag&&(c?(r=1,i/=a.width):p&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setattribute("width",i),n.setattribute("height",r))}},_=fo(g,null,t,function(t){h||m(s,t),m(r,t)});_&&_.width&&_.height&&(f=f||_.width,d=d||_.height)}r=zm("image","img",{href:g,width:f,height:d}),l.width=f,l.height=d}else o.svgelement&&(r=s(o.svgelement),l.width=o.svgwidth,l.height=o.svgheight);if(r){var x,b;h?x=b=1:c?(b=1,x=l.width/a.width):p?(x=1,b=l.height/a.height):l.patternunits="userspaceonuse",null==x||isnan(x)||(l.width=x),null==b||isnan(b)||(l.height=b);var w=ui(o);w&&(l.patterntransform=w);var s=zm("pattern","",l,[r]),m=qm(s),t=i.patterncache,i=t[m];i||(i=i.zrid+"-p"+i.patternidx++,t[m]=i,l.id=i,s=i.defs[i]=zm("pattern",i,l,[r])),e[n]=si(i)}}function t_(t,e,n){var i=n.clippathcache,r=n.defs,o=i[t.id];if(!o){o=n.zrid+"-c"+n.clippathidx++;var a={id:o};i[t.id]=o,r[o]=zm("clippath",o,a,[m_(t,n)])}e["clip-path"]=si(o)}function c_(t){return document.createtextnode(t)}function i_(t,e,n){t.insertbefore(e,n)}function k_(t,e){t.removechild(e)}function d_(t,e){t.appendchild(e)}function a_(t){return t.parentnode}function p_(t){return t.nextsibling}function l_(t,e){t.textcontent=e}function o_(t){return void 0===t}function r_(t){return void 0!==t}function n_(t,e,n){for(var i={},r=e;n>=r;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function z_(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function b_(t){var e,n=t.children,i=t.tag;if(r_(i)){var r=t.elm=qm(i);if(v_(mr,t),m(n))for(e=0;e=i;++i){var o=n[i];null!=o&&i_(t,b_(o),e)}}function f_(t,e,n,i){for(;i>=n;++n){var r=e[n];if(null!=r)if(r_(r.tag)){var o=a_(r.elm);k_(o,r.elm)}else k_(t,r.elm)}}function v_(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(a===!0?i.setattribute(n,""):a===!1?i.removeattribute(n):n.charcodeat(0)!==sr?i.setattribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setattributens(gr,n,a):n.charcodeat(3)===wr?i.setattributens(yr,n,a):n.charcodeat(5)===wr?i.setattributens(dr,n,a):i.setattribute(n,a))}for(n in r)n in o||i.removeattribute(n)}}function h_(t,e,n){for(var i,r,o,a,s=0,l=0,u=e.length-1,h=e[0],c=e[u],p=n.length-1,f=n[0],d=n[p];u>=s&&p>=l;)null==h?h=e[++s]:null==c?c=e[--u]:null==f?f=n[++l]:null==d?d=n[--p]:z_(h,f)?(g_(h,f),h=e[++s],f=n[++l]):z_(c,d)?(g_(c,d),c=e[--u],d=n[--p]):z_(h,d)?(g_(h,d),i_(t,h.elm,p_(c.elm)),h=e[++s],d=n[--p]):z_(c,f)?(g_(c,f),i_(t,c.elm,h.elm),c=e[--u],f=n[++l]):(o_(i)&&(i=n_(e,s,u)),r=i[f.key],o_(r)?i_(t,b_(f),h.elm):(o=e[r],o.tag!==f.tag?i_(t,b_(f),h.elm):(g_(o,f),e[r]=void 0,i_(t,o.elm,h.elm))),f=n[++l]);(u>=s||p>=l)&&(s>u?(a=null==n[p+1]?null:n[p+1].elm,e_(t,a,n,l,p)):f_(t,e,s,u))}function g_(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(v_(t,e),o_(e.text)?r_(i)&&r_(r)?i!==r&&h_(n,i,r):r_(r)?(r_(t.text)&&l_(n,""),e_(n,null,r,0,r.length-1)):r_(i)?f_(n,i,0,i.length-1):r_(t.text)&&l_(n,""):t.text!==e.text&&(r_(i)&&f_(n,i,0,i.length-1),l_(n,e.text)))}function w_(t,e){if(z_(t,e))g_(t,e);else{var n=t.elm,i=a_(n);b_(e),null!==i&&(i_(i,e.elm,p_(n)),f_(i,[t],0,0))}return e}function u_(){return function(){}}function x_(t,e,n,i){var r;if(n&&"none"!==n)if(r=zm("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),ai(n))s_({fill:n},r.attrs,"fill",i);else if(ii(n))m_({style:{fill:n},dirty:q,getboundingrect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=jn(n),a=o.color,s=o.opacity;r.attrs.fill=a,1>s&&(r.attrs["fill-opacity"]=s)}return r}var y_=function(t,e){return(y_=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)},j_=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newedge=!1,this.wechat=!1}return t}(),q_=function(){function t(){this.browser=new j_,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}(),z_=new q_;"object"==typeof wx&&"function"==typeof wx.getsysteminfosync?(z_.wxa=!0,z_.toucheventssupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?z_.worker=!0:"undefined"==typeof navigator?(z_.node=!0,z_.svgsupported=!0):n(navigator.useragent,z_);var k_=12,$_="sans-serif",q_=k_+"px "+$_,j_=20,tx=100,ex="007llmw'55;n0500llllllllll00nnnlzww\\\\wqb\\0fwlg\\bwb\\wq\\wrwwq000cl5llfll0ll**f*gllll5f0lf\\fff5.5n",nx=i(ex),ix={createcanvas:function(){return"undefined"!=typeof document&&document.createelement("canvas")},measuretext:function(){var t,e;return function(n,i){if(!t){var r=ix.createcanvas();t=r&&r.getcontext("2d")}if(t)return e!==i&&(e=t.font=i||q_),t.measuretext(n);n=n||"",i=i||q_;var o=/(\d+)px/.exec(i),a=o&&+o[1]||k_,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}(),ox=math.log(2),rx="___zreventsaved",nx=[],zx=/([&<>"'])/g,bx={"&":"&","<":"<",">":">",'"':""","'":"'"},ex=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fx=[],vx=z_.browser.firefox&&+z_.browser.version.split(".")[0]<39,hx=function(t){t.preventdefault(),t.stoppropagation(),t.cancelbubble=!0},gx=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=ke(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 wx)if(wx.hasownproperty(e)){var n=wx[e](this._track,t);if(n)return n}},t}(),wx={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=ne(i)/ne(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}}}}},ux=(object.freeze||object)({create:be,identity:ee,copy:fe,mul:ve,translate:he,rotate:ge,scale:we,invert:ue,clone:xe}),xx=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}(),yx=math.min,jx=math.max,qx=new xx,zx=new xx,kx=new xx,$x=new xx,qx=new xx,jx=new xx,tb=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=yx(t.x,this.x),n=yx(t.y,this.y);this.width=isfinite(this.x)&&isfinite(this.width)?jx(t.x+t.width,this.x+this.width)-e:t.width,this.height=isfinite(this.y)&&isfinite(this.height)?jx(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]),we(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 f=1/0,d=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?_>d&&(d=_,y>g?xx.set(jx,-g,0):xx.set(jx,y,0)):f>_&&(f=_,y>g?xx.set(qx,g,0):xx.set(qx,-y,0)),h>s||a>c?x>d&&(d=x,m>v?xx.set(jx,0,-v):xx.set(jx,0,m)):f>_&&(f=_,m>v?xx.set(qx,0,v):xx.set(qx,0,-m))}return n&&xx.copy(n,p?qx:jx),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))}qx.x=kx.x=n.x,qx.y=$x.y=n.y,zx.x=$x.x=n.x+n.width,zx.y=kx.y=n.y+n.height,qx.transform(i),$x.transform(i),zx.transform(i),kx.transform(i),e.x=yx(qx.x,zx.x,kx.x,$x.x),e.y=yx(qx.y,zx.y,kx.y,$x.y);var l=jx(qx.x,zx.x,kx.x,$x.x),u=jx(qx.y,zx.y,kx.y,$x.y);e.width=l-e.x,e.height=u-e.y},t}(),eb="silent",nb=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}(lx),ib=function(){function t(t,e){this.x=t,this.y=e}return t}(),rb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ob=new tb(0,0,0,0),ab=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new ib(0,0),a.storage=e,a.painter=n,a.painterroot=r,a._pointersize=o,i=i||new nb,a.proxy=null,a.sethandlerproxy(i),a._draggingmgr=new px(a),a}return e(n,t),n.prototype.sethandlerproxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(rb,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=ke(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 ib(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 ib(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=ye(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 ib(t,e);if(ze(i,r,t,e,n),this._pointersize&&!r.target){for(var o=[],a=this._pointersize,s=a/2,l=new tb(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||(ob.copy(h.getboundingrect()),h.transform&&ob.applytransform(h.transform),ob.intersect(l)&&o.push(h))}if(o.length)for(var c=4,p=math.pi/12,f=2*math.pi,d=0;s>d;d+=c)for(var g=0;f>g;g+=p){var y=t+d*math.cos(g),v=e+d*math.sin(g);if(ze(o,r,y,v,n),r.target)return r}}return r},n.prototype.processgesture=function(t,e){this._gesturemgr||(this._gesturemgr=new gx);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 ib;o.target=i.target,this.dispatchtoelement(o,r,i.event)}},n}(lx);y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){ab.prototype[t]=function(e){var n,i,r=e.zrx,o=e.zry,a=ke(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||ix(this._downpoint,[e.zrx,e.zry])>4)return;this._downpoint=null}this.dispatchtoelement(n,t,e)}});var sb,lb=32,ub=7,hb=1,cb=2,pb=4,fb=!1,db=function(){function t(){this._roots=[],this._displaylist=[],this._displaylistlen=0,this.displayablesortfunc=sn}return t.prototype.traverse=function(t,e){for(var n=0;ni;i++)this._updateandadddisplayable(e[i],null,t);n.length=this._displaylistlen,on(n,sn)},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)&&(an(),u.z=0),isnan(u.z2)&&(an(),u.z2=0),isnan(u.zlevel)&&(an(),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}();sb=z_.hasglobalwindow&&(window.requestanimationframe&&window.requestanimationframe.bind(window)||window.msrequestanimationframe&&window.msrequestanimationframe.bind(window)||window.mozrequestanimationframe||window.webkitrequestanimationframe)||function(t){return settimeout(t,16)};var gb=sb,yb={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-yb.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*yb.bouncein(2*t):.5*yb.bounceout(2*t-1)+.5}},vb=math.pow,mb=math.sqrt,_b=1e-8,xb=1e-4,bb=mb(3),wb=1/3,sb=j(),mb=j(),tb=j(),cb=/cubic-bezier\(([0-9,\.e ]+)\)/,ib=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||q,this.ondestroy=t.ondestroy||q,this.onrestart=t.onrestart||q,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:yb[t]||mn(t)},t}(),kb=function(){function t(t){this.value=t}return t}(),db=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new kb(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}(),ab=function(){function t(t){this._list=new db,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 kb(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}(),pb={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]},lb=new ab(20),ob=null,rb=vn,nb=hn,zb=(object.freeze||object)({parse:nn,lift:en,tohex:fn,fastlerp:vn,fastmaptocolor:rb,lerp:hn,maptocolor:nb,modifyhsl:gn,modifyalpha:wn,stringify:un,lum:xn,random:yn}),bb=math.round,eb=1e-4,fb={left:"start",right:"end",center:"middle",middle:"middle"},vb=function(){return z_.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}}(),hb=array.prototype.slice,gb=0,wb=1,ub=2,xb=3,yb=4,jb=5,qb=6,zb=[0,0,0,0],kb=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=qb,s=e;if(g(e)){var l=_i(e);a=l,(1===l&&!k(e[0])||2===l&&!k(e[0][0]))&&(o=!0)}else if(k(e)&&!z(e))a=gb;else if(c(e))if(isnan(+e)){var u=nn(e);u&&(s=u,a=xb)}else a=gb;else if(o(e)){var c=h({},s);c.colorstops=v(e.colorstops,function(t){return{offset:t.offset,color:nn(t.color)}}),ri(e)?a=yb:oi(e)&&(a=jb),s=c}0===r?this.valtype=a:(a!==this.valtype||a===qb)&&(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:yb[n]||mn(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=bi(i),l=xi(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?yi(c,p,i):l&&gi(c.colorstops,p.colorstops))}if(!a&&i!==jb&&e&&this.needsanimate()&&e.needsanimate()&&i===e.valtype&&!e._finished){this._additivetrack=e;for(var f=n[0].value,u=0;r>u;u++)i===gb?n[u].additivevalue=n[u].value-f:i===xb?n[u].additivevalue=fi([],n[u].value,f,-1):bi(i)&&(n[u].additivevalue=i===wb?fi([],n[u].value,f,-1):di([],n[u].value,f,-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===xb,p=this._lastfr,f=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=f(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=f(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:f((e-i.percent)/g,1);r.easingfunc&&(y=r.easingfunc(y));var m=o?this._additivevalue:c?zb:t[h];if(!bi(s)&&!c||m||(m=this._additivevalue=[]),this.discrete)t[h]=1>y?i.rawvalue:r.rawvalue;else if(bi(s))s===wb?ci(m,i[a],r[a],y):pi(m,i[a],r[a],y);else if(xi(s)){var _=i[a],x=r[a],b=s===yb;t[h]={type:b?"linear":"radial",x:hi(_.x,x.x,y),y:hi(_.y,x.y,y),colorstops:v(_.colorstops,function(t,e){var n=x.colorstops[e];return{offset:hi(t.offset,n.offset,y),color:mi(ci([],t.color,n.color,y))}}),global:x.global},b?(t[h].x2=hi(_.x2,x.x2,y),t[h].y2=hi(_.y2,x.y2,y)):t[h].r=hi(_.r,x.r,y)}else if(c)ci(m,i[a],r[a],y),o||(t[h]=mi(m));else{var w=hi(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===gb?t[n]=t[n]+i:e===xb?(nn(t[n],zb),fi(zb,zb,i,1),t[n]=mi(zb)):e===wb?fi(t[n],t[n],i,1):e===ub&&di(t[n],t[n],i,1)},t}(),$b=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,vi(l),i),this._trackkeys.push(a)}s.addkeyframe(t,vi(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}(),qb=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=wi()-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&&(gb(t),!e._paused&&e.update())}var e=this;this._running=!0,gb(t)},n.prototype.start=function(){this._running||(this._time=wi(),this._pausedtime=0,this._startloop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pausestart=wi(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedtime+=wi()-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 $b(t,e.loop);return this.addanimator(n),n},n}(lx),jb=300,tw=z_.domsupported,ew=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}}(),nw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},iw=!1,rw=function(){function t(t,e){this.stoppropagation=q,this.stopimmediatepropagation=q,this.preventdefault=q,this.type=e.type,this.target=this.currenttarget=t.dom,this.pointertype=e.pointertype,this.clientx=e.clientx,this.clienty=e.clienty}return t}(),ow={mousedown:function(t){t=pe(this.dom,t),this.__maypointercapture=[t.zrx,t.zry],this.trigger("mousedown",t)},mousemove:function(t){t=pe(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=pe(this.dom,t),this.__togglepointercapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=pe(this.dom,t);var e=t.toelement||t.relatedtarget;ii(this,e)||(this.__pointercapturing&&(t.zreventcontrol="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){iw=!0,t=pe(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){iw||(t=pe(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=pe(this.dom,t),ti(t),this.__lasttouchmoment=new date,this.handler.processgesture(t,"start"),ow.mousemove.call(this,t),ow.mousedown.call(this,t)},touchmove:function(t){t=pe(this.dom,t),ti(t),this.handler.processgesture(t,"change"),ow.mousemove.call(this,t)},touchend:function(t){t=pe(this.dom,t),ti(t),this.handler.processgesture(t,"end"),ow.mouseup.call(this,t),+new date-+this.__lasttouchmoment1e-10&&xw(t[3]-1)>1e-10?math.sqrt(xw(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copytransform=function(t){oi(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 f=n+a,d=i+s;e[4]=-f*r-c*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&ge(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}(),ww=["x","y","originx","originy","anchorx","anchory","rotation","scalex","scaley","skewx","skewy"],sw={},mw="__zr_normal__",tw=ww.concat(["ignore"]),cw=m(ww,function(t,e){return t[e]=!0,t},{ignore:!1}),iw={},kw=new tb(0,0,0,0),dw=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=kw;u.copy(n.layoutrect?n.layoutrect:this.getboundingrect()),i||u.applytransform(this.transform),this.calculatetextposition?this.calculatetextposition(iw,n,u):hi(iw,n,u),r.x=iw.x,r.y=iw.y,o=iw.align,a=iw.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=vi(h[0],u.width),p=vi(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 f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originx=-f[0],r.originy=-f[1]));var d=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;d&&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|=hb,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()?fw:pw},t.prototype.getoutsidestroke=function(){var t=this.__zr&&this.__zr.getbackgroundcolor(),e="string"==typeof t&&nn(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,un(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(d(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(mw,!1,t)},t.prototype.usestate=function(t,e,n,i){var r=t===mw,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,f=this._textguide;return c&&c.usestate(t,e,n,h),f&&f.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&=~hb),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),f=this.statetransition;this.savecurrenttonormalstate(p),this._applystateobj(t.join(","),p,this._normalstate,!1,!e&&!this.__inhover&&f&&f.duration>0,f);var d=this._textcontent,g=this._textguide;d&&d.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&=~hb)}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){gi(this,t,e,n)},t.prototype.animatefrom=function(t,e,n){gi(this,t,e,n,!0)},t.prototype._transitionstate=function(t,e,n,i){for(var r=gi(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=os(n/hw/t)||0,this._uy=os(n/hw/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(ws.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=os(t-this._xi),i=os(e-this._yi),r=n>this._ux||i>this._uy;if(this.adddata(ws.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(ws.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(ws.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(),bs[0]=i,bs[1]=r,oo(bs,o),i=bs[0],r=bs[1];var a=r-i;return this.adddata(ws.a,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ps(r)*n+t,this._yi=ls(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(ws.r,t,e,n,i),this},t.prototype.closepath=function(){this._drawpendingpt(),this.adddata(ws.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||!zs||(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();zs&&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(){ts[0]=ts[1]=is[0]=is[1]=number.max_value,cs[0]=cs[1]=ks[0]=ks[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++],f=1===c;f&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(p){case ws.m:r=a=t[c++],o=s=t[c++];break;case ws.l:var g=t[c++],y=t[c++],v=g-r,m=y-o;(os(v)>n||os(m)>i||c===e-1)&&(d=math.sqrt(v*v+m*m),r=g,o=y);break;case ws.c:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];d=yn(r,o,_,x,g,y,b,w,10),r=b,o=w;break;case ws.q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];d=sn(r,o,_,x,g,y,10),r=g,o=y;break;case ws.a:var s=t[c++],m=t[c++],t=t[c++],c=t[c++],i=t[c++],k=t[c++],d=k+i;c+=1;{!t[c++]}f&&(a=ps(i)*t+s,s=ls(i)*c+m),d=as(t,c)*ds(ns,math.abs(k)),r=ps(d)*t+s,o=ls(d)*c+m;break;case ws.r:a=r=t[c++],s=o=t[c++];var a=t[c++],p=t[c++];d=2*a+2*p;break;case ws.z:var v=a-r,m=s-o;d=math.sqrt(v*v+m*m),r=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathlen=u,u},t.prototype.rebuildpath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,f=this.data,d=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=f[b++],s=1===b;switch(s&&(r=f[b],o=f[b+1],n=r,i=o),w!==ws.l&&x>0&&(t.lineto(c,p),x=0),w){case ws.m:n=r=f[b++],i=o=f[b++],t.moveto(r,o);break;case ws.l:a=f[b++],s=f[b++];var m=os(a-r),t=os(s-o);if(m>d||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 k=m*m+t*t;k>x&&(c=a,p=s,x=k)}break;case ws.c:var d=f[b++],a=f[b++],p=f[b++],l=f[b++],o=f[b++],r=f[b++];if(v){var c=l[_++];if(m+c>h){var i=(h-m)/c;dn(r,d,p,o,i,ss),dn(o,a,l,r,i,ms),t.beziercurveto(ss[1],ms[1],ss[2],ms[2],ss[3],ms[3]);break t}m+=c}t.beziercurveto(d,a,p,l,o,r),r=o,o=r;break;case ws.q:var d=f[b++],a=f[b++],p=f[b++],l=f[b++];if(v){var c=l[_++];if(m+c>h){var i=(h-m)/c;bn(r,d,p,i,ss),bn(o,a,l,i,ms),t.quadraticcurveto(ss[1],ms[1],ss[2],ms[2]);break t}m+=c}t.quadraticcurveto(d,a,p,l),r=p,o=l;break;case ws.a:var n=f[b++],z=f[b++],b=f[b++],e=f[b++],f=f[b++],v=f[b++],h=f[b++],g=!f[b++],w=b>e?b:e,u=os(b-e)>.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,z,b,e,h,f,x,g):t.arc(n,z,w,f,x,g),y)break t;s&&(n=ps(f)*b+n,i=ls(f)*e+z),r=ps(x)*b+n,o=ls(x)*e+z;break;case ws.r:n=r=f[b],i=o=f[b+1],a=f[b++],s=f[b++];var j=f[b++],q=f[b++];if(v){var c=l[_++];if(m+c>h){var z=h-m;t.moveto(a,s),t.lineto(a+ds(z,j),s),z-=j,z>0&&t.lineto(a+j,s+ds(z,q)),z-=q,z>0&&t.lineto(a+as(j-z,0),s+q),z-=j,z>0&&t.lineto(a,s+as(q-z,0));break t}m+=c}t.rect(a,s,j,q);break;case ws.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=ws,t.initdefaultprops=function(){var e=t.prototype;e._savedata=!0,e._ux=0,e._uy=0,e._pendingptdist=0,e._version=0}(),t}(),fs=2*math.pi,vs=2*math.pi,hs=es.cmd,gs=2*math.pi,ws=1e-4,us=[-1,-1,-1],xs=[-1,-1],ys=c({fill:"#000",stroke:null,strokepercent:1,fillopacity:1,strokeopacity:1,linedashoffset:0,linewidth:1,linecap:"butt",miterlimit:10,strokenoscale:!1,strokefirst:!1},os),js={style:c({fill:!0,stroke:!0,strokepercent:!0,fillopacity:!0,strokeopacity:!0,linedashoffset:!0,linewidth:!0,miterlimit:!0},as.style)},qs=ww.concat(["invisible","culling","z","z2","zlevel","parent"]),zs=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?pw:e>.2?dw:fw}if(t)return fw}return pw},n.prototype.getinsidetextstroke=function(t){var e=this.style.fill;if(c(e)){var n=this.__zr,i=!(!n||!n.isdarkmode()),r=xn(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&pb)&&(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)),jo(o,a/s,t,e)))return!0}if(this.hasfill())return yo(o,t,e)}return!1},n.prototype.dirtyshape=function(){this.__dirty|=pb,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&pb)},n.prototype.createstyle=function(t){return z(ys,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 z(ks,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=zi(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}(us);$s.prototype.type="tspan";var qs=c({x:0,y:0},os),js={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,swidth:!0,sheight:!0},as.style)},tm=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createstyle=function(t){return z(qs,t)},n.prototype._getsize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=qo(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 js},n.prototype.getboundingrect=function(){var t=this.style;return this._rect||(this._rect=new tb(t.x||0,t.y||0,this.getwidth(),this.getheight())),this._rect},n}(us);tm.prototype.type="image";var em=math.round,nm=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),im={},rm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new nm},n.prototype.buildpath=function(t,e){var n,i,r,o;if(this.subpixeloptimize){var a=$o(im,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}(zs);rm.prototype.type="rect";var om={fill:"#000"},am=2,sm={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},as.style)},lm=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultstyle=om,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,k=0;km&&(k=x[m],!k.align||"left"===k.align);)this._placetoken(k,t,w,g,t,"left",v),s-=k.width,t+=k.width,m++;for(;i>=0&&(k=x[i],"right"===k.align);)this._placetoken(k,t,w,g,c,"right",v),s-=k.width,c-=k.width,i--;for(t+=(i-(t-d)-(y-c)-s)/2;i>=m;)k=x[m],this._placetoken(k,t,w,g,t+k.width/2,"center",v),t+=k.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&&la(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=aa(r,o,p),u-=t.height/2-p[0]-t.innerheight/2);var f=this._getorcreatechild($s),d=f.createstyle();f.usestyle(d);var g=this._defaultstyle,y=!1,v=0,m=oa("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=ra("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autostroke&&!y?null:(v=am,g.stroke)),x=s.textshadowblur>0||e.textshadowblur>0;d.text=t.text,d.x=r,d.y=u,x&&(d.shadowblur=s.textshadowblur||e.textshadowblur||0,d.shadowcolor=s.textshadowcolor||e.textshadowcolor||"transparent",d.shadowoffsetx=s.textshadowoffsetx||e.textshadowoffsetx||0,d.shadowoffsety=s.textshadowoffsety||e.textshadowoffsety||0),d.textalign=o,d.textbaseline="middle",d.font=t.font||q_,d.opacity=f(s.opacity,e.opacity,1),ta(d,s),_&&(d.linewidth=f(s.linewidth,e.linewidth,v),d.linedash=e(s.linedash,e.linedash),d.linedashoffset=e.linedashoffset||0,d.stroke=_),m&&(d.fill=m);var b=t.contentwidth,w=t.contentheight;f.setboundingrect(new tb(bi(d.x,b,d.textalign),ei(d.y,w,d.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,f=t.borderradius,d=this;if(p||t.lineheight||u&&h){a=this._getorcreatechild(rm),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=f,a.dirtyshape()}if(p){var y=a.style;y.fill=l||null,y.fillopacity=e(t.fillopacity,1)}else if(c){s=this._getorcreatechild(tm),s.onload=function(){d.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=e(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 ea(t)&&(e=[t.fontstyle,t.fontweight,jo(t.fontsize),t.fontfamily||"sans-serif"].join(" ")),e&&w(e)||t.textfont||t.font},n}(us),um={left:!0,right:1,center:1},hm={top:1,bottom:1,middle:1},cm=["fontstyle","fontweight","fontsize","fontfamily"],pm=jr(),fm=function(t,e,n,i){if(i){var r=pm(i);r.dataindex=n,r.datatype=e,r.seriesindex=t,"group"===i.type&&i.traverse(function(i){var r=pm(i);r.seriesindex=t,r.dataindex=n,r.datatype=e})}},dm=1,gm={},ym=jr(),vm=jr(),mm=0,_m=1,xm=2,bm=["emphasis","blur","select"],wm=["normal","emphasis","blur","select"],sm=10,mm=9,tm="highlight",cm="downplay",im="select",km="unselect",dm="toggleselect",am=new ab(100),pm=["emphasis","blur","select"],lm={itemstyle:"getitemstyle",linestyle:"getlinestyle",areastyle:"getareastyle"},om=es.cmd,rm=[[],[],[]],nm=math.sqrt,zm=math.atan2,bm=math.sqrt,em=math.sin,fm=math.cos,vm=math.pi,hm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,gm=/-?([0-9]*\.)?[0-9]+([ee]-?[0-9]+)?/g,wm=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applytransform=function(){},n}(zs),um=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),xm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new um},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}(zs);xm.prototype.type="circle";var ym=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),jm=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ym},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}(zs);jm.prototype.type="ellipse";var qm=math.pi,zm=2*qm,km=math.sin,$m=math.cos,qm=math.acos,jm=math.atan2,tt=math.abs,et=math.sqrt,nt=math.max,it=math.min,rt=1e-4,ot=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}(),at=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ot},n.prototype.buildpath=function(t,e){vs(t,e)},n.prototype.iszeroarea=function(){return this.shape.startangle===this.shape.endangle||this.shape.r===this.shape.r0},n}(zs);at.prototype.type="sector";var st=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),lt=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new st},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}(zs);lt.prototype.type="ring";var ut=function(){function t(){this.points=null,this.smooth=0,this.smoothconstraint=null}return t}(),ht=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ut},n.prototype.buildpath=function(t,e){_s(t,e,!0)},n}(zs);ht.prototype.type="polygon";var ct=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothconstraint=null}return t}(),pt=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 ct},n.prototype.buildpath=function(t,e){_s(t,e,!1)},n}(zs);pt.prototype.type="polyline";var ft={},dt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),gt=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 dt},n.prototype.buildpath=function(t,e){var n,i,r,o;if(this.subpixeloptimize){var a=ko(ft,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}(zs);gt.prototype.type="line";var yt=[],vt=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}(),mt=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 vt},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&&(bn(n,a,r,h,yt),a=yt[1],r=yt[2],bn(i,s,o,h,yt),s=yt[1],o=yt[2]),t.quadraticcurveto(a,s,r,o)):(1>h&&(dn(n,a,l,r,h,yt),a=yt[1],l=yt[2],r=yt[3],dn(i,s,u,o,h,yt),s=yt[1],u=yt[2],o=yt[3]),t.beziercurveto(a,s,l,u,r,o)))},n.prototype.pointat=function(t){return xs(this.shape,t,!1)},n.prototype.tangentat=function(t){var e=xs(this.shape,t,!0);return pe(e,e)},n}(zs);mt.prototype.type="bezier-curve";var _t=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}(),xt=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 _t},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}(zs);xt.prototype.type="arc";var bt=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 xx;for(var n=0;2>n;n++)this._axes[n]=new xx;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);xx.sub(i[0],n[1],n[0]),xx.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 it.set(1/0,1/0),kt.set(0,0),!this._intersectcheckoneside(this,t,it,kt,i,1)&&(n=!1,i)?n:!this._intersectcheckoneside(t,this,it,kt,i,-1)&&(n=!1,i)?n:(i||xx.copy(e,n?it:kt),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,tt),this._getprojminmaxonaxis(s,e._corners,ct),tt[1]ct[1]){if(a=!1,r)return a;var u=math.abs(ct[0]-tt[1]),h=math.abs(tt[0]-ct[1]);math.min(u,h)>i.len()&&(h>u?xx.scale(i,l,-u*o):xx.scale(i,l,h*o))}else if(n){var u=math.abs(ct[0]-tt[1]),h=math.abs(tt[0]-ct[1]);math.min(u,h)u?xx.scale(n,l,u*o):xx.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?oc:sc}():sc;vl(ac,ic),vl(oc,rc);var cc=1e3,pc=60*cc,fc=60*pc,dc=24*fc,gc=365*dc,yc={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}"},vc="{yyyy}-{mm}-{dd}",mc={year:"{yyyy}",month:"{yyyy}-{mm}",day:vc,hour:vc+" "+yc.hour,minute:vc+" "+yc.minute,second:vc+" "+yc.second,millisecond:yc.none},_c=["year","month","day","hour","minute","second","millisecond"],xc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],bc=h,wc=["a","b","c","d","e","f","g"],sc=function(t,e){return"{"+t+(null==e?"":e)+"}"},mc=y,tc=["left","right","top","bottom","width","height"],cc=[["width","left","right"],["height","top","bottom"]],ic=jl,kc=(s(jl,"vertical"),s(jl,"horizontal"),jr()),dc=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=fl("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=eu(this),i=n?iu(t):{},r=e.gettheme();l(t,r.get(this.maintype)),l(t,this.getdefaultoption()),n&&nu(t,i,n)},n.prototype.mergeoption=function(t){l(this.option,t,!0);var e=eu(this);e&&nu(this.option,t,e)},n.prototype.optionupdated=function(){},n.prototype.getdefaultoption=function(){var t=this.constructor;if(!io(t))return t.defaultoption;var e=kc(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 kr(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}(ec);ao(dc,ec),ho(dc),dl(dc),gl(dc,ou);var ac="";"undefined"!=typeof navigator&&(ac=navigator.platform||"");var pc,lc,oc="rgba(0, 0, 0, 0.2)",rc={darkmode:"auto",colorby:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientcolor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:oc,dasharrayx:[1,0],dasharrayy:[2,5],symbolsize:1,rotation:math.pi/6},{color:oc,symbol:"circle",dasharrayx:[[8,8],[0,8,8,0]],dasharrayy:[6,0],symbolsize:.8},{color:oc,dasharrayx:[1,0],dasharrayy:[4,3],rotation:-math.pi/4},{color:oc,dasharrayx:[[6,6],[0,6,6,0]],dasharrayy:[6,0]},{color:oc,dasharrayx:[[1,0],[1,6]],dasharrayy:[1,0,6,0],rotation:math.pi/4},{color:oc,symbol:"triangle",dasharrayx:[[9,9],[0,9,9,0]],dasharrayy:[7,2],symbolsize:.75}]}},textstyle:{fontfamily:ac.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},nc=j(["tooltip","label","itemname","itemid","itemgroupid","seriesname"]),zc="original",bc="arrayrows",ec="objectrows",fc="keyedcolumns",vc="typedarray",hc="unknown",gc="column",wc="row",uc={must:1,might:2,not:3},xc=jr(),yc=j(),jc=jr(),qc=(jr(),function(){function t(){}return t.prototype.getcolorfrompalette=function(t,e,n){var i=kr(this.get("color",!0)),r=this.get("colorlayer",!0);return du(this,jc,i,r,t,e,n)},t.prototype.clearcolorpalette=function(){gu(this,jc)},t}()),zc="\x00_ec_inner",kc=1,$c=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 ec(i),this._locale=new ec(r),this._optionmanager=o},n.prototype.setoption=function(t,e,n){var i=xu(e);this._optionmanager.setoption(t,n,i),this._resetoption(null,i)},n.prototype.resetoption=function(t,e){return this._resetoption(t,xu(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)):lc(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=pu(this,e,kr(t[e])),a=r.get(e),s=a?c&&c.get(e)?"replacemerge":"normalmerge":"replaceall",l=lr(a,n,s);ur(l,e,dc),i[e]=null,r.set(e,null),o.set(e,0);var u,p=[],f=[],d=0;y(l,function(t,n){var i=t.existing,r=t.newoption;if(r){var o="series"===e,a=dc.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),f.push(i),d++):(p.push(void 0),f.push(void 0))},this),i[e]=p,r.set(e,f),o.set(e,d),"series"===e&&pc(this)}var i=this.option,r=this._componentsmap,o=this._componentscount,a=[],u=j(),c=e&&e.replacemergemaintypemap;au(this),y(t,function(t,e){null!=t&&(dc.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){dc.hasclass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),dc.topologicaltravel(a,dc.getallclassmaintypes(),n,this),this._seriesindices||pc(this)},n.prototype.getoption=function(){var t=s(this.option);return y(t,function(e,n){if(dc.hasclass(n)){for(var i=kr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!wr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[zc],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++)wu(n[a].query,t,e)&&r.push(a);return!r.length&&i&&(r=[-1]),r.length&&!mu(r,this._currentmediaindices)&&(o=v(r,function(t){return s(-1===t?i.option:n[t].option)})),this._currentmediaindices=r,o},t}(),hi=y,ci=d,pi=["areastyle","linestyle","nodestyle","linkstyle","chordstyle","label","labelline"],fi=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],di=["grid","geo","parallel","legend","toolbox","title","visualmap","datazoom","timeline"],gi=[["borderradius","barborderradius"],["bordercolor","barbordercolor"],["borderwidth","barborderwidth"]],yi=function(){function t(t){this.data=t.data||(t.sourceformat===fc?{}:[]),this.sourceformat=t.sourceformat||hc,this.serieslayoutby=t.serieslayoutby||gc,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 f=r[p*o+a];c[t+p]=f,l>f&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimsize:0};e={},e[bc+"_"+gc]={pure:!0,appenddata:t},e[bc+"_"+wc]={pure:!0,appenddata:function(){throw new error('do not support appenddata when set serieslayoutby: "row".')}},e[ec]={pure:!0,appenddata:t},e[fc]={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[zc]={appenddata:t},e[vc]={persistent:!1,pure:!0,appenddata:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},ei=e}(),t}(),mi=function(t,e,n,i){return t[i]},_i=(qc={},qc[bc+"_"+gc]=function(t,e,n,i){return t[i+e]},qc[bc+"_"+wc]=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 oh(this.getdata(e),t)},t.prototype.formattooltip=function(){},t}(),ci=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,f=math.min(null!=c?this._dueindex+c:1/0,this._dueend);if(!i&&(h||f>p)){var d=this._progress;if(m(d))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}(),ki=(j({number:function(t){return parsefloat(t)},time:function(t){return+gr(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}}),di=(function(){function t(t,e){if(!k(e)){var n="";cr(n)}this._opfn=ki[t],this._rvalfloat=br(e)}return t.prototype.evaluate=function(t){return k(t)?this._opfn(t,this._rvalfloat):this._opfn(br(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=k(t)?t:br(t),i=k(e)?e:br(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}()),ai=(function(){function t(t,e){this._rval=e,this._iseq=t,this._rvaltypeof=typeof e,this._rvalfloat=br(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=br(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 lh(t,e)},t}()),pi=j(),li="undefined",oi=typeof uint32array===li?array:uint32array,ri=typeof uint16array===li?array:uint16array,ni=typeof int32array===li?array:int32array,zi=typeof float64array===li?array:float64array,bi={"float":zi,"int":ni,ordinal:array,number:array,time:zi},ei=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=ii[i.sourceformat];this._dimvaluegetter=n||r,this._rawextent=[];th(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 bi[e||"float"](this._rawcount),this._rawextent[r]=_h(),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]=_h());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];bh(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,f=0;r>f;f++){var u=i[f],d=ii.arrayrows.call(this,t[p]||h,u.property,p,f);n[f][c]=d;var g=o[f];dg[1]&&(g[1]=d)}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]=_h()),bh(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 f=0;a>f;f++){var d=r[f],g=this._dimvaluegetter(c,l[f],p,f);d[p]=g;var y=s[f];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],f=math.abs(p);n>=f&&((a>f||f===a&&p>=0&&0>s)&&(a=f,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=mh(this._rawcount);t=new n(this.count());for(var r=0;rc;c++){var p=void 0,f=n.getrawindex(c);if(0===s)p=e(c);else if(1===s){var d=h[u][f]; p=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][f];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=f)}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=mh(e._rawcount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=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++]=d),d++}f=!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++]=d),d++}f=!0}}if(!f)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 f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(r[0]=f,f=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(mh(this._rawcount))(math.min(2*(math.ceil(l/h)+2),l));p[u++]=c;for(var f=1;l-1>f;f+=h){for(var d=math.min(f+h,l-1),g=math.min(f+2*h,l),y=(g+d)/2,v=0,m=d;g>m;m++){var _=this.getrawindex(m),x=s[_];isnan(x)||(v+=x)}v/=g-d;var b=f,w=math.min(f+h,l),s=f-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]=_h(),c=new(mh(this._rawcount))(math.ceil(u/s)),p=0,f=0;u>f;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;s>d;d++){var g=this.getrawindex(f+d);a[d]=l[g]}var y=n(a),v=this.getrawindex(math.min(f+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=_h();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 lh(t[i],this._dimensions[i])}ii={arrayrows:t,objectrows:function(t,e,n,i){return lh(t[e],this._dimensions[i])},keyedcolumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return lh(r instanceof array?r[i]:r,this._dimensions[i])},typedarray:function(t,e,n,i){return t[i]}}}(),t}(),fi=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(sh(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=p(a)?vc:zc,e=[];var h=this._getsourcemetarawoption()||{},c=l&&l.metarawoption||{},p=e(h.serieslayoutby,c.serieslayoutby)||null,f=e(h.sourceheader,c.sourceheader),d=e(h.dimensions,c.dimensions),g=p!==c.serieslayoutby||!!f!=!!c.sourceheader||d;t=g?[yu(a,{serieslayoutby:p,sourceheader:f,dimensions:d},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=[yu(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&&mh(r)}var o,a=[],s=[];return y(t,function(t){t.preparesource();var e=t.getsource(i||0),n="";null==i||e||mh(n),a.push(e),s.push(t._getversionsign())}),n?o=gh(n,a,{datasetindex:e.componentindex}):null!=i&&(o=[qu(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=qc.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[wh(i,t)])&&!i.getitemmodel(t).get(["select","disabled"])},n.prototype.isuniversaltransitionenabled=function(){if(this[xi])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){d(r.selectedmap)||(r.selectedmap={});for(var s=r.selectedmap,l=0;a>l;l++){var u=e[l],h=wh(t,u);s[h]=!0,this._selecteddataindicesmap[h]=t.getrawindex(u)}}else if("single"===o||o===!0){var c=e[a-1],h=wh(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 dc.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}(dc);d(yi,ti),d(yi,qc),ao(yi,dc);var ji=function(){function t(){this.group=new aw,this.uid=fl("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}();ro(ji),ho(ji);var qi=jr(),zi=qh(),ki=function(){function t(){this.group=new aw,this.uid=fl("viewchart"),this.rendertask=sh({plan:ec,reset:nc}),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&&tc(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getdata(i&&i.datatype);r&&tc(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){el(this.group,t)},t.markupdatemethod=function(t,e){qi(t).updatemethod=e},t.protoinitialize=function(){var e=t.prototype;e.type="chart"}(),t}();ro(ki,["dispose"]),ho(ki);var $i,qi={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)}}},ji="\x00__throttleoriginmethod",tk="\x00__throttlerate",ek="\x00__throttletype",nk=jr(),ik={itemstyle:co(qt,!0),linestyle:co(zt,!0)},rk={linestyle:"stroke",itemstyle:"fill"},ok={createonallseries:!0,performrawseries:!0,reset:function(t,e){var n=t.getdata(),i=t.visualstyleaccesspath||"itemstyle",r=t.getmodel(i),o=ac(t,i),a=o(r),s=r.getshallow("decal");s&&(n.setvisual("decal",s),s.dirty=!0);var l=sc(t,i),u=a[l],c=t(u)?u:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||p){var f=t.getcolorfrompalette(t.name,null,e.getseriescount());a[l]||(a[l]=f,n.setvisual("colorfrompalette",!0)),a.fill="auto"===a.fill||t(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||t(a.stroke)?f: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}},ak=new ec,sk={createonallseries:!0,performrawseries:!0,reset:function(t,e){if(!t.ignorestyleondata&&!e.isseriesfiltered(t)){var n=t.getdata(),i=t.visualstyleaccesspath||"itemstyle",r=ac(t,i),o=n.getvisual("drawtype");return{dataeach:n.hasitemoption?function(t,e){var n=t.getrawdataitem(e);if(n&&n[i]){ak.option=n[i];var a=r(ak),s=t.ensureuniqueitemvisual(e,"style");h(s,a),ak.option.decal&&(t.setitemvisual(e,"decal",ak.option.decal),ak.option.decal.dirty=!0),o in a&&t.setitemvisual(e,"colorfrompalette",!1)}}:null}}}},lk={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)),nk(t).scope=r}}),t.eachseries(function(e){if(!e.iscolorbyseries()&&!t.isseriesfiltered(e)){var n=e.getrawdata(),i={},r=e.getdata(),o=nk(e).scope,a=e.visualstyleaccesspath||"itemstyle",s=sc(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)}})}})}},uk=math.pi,hk=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="";g(!(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)||sh({plan:fc,reset:dc,count:yc}));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,sh({reset:hc,ondirty:pc})));n.context={model:t,overallprogress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overalltask=e.overalltask||sh({reset:uc});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,f="";g(!t.createonallseries,f),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:vc(t)}),t.uid=fl("stagehandler"),e&&(t.visualtype=e),t},t}(),ck=gc(0),pk={},fk={};mc(pk,$c),mc(fk,oi),pk.eachseriesbytype=pk.eachrawseriesbytype=function(t){$i=t},pk.eachcomponent=function(t){"series"===t.maintype&&t.subtype&&($i=t.subtype)};var dk=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"],gk={color:dk,colorlayer:[["#37a2da","#ffd85c","#fd7b5f"],["#37a2da","#67e0e3","#ffdb5c","#ff9f7f","#e062ae","#9d96f5"],["#37a2da","#32c5e9","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e7bcf3","#8378ea","#96bfff"],dk]},yk="#b9b8ce",vk="#100c2a",mk=function(){return{axisline:{linestyle:{color:yk}},splitline:{linestyle:{color:"#484753"}},splitarea:{areastyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorsplitline:{linestyle:{color:"#20203b"}}}},_k=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],xk={darkmode:!0,color:_k,backgroundcolor:vk,axispointer:{linestyle:{color:"#817f91"},crossstyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textstyle:{color:yk}},textstyle:{color:yk},title:{textstyle:{color:"#eef1fa"},subtextstyle:{color:"#b9b8ce"}},toolbox:{iconstyle:{bordercolor:yk}},datazoom:{bordercolor:"#71708a",textstyle:{color:yk},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:yk}},timeline:{linestyle:{color:yk},label:{color:yk},controlstyle:{color:yk,bordercolor:yk}},calendar:{itemstyle:{color:vk},daylabel:{color:yk},monthlabel:{color:yk},yearlabel:{color:yk}},timeaxis:mk(),logaxis:mk(),valueaxis:mk(),categoryaxis:mk(),line:{symbol:"circle"},graph:{color:_k},gauge:{title:{color:yk},axisline:{linestyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axislabel:{color:yk},detail:{color:"#eef1fa"}},candlestick:{itemstyle:{color:"#f64e56",color0:"#54ea92",bordercolor:"#f64e56",bordercolor0:"#54ea92"}}};xk.categoryaxis.splitline.show=!1;var bk=function(){function t(){}return t.prototype.normalizequery=function(t){var e={},n={},i={};if(c(t)){var r=eo(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}(),wk=["symbol","symbolsize","symbolrotate","symboloffset"],sk=wk.concat(["symbolkeepaspect"]),mk={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[dd]&&!this._disposed){var i,r,o;if(d(e)&&(n=e.lazyupdate,i=e.silent,r=e.replacemerge,o=e.transition,e=e.notmerge),this[dd]=!0,!this._model||e){var a=new ui(this._api),s=this._theme,l=this._model=new $c;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setoption(t,{replacemerge:r},qd);var u={seriestransition:o,optionchanged:!0}; if(n)this[gd]={silent:i,updateparams:u},this[dd]=!1,this.getzr().wakeup();else{try{md(this),id.update.call(this,null,u)}catch(h){throw this[gd]=null,this[dd]=!1,h}this._ssr||this._zr.flush(),this[gd]=null,this[dd]=!1,pd.call(this,i),ld.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||z_.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(z_.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(jd[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelratio||this.getdevicepixelratio();y(qd,function(o){if(o.group===n){var p=e?o.getzr().painter.getsvgdom().innerhtml:o.rendertocanvas(s(t)),f=o.getdom().getboundingclientrect();a=i(f.left,a),l=i(f.top,l),u=r(f.right,u),h=r(f.bottom,h),c.push({dom:p,left:f.left,top:f.top})}}),a*=p,l*=p,u*=p,h*=p;var f=u-a,d=h-l,g=ix.createcanvas(),v=$i(g,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:d}),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 rm({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedbackgroundcolor}})),y(c,function(t){var e=new tm({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 kd(this,"converttopixel",t,e)},n.prototype.convertfrompixel=function(t,e){return kd(this,"convertfrompixel",t,e)},n.prototype.containpixel=function(t,e){if(!this._disposed){var n,i=this._model,r=qr(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=qr(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?_c(o,a,e):xc(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(ud,function(e){var n=function(n){var i,r=t.getmodel(),o=n.target,a="globalout"===e;if(a?i={}:o&&sc(o,function(t){var e=pm(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(yd,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)}),wc(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&&$r(this.getdom(),na,"");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 qd[e.id]}},n.prototype.resize=function(t){if(!this[dd]&&!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[gd]&&(null==i&&(i=this[gd].silent),n=!0,this[gd]=null),this[dd]=!0;try{n&&md(this),id.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)})}catch(r){throw this[dd]=!1,r}this[dd]=!1,pd.call(this,i),ld.call(this,i)}}},n.prototype.showloading=function(t,e){if(!this._disposed&&(d(t)&&(e=t,t=""),t=t||"default",this.hideloading(),$d[t])){var n=$d[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=yd[t.type],e},n.prototype.dispatchaction=function(t,e){if(!this._disposed&&(d(e)||(e={silent:!!e}),xd[t.type]&&this._model)){if(this[dd])return void this._pendingactions.push(t);var n=e.silent;ad.call(this,t,n);var i=e.flush;i?this._zr.flush():i!==!1&&z_.browser.wechat&&this._throttledzrflush(),pd.call(this,n),ld.call(this,n)}},n.prototype.updatelabellayout=function(){jk.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);on(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")&&!z_.node&&!z_.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(ts(t))return;if(t instanceof zs&&ns(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)}})}md=function(t){var e=t._scheduler;e.restorepipelines(t._model),e.preparestagetasks(),td(t,!0),td(t,!1),e.plan()},td=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=eo(t.type),p=e?ji.getclass(c.main,c.sub):ki.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+=ma[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source,f=[p.serieslayoutby,p.startindex,i].join("$$");return{dimensions:r,hash:f}},t.prototype.makeoutputdimensionnames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-i;this._namelist[a]=e[s],o&&pa(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===zc;if(s&&!i.pure)for(var l=[],u=t;e>u;u++){var h=i.getitem(u,l);if(!this.hasitemoption&&pr(h)&&(this.hasitemoption=!0),h){var c=h.name;null==r[u]&&null!=c&&(r[u]=hr(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=hr(p,null))}}if(this._shouldmakeidfromname())for(var u=t;e>u;u++)pa(this,u);aa(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){xa(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=la(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 sa(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(ba(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)?ma: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=ba(ua(t),this._getstoredimindex,this);this._store.each(r,i?vx(e,i):e)},t.prototype.filterself=function(t,e,n){t(t)&&(n=e,e=t,t=[]);var i=n||this,r=ba(ua(t),this._getstoredimindex,this);return this._store=this._store.filter(r,i?vx(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=ba(ua(t),this._getstoredimindex,this),a=ca(this);return a._store=this._store.map(o,r?vx(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=ba(ua(t),this._getstoredimindex,this);this._store.modify(o,r?vx(e,r):e)},t.prototype.downsample=function(t,e,n,i){var r=ca(this);return r._store=this._store.downsample(this._getstoredimindex(t),e,n,i),r},t.prototype.lttbdownsample=function(t,e){var n=ca(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 ec(n,e,e&&e.ecmodel)},t.prototype.diff=function(t){var e=this;return new da(t?t.getstore().getindices():[],this.getstore().getindices(),function(e){return sa(t,e)},function(t){return sa(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||{},xa(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():xa(r)&&(r=h({},r)),i[e]=r),r},t.prototype.setitemvisual=function(t,e,n){var i=this._itemvisuals[t]||{};this._itemvisuals[t]=i,xa(e)?h(i,e):i[e]=n},t.prototype.clearallvisual=function(){this._visual={},this._itemvisuals=[]},t.prototype.setlayout=function(t,e){xa(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;fm(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:ba(this.dimensions,this._getdiminfo,this),this.hostmodel)),ha(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(){aa=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 wa(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),ka=function(){function t(t){this.coordsysdims=[],this.axismap=j(),this.categoryaxismap=j(),this.coordsysname=t}return t}(),da={cartesian2d:function(t,e,n,i){var r=t.getreferringcomponents("xaxis",uw).models[0],o=t.getreferringcomponents("yaxis",uw).models[0];e.coordsysdims=["x","y"],n.set("x",r),n.set("y",o),tf(r)&&(i.set("x",r),e.firstcategorydimindex=0),tf(o)&&(i.set("y",o),null==e.firstcategorydimindex&&(e.firstcategorydimindex=1))},singleaxis:function(t,e,n,i){var r=t.getreferringcomponents("singleaxis",uw).models[0];e.coordsysdims=["single"],n.set("single",r),tf(r)&&(i.set("single",r),e.firstcategorydimindex=0)},polar:function(t,e,n,i){var r=t.getreferringcomponents("polar",uw).models[0],o=r.findaxismodel("radiusaxis"),a=r.findaxismodel("angleaxis");e.coordsysdims=["radius","angle"],n.set("radius",o),n.set("angle",a),tf(o)&&(i.set("radius",o),e.firstcategorydimindex=0),tf(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),tf(s)&&(i.set(l,s),null==e.firstcategorydimindex&&(e.firstcategorydimindex=o))})}},aa=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}();ho(aa);var pa=0,la=function(){function t(t){this.categories=t.categories||[],this._needcollect=t.needcollect,this._deduplication=t.deduplication,this.uid=++pa}return t.createbyaxismodel=function(e){var n=e.option,i=n.data,r=i&&v(i,cf);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}(),oa=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getsetting("ordinalmeta");return i||(i=new la({})),m(i)&&(i=new la({categories:v(i,function(t){return d(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),mf(t,this._extent)&&null!=this._ordinalmeta.categories[t]},n.prototype.normalize=function(t){return t=this._getticknumber(this.parse(t)),_f(t,this._extent)},n.prototype.scale=function(t){return t=math.round(xf(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}(aa);aa.registerclass(oa);var ra=or,na=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 mf(t,this._extent)},n.prototype.normalize=function(t){return _f(t,this._extent)},n.prototype.scale=function(t){return xf(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=gf(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:ra(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=ra(a.value+(s+1)*h);c>i[0]&&cr&&(r=-r,i.reverse());var o=ff(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]=ra(math.floor(e[0]/r)*r)),t.fixmax||(e[1]=ra(math.ceil(e[1]/r)*r))},n.prototype.setniceextent=function(t,e){this._niceextent=[t,e]},n.type="interval",n}(aa);aa.registerclass(na);var za="undefined"!=typeof float32array,ba=za?float32array:array,ea="__ec_stack_",fa=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]n&&(this._approxinterval=n);var o=ha.length,a=math.min(fa(ha,this._approxinterval,0,o),o-1);this._interval=ha[a][1],this._minlevelunit=ha[math.max(a-1,0)][0]},n.prototype.parse=function(t){return k(t)?t:+gr(t)},n.prototype.contain=function(t){return mf(this.parse(t),this._extent)},n.prototype.normalize=function(t){return _f(this.parse(t),this._extent)},n.prototype.scale=function(t){return xf(t,this._extent)},n.type="time",n}(na),ha=[["second",cc],["minute",pc],["hour",fc],["quarter-day",6*fc],["half-day",12*fc],["day",1.2*dc],["half-week",3.5*dc],["week",7*dc],["month",31*dc],["quarter",95*dc],["half-year",gc/2],["year",gc]];aa.registerclass(va);var ga=aa.prototype,wa=na.prototype,ua=or,xa=math.floor,ya=math.ceil,ja=math.pow,qa=math.log,za=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalscale=new na,e._interval=0,e}return e(n,t),n.prototype.getticks=function(t){var e=this._originalscale,n=this._extent,i=e.getextent(),r=wa.getticks.call(this,t);return v(r,function(t){var e=t.value,r=or(ja(this.base,e));return r=e===n[0]&&this._fixmin?ff(r,i[0]):r,r=e===n[1]&&this._fixmax?ff(r,i[1]):r,{value:r}},this)},n.prototype.setextent=function(t,e){var n=qa(this.base);t=qa(math.max(0,t))/n,e=qa(math.max(0,e))/n,wa.setextent.call(this,t,e)},n.prototype.getextent=function(){var t=this.base,e=ga.getextent.call(this);e[0]=ja(t,e[0]),e[1]=ja(t,e[1]);var n=this._originalscale,i=n.getextent();return this._fixmin&&(e[0]=ff(e[0],i[0])),this._fixmax&&(e[1]=ff(e[1],i[1])),e},n.prototype.unionextent=function(t){this._originalscale.unionextent(t);var e=this.base;t[0]=qa(t[0])/qa(e),t[1]=qa(t[1])/qa(e),ga.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=yr(n),r=t/n*i;for(.5>=r&&(i*=10);!isnan(i)&&math.abs(i)<1&&math.abs(i)>0;)i*=10;var o=[or(ya(e[0]/i)*i),or(xa(e[1]/i)*i)];this._interval=i,this._niceextent=o}},n.prototype.calcniceextent=function(t){wa.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=qa(t)/qa(this.base),mf(t,this._extent)},n.prototype.normalize=function(t){return t=qa(t)/qa(this.base),_f(t,this._extent)},n.prototype.scale=function(t){return t=xf(t,this._extent),ja(this.base,t)},n.type="log",n}(aa),ka=za.prototype;ka.getminorticks=wa.getminorticks,ka.getlabel=wa.getlabel,aa.registerclass(za);var $a=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[ja[t]]=e},t.prototype.setdeterminedminmax=function(t,e){var n=qa[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),qa={min:"_determinedmin",max:"_determinedmax"},ja={min:"_datamin",max:"_datamax"},tp=function(){function t(){}return t.prototype.getneedcrosszero=function(){var t=this.option;return!t.scale},t.prototype.getcoordsysmodel=function(){},t}(),ep={isdimensionstacked:rf,enabledatastack:ef,getstackeddimension:of},np=(object.freeze||object)({createlist:td,getlayoutrect:tu,datastack:ep,createscale:ed,mixinaxismodelcommonmethods:nd,getecdata:pm,createtextstyle:id,createdimensions:qp,createsymbol:tc,enablehoveremphasis:ya}),ip=[],rp={registerpreprocessor:sp,registerprocessor:mp,registerpostinit:tp,registerpostupdate:cp,registerupdatelifecycle:ip,registeraction:kp,registercoordinatesystem:dp,registerlayout:pp,registervisual:lp,registertransform:oa,registerloading:rp,registermap:zp,registerimpl:cp,priority:fd,componentmodel:dc,componentview:ji,seriesmodel:yi,chartview:ki,registercomponentmodel:function(t){dc.registerclass(t)},registercomponentview:function(t){ji.registerclass(t)},registerseriesmodel:function(t){yi.registerclass(t)},registerchartview:function(t){ki.registerclass(t)},registersubtypedefaulter:function(t,e){dc.registersubtypedefaulter(t,e)},registerpainter:function(t,e){er(t,e)}},op=1e-8,ap=[],sp=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}(),lp=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),up=function(){function t(t){this.type="linestring",this.points=t}return t}(),hp=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 ud(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?ld(e.exterior,n,i,t):y(e.points,function(e){ld(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 tb(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(ad(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(ad(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 tb(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 ur(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(),kd(n,i.count())),ir(t,vp,n,e)},t.prototype.coordtodata=function(t,e){var n=this._extent,i=this.scale;this.onband&&"ordinal"===i.type&&(n=n.slice(),kd(n,i.count()));var r=ir(t,n,vp,e);return this.scale.scale(r)},t.prototype.pointtodata=function(){},t.prototype.gettickscoords=function(t){t=t||{};var e=t.tickmodel||this.gettickmodel(),n=gd(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 dd(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 dd(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 md(this)},t}(),_p=2*math.pi,xp=es.cmd,bp=["top","right","bottom","left"],wp=[],sp=new xx,mp=new xx,tp=new xx,cp=new xx,ip=new xx,kp=[],dp=new xx,ap=["align","verticalalign","width","height","fontsize"],pp=new bw,lp=jr(),op=jr(),rp=["x","y","rotation"],np=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();tb.applytransform(u,u,l),l?pp.setlocaltransform(l):(pp.x=pp.y=pp.rotation=pp.originx=pp.originy=0,pp.scalex=pp.scaley=1);var h,c=i.__hosttarget;if(c){h=c.getboundingrect().plain();var p=c.getcomputedtransform();tb.applytransform(h,h,p)}var f=h&&c.gettextguideline();this._labellist.push({label:i,labelline:f,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:f&&f.ignore,x:pp.x,y:pp.y,scalex:pp.scalex,scaley:pp.scaley,rotation:pp.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=pm(t);r&&!r.disablelabellayout&&e._addlabel(o.dataindex,o.datatype,n,r,i)})},t.prototype.updatelayoutconfig=function(t){function e(t,e){return function(){vd(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)),ss(n,l,e,s)}else if(n.attr(l),!ut(n).valueanimation){var c=e(n.style.opacity,1);n.style.opacity=0,ms(n,{style:{opacity:c}},e,s)}if(r.oldlayout=l,n.states.select){var f=r.oldlayoutselect={};jd(f,l,rp),jd(f,n.states.select,rp)}if(n.states.emphasis){var d=r.oldlayoutemphasis={};jd(d,l,rp),jd(d,n.states.emphasis,rp)}pl(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=op(i),o=r.oldlayout,g={points:i.shape.points};o?(i.attr({shape:o}),ss(i,{shape:g},e)):(i.setshape(g),i.style.strokepercent=0,ms(i,{style:{strokepercent:1}},e)),r.oldlayout=g}},t}(),zp=jr();rd(tg);var bp=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||hw,"string"==typeof e?o=eg(e,n,i):d(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=eg("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 tb(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 tb(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 tb(0,0,0,0),u=this.__startindex;uo;o++){var a=t[o];a.__inhover&&(n||(n=this._hoverlayer=this.getlayer(ep)),i||(i=n.ctx,i.save()),np(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.gethoverlayer=function(){return this.getlayer(ep)},t.prototype.paintone=function(t,e){ep(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;gb(function(){s._paintlist(t,e,n,i)})}}},t.prototype._compositemanually=function(){var t=this.getlayer(fp).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?vp: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&hb&&!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];np(n,u,o,s===l-1)}return e.dom},t.prototype.getwidth=function(){return this._width},t.prototype.getheight=function(){return this._height},t}(),wp=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 fi(this),wh(this)},n.prototype.mergeoption=function(e,n){t.prototype.mergeoption.call(this,e,n),wh(this)},n.prototype.optionupdated=function(){this._sourcemanager.dirty()},n.prototype.getsourcemanager=function(){return this._sourcemanager},n.type="dataset",n.defaultoption={serieslayoutby:gc},n}(dc),up=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}(ji);rd([rg,og]),rd(tg);var xp=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 lf(null,this,{useencodedefaulter:!0})},n.prototype.getlegendicon=function(t){var e=new aw,n=tc("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=tc(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}(yi),yp=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=tc(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scalex:i[0]/2,scaley:i[1]/2}),o.drift=lg,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(){da(this.childat(0))},n.prototype.downplay=function(){aa(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):ss(c,p,a,e),ds(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,ms(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):ag(t,e)}var a,s,l,u,c,p,f,d,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,f=i.labelstatesmodels,d=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"),f=ol(m),d=_.getshallow("scale"),g=m.getshallow("cursor")}var x=t.getitemvisual(e,"symbolrotate");y.attr("rotation",(x||0)*math.pi/180||0);var b=ic(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 tm){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;rl(y,f,{labelfetcher:v,labeldataindex:e,defaulttext:o,inheritcolor:s,defaultopacity:w.opacity}),this._sizex=n[0]/2,this._sizey=n[1]/2;var k=y.ensurestate("emphasis");k.style=a,y.ensurestate("select").style=l,y.ensurestate("blur").style=s;var d=null==d||d===!0?math.max(1.1,3/this._sizey):isfinite(d)&&d>0?+d:1;k.scalex=this._sizex*d,k.scaley=this._sizey*d,this.setsymbolscale(1),qa(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=pm(this).dataindex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadelabel){var a=i.gettextcontent();a&&cs(a,{style:{opacity:0}},e,{dataindex:r,removeopt:o,cb:function(){i.removetextcontent()}})}else i.removetextcontent();cs(i,{style:{opacity:0},scalex:0,scaley:0},e,{dataindex:r,cb:t,removeopt:o})},n.getsymbolsize=function(t,e){return cc(t.getitemvisual(e,"symbolsize"))},n}(aw),jp=function(){function t(t){this.group=new aw,this._symbolctor=t||yp}return t.prototype.updatedata=function(t,e){this._progressiveels=null,e=hg(e);var n=this.group,i=t.hostmodel,r=this._data,o=this._symbolctor,a=e.disableanimation,s=cg(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(ug(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),f=u(h);if(!ug(t,f,h,e))return void n.remove(p);var d=t.getitemvisual(h,"symbol")||"circle",g=p&&p.getsymboltype&&p.getsymboltype();if(!p||g&&g!==d)n.remove(p),p=new o(t,h,s,l),p.setposition(f);else{p.updatedata(t,h,s,l);var y={x:f[0],y:f[1]};a?p.attr(y):ss(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=cg(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=hg(n);for(var r=t.start;r0&&vg(n[2*r-2],n[2*r-1]);r--);for(;r>i&&vg(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=mg(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=es.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++],f=o[u++],d=o[u++],g=o[u++],y=o[u++];var _=s?pn(n,c,f,g,t,l):pn(i,p,d,y,t,l);if(_>0)for(var x=0;_>x;x++){var b=l[x];if(1>=b&&b>=0){var m=s?hn(i,p,d,y,b):hn(n,c,f,g,b);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(zs),qp=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(kp),jp=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 qp},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&&vg(n[2*o-2],n[2*o-1]);o--);for(;o>r&&vg(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=mg(t,n,r,o,o,1,e.smooth,a,e.connectnulls);mg(t,i,r+s-1,s,o,-1,e.stackedonsmooth,a,e.connectnulls),r+=s+1,t.closepath()}},n}(zs),tl=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new aw,e=new jp;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,f=this._symboldraw,d=this._polyline,g=this._polygon,y=this._linegroup,v=!e.ssr&&t.isanimationenabled(),m=!l.isempty(),_=l.get("origin"),x=pg(r,a,_),b=m&&ig(r,a,x),w=t.get("showsymbol"),s=t.get("connectnulls"),m=w&&!h&&pg(t,a,r),t=this._data;t&&t.eachitemgraphicel(function(t,e){t.__temp&&(o.remove(t),t.setitemgraphicel(e,null))}),w||f.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 k=ag(a,r,n)||a.getvisual("style")[a.getvisual("drawtype")];if(d&&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,$l(k));var d=y.getclippath();if(d){var a=eg(this,r,!1,t);ms(d,{shape:a.shape},t)}else y.setclippath(eg(this,r,!0,t));w&&f.updatedata(a,{isignore:m,clipshape:c,disableanimation:!0,getsymbolpoint:function(t){return[u[2*t],u[2*t+1]]}}),sg(this._stackedonpoints,b)&&sg(this._points,u)||(v?this._doupdateanimation(a,b,r,n,i,_,s):(i&&(u=kg(u,r,i,s),b&&(b=kg(b,r,i,s))),d.setshape({points:u}),g&&g.setshape({points:u,stackedonpoints:b})))}else w&&f.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=kg(u,r,i,s),b&&(b=kg(b,r,i,s))),d=this._newpolyline(u),m?g=this._newpolygon(u,b):g&&(y.remove(g),g=this._polygon=null),h||this._initorupdateendlabel(t,r,$l(k)),y.setclippath(eg(this,r,!0,t));var p=t.getmodel("emphasis"),l=p.get("focus"),o=p.get("blurscope"),r=p.get("disabled");if(d.usestyle(c(s.getlinestyle(),{fill:"none",stroke:k,linejoin:"bevel"})),ka(d,t,"linestyle"),d.style.linewidth>0&&"bolder"===t.get(["emphasis","linestyle","width"])){var n=d.getstate("emphasis").style;n.linewidth=+d.style.linewidth+1}pm(d).seriesindex=t.seriesindex,qa(d,l,o,r);var z=cg(t.get("smooth")),b=t.get("smoothmonotone");if(d.setshape({smooth:z,smoothmonotone:b,connectnulls:s}),g){var e=a.getcalculationinfo("stackedonseries"),f=0;g.usestyle(c(l.getareastyle(),{fill:k,opacity:.7,linejoin:"bevel",decal:a.getvisual("style").decal})),e&&(f=cg(e.get("smooth"))),g.setshape({smooth:z,stackedonsmooth:f,smoothmonotone:b,connectnulls:s}),ka(g,t,"areastyle"),pm(g).seriesindex=t.seriesindex,qa(g,l,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,d),g&&this.packeventdata(t,g))},n.prototype.packeventdata=function(t,e){pm(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=yr(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 yp(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 ki.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getdata(),o=yr(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 ki.prototype.downplay.call(this,t,e,n,i)},n.prototype._changepolystate=function(t){var e=this._polygon;xa(this._polyline,t),e&&xa(e,t)},n.prototype._newpolyline=function(t){var e=this._polyline;return e&&this._linegroup.remove(e),e=new $p({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 jp({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,f=void 0,d=void 0;if(n)if(r){var g=n,y=e.pointtocoord(c);i?(p=g.startangle,f=g.endangle,d=-y[1]/180*math.pi):(p=g.r0,f=g.r,d=y[0])}else{var v=n;i?(p=v.x,f=v.x+v.width,d=t.x):(p=v.y+v.height,f=v.y,d=t.y)}var m=f===p?0:(d-p)/(f-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(bg(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 lm({z2:200}),s.ignoreclip=!0,o.settextcontent(this._endlabel),o.disablelabelanimation=!0);var l=rg(a);l>=0&&(rl(o,ol(t,"endlabel"),{inheritcolor:n,labelfetcher:t,labeldataindex:l,defaulttext:function(t,e,n){return null!=n?sg(r,n):ag(r,t)},enabletextsetter:!0},fg(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"),f=o.get("distance")||0,d=a.getbaseaxis(),g=d.ishorizontal(),y=d.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(y?-1:1),x=(g?0:-f)*(y?-1:1),b=g?"x":"y",w=zg(u,m,b),s=w.range,m=s[1]-s[0],t=void 0;if(m>=1){if(m>1&&!c){var c=ng(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]),k=h.getrawvalue(s[1]);r&&(t=to(n,p,i,k,w.t))}i.lastframeindex=s[0]}else{var d=1===t||i.lastframeindex>0?s[0]:0,c=ng(u,d);r&&(t=h.getrawvalue(d)),s.attr({x:c[0]+_,y:c[1]+x})}r&&ut(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=yg(this._data,t,this._stackedonpoints,e,this._coordsys,n,this._valueorigin,o),c=h.current,p=h.stackedoncurrent,f=h.next,d=h.stackedonnext;if(r&&(c=kg(h.current,n,r,a),p=kg(h.stackedoncurrent,n,r,a),f=kg(h.next,n,r,a),d=kg(h.stackedonnext,n,r,a)),tg(c,f)>3e3||l&&tg(p,d)>3e3)return s.stopanimation(),s.setshape({points:f}),void(l&&(l.stopanimation(),l.setshape({points:f,stackedonpoints:d})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:f}};h.current!==c&&(g.shape.__points=h.next),s.stopanimation(),ss(s,g,u),l&&(l.setshape({points:c,stackedonpoints:p}),l.stopanimation(),ss(l,{shape:{stackedonpoints:d}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isfinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;n0?dl:gl)}function i(t,e){return e.get(0===t?fl:t>0?cl:pl)}if(!e.isseriesfiltered(t)){var r=t.pipelinecontext.large;return!r&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getitemmodel(r),a=e.getitemlayout(r).sign,s=o.getitemstyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureuniqueitemvisual(r,"style");h(l,s)}}}}}},vl={seriestype:"candlestick",plan:qh(),reset:function(t){function e(t,e){function n(t,e){var n=[];return n[a]=e,n[s]=t,isnan(e)||isnan(t)?[0/0,0/0]:i.datatopoint(n)}function r(t,e,n){var i=e.slice(),r=e.slice();i[a]=et(i[a]+o/2,1,!1),r[a]=et(r[a]-o/2,1,!0),n?t.push(i,r):t.push(r,i)}function l(t,e,i){var r=n(t,i),l=n(e,i);return r[a]-=o/2,l[a]-=o/2,{x:r[0],y:r[1],width:s?o:l[0]-r[0],height:s?l[1]-r[1]:o}}function h(t){return t[a]=et(t[a],1),t}for(var g,y=e.getstore();null!=(g=t.next());){var v=y.get(u,g),m=y.get(c,g),_=y.get(p,g),x=y.get(f,g),b=y.get(d,g),w=math.min(m,_),s=math.max(m,_),m=n(w,v),t=n(s,v),c=n(x,v),i=n(b,v),k=[];r(k,t,0),r(k,m,1),k.push(h(i),h(t),h(c),h(m));var d=e.getitemmodel(g),a=!!d.get(["itemstyle","bordercolordoji"]);e.setitemlayout(g,{sign:$g(y,g,m,_,p,a),initbaseline:m>_?t[s]:m[s],ends:k,brushrect:l(x,b,v)})}}function n(e,n){for(var r,o,l=bf(4*e.count),h=0,g=[],y=[],v=n.getstore(),m=!!t.get(["itemstyle","bordercolordoji"]);null!=(o=e.next());){var _=v.get(u,o),x=v.get(c,o),b=v.get(p,o),w=v.get(f,o),s=v.get(d,o);isnan(_)||isnan(w)||isnan(s)?(l[h++]=0/0,h+=3):(l[h++]=$g(v,o,x,b,p,m),g[a]=_,g[s]=w,r=i.datatopoint(g,null,y),l[h++]=r?r[0]:0/0,l[h++]=r?r[1]:0/0,g[s]=s,r=i.datatopoint(g,null,y),l[h++]=r?r[1]:0/0)}n.setlayout("largepoints",l)}var i=t.coordinatesystem,r=t.getdata(),o=qg(t,r),a=0,s=1,l=["x","y"],u=r.getdimensionindex(r.mapdimension(l[a])),h=v(r.mapdimensionsall(l[s]),r.getdimensionindex,r),c=h[0],p=h[1],f=h[2],d=h[3];return r.setlayout({candlewidth:o,issimplebox:1.3>=o}),0>u||h.length<4?void 0:{progress:t.pipelinecontext.large?n:e}}};rd(jg);var ml=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}(dc),_l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getcoordsysmodel=function(){return this.getreferringcomponents("grid",uw).models[0]},n.type="cartesian2daxis",n}(dc);d(_l,tp);var xl={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)"]}}},bl=l({boundarygap:!0,deduplication:null,splitline:{show:!1},axistick:{alignwithlabel:!1,interval:"auto"},axislabel:{interval:"auto"}},xl),wl=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}}},xl),sl=l({splitnumber:6,axislabel:{showminlabel:!1,showmaxlabel:!1,rich:{primary:{fontweight:"bold"}}},splitline:{show:!1}},wl),ml=c({logbase:10},wl),tl={category:bl,value:wl,time:sl,log:ml},cl={value:1,category:1,time:1,log:1},il=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}(),kl=["x","y"],dl=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=kl,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(ny(t)&&ny(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=ue([],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 tb(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 tb(n,i,r,o)},n}(il),al=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}(mp),pl=math.log,ll=function(){function t(t,e,n){this.type="grid",this._coordsmap={},this._coordslist=[],this._axesmap={},this._axeslist=[],this.axispointerenabled=!0,this.dimensions=kl,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;pf(u)&&l.get("alignticks")&&null==l.get("interval")?r.push(s):(uf(u,l),pf(u)&&(e=s))}r.length&&(e||(e=r.pop(),uf(e.scale,e.model)),y(r,function(t){ay(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){ly(i,"y",t,r)}),y(i.y,function(t){ly(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]),hy(t,e?a.x:a.y)})}var r=t.getboxlayoutparams(),o=!n&&t.get("containlabel"),a=tu(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=zf(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]}d(t)&&(e=t.yaxisindex,t=t.xaxisindex);for(var i=0,r=this._coordslist;i0?"top":"bottom",i="center"):dr(o-ol)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&ol>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}(),nl={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 gt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokecontainthreshold:t.strokecontainthreshold||5,silent:!0,z2:1});es(p.shape,p.style.linewidth),p.anid="line",n.add(p);var f=e.get(["axisline","symbol"]);if(null!=f){var d=e.get(["axisline","symbolsize"]);c(f)&&(f=[f,f]),(c(d)||k(d))&&(d=[d,d]);var g=ic(e.get(["axisline","symboloffset"])||0,d),v=d[0],m=d[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"!==f[i]&&null!=f[i]){var r=tc(f[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=vy(n,i,e,t),o=_y(n,i,e,t);if(py(e,o,r),my(n,i,e,t.tickdirection),e.get(["axislabel","hideoverlap"])){var a=yd(v(o,function(t){return{label:t,priority:t.z2,defaultattr:{ignore:t.ignore}}}));kd(a)}},axisname:function(t,e,n,i){var r=b(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,gy(a)?t.labeloffset+s*u:0],f=e.get("namerotate");null!=f&&(f=f*ol/180);var d;gy(a)?o=rl.innertextlayout(t.rotation,null!=f?f:t.rotation,s):(o=cy(t.rotation,a,f||0,h),d=t.axisnameavailablewidth,null!=d&&(d=math.abs(d/math.sin(o.rotation)),!isfinite(d)&&(d=null)));var g=l.getfont(),y=e.get("nametruncate",!0)||{},v=y.ellipsis,m=b(t.nametruncatemaxwidth,y.maxwidth,d),_=new lm({x:p[0],y:p[1],rotation:o.rotation,silent:rl.islabelsilent(e),style:al(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(js({el:_,componentmodel:e,itemname:r}),_.__fulltext=r,_.anid="name",e.get("triggerevent")){var x=rl.makeaxiseventdatabase(e);x.targettype="axisname",x.name=r,pm(_).eventdata=x}i.add(_),_.updatetransform(),n.add(_),_.decomposetransform()}}},zl={},bl=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&&cy(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=ky(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){zl[t]=e},n.getaxispointerclass=function(t){return t&&zl[t]},n.type="axis",n}(ji),el=jr(),fl=["axisline","axisticklabel","axisname"],vl=["splitarea","splitline","minorsplitline"],hl=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 aw,this.group.add(this._axisgroup),e.get("show")){var a=e.getcoordsysmodel(),s=iy(a,e),l=new rl(e,h({handleautoshown:function(){for(var t=a.coordinatesystem.getcartesians(),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}(dc),$l=s,ql=y,jl=aw,to=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 jl),this.group.add(this._selectorgroup=new jl),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=tu(l,u,h),f=this.layoutinner(t,r,p,i,a,s),d=tu(c({width:f.width,height:f.height},l),u,h);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markredraw(),this.group.add(this._backgroundel=ny(f,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)}),ql(e.getdata(),function(r,o){var a=r.get("name");if(!this.newlinedisabled&&(""===a||"\n"===a)){var p=new jl;return p.newline=!0,void s.add(p)}var f=n.getseriesbyname(a)[0];if(!l.get(a))if(f){var d=f.getdata(),g=d.getvisual("legendlinestyle")||{},y=d.getvisual("legendicon"),v=d.getvisual("style"),m=this._createitem(f,a,o,r,e,t,g,v,y,u,i);m.on("click",$l(ey,a,null,i,c)).on("mouseover",$l(vy,f.name,null,i,c)).on("mouseout",$l(hy,f.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),f=s.getitemvisual(p,"style"),d=s.getitemvisual(p,"legendicon"),g=nn(f.fill);g&&0===g[3]&&(g[3]=.2,f=h(h({},f),{fill:un(g,"rgba")}));var y=this._createitem(n,a,o,r,e,t,{},f,d,u,i);y.on("click",$l(ey,null,a,i,c)).on("mouseover",$l(vy,null,a,i,c)).on("mouseout",$l(hy,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();ql(t,function(t){var r=t.type,o=new lm({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"]);rl(o,{normal:a,emphasis:s},{defaulttext:t.title}),ya(o)})},n.prototype._createitem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualdrawtype,p=r.get("itemwidth"),f=r.get("itemheight"),d=r.isselected(e),g=i.get("symbolrotate"),y=i.get("symbolkeepaspect"),v=i.get("icon");l=v||l||"roundrect";var m=zy(l,i,a,s,c,d,h),_=new jl,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(by({itemwidth:p,itemheight:f,icon:l,iconrotate:b,itemstyle:m.itemstyle,linestyle:m.linestyle,symbolkeepaspect:y}))}else _.add(t.getlegendicon({itemwidth:p,itemheight:f,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 k=i.get("inactivecolor");_.add(new lm({style:al(x,{text:i,x:w,y:f/2,fill:d?x.gettextcolor():k,align:s,verticalalign:"middle"})}));var d=new rm({shape:_.getboundingrect(),invisible:!0}),a=i.getmodel("tooltip");return a.get("show")&&js({el:d,componentmodel:r,itemname:e,itemtooltipoption:a.option}),_.add(d),_.eachchild(function(t){t.silent=!0}),d.silent=!u,this.getcontentgroup().add(_),ya(_),_.__legenddataindex=n,_},n.prototype.layoutinner=function(t,e,n,i,r,o){var a=this.getcontentgroup(),s=this.getselectorgroup();ic(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){ic("horizontal",s,t.get("selectoritemgap",!0));var h=s.getboundingrect(),c=[-h.x,-h.y],p=t.get("selectorbuttongap",!0),f=t.getorient().index,d=0===f?"width":"height",g=0===f?"height":"width",y=0===f?"y":"x";"end"===o?c[f]+=l[d]+p:u[f]+=h[d]+p,c[1-f]+=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[d]=l[d]+p+h[d],v[g]=math.max(l[g],h[g]),v[y]=math.min(0,h[y]+c[1-f]),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}(ji),eo=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=iu(e);t.prototype.init.call(this,e,n,i),yy(this,e,r)},n.prototype.mergeoption=function(e,n){t.prototype.mergeoption.call(this,e,n),yy(this,this.option,e)},n.type="legend.scroll",n.defaultoption=yl(kl.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}(kl),no=aw,io=["width","height"],ro=["x","y"],oo=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 no),this._containergroup.add(this.getcontentgroup()),this.group.add(this._controllergroup=new no)},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=qs(n.get("pageicons",!0)[n.getorient().name][e],{onclick:vx(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 f=n.getmodel("pagetextstyle");h.add(new lm({name:"pagetext",style:{text:"xx/xx",fill:f.gettextcolor(),font:f.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=io[l],h=ro[l],c=io[1-l],p=ro[1-l];r&&ic("horizontal",a,t.get("selectoritemgap",!0));var f=t.get("selectorbuttongap",!0),d=a.getboundingrect(),g=[-d.x,-d.y],y=s(n);r&&(y[u]=n[u]-d[u]-f);var v=this._layoutcontentandcontroller(t,i,y,l,u,c,p,h);if(r){if("end"===o)g[l]+=v[u]+f;else{var m=d[u]+f;g[l]-=m,v[h]-=m}v[u]+=d[u]+f,g[1-l]+=v[p]+v[c]/2-d[c]/2,v[c]=math.max(v[c],d[c]),v[p]=math.min(v[p],d[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;ic(t.get("orient"),l,t.get("itemgap"),i?n.width:null,i?null:n.height),ic("horizontal",h,t.get("pagebuttonitemgap",!0));var c=l.getboundingrect(),p=h.getboundingrect(),f=this._showcontroller=c[r]>n[r],d=[-c.x,-c.y];e||(d[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=e(t.get("pagebuttongap",!0),t.get("itemgap",!0));if(f){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(d),u.setposition(g),h.setposition(y);var _={x:0,y:0};if(_[r]=f?n[r]:c[r],_[o]=math.max(c[o],p[o]),_[a]=math.min(0,p[a]+y[1-i]),u.__rectsize=n[r],f){var x={x:0,y:0};x[r]=math.max(n[r]-p[r]-v,0),x[o]=_[o],u.setclippath(new rm({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&&ss(l,{x:b.contentposition[0],y:b.contentposition[1]},f?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=io[a],l=ro[a],u=this._findtargetitemindex(i),h=r.children(),c=h[u],p=h.length,f=p?1:0,d={contentposition:[r.x,r.y],pagecount:f,pageindex:f-1,pageprevdataindex:null,pagenextdataindex:null};if(!c)return d;var g=e(c);d.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==d.pagenextdataindex&&(d.pagenextdataindex=v.i),++d.pagecount)),m=_;for(var y=u-1,v=g,m=g,_=null;y>=-1;--y)_=e(h[y]),_&&n(m,_.s)||!(v.ia)return!0;if(o){var s=iy(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=ao(t).pointerel=new ft[n.type](so(e.pointer));t.add(i)}},t.prototype.createlabelel=function(t,e,n,i){if(e.label){var r=ao(t).labelel=new lm(so(e.label));t.add(r),$y(r,i)}},t.prototype.updatepointerel=function(t,e,n){var i=ao(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=ao(t).labelel;r&&(r.setstyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),$y(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=qs(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){hx(t.event)},onmousedown:lo(this._onhandledragmove,this,0,0),drift:lo(this._onhandledragmove,this),ondragend:lo(this._onhandledragend,this)}),n.add(i)),jy(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,rc(this,"_dodispatchaxispointer",r.get("throttle")||0,"fixrate"),this._movehandletovalue(t,a)}},t.prototype._movehandletovalue=function(t,e){zy(this._axispointermodel,!e&&this._moveanimation,this._handle,qy(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(qy(n),[t,e],this._axismodel,this._axispointermodel);this._payloadinfo=i,n.stopanimation(),n.attr(qy(i)),ao(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),oc(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}(),ho=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=lv(a,o).getotheraxis(o).getglobalextent(),u=o.toglobalcoord(o.datatocoord(e,!0));if(s&&"none"!==s){var h=tv(i),c=co[s](o,u,l);c.style=h,t.graphickey=c.type,t.pointer=c}var p=iy(a.model,n);ov(e,t,p,n,i,r)},n.prototype.gethandletransform=function(t,e,n){var i=iy(e.axis.grid.model,e,{labelinside:!1});i.labelmargin=n.get(["handle","margin"]);var r=rv(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=lv(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}(uo),co={line:function(t,e,n){var i=av([e,n[0]],[e,n[1]],uv(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:sv([e-i/2,n[0]],[i,r],uv(t))}}},po=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}(dc),fo=jr(),do=y,go=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";hv("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){yv("axispointer",e)},n.prototype.dispose=function(t,e){yv("axispointer",e)},n.type="axispointer",n}(ji),yo=jr(),vo=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="tooltip",n.dependencies=["axispointer"],n.defaultoption={z:60,show:!0,showcontent:!0,trigger:"item",triggeron:"mousemove|click",alwaysshowcontent:!1,displaymode:"single",rendermode:"auto",confine:null,showdelay:0,hidedelay:100,transitionduration:.4,enterable:!1,backgroundcolor:"#fff",shadowblur:10,shadowcolor:"rgba(0, 0, 0, .2)",shadowoffsetx:1,shadowoffsety:2,borderradius:4,borderwidth:1,padding:null,extracsstext:"",axispointer:{type:"line",axis:"auto",animation:"auto",animationdurationupdate:200,animationeasingupdate:"exponentialout",crossstyle:{color:"#999",width:1,type:"dashed",textstyle:{}}},textstyle:{color:"#666",fontsize:14}},n}(dc),mo=pv(["transform","webkittransform","otransform","moztransform","mstransform"]),_o=pv(["webkittransition","transition","otransition","moztransition","mstransition"]),xo=lv(_o,"transition"),bo=lv(mo,"transform"),wo="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(z_.transform3dsupported?"will-change:transform;":""),so=function(){function t(t,e,n){if(this._show=!1,this._stylecoord=[0,0,0,0],this._enterable=!0,this._alwaysshowcontent=!1,this._firstshow=!0,this._longhide=!0,z_.wxa)return null;var i=document.createelement("div");i.dombelongtozr=!0,this.el=i;var r=this._zr=e.getzr(),o=this._appendtobody=n&&n.appendtobody;vv(this._stylecoord,r,o,e.getwidth()/2,e.getheight()/2),o?document.body.appendchild(i):t.appendchild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(cleartimeout(a._hidetimeout),a._show=!0),a._incontent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getviewportroot();pe(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._incontent=!1,a._enterable&&a._show&&a.hidelater(a._hidedelay)}}return t.prototype.update=function(t){var e=this._container,n=ov(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysshowcontent");r&&this._moveifresized(),this._alwaysshowcontent=r,this.el.classname=t.get("classname")||""},t.prototype.show=function(t,e){cleartimeout(this._hidetimeout),cleartimeout(this._longhidetimeout);var n=this.el,i=n.style,r=this._stylecoord;n.innerhtml?i.csstext=wo+fv(t,!this._firstshow,this._longhide)+bv(r[0],r[1],!0)+("border-color:"+$l(e)+";")+(t.get("extracsstext")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstshow=!1,this._longhide=!1},t.prototype.setcontent=function(t,e,n,i,r){var o=this.el;if(null==t)return void(o.innerhtml="");var a="";if(c(r)&&"item"===n.get("trigger")&&!av(n)&&(a=nv(n,i,r)),c(t))o.innerhtml=t+a;else if(t){o.innerhtml="",m(t)||(t=[t]);for(var s=0;s=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&&!z_.node&&n.getdom()){var r=xv(i,n);this._ticket="";var o=i.databycoordsys,a=kv(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=to;l.x=i.x,l.y=i.y,l.update(),pm(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=vv(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._tooltipmodel&&r.hidelater(this._tooltipmodel.get("hidedelay")),this._lastx=this._lasty=this._lastdatabycoordsys=null,i.from!==this.uid&&this._hide(xv(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=uv([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;sc(n,function(t){return null!=pm(t).dataindex?(o=t,!0):null!=pm(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=vx(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=uv([e.tooltipoption],i),a=this._rendermode,s=[],l=ch("section",{blocks:[],noheader:!0}),u=[],c=new wi;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=iv(r,e.axis,n,t.seriesdataindices,t.valuelabelopt),p=ch("section",{header:o,noheader:!w(o),sortblocks:!0,blocks:[]});l.blocks.push(p),y(t.seriesdataindices,function(l){var f=n.getseriesbyindex(l.seriesindex),d=l.dataindexinside,g=f.getdataparams(d);if(!(g.dataindex<0)){g.axisdim=t.axisdim,g.axisindex=t.axisindex,g.axistype=t.axistype,g.axisid=t.axisid,g.axisvalue=qf(e.axis,{value:r}),g.axisvaluelabel=o,g.marker=c.maketooltipmarker("item",$l(g.color),a);var y=ah(f.formattooltip(d,!0,null)),v=y.frag;if(v){var m=uv([f],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,f=o.get("order"),d=lh(l,c,a,f,n.get("useutc"),o.get("textstyle"));d&&u.unshift(d);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=pm(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,f=t.positiondefault,d=uv([c.getitemmodel(l),s,a&&(a.coordinatesystem||{}).model],this._tooltipmodel,f?{position:f}:null),g=d.get("trigger");if(null==g||"item"===g){var y=s.getdataparams(l,u),v=new wi;y.marker=v.maketooltipmarker("item",$l(y.color),p);var m=ah(s.formattooltip(l,!1,u)),_=d.get("order"),x=d.get("valueformatter"),b=m.frag,w=b?lh(x?h({valueformatter:x},b):b,v,p,_,i.get("useutc"),d.get("textstyle")):m.text,s="item_"+s.name+"_"+l;this._showormove(d,function(){this._showtooltipcontent(d,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=pm(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=uv(l,this._tooltipmodel,h?{position:h}:null),p=c.get("content"),f=math.random()+"",d=new wi;this._showormove(c,function(){var n=s(c.get("formatterparams")||{});this._showtooltipcontent(c,p,n,f,t.offsetx,t.offsety,t.position,e,d)}),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")),f=p.color;if(h)if(c(h)){var d=t.ecmodel.get("useutc"),g=m(n)?n[0]:n,y=g&&g.axistype&&g.axistype.indexof("time")>=0;c=h,y&&(c=tl(g.axisvalue,c,d)),c=jl(c,n,!0)}else if(t(h)){var v=vx(function(e,i){e===this._ticket&&(u.setcontent(i,l,t,f,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,f,a),u.show(t,f),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=rr(e[0],s),i=rr(e[1],l);else if(d(e)){var f=e;f.width=u[0],f.height=u[1];var d=tu(f,{width:s,height:l});n=d.x,i=d.y,h=null,c=null}else if(c(e)&&a){var g=qv(e,p,u,t.get("borderwidth"));n=g[0],i=g[1]}else{var g=yv(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=zv(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=zv(c)?u[1]/2:"bottom"===c?u[1]:0),av(t)){var g=jv(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){!z_.node&&e.getdom()&&(oc(this,"_updateposition"),this._tooltipcontent.dispose(),yv("itemtooltip",e))},n.type="tooltip",n}(ji);rd($v);var io=jr(),ko=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(z_.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=io(t)[r];return n&&n.data?(o?o._mergeoption(n,e,!0):(i&&jv(n),y(n.data,function(t){t instanceof array?(jv(t[0]),jv(t[1])):jv(t)}),o=this.createmarkermodelfromseries(n,this,e),h(o,{maintype:this.maintype,seriesindex:t.seriesindex,name:t.name,createdbyself:!0}),o.__hostseries=t),void(io(t)[r]=o)):void(io(t)[r]=null)},this)},n.prototype.formattooltip=function(t){var e=this.getdata(),n=this.getrawvalue(t),i=e.getname(t);return ch("section",{header:this.name,blocks:[ch("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 io(t)[e]},n.type="marker",n.dependencies=["series","grid","polar","geo"],n}(dc);d(ko,ti.prototype);var do=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}(ko),ao={min:s(nm,"min"),max:s(nm,"max"),average:s(nm,"average"),median:s(nm,"median")},po=jr(),lo=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){po(t).keep=!1}),e.eachseries(function(t){var r=ko.getmarkermodelfromseries(t,i.type);r&&i.renderseries(t,r,e,n)}),r.each(function(t){!po(t).keep&&i.group.remove(t.group)})},n.prototype.markkeep=function(t){po(t).keep=!0},n.prototype.toggleblurseries=function(t,e){var n=this;y(t,function(t){var i=ko.getmarkermodelfromseries(t,n.type);if(i){var r=i.getdata();r.eachitemgraphicel(function(t){t&&(e?pa(t):la(t))})}})},n.type="marker",n}(ji),oo=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=ko.getmarkermodelfromseries(t,"markpoint");e&&(hm(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 jp),u=cm(r,t,e);e.setdata(u),hm(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(),f=xc(a,"color");p.fill||(p.fill=f),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){pm(t).datamodel=e})}),this.markkeep(l),l.group.silent=e.get("silent")||t.get("silent")},n.type="markpoint",n}(lo);rd(pm);var ro=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}(ko),no=gt.prototype,zo=mt.prototype,bo=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),eo=(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(bo),function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return e(n,t),n.prototype.getdefaultstyle=function(){return{stroke:"#000",fill:null}},n.prototype.getdefaultshape=function(){return new bo},n.prototype.buildpath=function(t,e){fm(e)?no.buildpath.call(this,t,e):zo.buildpath.call(this,t,e)},n.prototype.pointat=function(t){return fm(this.shape)?no.pointat.call(this,t):zo.pointat.call(this,t)},n.prototype.tangentat=function(t){var e=this.shape,n=fm(e)?[e.x2-e.x1,e.y2-e.y1]:zo.tangentat.call(this,t);return pe(n,n)},n}(zs)),fo=["fromsymbol","tosymbol"],vo=function(t){function n(e,n,i){var r=t.call(this)||this;return r._createline(e,n,i),r}return e(n,t),n.prototype._createline=function(t,e,n){var i=t.hostmodel,r=t.getitemlayout(e),o=ym(r);o.shape.percent=0,ms(o,{shape:{percent:1}},i,e),this.add(o),y(fo,function(n){var i=gm(n,t,e);this.add(i),this[dm(n)]=t.getitemvisual(e,n)},this),this._updatecommonstl(t,e,n)},n.prototype.updatedata=function(t,e,n){var i=t.hostmodel,r=this.childofname("line"),o=t.getitemlayout(e),a={shape:{}};vm(a.shape,o),ss(r,a,i,e),y(fo,function(n){var i=t.getitemvisual(e,n),r=dm(n);if(this[r]!==i){this.remove(this.childofname(n));var o=gm(n,t,e);this.add(o)}this[r]=i},this),this._updatecommonstl(t,e,n)},n.prototype.getlinepath=function(){return this.childat(0)},n.prototype._updatecommonstl=function(t,e,n){var i=t.hostmodel,r=this.childofname("line"),o=n&&n.emphasislinestyle,a=n&&n.blurlinestyle,s=n&&n.selectlinestyle,l=n&&n.labelstatesmodels,u=n&&n.emphasisdisabled,h=n&&n.focus,c=n&&n.blurscope;if(!n||t.hasitemoption){var p=t.getitemmodel(e),f=p.getmodel("emphasis");o=f.getmodel("linestyle").getlinestyle(),a=p.getmodel(["blur","linestyle"]).getlinestyle(),s=p.getmodel(["select","linestyle"]).getlinestyle(),u=f.get("disabled"),h=f.get("focus"),c=f.get("blurscope"),l=ol(p)}var d=t.getitemvisual(e,"style"),g=d.stroke;r.usestyle(d),r.style.fill=null,r.style.strokenoscale=!0,r.ensurestate("emphasis").style=o,r.ensurestate("blur").style=a,r.ensurestate("select").style=s,y(fo,function(t){var e=this.childofname(t);if(e){e.setcolor(g),e.style.opacity=d.opacity;for(var n=0;n0&&(_[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",f=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",f=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||f,align:r.__align||p})}}}},n}(aw),ho=function(){function t(t){this.group=new aw,this._linector=t||vo}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=_m(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=_m(t),this._linedata=null,this.group.removeall()},t.prototype.incrementalupdate=function(t,e){function n(t){t.isgroup||mm(t)||(t.incremental=!0,t.ensurestate("emphasis").hoverlayer=!0)}this._progressiveels=[];for(var i=t.start;i=0&&k(c)&&(c=+c.tofixed(math.min(m,20))),y.coord[d]=v.coord[d]=c,r=[y,v,{type:a,valueindex:i.valueindex,value:c}]}else r=[]}var _=[im(t,r[0]),im(t,r[1]),h({},r[2])];return _[2].type=_[2].type||null,l(_[2],_[0]),l(_[2],_[1]),_},uo=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=ko.getmarkermodelfromseries(t,"markline");if(e){var i=e.getdata(),r=go(e).from,o=go(e).to;r.each(function(e){tm(r,e,!0,t,n),tm(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);tm(e,n,r,t,i);var a=o.getmodel("itemstyle").getitemstyle();null==a.fill&&(a.fill=xc(s,"color")),e.setitemvisual(n,{symbolkeepaspect:o.get("symbolkeepaspect"),symboloffset:e(o.get("symboloffset",!0),v[r?0:1]),symbolrotate:e(o.get("symbolrotate",!0),y[r?0:1]),symbolsize:e(o.get("symbolsize"),g[r?0:1]),symbol:e(o.get("symbol",!0),d[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 ho);this.group.add(u.group);var h=cm(o,t,e),c=h.from,p=h.to,f=h.line;go(e).from=c,go(e).to=p,e.setdata(f);var d=e.get("symbol"),g=e.get("symbolsize"),y=e.get("symbolrotate"),v=e.get("symboloffset");m(d)||(d=[d,d]),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)}),f.each(function(t){var e=f.getitemmodel(t).getmodel("linestyle").getlinestyle();f.setitemlayout(t,[c.getitemlayout(t),p.getitemlayout(t)]),null==e.stroke&&(e.stroke=c.getitemvisual(t,"style").fill),f.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(f),h.line.eachitemgraphicel(function(t){pm(t).datamodel=e,t.traverse(function(t){pm(t).datamodel=e})}),this.markkeep(u),u.group.silent=e.get("silent")||t.get("silent")},n.type="markline",n}(lo);rd(im);var xo=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="markarea",n.defaultoption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemstyle:{borderwidth:0},emphasis:{label:{show:!0,position:"top"}}},n}(ko),yo=jr(),jo=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=im(t,r),s=im(t,o),l=a.coord,h=s.coord;l[0]=b(l[0],-1/0),l[1]=b(l[1],-1/0),h[0]=b(h[0],1/0),h[1]=b(h[1],1/0);var c=u([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}},qo=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],zo=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=ko.getmarkermodelfromseries(t,"markarea");if(e){var i=e.getdata();i.each(function(e){var r=v(qo,function(r){return pm(i,e,r,t,n)});i.setitemlayout(e,r);var o=i.getitemgraphicel(e);o.setshape("points",r)})}},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,{group:new aw});this.group.add(l.group),this.markkeep(l);var u=lm(r,t,e);e.setdata(u),u.each(function(e){var n=v(qo,function(n){return pm(u,e,n,t,i)}),o=r.getaxis("x").scale,s=r.getaxis("y").scale,l=o.getextent(),h=s.getextent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ar(c),ar(p);var f=!(l[0]>c[1]||l[1]p[1]||h[1]=e&&(t=e-1),0>t&&(t=0)),this.option.currentindex=t},n.prototype.getcurrentindex=function(){return this.option.currentindex},n.prototype.isindexmax=function(){return this.getcurrentindex()>=this._data.count()-1},n.prototype.setplaystate=function(t){this.option.autoplay=!!t},n.prototype.getplaystate=function(){return!!this.option.autoplay},n.prototype._initdata=function(){var t,e=this.option,n=e.data||[],i=e.axistype,r=this._names=[];"category"===i?(t=[],y(n,function(e,n){var i,o=hr(ar(e),"");d(e)?(i=s(e),i.value=n):i=n,t.push(i),r.push(o)})):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new ia([{name:"value",type:o}],this);a.initdata(t,r)},n.prototype.getdata=function(){return this._data},n.prototype.getcategories=function(){return"category"===this.get("axistype")?this._names.slice():void 0},n.type="timeline",n.defaultoption={z:4,show:!0,axistype:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlposition:"left",autoplay:!1,rewind:!1,loop:!0,playinterval:2e3,currentindex:0,itemstyle:{},label:{color:"#000"},data:[]},n}(dc),$o=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="timeline.slider",n.defaultoption=yl(ko.defaultoption,{backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderwidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolsize:12,linestyle:{show:!0,width:2,color:"#dae1f5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#a4b1d7"},itemstyle:{color:"#a4b1d7",borderwidth:1},checkpointstyle:{symbol:"circle",symbolsize:15,color:"#316bf3",bordercolor:"#fff",borderwidth:2,shadowblur:2,shadowoffsetx:1,shadowoffsety:1,shadowcolor:"rgba(0, 0, 0, 0.3)",animation:!0,animationduration:300,animationeasing:"quinticinout"},controlstyle:{show:!0,showplaybtn:!0,showprevbtn:!0,shownextbtn:!0,itemsize:24,itemgap:12,position:"left",playicon:"path://m31.6,53c17.5,53,6,41.5,6,27.4s17.5,1.8,31.6,1.8c45.7,1.8,57.2,13.3,57.2,27.4s45.7,53,31.6,53z m31.6,3.3 c18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1c44.9,51.5,55.7,40.7,55.7,27.4c55.7,14.1,44.9,3.3,31.6,3.3z m24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2v21.3z",stopicon:"path://m30.9,53.2c16.8,53.2,5.3,41.7,5.3,27.6s16.8,2,30.9,2c45,2,56.4,13.5,56.4,27.6s45,53.2,30.9,53.2z m30.9,3.5c17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1c44.2,51.7,55,40.9,55,27.6c54.9,14.4,44.1,3.5,30.9,3.5z m36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1v19.5c0-0.6,0.4-1,0.9-1h36c0.5,0,0.9,0.4,0.9,1v35.8z m27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1v19.5c0-0.6,0.4-1,0.9-1h27c0.5,0,0.9,0.4,0.9,1l27.8,35.8l27.8,35.8z",nexticon:"m2,18.5a1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12l7.81,9.36,1,3.11a1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1l3,18.08a1.5,1.5,0,0,1,2,18.5z",previcon:"m10,.5a1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12l4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22l1,10.77a1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58l9,.92a1.5,1.5,0,0,1,10,.5z",prevbtnsize:18,nextbtnsize:18,color:"#a4b1d7",bordercolor:"#a4b1d7",borderwidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemstyle:{color:"#316bf3"},controlstyle:{color:"#316bf3",bordercolor:"#316bf3",borderwidth:2}},progress:{linestyle:{color:"#316bf3"},itemstyle:{color:"#316bf3"},label:{color:"#6f778d"}},data:[]}),n}(ko);d($o,ti.prototype);var qo=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="timeline",n}(ji),jo=function(t){function n(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return e(n,t),n.prototype.getlabelmodel=function(){return this.model.getmodel("label")},n.prototype.ishorizontal=function(){return"horizontal"===this.model.get("orient")},n}(mp),tr=math.pi,er=jr(),nr=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){this.api=e},n.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecmodel=e,this.group.removeall(),t.get("show",!0)){var i=this._layout(t,n),r=this._creategroup("_maingroup"),o=this._creategroup("_labelgroup"),a=this._axis=this._createaxis(i,t);t.formattooltip=function(t){var e=a.scale.getlabel({value:t});return ch("namevalue",{noname:!0,value:e})},y(["axisline","axistick","control","currentpointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderaxislabel(i,o,a,t),this._position(i,t)}this._doplaystop(),this._updateticksstatus()},n.prototype.remove=function(){this._cleartimer(),this.group.removeall()},n.prototype.dispose=function(){this._cleartimer()},n.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),o=nm(t,e);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:tr/2},u="vertical"===r?o.height:o.width,h=t.getmodel("controlstyle"),c=h.get("show",!0),p=c?h.get("itemsize"):0,f=c?h.get("itemgap"):0,d=p+f,g=t.get(["label","rotate"])||0;g=g*tr/180;var y,v,m,_=h.get("position",!0),x=c&&h.get("showplaybtn",!0),b=c&&h.get("showprevbtn",!0),w=c&&h.get("shownextbtn",!0),s=0,m=u;"left"===_||"bottom"===_?(x&&(y=[0,0],s+=d),b&&(v=[s,0],s+=d),w&&(m=[m-p,0],m-=d)):(x&&(y=[m-p,0],m-=d),b&&(v=[0,0],s+=d),w&&(m=[m-p,0],m-=d));var t=[s,m];return t.get("inverse")&&t.reverse(),{viewrect:o,mainlength:u,orient:r,rotation:l[r],labelrotation:g,labelposopt:n,labelalign:t.get(["label","align"])||a[r],labelbaseline:t.get(["label","verticalalign"])||t.get(["label","baseline"])||s[r],playposition:y,prevbtnposition:v,nextbtnposition:m,axisextent:t,controlsize:p,controlgap:f}},n.prototype._position=function(t){function e(t){t.originx=h[0][0]-t.x,t.originy=h[1][0]-t.y}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function i(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}var r=this._maingroup,o=this._labelgroup,a=t.viewrect;if("vertical"===t.orient){var s=be(),l=a.x,u=a.y+a.height;he(s,s,[-l,-u]),ge(s,s,-tr/2),he(s,s,[l,u]),a=a.clone(),a.applytransform(s)}var h=n(a),c=n(r.getboundingrect()),p=n(o.getboundingrect()),f=[r.x,r.y],d=[o.x,o.y];d[0]=f[0]=h[0][0];var g=t.labelposopt;if(null==g||c(g)){var y="+"===g?0:1;i(f,c,h,1,y),i(d,p,h,1,1-y)}else{var y=g>=0?0:1;i(f,c,h,1,y),d[1]=f[1]+g}r.setposition(f),o.setposition(d),r.rotation=o.rotation=t.rotation,e(r),e(o)},n.prototype._createaxis=function(t,e){var n=e.getdata(),i=e.get("axistype"),r=rm(e,i);r.getticks=function(){return n.maparray(["value"],function(t){return{value:t}})};var o=n.getdataextent("value");r.setextent(o[0],o[1]),r.calcniceticks();var a=new jo("value",r,t.axisextent,i);return a.model=e,a},n.prototype._creategroup=function(t){var e=this[t]=new aw;return this.group.add(e),e},n.prototype._renderaxisline=function(t,e,n,i){var r=n.getextent();if(i.get(["linestyle","show"])){var o=new gt({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:h({linecap:"round"},i.getmodel("linestyle").getlinestyle()),silent:!0,z2:1});e.add(o);var a=this._progressline=new gt({shape:{x1:r[0],x2:this._currentpointer?this._currentpointer.x:r[0],y1:0,y2:0},style:c({linecap:"round",linewidth:o.style.linewidth},i.getmodel(["progress","linestyle"]).getlinestyle()),silent:!0,z2:1});e.add(a)}},n.prototype._renderaxistick=function(t,e,n,i){var r=this,o=i.getdata(),a=n.scale.getticks();this._ticksymbols=[],y(a,function(t){var a=n.datatocoord(t.value),s=o.getitemmodel(t.value),l=s.getmodel("itemstyle"),u=s.getmodel(["emphasis","itemstyle"]),h=s.getmodel(["progress","itemstyle"]),c={x:a,y:0,onclick:vx(r._changetimeline,r,t.value)},p=bm(s,l,e,c);p.ensurestate("emphasis").style=u.getitemstyle(),p.ensurestate("progress").style=h.getitemstyle(),ya(p);var f=pm(p);s.get("tooltip")?(f.dataindex=t.value,f.datamodel=i):f.dataindex=f.datamodel=null,r._ticksymbols.push(p)})},n.prototype._renderaxislabel=function(t,e,n,i){var r=this,o=n.getlabelmodel();if(o.get("show")){var a=i.getdata(),s=n.getviewlabels();this._ticklabels=[],y(s,function(i){var o=i.tickvalue,s=a.getitemmodel(o),l=s.getmodel("label"),u=s.getmodel(["emphasis","label"]),h=s.getmodel(["progress","label"]),c=n.datatocoord(i.tickvalue),p=new lm({x:c,y:0,rotation:t.labelrotation-t.rotation,onclick:vx(r._changetimeline,r,o),silent:!1,style:al(l,{text:i.formattedlabel,align:t.labelalign,verticalalign:t.labelbaseline})});p.ensurestate("emphasis").style=al(u),p.ensurestate("progress").style=al(h),e.add(p),ya(p),er(p).dataindex=o,r._ticklabels.push(p)})}},n.prototype._rendercontrol=function(t,e,n,i){function r(t,n,r,u){if(t){var h=vi(e(i.get(["controlstyle",n+"btnsize"]),o),o),c=[0,-h/2,h,h],p=zm(i,n+"icon",c,{x:t[0],y:t[1],originx:o/2,originy:0,rotation:u?-a:0,recthover:!0,style:s,onclick:r});p.ensurestate("emphasis").style=l,e.add(p),ya(p)}}var o=t.controlsize,a=t.rotation,s=i.getmodel("controlstyle").getitemstyle(),l=i.getmodel(["emphasis","controlstyle"]).getitemstyle(),u=i.getplaystate(),h=i.get("inverse",!0);r(t.nextbtnposition,"next",vx(this._changetimeline,this,h?"-":"+")),r(t.prevbtnposition,"prev",vx(this._changetimeline,this,h?"+":"-")),r(t.playposition,u?"stop":"play",vx(this._handleplayclick,this,!u),!0)},n.prototype._rendercurrentpointer=function(t,e,n,i){var r=i.getdata(),o=i.getcurrentindex(),a=r.getitemmodel(o).getmodel("checkpointstyle"),s=this,l={oncreate:function(t){t.draggable=!0,t.drift=vx(s._handlepointerdrag,s),t.ondragend=vx(s._handlepointerdragend,s),em(t,s._progressline,o,n,i,!0)},onupdate:function(t){em(t,s._progressline,o,n,i)}};this._currentpointer=bm(a,a,this._maingroup,{},this._currentpointer,l)},n.prototype._handleplayclick=function(t){this._cleartimer(),this.api.dispatchaction({type:"timelineplaychange",playstate:t,from:this.uid})},n.prototype._handlepointerdrag=function(t,e,n){this._cleartimer(),this._pointerchangetimeline([n.offsetx,n.offsety])},n.prototype._handlepointerdragend=function(t){this._pointerchangetimeline([t.offsetx,t.offsety],!0)},n.prototype._pointerchangetimeline=function(t,e){var n=this._toaxiscoord(t)[0],i=this._axis,r=ar(i.getextent().slice());n>r[1]&&(n=r[1]),ns&&(i=s,e=o)}),e},n.prototype._cleartimer=function(){this._timer&&(cleartimeout(this._timer),this._timer=null)},n.prototype._changetimeline=function(t){var e=this.model.getcurrentindex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchaction({type:"timelinechange",currentindex:t,from:this.uid})},n.prototype._updateticksstatus=function(){var t=this.model.getcurrentindex(),e=this._ticksymbols,n=this._ticklabels;if(e)for(var i=0;ii);if(n)for(var i=0;i=ar:-l>=ar),p=l>0?l%ar:l%ar+ar,f=!1;f=c?!0:qn(h)?!1:p>=or==!!u;var d=t+n*rr(o),g=e+i*ir(o);this._start&&this._add("m",d,g);var y=math.round(r*sr);if(c){var v=1/this._p,m=(u?1:-1)*(ar-v);this._add("a",n,i,y,1,+u,t+n*rr(o+m),e+i*ir(o+m)),v>.01&&this._add("a",n,i,y,0,+u,d,g)}else{var _=t+n*rr(a),x=e+i*ir(a);this._add("a",n,i,y,+f,+u,_,x)}},t.prototype.rect=function(t,e,n,i){this._add("m",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("z")},t.prototype.closepath=function(){this._d.length>0&&this._add("z")},t.prototype._add=function(t){for(var e=[],n=this._p,i=1;iu;u++){var h=t[u];if(!h.invisible){var c=h.__clippaths,p=c&&c.length||0,f=r&&r.length||0,d=void 0;for(d=math.max(p-1,f-1);d>=0&&(!c||!r||c[d]!==r[d]);d--);for(var g=f-1;g>d;g--)s--,i=a[s-1];for(var y=d+1;p>y;y++){var v={};t_(c[y],v,e);var m=zm("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=c;var _=b_(h,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=rc(i,0,n),e=rc(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(ii(this._backgroundcolor))this.refresh();else{var a=this._svgdom;a&&(a.setattribute("width",t),a.setattribute("height",e));var s=this._bgvnode&&this._bgvnode.elm;s&&(s.setattribute("width",t),s.setattribute("height",e))}}},t.prototype.getwidth=function(){return this._width},t.prototype.getheight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerhtml=""),this._svgdom=this._viewport=this.storage=this._oldvnode=this._bgvnode=this._mainvnode=null},t.prototype.clear=function(){this._svgdom&&(this._svgdom.innerhtml=null),this._oldvnode=null},t.prototype.todataurl=function(t){var e=this.rendertostring(),n="data:image/svg+xml;";return t?(e=vb(e),e&&n+"base64,"+e):n+"charset=utf-8,"+encodeuricomponent(e)},t}();er("svg",cr),t.version=zk,t.dependencies=kk,t.priority=fd,t.init=yp,t.connect=vp,t.disconnect=mp,t.disconnect=ia,t.dispose=_p,t.getinstancebydom=xp,t.getinstancebyid=bp,t.registertheme=wp,t.registerpreprocessor=sp,t.registerprocessor=mp,t.registerpostinit=tp,t.registerpostupdate=cp,t.registerupdatelifecycle=ip,t.registeraction=kp,t.registercoordinatesystem=dp,t.getcoordinatesystemdimensions=ap,t.registerlayout=pp,t.registervisual=lp,t.registerloading=rp,t.setcanvascreator=np,t.registermap=zp,t.getmap=bp,t.registertransform=oa,t.datatool=fa,t.registerlocale=vl,t.zrender=nw,t.matrix=ux,t.vector=dx,t.zrutil=mx,t.color=zb,t.helper=np,t.number=cp,t.time=pp,t.graphic=fp,t.format=dp,t.util=gp,t.list=ia,t.componentmodel=dc,t.componentview=ji,t.seriesmodel=yi,t.chartview=ki,t.extendcomponentmodel=ad,t.extendcomponentview=pd,t.extendseriesmodel=ld,t.extendchartview=od,t.throttle=ic,t.use=rd,t.setplatformapi=r,t.parsegeojson=fd,t.parsegeojson=fd,t.env=z_,t.model=ec,t.axis=mp,t.innerdrawelementoncanvas=ep});