!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");pg(t,e),t.prototype=null===e?object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,r=t.match(/firefox\/([\d.]+)/),i=t.match(/msie\s([\d.]+)/)||t.match(/trident\/.+?rv:(([\d.]+))/),o=t.match(/edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[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 r(t){var e={};if("undefined"==typeof json)return e;for(var n=0;nr;r++)e[r]=s(t[r])}}else if(xg[n]){if(!q(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;i>r;r++)e[r]=t[r]}}}else if(!qg[n]&&!q(t)&&!o(t)){e={};for(var a in t)t.hasownproperty(a)&&a!==ev&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!i(e)||!i(t))return n?s(e):t;for(var r in e)if(e.hasownproperty(r)&&r!==ev){var i=t[r],o=e[r];!i(o)||!i(i)||m(o)||m(i)||o(o)||o(i)||a(o)||a(i)||q(o)||q(i)?!n&&r in t||(t[r]=s(e[r])):l(i,o,n)}return t}function u(t,e){for(var n=t[0],r=1,i=t.length;i>r;r++)n=l(n,t[r],e);return n}function h(t,e){if(object.assign)object.assign(t,e);else for(var n in e)e.hasownproperty(n)&&n!==ev&&(t[n]=e[n]);return t}function c(t,e,n){for(var r=w(e),i=0;in;n++)if(t[n]===e)return n}return-1}function p(t,e){function n(){}var r=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasownproperty(i)&&(t.prototype[i]=r[i]);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 r=object.getownpropertynames(e),i=0;ir;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasownproperty(o)&&e.call(n,t[o],o,t)}function y(t,e,n){if(!t)return[];if(!e)return v(t);if(t.map&&t.map===qg)return t.map(e,n);for(var r=[],i=0,o=t.length;o>i;i++)r.push(e.call(n,t[i],i,t));return r}function m(t,e,n,r){if(t&&e){for(var i=0,o=t.length;o>i;i++)n=e.call(r,n,t[i],i,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return v(t);if(t.filter&&t.filter===kg)return t.filter(e,n);for(var r=[],i=0,o=t.length;o>i;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function x(t,e,n){if(t&&e)for(var r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t))return t[r]}function w(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 b(t,e){for(var n=[],r=2;rn;n++)if(null!=t[n])return t[n]}function z(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;nf;f++){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",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendchild(a),n.push(a)}return n}function me(t,e,n){for(var r=n?"invtrans":"trans",i=e[r],o=e.srccoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getboundingclientrect(),c=2*u,f=h.left,p=h.top;a.push(f,p),l=l&&o&&f===o[c]&&p===o[c+1],s.push(t[u].offsetleft,t[u].offsettop)}return l&&i?i:(e.srccoords=a,e[r]=n?we(s,a):we(a,s))}function te(t){return"canvas"===t.nodename.touppercase()}function ce(t){return null==t?"":(t+"").replace(wv,function(t,e){return bv[e]})}function ke(t,e,n,r){return n=n||{},r?de(t,e,n):tv&&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(bg.domsupported&&t.getboundingclientrect){var r=e.clientx,i=e.clienty;if(te(t)){var o=t.getboundingclientrect();return n.zrx=r-o.left,void(n.zry=i-o.top)}if(be(mv,t,r,i))return n.zrx=mv[0],void(n.zry=mv[1])}n.zrx=n.zry=0}function ie(t){return t||window.event}function ae(t,e,n){if(e=ie(e),null!=e.zrx)return e;var r=e.type,i=r&&r.indexof("touch")>=0;if(i){var o="touchend"!==r?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&&sv.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,r=t.deltay;if(null==n||null==r)return e;var i=math.abs(0!==r?r:n),o=r>0?-1:0>r?1:n>0?-1:1;return 3*i*o}function oe(t,e,n,r){t.addeventlistener(e,n,r)}function pe(t,e,n,r){t.removeeventlistener(e,n,r)}function re(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return math.sqrt(e*e+n*n)}function ne(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 ze(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 fe(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=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]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ve(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 he(t,e,n){var r=e[0],i=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]=r*h+a*u,t[1]=-r*u+a*h,t[2]=i*h+s*u,t[3]=-i*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function we(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function ue(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function ge(t){var e=be();return ze(e,t),e}function qe(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:xe}}function xe(){cv(this.event)}function ye(t,e,n){if(t[t.recthover?"rectcontain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreclip&&(o=!0),!o){var a=r.getclippath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hosttarget;r=s?s:r.parent}return i?vv:!0}return!1}function je(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=ye(a,n,r))&&(!e.toptarget&&(e.toptarget=a),s!==vv)){e.target=a;break}}}function ze(t,e,n){var r=t.painter;return 0>e||e>r.getwidth()||0>n||n>r.getheight()}function ke(t){for(var e=0;t>=yv;)e|=1&t,t>>=1;return t+e}function $e(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;n>i&&r(t[i],t[i-1])<0;)i++;qe(t,e,i)}else for(;n>i&&r(t[i],t[i-1])>=0;)i++;return i-e}function qe(t,e,n){for(n--;n>e;){var r=t[e];t[e++]=t[n],t[n--]=r}}function je(t,e,n,r,i){for(r===e&&r++;n>r;r++){for(var o,a=t[r],s=e,l=r;l>s;)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-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 tn(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;s>l&&o(t,e[n+i+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;s>l&&o(t,e[n+i-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-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 en(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;s>l&&o(t,e[n+i-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;s>l&&o(t,e[n+i+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function nn(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function r(){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 i(){for(;c>1;){var t=c-2;t>0&&u[t-1]=i?a(r,i,o,h):s(r,i,o,h)))}function a(n,r,i,o){var a=0;for(a=0;r>a;a++)f[a]=t[n+a];var s=0,l=i,u=n;if(t[u++]=t[l++],0!==--o){if(1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=f[s])}for(var c,p,d,g=h;;){c=0,p=0,d=!1;do if(e(t[l],f[s])<0){if(t[u++]=t[l++],p++,c=0,0===--o){d=!0;break}}else if(t[u++]=f[s++],c++,p=0,1===--r){d=!0;break}while(g>(c|p));if(d)break;do{if(c=en(t[l],f,s,r,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=f[s+a];if(u+=c,s+=c,r-=c,1>=r){d=!0;break}}if(t[u++]=t[l++],0===--o){d=!0;break}if(p=tn(f[s],t,l,o,0,e),0!==p){for(a=0;p>a;a++)t[u+a]=t[l+a];if(u+=p,l+=p,o-=p,0===o){d=!0;break}}if(t[u++]=f[s++],1===--r){d=!0;break}g--}while(c>=jv||p>=jv);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===r){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=f[s]}else{if(0===r)throw new error;for(a=0;r>a;a++)t[u+a]=f[s+a]}}else for(a=0;r>a;a++)t[u+a]=f[s+a]}function s(n,r,i,o){var a=0;for(a=0;o>a;a++)f[a]=t[i+a];var s=n+r-1,l=o-1,u=i+o-1,c=0,p=0;if(t[u--]=t[s--],0!==--r){if(1===o){for(u-=r,s-=r,p=u+1,c=s+1,a=r-1;a>=0;a--)t[p+a]=t[c+a];return void(t[u]=f[l])}for(var d=h;;){var g=0,v=0,y=!1;do if(e(f[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--r){y=!0;break}}else if(t[u--]=f[l--],v++,g=0,1===--o){y=!0;break}while(d>(g|v));if(y)break;do{if(g=r-en(f[l],t,n,r,r-1,e),0!==g){for(u-=g,s-=g,r-=g,p=u+1,c=s+1,a=g-1;a>=0;a--)t[p+a]=t[c+a];if(0===r){y=!0;break}}if(t[u--]=f[l--],1===--o){y=!0;break}if(v=o-tn(t[s],f,0,o,o-1,e),0!==v){for(u-=v,l-=v,o-=v,p=u+1,c=l+1,a=0;v>a;a++)t[p+a]=f[c+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0===--r){y=!0;break}d--}while(g>=jv||v>=jv);if(y)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=r,s-=r,p=u+1,c=s+1,a=r-1;a>=0;a--)t[p+a]=t[c+a];t[u]=f[l]}else{if(0===o)throw new error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=f[a]}var l,u,h=jv,c=0,f=[];return l=[],u=[],{mergeruns:r,forcemergeruns:i,pushrun:n}}function rn(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(2>i)){var o=0;if(yv>i)return o=$e(t,n,r,e),void je(t,n,r,n+o,e);var a=nn(t,e),s=ke(i);do{if(o=$e(t,n,r,e),s>o){var l=i;l>s&&(l=s),je(t,n,n+l,n+o,e),o=l}a.pushrun(n,o),a.mergeruns(),i-=o,n+=o}while(0!==i);a.forcemergeruns()}}function on(){qv||(qv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function an(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function sn(t){return t>-iy&&iy>t}function ln(t){return t>iy||-iy>t}function un(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function hn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function cn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,h=s*s-3*a*l,c=s*l-9*a*u,f=l*l-3*s*u,p=0;if(sn(h)&&sn(c))if(sn(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[p++]=d)}else{var g=c*c-4*h*f;if(sn(g)){var v=c/h,d=-s/a+v,y=-v/2;d>=0&&1>=d&&(o[p++]=d),y>=0&&1>=y&&(o[p++]=y)}else if(g>0){var m=ry(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-ny(-_,sy):ny(_,sy),x=0>x?-ny(-x,sy):ny(x,sy);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[p++]=d)}else{var w=(2*h*s-3*a*c)/(2*ry(h*h*h)),b=math.acos(w)/3,s=ry(h),m=math.cos(b),d=(-s-2*s*m)/(3*a),y=(-s+s*(m+ay*math.sin(b)))/(3*a),t=(-s+s*(m-ay*math.sin(b)))/(3*a);d>=0&&1>=d&&(o[p++]=d),y>=0&&1>=y&&(o[p++]=y),t>=0&&1>=t&&(o[p++]=t)}}return p}function fn(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(sn(a)){if(ln(o)){var u=-s/o;u>=0&&1>=u&&(i[l++]=u)}}else{var h=o*o-4*a*s;if(sn(h))i[0]=-o/(2*a);else if(h>0){var c=ry(h),u=(-o+c)/(2*a),f=(-o-c)/(2*a);u>=0&&1>=u&&(i[l++]=u),f>=0&&1>=f&&(i[l++]=f)}}return l}function pn(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,h=(l-s)*i+s,c=(h-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=r}function dn(t,e,n,r,i,o,a,s,l,u,h){var c,f,p,d,g,v=.005,y=1/0;ly[0]=l,ly[1]=u;for(var m=0;1>m;m+=.05)uy[0]=un(t,n,i,a,m),uy[1]=un(e,r,o,s,m),d=dv(ly,uy),y>d&&(c=m,y=d);y=1/0;for(var _=0;32>_&&!(oy>v);_++)f=c-v,p=c+v,uy[0]=un(t,n,i,a,f),uy[1]=un(e,r,o,s,f),d=dv(uy,ly),f>=0&&y>d?(c=f,y=d):(hy[0]=un(t,n,i,a,p),hy[1]=un(e,r,o,s,p),g=dv(hy,ly),1>=p&&y>g?(c=p,y=g):v*=.5);return h&&(h[0]=un(t,n,i,a,c),h[1]=un(e,r,o,s,c)),ry(y)}function gn(t,e,n,r,i,o,a,s,l){for(var u=t,h=e,c=0,f=1/l,p=1;l>=p;p++){var d=p*f,g=un(t,n,i,a,d),v=un(e,r,o,s,d),y=g-u,m=v-h;c+=math.sqrt(y*y+m*m),u=g,h=v}return c}function vn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function yn(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function mn(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(sn(o)){if(ln(a)){var u=-s/a;u>=0&&1>=u&&(i[l++]=u)}}else{var h=a*a-4*o*s;if(sn(h)){var u=-a/(2*o);u>=0&&1>=u&&(i[l++]=u)}else if(h>0){var c=ry(h),u=(-a+c)/(2*o),f=(-a-c)/(2*o);u>=0&&1>=u&&(i[l++]=u),f>=0&&1>=f&&(i[l++]=f)}}return l}function _n(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function xn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function wn(t,e,n,r,i,o,a,s,l){var u,h=.005,c=1/0;ly[0]=a,ly[1]=s;for(var f=0;1>f;f+=.05){uy[0]=vn(t,n,i,f),uy[1]=vn(e,r,o,f);var p=dv(ly,uy);c>p&&(u=f,c=p)}c=1/0;for(var d=0;32>d&&!(oy>h);d++){var g=u-h,v=u+h;uy[0]=vn(t,n,i,g),uy[1]=vn(e,r,o,g);var p=dv(uy,ly);if(g>=0&&c>p)u=g,c=p;else{hy[0]=vn(t,n,i,v),hy[1]=vn(e,r,o,v);var y=dv(hy,ly);1>=v&&c>y?(u=v,c=y):h*=.5}}return l&&(l[0]=vn(t,n,i,u),l[1]=vn(e,r,o,u)),ry(c)}function bn(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var f=c*h,p=vn(t,n,i,f),d=vn(e,r,o,f),g=p-s,v=d-l;u+=math.sqrt(g*g+v*v),s=p,l=d}return u}function sn(t){var e=t&&cy.exec(t);if(e){var n=e[1].split(","),r=+u(n[0]),i=+u(n[1]),o=+u(n[2]),a=+u(n[3]);if(isnan(r+i+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:cn(0,r,o,1,t,s)&&un(0,i,a,1,s[0])}}}function mn(t){return t=math.round(t),0>t?0:t>255?255:t}function tn(t){return t=math.round(t),0>t?0:t>360?360:t}function cn(t){return 0>t?0:t>1?1:t}function kn(t){var e=t;return mn(e.length&&"%"===e.charat(e.length-1)?parsefloat(e)/100*255:parseint(e,10))}function dn(t){var e=t;return cn(e.length&&"%"===e.charat(e.length-1)?parsefloat(e)/100:parsefloat(e))}function in(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 an(t,e,n){return t+(e-t)*n}function ln(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function on(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function pn(t,e){my&&on(my,e),my=yy.put(t,my||e.slice())}function rn(t,e){if(t){e=e||[];var n=yy.get(t);if(n)return on(e,n);t+="";var r=t.replace(/ /g,"").tolowercase();if(r in vy)return on(e,vy[r]),pn(t,e),e;var i=r.length;if("#"!==r.charat(0)){var o=r.indexof("("),a=r.indexof(")");if(-1!==o&&a+1===i){var s=r.substr(0,o),l=r.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])),pn(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]),nn(l,e),pn(t,e),e);case"hsl":return 3!==l.length?void ln(e,0,0,0,1):(nn(l,e),pn(t,e),e);default:return}}ln(e,0,0,0,1)}else{if(4===i||5===i){var h=parseint(r.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===i?parseint(r.slice(4),16)/15:1),pn(t,e),e):void ln(e,0,0,0,1)}if(7===i||9===i){var h=parseint(r.slice(1,7),16);return h>=0&&16777215>=h?(ln(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===i?parseint(r.slice(7),16)/255:1),pn(t,e),e):void ln(e,0,0,0,1)}}}}function nn(t,e){var n=(parsefloat(t[0])%360+360)%360/360,r=dn(t[1]),i=dn(t[2]),o=.5>=i?i*(r+1):i+r-i*r,a=2*i-o;return e=e||[],ln(e,mn(255*in(a,o,n+1/3)),mn(255*in(a,o,n)),mn(255*in(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function bn(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=math.min(r,i,o),s=math.max(r,i,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-r)/6+l/2)/l,c=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-c:i===s?e=1/3+h-f:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function en(t,e){var n=rn(t);if(n){for(var r=0;3>r;r++)n[r]=0>e?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return un(n,4===n.length?"rgba":"rgb")}}function zn(t){var e=rn(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).tostring(16).slice(1):void 0}function fn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var r=t*(e.length-1),i=math.floor(r),o=math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=mn(an(a[0],s[0],l)),n[1]=mn(an(a[1],s[1],l)),n[2]=mn(an(a[2],s[2],l)),n[3]=cn(an(a[3],s[3],l)),n}}function vn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var r=t*(e.length-1),i=math.floor(r),o=math.ceil(r),a=rn(e[i]),s=rn(e[o]),l=r-i,u=un([mn(an(a[0],s[0],l)),mn(an(a[1],s[1],l)),mn(an(a[2],s[2],l)),cn(an(a[3],s[3],l))],"rgba");return n?{color:u,leftindex:i,rightindex:o,value:r}:u}}function hn(t,e,n,r){var i=rn(t);return t?(i=bn(i),null!=e&&(i[0]=tn(e)),null!=n&&(i[1]=dn(n)),null!=r&&(i[2]=dn(r)),un(nn(i),"rgba")):void 0}function wn(t,e){var n=rn(t);return n&&null!=e?(n[3]=cn(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 gn(t,e){var n=rn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function qn(){return un([math.round(255*math.random()),math.round(255*math.random()),math.round(255*math.random())],"rgb")}function xn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexof("rgba")>-1){var n=rn(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 yn(t){return sy>t&&t>-sy}function jn(t){return by(1e3*t)/1e3}function zn(t){return by(1e4*t)/1e4}function kn(t){return"matrix("+jn(t[0])+","+jn(t[1])+","+jn(t[2])+","+jn(t[3])+","+zn(t[4])+","+zn(t[5])+")"}function $n(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function qn(t){return t&&(t.shadowblur||t.shadowoffsetx||t.shadowoffsety)}function jn(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 tr(t){return t&&!!t.image}function er(t){return t&&!!t.svgelement}function nr(t){return tr(t)||er(t)}function rr(t){return"linear"===t.type}function ir(t){return"radial"===t.type}function or(t){return t&&("linear"===t.type||"radial"===t.type)}function ar(t){return"url(#"+t+")"}function sr(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 lr(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*uv,i=z(t.scalex,1),o=z(t.scaley,1),a=t.skewx||0,s=t.skewy||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(1!==i||1!==o)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+by(a*uv)+"deg, "+by(s*uv)+"deg)"),l.join(" ")}function ur(t,e,n){return(e-t)*n+t}function hr(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=ur(e[o],n[o],r);return t}function cr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=ur(e[a][s],n[a][s],r)}return t}function fr(t,e,n,r){for(var i=e.length,o=0;i>o;o++)t[o]=e[o]+n[o]*r;return t}function pr(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;i>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function dr(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;a>l;l++)r.push(1===n?i[l]:cy.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;lh;h++)isnan(r[l][h])&&(r[l][h]=i[l][h])}}function vr(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],r=0;e>r;r++)n.push(cy.call(t[r]));return n}return cy.call(t)}return t}function yr(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 mr(t){return g(t&&t[0])?2:1}function _r(t){return t===ly||t===oy}function xr(t){return t===dy||t===iy}function wr(){return(new date).gettime()}function br(t){var e=t.pointertype;return"pen"===e||"touch"===e}function sr(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 mr(t){t&&(t.zrbytouch=!0)}function tr(t,e){return ae(t.dom,new uy(t,e),!0)}function cr(t,e){for(var n=e,r=!1;n&&9!==n.nodetype&&!(r=n.dombelongtozr||n!==e&&n===t.painterroot);)n=n.parentnode;return r}function kr(t,e){var n=e.domhandlers;bg.pointereventssupported?v(vy.pointer,function(r){ir(e,r,function(e){n[r].call(t,e)})}):(bg.toucheventssupported&&v(vy.touch,function(r){ir(e,r,function(i){n[r].call(t,i),sr(e)})}),v(vy.mouse,function(r){ir(e,r,function(i){i=ie(i),e.touching||n[r].call(t,i)})}))}function dr(t,e){function n(n){function r(r){r=ie(r),cr(t,r.target)||(r=tr(t,r),e.domhandlers[n].call(t,r))}ir(e,n,r,{capture:!0})}bg.pointereventssupported?v(hy.pointer,n):bg.toucheventssupported||v(hy.mouse,n)}function ir(t,e,n,r){t.mounted[e]=n,t.listeneropts[e]=r,oe(t.domtarget,e,n,r)}function ar(t){var e=t.mounted;for(var n in e)e.hasownproperty(n)&&pe(t.domtarget,n,e[n],t.listeneropts[n]);t.mounted={}}function lr(t){return t>em||-em>t}function or(t,e){for(var n=0;n=0?parsefloat(t)/100*e:parsefloat(t):t}function vr(t,e,n){var r=e.position||"inside",i=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(r instanceof array)l+=fr(r[0],n.width),u+=fr(r[1],n.height),h=null,c=null;else switch(r){case"left":l-=i,u+=s,h="right",c="middle";break;case"right":l+=i+a,u+=s,c="middle";break;case"top":l+=a/2,u-=i,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+i,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideleft":l+=i,u+=s,c="middle";break;case"insideright":l+=a-i,u+=s,h="right",c="middle";break;case"insidetop":l+=a/2,u+=i,h="center";break;case"insidebottom":l+=a/2,u+=o-i,h="center",c="bottom";break;case"insidetopleft":l+=i,u+=i;break;case"insidetopright":l+=a-i,u+=i,h="right";break;case"insidebottomleft":l+=i,u+=o-i,c="bottom";break;case"insidebottomright":l+=a-i,u+=o-i,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalalign=c,t}function hr(t,e,n,r,i){n=n||{};var o=[];yr(t,"",t,e,n,r,o,i);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 f=0;fr;r++)t[r]=e[r]}function ur(t){return g(t[0])}function gr(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),l(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),wr(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(ur(i))for(var s=i[0].length,l=0;a>l;l++)o[l]?wr(o[l],i[l],s):o[l]=array.prototype.slice.call(i[l]);else wr(o,i,a);o.length=i.length}else t[n]=e[n]}function qr(t,e){return t===e||g(t)&&g(e)&&xr(t,e)}function xr(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;n>r;r++)if(t[r]!==e[r])return!1;return!0}function yr(t,e,n,r,i,o,a,s){for(var l=w(r),u=i.duration,h=i.delay,c=i.additive,p=i.settofinal,d=!i(o),v=t.animators,y=[],m=0;m0||i.force&&!a.length){var d=void 0,a=void 0,l=void 0;if(s){a={},p&&(d={});for(var m=0;s>m;m++){var x=y[m];a[x]=n[x],p?d[x]=r[x]:n[x]=r[x]}}else if(p){l={};for(var m=0;s>m;m++){var x=y[m];l[x]=vr(n[x]),gr(n,r,x)}}var t=new by(n,!1,!1,c?_(v,function(t){return t.targetname===e}):null);t.targetname=e,i.scope&&(t.scope=i.scope),p&&d&&t.whenwithkeys(0,d,y),l&&t.whenwithkeys(0,l,y),t.whenwithkeys(null==u?500:u,s?a:r,y).delay(h||0),t.addanimator(t,e),a.push(t)}}function jr(t){delete ym[t]}function zr(t){if(!t)return!1;if("string"==typeof t)return gn(t,1)i;i++)n+=gn(e[i].color,1);return n/=r,ky>n}return!1}function kr(t,e){var n=new mm(o(),t,e);return ym[n.id]=n,n}function $r(t){t.dispose()}function qr(){for(var t in ym)ym.hasownproperty(t)&&ym[t].dispose();ym={}}function jr(t){return ym[t]}function ti(t,e){vm[t]=e}function ei(t){return t.replace(/^\s+|\s+$/g,"")}function ni(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(i>=t)return a;if(t>=o)return s}else{if(t>=i)return a;if(o>=t)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function ri(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)?ei(t).match(/%$/)?parsefloat(t)/100*e:parsefloat(t):null==t?0/0:+t}function ii(t,e,n){return null==e&&(e=10),e=math.min(math.max(0,e),bm),t=(+t).tofixed(e),n?t:+t }function oi(t){return t.sort(function(t,e){return t-e}),t}function ai(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 si(t)}function si(t){var e=t.tostring().tolowercase(),n=e.indexof("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexof("."),a=0>o?0:i-1-o;return math.max(0,a-r)}function li(t,e){var n=math.log,r=math.ln10,i=math.floor(n(t[1]-t[0])/r),o=math.round(n(math.abs(e[1]-e[0]))/r),a=math.min(math.max(-i+o,0),20);return isfinite(a)?a:20}function ui(t,e,n){if(!t[e])return 0;var r=hi(t,n);return r[e]||0}function hi(t,e){var n=m(t,function(t,e){return t+(isnan(e)?0:e)},0);if(0===n)return[];for(var r=math.pow(10,e),i=y(t,function(t){return(isnan(t)?0:t)/n*r*100}),o=100*r,a=y(i,function(t){return math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=y(i,function(t,e){return t-a[e]});o>s;){for(var u=number.negative_infinity,h=null,c=0,f=l.length;f>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return y(a,function(t){return t/r})}function ci(t,e){var n=math.max(ai(t),ai(e)),r=t+e;return n>bm?r:ii(r,n)}function fi(t){var e=2*math.pi;return(t%e+e)%e}function pi(t){return t>-wm&&wm>t}function di(t){if(t instanceof date)return t;if(c(t)){var e=mm.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 gi(t){return math.pow(10,vi(t))}function vi(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 yi(t,e){var n,r=vi(t),i=math.pow(10,r),o=t/i;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*i,r>=-20?+t.tofixed(0>r?-r:0):t}function mi(t,e){var n=(t.length-1)*e+1,r=math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function _i(t){function e(t,n,r){return t.interval[r]s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-r),n=o[s],r=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t}function xi(t){var e=parsefloat(t);return e==t&&(0!==e||!c(t)||t.indexof("x")<=0)?e:0/0}function wi(t){return!isnan(xi(t))}function bi(){return math.round(9*math.random())}function si(t,e){return 0===e?t:si(e,t%e)}function mi(t,e){return null==t?e:null==e?t:t*e/si(t,e)}function ti(t){throw new error(t)}function ci(t,e,n){return(e-t)*n+t}function ki(t){return t instanceof array?t:null==t?[]:[t]}function di(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;i>r;r++){var o=n[r];!t.emphasis[e].hasownproperty(o)&&t[e].hasownproperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function ii(t){return!i(t)||m(t)||t instanceof date?t:t.value}function ai(t){return i(t)&&!(t instanceof array)}function li(t,e,n){var r="normalmerge"===n,i="replacemerge"===n,o="replaceall"===n;t=t||[],e=(e||[]).slice();var a=y();v(e,function(t,n){return i(t)?void 0:void(e[n]=null)});var s=oi(t,a,n);return(r||i)&&pi(s,t,a,e),r&&ri(s,e),r||i?ni(s,e,i):o&&bi(s,e),ei(s),s}function oi(t,e,n){var r=[];if("replaceall"===n)return r;for(var i=0;ii?n:r;for(var s=[],l=n,u=r,h=math.max(l?l.length:0,u.length),c=0;h>c;++c){var f=t.getdimensioninfo(c);if(f&&"ordinal"===f.type)s[c]=(1>i&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,d=u[c],a=ci(p,d,i);s[c]=ii(a,o?math.max(ai(p),ai(d)):e)}}return s}function ji(t){var e={main:"",sub:""};if(t){var n=t.split(am);e.main=n[0]||"",e.sub=n[1]||""}return e}function to(t){w(/^[a-za-z0-9_]+([.][a-za-z0-9_]+)?$/.test(t),'componenttype "'+t+'" illegal')}function eo(t){return!(!t||!t[om])}function no(t){t.$constructor=t,t.extend=function(t){var n,r=this;return ro(r)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(r):(n=function(){(t.$constructor||r).apply(this,arguments)},p(n,this)),h(n.prototype,t),n[om]=!0,n.extend=this.extend,n.supercall=ao,n.superapply=so,n.superclass=r,n}}function ro(t){return t(t)&&/^class\s/.test(function.prototype.tostring.call(t))}function io(t,e){t.extend=e.extend}function oo(t){var e=["__\x00is_clz",pm++].join("_");t.prototype[e]=!0,t.isinstance=function(t){return!(!t||!t[e])}}function ao(t,e){for(var n=[],r=2;r=0||i&&f(i,s)<0)){var l=n.getshallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function ho(t){if("string"==typeof t){var e=em.get(t);return e&&e.image}return t}function co(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrimagesrc===t||!n)return e;var o=em.get(t),a={hostel:n,cb:r,cbpayload:i};return o?(e=o.image,!po(e)&&o.pending.push(a)):(e=gg.loadimage(t,fo,fo),e.__zrimagesrc=t,em.put(t,e.__cachedimgobj={image:e,pending:[a]})),e}return t}return e}function fo(){var t=this.__cachedimgobj;this.onload=this.onerror=this.__cachedimgobj=null;for(var e=0;ea;a++)o[a]=yo(o[a],i);return o.join("\n")}function vo(t,e,n,r){r=r||{};var i=h({},r);i.font=e,n=z(n,"..."),i.maxiterations=z(r.maxiterations,2);var o=i.minchar=z(r.minchar,0);i.cncharwidth=pr("国",e);var a=i.asccharwidth=pr("a",e);i.placeholder=z(r.placeholder,"");for(var s=t=math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=pr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsiswidth=u,i.contentwidth=s,i.containerwidth=t,i}function yo(t,e){var n=e.containerwidth,r=e.font,i=e.contentwidth;if(!n)return"";var o=pr(t,r);if(n>=o)return t;for(var a=0;;a++){if(i>=o||a>=e.maxiterations){t+=e.ellipsis;break}var s=0===a?mo(t,i,e.asccharwidth,e.cncharwidth):o>0?math.floor(t.length*i/o):0;t=t.substr(0,s),o=pr(t,r)}return""===t&&(t=e.placeholder),t}function mo(t,e,n,r){for(var i=0,o=0,a=t.length;a>o&&e>i;o++){var s=t.charcodeat(o);i+=s>=0&&127>=s?n:r}return o}function _o(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=zr(o),l=z(e.lineheight,s),u=!!e.backgroundcolor,h="truncate"===e.lineoverflow,c=e.width;n=null==c||"break"!==r&&"breakall"!==r?t?t.split("\n"):[]:t?mo(t,e.font,c,"breakall"===r,0).lines:[];var f=n.length*l,p=z(e.height,f);if(f>p&&h){var d=math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=vo(c,o,e.ellipsis,{minchar:e.truncateminchar,placeholder:e.placeholder}),v=0;vu&&wo(r,t.substring(u,h),e,l),wo(r,i[2],e,l,i[1]),u=zm.lastindex}ua){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var d=s.width,i=null==d||"auto"===d;if("string"==typeof d&&"%"===d.charat(d.length-1))b.percentwidth=d,c.push(b),b.contentwidth=pr(b.text,c);else{if(i){var a=s.backgroundcolor,l=a&&a.image;l&&(l=ho(l),po(l)&&(b.width=math.max(b.width,l.width*k/l.height)))}var o=g&&null!=o?o-x:null;null!=o&&oo?(b.text="",b.width=b.contentwidth=0):(b.text=go(b.text,o-t,c,e.ellipsis,{minchar:e.truncateminchar}),b.width=b.contentwidth=pr(b.text,c)):b.contentwidth=pr(b.text,c)}b.width+=t,x+=b.width,s&&(_=math.max(_,b.lineheight))}n(m,x,_)}r.outerwidth=r.width=z(o,p),r.outerheight=r.height=z(a,f),r.contentheight=f,r.contentwidth=p,d&&(r.outerwidth+=d[1]+d[3],r.outerheight+=d[0]+d[2]);for(var y=0;y0&&d+r.accumwidth>r.width&&(o=e.split("\n"),c=!0),r.accumwidth=d}else{var g=mo(e,h,r.width,r.breakall,r.accumwidth);r.accumwidth=g.accumwidth+p,a=g.lineswidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}function so(t){return bo(t)?wm[t]?!0:!1:!0}function mo(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:i+h+p>n)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=f,u+=p,s="",h=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=f,h=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(h+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}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+=i),{accumwidth:h,lines:o,lineswidths:a}}function to(t,e,n){return zm.copy(t.getboundingrect()),t.transform&&zm.applytransform(t.transform),km.width=e,km.height=n,!zm.intersect(km)}function co(t,e,n,r,i,o){i[0]=$m(t,n),i[1]=$m(e,r),o[0]=qm(t,n),o[1]=qm(e,r)}function ko(t,e,n,r,i,o,a,s,l,u){var h=fn,c=un,f=h(t,n,i,a,o_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;f>p;p++){var d=c(t,n,i,a,o_[p]);l[0]=$m(d,l[0]),u[0]=qm(d,u[0])}f=h(e,r,o,s,a_);for(var p=0;f>p;p++){var g=c(e,r,o,s,a_[p]);l[1]=$m(g,l[1]),u[1]=qm(g,u[1])}l[0]=$m(t,l[0]),u[0]=qm(t,u[0]),l[0]=$m(a,l[0]),u[0]=qm(a,u[0]),l[1]=$m(e,l[1]),u[1]=qm(e,u[1]),l[1]=$m(s,l[1]),u[1]=qm(s,u[1])}function do(t,e,n,r,i,o,a,s){var l=_n,u=vn,h=qm($m(l(t,n,i),1),0),c=qm($m(l(e,r,o),1),0),f=u(t,n,i,h),p=u(e,r,o,c);a[0]=$m(t,i,f),a[1]=$m(e,o,p),s[0]=qm(t,i,f),s[1]=qm(e,o,p)}function io(t,e,n,r,i,o,a,s,l){var u=me,h=_e,c=math.abs(i-o);if(1e-4>c%e_&&c>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(n_[0]=t_(i)*n+t,n_[1]=jm(i)*r+e,r_[0]=t_(o)*n+t,r_[1]=jm(o)*r+e,u(s,n_,r_),h(l,n_,r_),i%=e_,0>i&&(i+=e_),o%=e_,0>o&&(o+=e_),i>o&&!a?o+=e_:o>i&&a&&(i+=e_),a){var f=o;o=i,i=f}for(var p=0;o>p;p+=math.pi/2)p>i&&(i_[0]=t_(p)*n+t,i_[1]=jm(p)*r+e,u(s,i_,s),h(l,i_,l))}function ao(t){var e=math.round(t/__*1e8)/1e8;return e%2*__}function lo(t,e){var n=ao(t[0]);0>n&&(n+=x_);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=x_?i=n+x_:e&&n-i>=x_?i=n-x_:!e&&n>i?i=n+(x_-ao(n-i)):e&&i>n&&(i=n-(x_-ao(i-n))),t[0]=n,t[1]=i}function oo(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||e-s>a&&r-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-r)/(t-n),u=(t*r-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function po(t,e,n,r,i,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>r+c&&h>o+c&&h>s+c||e-c>h&&r-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>i+c&&u>a+c||t-c>u&&n-c>u&&i-c>u&&a-c>u)return!1;var f=dn(t,e,n,r,i,o,a,s,u,h,null);return c/2>=f}function ro(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||e-u>l&&r-u>l&&o-u>l||s>t+u&&s>n+u&&s>i+u||t-u>s&&n-u>s&&i-u>s)return!1;var h=wn(t,e,n,r,i,o,s,l,null);return u/2>=h}function no(t){return t%=m_,0>t&&(t+=m_),t}function bo(t,e,n,r,i,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(r-i)%t_<1e-4)return!0;if(o){var c=r;r=no(i),i=no(c)}else r=no(r),i=no(i);r>i&&(i+=t_);var f=math.atan2(l,s);return 0>f&&(f+=t_),f>=r&&i>=f||f+t_>=r&&i>=f+t_}function eo(t,e,n,r,i,o){if(o>e&&o>r||e>o&&r>o)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=e>r?1:-1;(1===a||0===a)&&(s=e>r?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}function zo(t,e){return math.abs(t-e)e&&u>r&&u>o&&u>s||e>u&&r>u&&o>u&&s>u)return 0;var h=cn(e,r,o,s,u,i_);if(0===h)return 0;for(var c=0,f=-1,p=void 0,d=void 0,g=0;h>g;g++){var v=i_[g],y=0===v||1===v?.5:1,m=un(t,n,i,a,v);l>m||(0>f&&(f=fn(e,r,o,s,a_),a_[1]1&&fo(),p=un(e,r,o,s,a_[0]),f>1&&(d=un(e,r,o,s,a_[1]))),c+=2===f?vp?y:-y:vd?y:-y:d>s?y:-y:vp?y:-y:p>s?y:-y)}return c}function ho(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||e>s&&r>s&&o>s)return 0;var l=mn(e,r,o,s,i_);if(0===l)return 0;var u=_n(e,r,o);if(u>=0&&1>=u){for(var h=0,c=vn(e,r,o,u),f=0;l>f;f++){var p=0===i_[f]||1===i_[f]?.5:1,d=vn(t,n,i,i_[f]);a>d||(h+=i_[f]c?p:-p:c>o?p:-p)}return h}var p=0===i_[0]||1===i_[0]?.5:1,d=vn(t,n,i,i_[0]);return a>d?0:e>o?p:-p}function wo(t,e,n,r,i,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=math.sqrt(n*n-s*s);i_[0]=-l,i_[1]=l;var u=math.abs(r-i);if(1e-4>u)return 0;if(u>=k_-1e-4){r=0,i=k_;var h=o?1:-1;return a>=i_[0]+t&&a<=i_[1]+t?h:0}if(r>i){var c=r;r=i,i=c}0>r&&(r+=k_,i+=k_);for(var f=0,p=0;2>p;p++){var d=i_[p];if(d+t>a){var g=math.atan2(s,d),h=o?1:-1;0>g&&(g=k_+g),(g>=r&&i>=g||g+k_>=r&&i>=g+k_)&&(g>math.pi/2&&g<1.5*math.pi&&(h=-h),f+=h)}}return f}function uo(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,f=0,p=0,d=0;l>d;){var g=s[d++],v=1===d;switch(g===c_.m&&d>1&&(n||(u+=eo(h,c,f,p,r,i))),v&&(h=s[d],c=s[d+1],f=h,p=c),g){case c_.m:f=s[d++],p=s[d++],h=f,c=p;break;case c_.l:if(n){if(oo(h,c,s[d],s[d+1],e,r,i))return!0}else u+=eo(h,c,s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case c_.c:if(n){if(po(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=vo(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case c_.q:if(n){if(ro(h,c,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=ho(h,c,s[d++],s[d++],s[d],s[d+1],r,i)||0;h=s[d++],c=s[d++];break;case c_.a:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var s=!!(1-s[d++]);o=math.cos(w)*_+y,a=math.sin(w)*x+m,v?(f=o,p=a):u+=eo(h,c,o,a,r,i);var m=(r-y)*x/_+y;if(n){if(bo(y,m,x,w,w+b,s,e,m,i))return!0}else u+=wo(y,m,x,w,w+b,s,m,i);h=math.cos(w+b)*_+y,c=math.sin(w+b)*x+m;break;case c_.r:f=h=s[d++],p=c=s[d++];var t=s[d++],c=s[d++];if(o=f+t,a=p+c,n){if(oo(f,p,o,p,e,r,i)||oo(o,p,o,a,e,r,i)||oo(o,a,f,a,e,r,i)||oo(f,a,f,p,e,r,i))return!0}else u+=eo(o,p,o,a,r,i),u+=eo(f,a,f,p,r,i);break;case c_.z:if(n){if(oo(h,c,f,p,e,r,i))return!0}else u+=eo(h,c,f,p,r,i);h=f,c=p}}return n||zo(c,p)||(u+=eo(h,c,f,p,r,i)||0),0!==u}function go(t,e,n){return uo(t,0,!1,e,n)}function qo(t,e,n,r){return uo(t,e,!0,n,r)}function xo(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function yo(t,e){var n,r,i,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=r=i=o=h:h instanceof array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0;var c;n+r>l&&(c=n+r,n*=l/c,r*=l/c),i+o>l&&(c=i+o,i*=l/c,o*=l/c),r+i>u&&(c=r+i,r*=u/c,i*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveto(a+n,s),t.lineto(a+l-r,s),0!==r&&t.arc(a+l-r,s+r,r,-math.pi/2,0),t.lineto(a+l,s+u-i),0!==i&&t.arc(a+l-i,s+u-i,i,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 jo(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.linewidth;return s?(v_(2*r)===v_(2*i)&&(t.x1=t.x2=ko(r,s,!0)),v_(2*o)===v_(2*a)&&(t.y1=t.y2=ko(o,s,!0)),t):t}}function zo(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.linewidth;return s?(t.x=ko(r,s,!0),t.y=ko(i,s,!0),t.width=math.max(ko(r+o,s,!1)-t.x,0===o?0:1),t.height=math.max(ko(i+a,s,!1)-t.y,0===a?0:1),t):t}}function ko(t,e,n){if(!e)return t;var r=v_(2*t);return(r+v_(e))%2===0?r/2:(r+(n?1:-1))/2}function $o(t){return"string"!=typeof t||-1===t.indexof("px")&&-1===t.indexof("rem")&&-1===t.indexof("em")?isnan(+t)?eg+"px":t+"px":t}function qo(t,e){for(var n=0;n=e||"transparent"===t||"none"===t?null:t.image||t.colorstops?"#000":t}function ra(t){return null==t||"none"===t?null:t.image||t.colorstops?"#000":t}function ia(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function oa(t){var e=t.text;return null!=e&&(e+=""),e}function aa(t){return!!(t.backgroundcolor||t.lineheight||t.borderwidth&&t.bordercolor)}function sa(t){return null!=t&&"none"!==t}function la(t){if(c(t)){var e=gx.get(t);return e||(e=en(t,-.1),gx.put(t,e)),e}if(p(t)){var n=h({},t);return n.colorstops=y(t.colorstops,function(t){return{offset:t.offset,color:en(t.color,-.1)}}),n}return t}function ua(t,e,n){t.onhoverstatechange&&(t.hoverstate||0)!==n&&t.onhoverstatechange(e),t.hoverstate=n}function ha(t){ua(t,"emphasis",ox)}function ca(t){t.hoverstate===ox&&ua(t,"normal",rx)}function fa(t){ua(t,"blur",ix)}function pa(t){t.hoverstate===ix&&ua(t,"normal",rx)}function da(t){t.selected=!0}function ga(t){t.selected=!1}function va(t,e,n){e(t,n)}function ya(t,e,n){va(t,e,n),t.isgroup&&t.traverse(function(t){va(t,e,n)})}function ma(t,e,n,r){for(var i=t.style,o={},a=0;a=0,o=!1;if(t instanceof r_){var a=ex(t),s=i?a.selectfill||a.normalfill:a.normalfill,l=i?a.selectstroke||a.normalstroke:a.normalstroke;if(sa(s)||sa(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=h({},r),u=h({},u),u.fill=s):!sa(u.fill)&&sa(s)?(o=!0,r=h({},r),u=h({},u),u.fill=la(s)):!sa(u.stroke)&&sa(l)&&(o||(r=h({},r),u=h({},u)),u.stroke=la(l)),r.style=u}}if(r&&null==r.z2){o||(r=h({},r));var c=t.z2emphasislift;r.z2=t.z2+(null!=c?c:lx)}return r}function xa(t,e,n){if(n&&null==n.z2){n=h({},n);var r=t.z2selectlift;n.z2=t.z2+(null!=r?r:ux)}return n}function wa(t,e,n){var r=f(t.currentstates,e)>=0,i=t.style.opacity,o=r?null:ma(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:r?i:.1*o.opacity},a),n.style=a),n}function ba(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return _a(this,t,e,n);if("blur"===t)return wa(this,t,n);if("select"===t)return xa(this,t,n)}return n}function sa(t){t.stateproxy=ba;var e=t.gettextcontent(),n=t.gettextguideline();e&&(e.stateproxy=ba),n&&(n.stateproxy=ba)}function ma(t,e){!oa(t,e)&&!t.__highbyouter&&ya(t,ha)}function ta(t,e){!oa(t,e)&&!t.__highbyouter&&ya(t,ca)}function ca(t,e){t.__highbyouter|=1<<(e||0),ya(t,ha)}function ka(t,e){!(t.__highbyouter&=~(1<<(e||0)))&&ya(t,ca)}function da(t){ya(t,fa)}function ia(t){ya(t,pa)}function aa(t){ya(t,da)}function la(t){ya(t,ga)}function oa(t,e){return t.__highdownsilentontouch&&e.zrbytouch}function pa(t){var e=t.getmodel(),n=[],r=[];e.eachcomponent(function(e,i){var o=nx(i),a="series"===e,s=a?t.getviewofseriesmodel(i):t.getviewofcomponentmodel(i);!a&&r.push(s),o.isblured&&(s.group.traverse(function(t){pa(t)}),a&&n.push(i)),o.isblured=!1}),v(r,function(t){t&&t.toggleblurseries&&t.toggleblurseries(n,!1,e)})}function ra(t,e,n,r){function i(t,e){for(var n=0;nl;)a=i.getitemgraphicel(l++);if(a){var u=$_(a);ra(r,u.focus,u.blurscope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurscope"]);null!=h&&ra(r,h,c,n)}}}function ea(t,e,n,r){var i={focusself:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getmodel().getcomponent(t,e);if(!o)return i;var a=r.getviewofcomponentmodel(o);if(!a||!a.findhighdowndispatchers)return i;for(var s,l=a.findhighdowndispatchers(n),u=0;u0){var o={dataindex:i,seriesindex:t.seriesindex};null!=r&&(o.datatype=r),e.push(o)}})}),e}function ua(t,e,n){ja(t,!0),ya(t,sa),xa(t,e,n)}function ga(t){ja(t,!1)}function qa(t,e,n,r){r?ga(t):ua(t,e,n)}function xa(t,e,n){var r=$_(t);null!=e?(r.focus=e,r.blurscope=n):r.focus&&(r.focus=null)}function ya(t,e,n,r){n=n||"itemstyle";for(var i=0;i=j_&&(e=tx[t]=j_++),e}function $a(t){var e=t.type;return e===fx||e===px||e===dx}function qa(t){var e=t.type;return e===hx||e===cx}function ja(t){var e=ex(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 ts(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),h=mx.m,c=mx.c,f=mx.l,p=mx.r,d=mx.a,g=mx.q;for(i=0,o=0;u>i;){switch(n=l[i++],o=i,r=0,n){case h:r=1;break;case f:r=1;break;case c:r=3;break;case g:r=2;break;case d:var v=e[4],y=e[5],m=xx(e[0]*e[0]+e[1]*e[1]),_=xx(e[2]*e[2]+e[3]*e[3]),x=bx(-e[1]/_,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=_,l[i++]+=y,l[i++]*=m,l[i++]*=_,l[i++]+=x,l[i++]+=x,i+=2,o=i;break;case p:s[0]=l[i++],s[1]=l[i++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;r>a;a++){var w=_x[a];w[0]=l[i++],w[1]=l[i++],ye(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseversion()}}function es(t){return math.sqrt(t[0]*t[0]+t[1]*t[1])}function ns(t,e){return(t[0]*e[0]+t[1]*e[1])/(es(t)*es(e))}function rs(t,e){return(t[0]*e[1]1&&(a*=sx(d),s*=sx(d));var g=(i===o?-1:1)*sx((a*a*s*s-a*a*p*p-s*s*f*f)/(a*a*p*p+s*s*f*f))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+tx(c)*v-mx(c)*y,_=(e+r)/2+mx(c)*v+tx(c)*y,x=rs([1,0],[(f-v)/a,(p-y)/s]),w=[(f-v)/a,(p-y)/s],b=[(-1*f-v)/a,(-1*p-y)/s],s=rs(w,b);if(ns(w,b)<=-1&&(s=cx),ns(w,b)>=1&&(s=0),0>s){var m=math.round(s/cx*1e6)/1e6;s=2*cx+m%2*cx}h.adddata(u,m,_,a,s,x,s,c,o)}function os(t){var e=new s_;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=s_.cmd,l=t.match(kx);if(!l)return e;for(var u=0;ug;g++)p[g]=parsefloat(p[g]);for(var v=0;d>v;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,s=void 0,m=r,t=i,c=void 0,k=void 0;switch(c){case"l":r+=p[v++],i+=p[v++],f=s.l,e.adddata(f,r,i);break;case"l":r=p[v++],i=p[v++],f=s.l,e.adddata(f,r,i);break;case"m":r+=p[v++],i+=p[v++],f=s.m,e.adddata(f,r,i),o=r,a=i,c="l";break;case"m":r=p[v++],i=p[v++],f=s.m,e.adddata(f,r,i),o=r,a=i,c="l";break;case"h":r+=p[v++],f=s.l,e.adddata(f,r,i);break;case"h":r=p[v++],f=s.l,e.adddata(f,r,i);break;case"v":i+=p[v++],f=s.l,e.adddata(f,r,i);break;case"v":i=p[v++],f=s.l,e.adddata(f,r,i);break;case"c":f=s.c,e.adddata(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":f=s.c,e.adddata(f,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"s":y=r,m=i,c=e.len(),k=e.data,n===s.c&&(y+=r-k[c-4],m+=i-k[c-3]),f=s.c,m=p[v++],t=p[v++],r=p[v++],i=p[v++],e.adddata(f,y,m,m,t,r,i);break;case"s":y=r,m=i,c=e.len(),k=e.data,n===s.c&&(y+=r-k[c-4],m+=i-k[c-3]),f=s.c,m=r+p[v++],t=i+p[v++],r+=p[v++],i+=p[v++],e.adddata(f,y,m,m,t,r,i);break;case"q":m=p[v++],t=p[v++],r=p[v++],i=p[v++],f=s.q,e.adddata(f,m,t,r,i);break;case"q":m=p[v++]+r,t=p[v++]+i,r+=p[v++],i+=p[v++],f=s.q,e.adddata(f,m,t,r,i);break;case"t":y=r,m=i,c=e.len(),k=e.data,n===s.q&&(y+=r-k[c-4],m+=i-k[c-3]),r=p[v++],i=p[v++],f=s.q,e.adddata(f,y,m,r,i);break;case"t":y=r,m=i,c=e.len(),k=e.data,n===s.q&&(y+=r-k[c-4],m+=i-k[c-3]),r+=p[v++],i+=p[v++],f=s.q,e.adddata(f,y,m,r,i); break;case"a":_=p[v++],x=p[v++],w=p[v++],b=p[v++],s=p[v++],m=r,t=i,r=p[v++],i=p[v++],f=s.a,is(m,t,r,i,b,s,_,x,w,f,e);break;case"a":_=p[v++],x=p[v++],w=p[v++],b=p[v++],s=p[v++],m=r,t=i,r+=p[v++],i+=p[v++],f=s.a,is(m,t,r,i,b,s,_,x,w,f,e)}}("z"===c||"z"===c)&&(f=s.z,e.adddata(f),r=o,i=a),n=f}return e.tostatic(),e}function as(t){return null!=t.setdata}function ss(t,e){var n=os(t),r=h({},e);return r.buildpath=function(t){if(as(t)){t.setdata(n.data);var e=t.getcontext();e&&t.rebuildpath(e,1)}else{var e=t;n.rebuildpath(e,1)}},r.applytransform=function(t){ts(n,t),this.dirtyshape()},r}function ls(t,e){return new ix(ss(t,e))}function us(t,n){var r=ss(t,n),i=function(t){function n(e){var n=t.call(this,e)||this;return n.applytransform=r.applytransform,n.buildpath=r.buildpath,n}return e(n,t),n}(ix);return i}function hs(t,e){for(var n=[],r=t.length,i=0;r>i;i++){var o=t[i];n.push(o.getupdatedpathproxy(!0))}var a=new r_(e);return a.createpathproxy(),a.buildpath=function(t){if(as(t)){t.appendpath(n);var e=t.getcontext();e&&t.rebuildpath(e,1)}},a}function cs(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,h=a-i,c=s-o,f=c*l-h*u;return gx>f*f?void 0:(f=(h*(e-o)-c*(t-i))/f,[t+f*l,e+f*u])}function fs(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/hx(s*s+l*l),h=u*l,c=-u*s,f=t+h,p=e+c,d=n+h,g=r+c,v=(f+d)/2,y=(p+g)/2,m=d-f,_=g-p,x=m*m+_*_,w=i-o,b=f*g-d*p,s=(0>_?-1:1)*hx(wx(0,w*w*x-b*b)),m=(b*_-m*s)/x,t=(-b*m-_*s)/x,c=(b*_+m*s)/x,k=(-b*m+_*s)/x,d=m-v,i=t-y,a=c-v,l=k-y;return d*d+i*i>a*a+l*l&&(m=c,t=k),{cx:m,cy:t,x0:-h,y0:-c,x1:m*(i/w-1),y1:t*(i/w-1)}}function ps(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 ds(t,e){var n,r=wx(e.r,0),i=wx(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startangle,u=e.endangle;if(!isnan(l)&&!isnan(u)){var h=e.cx,c=e.cy,f=!!e.clockwise,p=vx(u-l),d=p>nx&&p%nx;if(d>gx&&(p=d),r>gx)if(p>nx-gx)t.moveto(h+r*ex(l),c+r*bx(l)),t.arc(h,c,r,l,u,!f),i>gx&&(t.moveto(h+i*ex(u),c+i*bx(u)),t.arc(h,c,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,s=void 0,m=void 0,t=void 0,c=void 0,k=void 0,d=void 0,i=void 0,a=void 0,l=r*ex(l),o=r*bx(l),p=i*ex(u),r=i*bx(u),n=p>gx;if(n){var b=e.cornerradius;b&&(n=ps(b),g=n[0],v=n[1],y=n[2],m=n[3]);var e=vx(r-i)/2;if(_=ux(e,y),x=ux(e,m),w=ux(e,g),b=ux(e,v),t=s=wx(_,x),c=m=wx(w,b),(s>gx||m>gx)&&(k=r*ex(u),d=r*bx(u),i=i*ex(l),a=i*bx(l),rx>p)){var z=cs(l,o,i,a,k,d,p,r);if(z){var f=l-z[0],v=o-z[1],h=k-z[0],w=d-z[1],u=1/bx(zx((f*h+v*w)/(hx(f*f+v*v)*hx(h*h+w*w)))/2),g=hx(z[0]*z[0]+z[1]*z[1]);t=ux(s,(r-g)/(u+1)),c=ux(m,(i-g)/(u-1))}}}if(n)if(t>gx){var q=ux(y,t),x=ux(m,t),y=fs(i,a,l,o,r,q,f),j=fs(k,d,p,r,r,x,f);t.moveto(h+y.cx+y.x0,c+y.cy+y.y0),s>t&&q===x?t.arc(h+y.cx,c+y.cy,t,fx(y.y0,y.x0),fx(j.y0,j.x0),!f):(q>0&&t.arc(h+y.cx,c+y.cy,q,fx(y.y0,y.x0),fx(y.y1,y.x1),!f),t.arc(h,c,r,fx(y.cy+y.y1,y.cx+y.x1),fx(j.cy+j.y1,j.cx+j.x1),!f),x>0&&t.arc(h+j.cx,c+j.cy,x,fx(j.y1,j.x1),fx(j.y0,j.x0),!f))}else t.moveto(h+l,c+o),t.arc(h,c,r,l,u,!f);else t.moveto(h+l,c+o);if(i>gx&&n)if(c>gx){var q=ux(g,c),x=ux(v,c),y=fs(p,r,k,d,i,-x,f),j=fs(l,o,i,a,i,-q,f);t.lineto(h+y.cx+y.x0,c+y.cy+y.y0),m>c&&q===x?t.arc(h+y.cx,c+y.cy,c,fx(y.y0,y.x0),fx(j.y0,j.x0),!f):(x>0&&t.arc(h+y.cx,c+y.cy,x,fx(y.y0,y.x0),fx(y.y1,y.x1),!f),t.arc(h,c,i,fx(y.cy+y.y1,y.cx+y.x1),fx(j.cy+j.y1,j.cx+j.x1),f),q>0&&t.arc(h+j.cx,c+j.cy,q,fx(j.y1,j.x1),fx(j.y0,j.x0),!f))}else t.lineto(h+p,c+r),t.arc(h,c,i,u,l,f);else t.lineto(h+p,c+r)}else t.moveto(h,c);t.closepath()}}}function gs(t,e,n,r){var i,o,a,s,l=[],u=[],h=[],c=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;p>f;f++)me(a,a,t[f]),_e(s,s,t[f]);me(a,a,r[0]),_e(s,s,r[1])}for(var f=0,p=t.length;p>f;f++){var d=t[f];if(n)i=t[f?f-1:p-1],o=t[(f+1)%p];else{if(0===f||f===p-1){l.push(ee(t[f]));continue}i=t[f-1],o=t[f+1]}oe(u,o,i),ce(u,u,e);var g=pe(d,i),v=pe(d,o),y=g+v;0!==y&&(g/=y,v/=y),ce(h,u,-g),ce(c,u,v);var m=re([],d,h),_=re([],d,c);r&&(_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 vs(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=gs(i,r,n,e.smoothconstraint);t.moveto(i[0][0],i[0][1]);for(var a=i.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=i[(s+1)%a];t.beziercurveto(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveto(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)t.lineto(i[s][0],i[s][1])}n&&t.closepath()}}function ys(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?hn:un)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?hn:un)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?yn:vn)(t.x1,t.cpx1,t.x2,e),(n?yn:vn)(t.y1,t.cpy1,t.y2,e)]}function ms(t,e,n,r,i){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;r?(u=z(r.duration,200),h=z(r.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,i)),t(u)&&(u=u(n));var f={duration:u||0,delay:c,easing:h};return f}return null}function _s(t,e,n,r,i,o,a){var s,l=!1;t(i)?(a=o,o=i,i=null):i(i)&&(o=i.cb,a=i.during,l=i.isfrom,s=i.removeopt,i=i.dataindex);var u="leave"===t;u||e.stopanimation("leave");var h=ms(t,r,i,u?s||{}:null,r&&r.getanimationdelayparams?r.getanimationdelayparams(e,i):null);if(h&&h.duration>0){var c=h.duration,f=h.delay,p=h.easing,d={duration:c,delay:f||0,easing:p,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 xs(t,e,n,r,i,o){_s("update",t,e,n,r,i,o)}function ws(t,e,n,r,i,o){_s("enter",t,e,n,r,i,o)}function bs(t){if(!t.__zr)return!0;for(var e=0;e=n&&o>=i?{x:n,y:i,width:r-n,height:o-i}:void 0}function zs(t,e,n){var r=h({recthover:!0},e),i=r.style={strokenoscale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexof("image://")?(i.image=t.slice(8),c(i,n),new f_(r)):ls(t.replace("path://",""),r,n,"center"):void 0}function fs(t,e){var n;t.isgroup&&(n=e(t)),n||t.traverse(e)}function vs(t,e){if(t)if(m(t))for(var n=0;n=0&&n.push(t)}),n}t.topologicaltravel=function(t,e,r,i){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(v(t,function(t){h[t]=!0});u.length;){var c=u.pop(),f=l[c],p=!!h[c];p&&(r.call(i,c,f.originaldeps.slice()),delete h[c]),v(f.successor,p?a:o)}v(h,function(){var t="";throw new error(t)})}}}function el(t,e){t=t.touppercase(),yw[t]=new fw(e),xw[t]=e}function nl(t){if(c(t)){var e=xw[t.touppercase()]||{};return t===uw||t===gw?s(e):l(s(e),s(xw[qw]),!1)}return l(s(t),s(xw[qw]),!1)}function rl(t){return yw[t]}function il(){return yw[qw]}function ol(t,e){return t+="","0000".substr(0,e-t.length)+t}function al(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===al(t)}function ll(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ul(t,e,n,r){var i=di(t),o=i[pl(n)](),a=i[dl(n)]()+1,s=math.floor((a-1)/3)+1,l=i[gl(n)](),u=i["get"+(n?"utc":"")+"day"](),h=i[vl(n)](),c=(h-1)%12+1,f=i[yl(n)](),p=i[ml(n)](),d=i[_l(n)](),g=r instanceof fw?r:rl(r||jw)||il(),v=g.getmodel("time"),y=v.get("month"),m=v.get("monthabbr"),_=v.get("dayofweek"),x=v.get("dayofweekabbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{q}/g,s+"").replace(/{mmmm}/g,y[a-1]).replace(/{mmm}/g,m[a-1]).replace(/{mm}/g,ol(a,2)).replace(/{m}/g,a+"").replace(/{dd}/g,ol(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{hh}/g,ol(h,2)).replace(/{h}/g,h+"").replace(/{hh}/g,ol(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ol(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,ol(p,2)).replace(/{s}/g,p+"").replace(/{sss}/g,ol(d,3)).replace(/{s}/g,d+"")}function hl(t,e,n,r,i){var o=null;if(c(n))o=n;else if(t(n))o=n(t.value,e,{level:t.level});else{var a=h({},tb);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(m(o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=math.min(p,o.length-1),o=o[p]}}return ul(new date(t.value),o,i,r)}function cl(t,e){var n=di(t),r=n[dl(e)]()+1,i=n[gl(e)](),o=n[vl(e)](),a=n[yl(e)](),s=n[ml(e)](),l=n[_l(e)](),u=0===l,h=u&&0===s,c=h&&0===a,f=c&&0===o,p=f&&1===i,d=p&&1===r;return d?"year":p?"month":f?"day":c?"hour":h?"minute":u?"second":"millisecond"}function fl(t,e,n){var r=d(t)?di(t):t;switch(e=e||cl(t,n)){case"year":return r[pl(n)]();case"half-year":return r[dl(n)]()>=6?1:0;case"quarter":return math.floor((r[dl(n)]()+1)/4);case"month":return r[dl(n)]();case"day":return r[gl(n)]();case"half-day":return r[vl(n)]()/24;case"hour":return r[vl(n)]();case"minute":return r[yl(n)]();case"second":return r[ml(n)]();case"millisecond":return r[_l(n)]()}}function pl(t){return t?"getutcfullyear":"getfullyear"}function dl(t){return t?"getutcmonth":"getmonth"}function gl(t){return t?"getutcdate":"getdate"}function vl(t){return t?"getutchours":"gethours"}function yl(t){return t?"getutcminutes":"getminutes"}function ml(t){return t?"getutcseconds":"getseconds"}function _l(t){return t?"getutcmilliseconds":"getmilliseconds"}function xl(t){return t?"setutcfullyear":"setfullyear"}function wl(t){return t?"setutcmonth":"setmonth"}function bl(t){return t?"setutcdate":"setdate"}function sl(t){return t?"setutchours":"sethours"}function ml(t){return t?"setutcminutes":"setminutes"}function tl(t){return t?"setutcseconds":"setseconds"}function cl(t){return t?"setutcmilliseconds":"setmilliseconds"}function kl(t,e,n,r,i,o,a,s){var l=new y_({style:{text:t,font:e,align:n,verticalalign:r,padding:i,rich:o,overflow:a?"truncate":null,lineheight:s}});return l.getboundingrect()}function dl(t){if(!wi(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 il(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 al(t,e,n){m(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';var a=n.markerid||"markerx";return{rendermode:o,content:"{"+a+"|} ",style:"subitem"===i?{width:4,height:4,borderradius:2,backgroundcolor:r}:{width:10,height:10,borderradius:5,backgroundcolor:r}}}function ol(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="mm-dd\nyyyy");var r=di(e),i=n?"getutc":"get",o=r[i+"fullyear"](),a=r[i+"month"]()+1,s=r[i+"date"](),l=r[i+"hours"](),u=r[i+"minutes"](),h=r[i+"seconds"](),c=r[i+"milliseconds"]();return t=t.replace("mm",ol(a,2)).replace("m",a).replace("yyyy",o).replace("yy",ol(o%100+"",2)).replace("dd",ol(s,2)).replace("d",s).replace("hh",ol(l,2)).replace("h",l).replace("mm",ol(u,2)).replace("m",u).replace("ss",ol(h,2)).replace("s",h).replace("sss",ol(c,3))}function pl(t){return t?t.charat(0).touppercase()+t.substr(1):t}function rl(t,e){return e=e||"transparent",c(t)?t:i(t)?t.colorstops&&(t.colorstops[0]||{}).color||e:e}function nl(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachchild(function(l,u){var h,c,f=l.getboundingrect(),p=e.childat(u+1),d=p&&p.getboundingrect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);h=o+g,h>r||l.newline?(o=0,h=g,a+=s+n,s=f.height):s=math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);c=a+v,c>i||l.newline?(o+=s+n,a=0,c=v,s=f.width):s=math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markredraw(),"horizontal"===t?o=h+n:a=c+n)})}function bl(t,e,n){n=ob(n||0);var r=e.width,i=e.height,o=ri(t.left,r),a=ri(t.top,i),s=ri(t.right,r),l=ri(t.bottom,i),u=ri(t.width,r),h=ri(t.height,i),c=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isnan(u)&&(u=r-s-f-o),isnan(h)&&(h=i-l-c-a),null!=p&&(isnan(u)&&isnan(h)&&(p>r/i?u=.8*r:h=.8*i),isnan(u)&&(u=p*h),isnan(h)&&(h=u/p)),isnan(o)&&(o=r-s-u-f),isnan(a)&&(a=i-l-h-c),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f}switch(t.top||t.bottom){case"middle":case"center":a=i/2-h/2-n[0];break;case"bottom":a=i-h-c}o=o||0,a=a||0,isnan(u)&&(u=r-f-o-(s||0)),isnan(h)&&(h=i-c-a-(l||0));var d=new fv(o+n[3],a+n[0],u,h);return d.margin=n,d}function el(t){var e=t.layoutmode||t.constructor.layoutmode;return i(e)?e:e?{type:e}:null}function zl(t,e,n){function r(n,r){var a={},l=0,u={},h=0,c=2;if(lb(n,function(e){u[e]=t[e]}),lb(n,function(t){i(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[r])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 f=0;fr;r++)t.push(e+r)}function i(t){var e=t.dimsdef;return e?e.length:1}var o={},a=ql(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecmodel,f=db(c).datasetmap,p=a.uid+"_"+n.serieslayoutby;t=t.slice(),v(t,function(e,n){var r=i(e)?e:t[n]={name:e};"ordinal"===r.type&&null==s&&(s=n,l=i(r)),o[r.name]=[]});var d=f.get(p)||f.set(p,{categorywaydim:l,valuewaydim:0});return v(t,function(t,e){var n=t.name,a=i(t);if(null==s){var l=d.valuewaydim;r(o[n],l,a),r(h,l,a),d.valuewaydim+=a}else if(s===e)r(o[n],0,a),r(u,0,a);else{var l=d.categorywaydim;r(o[n],l,a),r(h,l,a),d.categorywaydim+=a}}),u.length&&(o.itemname=u),h.length&&(o.seriesname=h),o}function gl(t,e,n){var r={},i=ql(t);if(!i)return r;var o,a=e.sourceformat,s=e.dimensionsdefine;(a===wb||a===bb)&&v(s,function(t,e){"name"===(i(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var r={},i={},l=[],u=0,h=math.min(5,n);h>u;u++){var c=jl(e.data,a,e.serieslayoutby,s,e.startindex,u);l.push(c);var f=c===kb.not;if(f&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v||!f&&l[r.n]===kb.not)&&(r.n=u),t(r)&&l[r.n]!==kb.not)return r;f||(c===kb.might&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v)&&(i.n=u))}return t(r)?r:t(i)?i:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemname=[u],r.seriesname=[u]}return r}function ql(t){var e=t.get("data",!0);return e?void 0:zi(t.ecmodel,"dataset",{index:t.get("datasetindex",!0),id:t.get("datasetid",!0)},im).models[0]}function xl(t){return t.get("transform",!0)||t.get("fromtransformresult",!0)?zi(t.ecmodel,"dataset",{index:t.get("fromdatasetindex",!0),id:t.get("fromdatasetid",!0)},im).models:[]}function yl(t,e){return jl(t.data,t.sourceformat,t.serieslayoutby,t.dimensionsdefine,t.startindex,e)}function jl(t,e,n,r,i,o){function a(t){var e=c(t);return null!=t&&isfinite(t)&&""!==t?e?kb.might:kb.not:e&&"-"!==t?kb.must:void 0}var s,l=5;if(l(t))return kb.not;var u,h;if(r){var c=r[o];i(c)?(u=c.name,h=c.type):c(c)&&(u=c)}if(null!=h)return"ordinal"===h?kb.must:kb.not;if(e===xb){var f=t;if(n===cb){for(var p=f[o],d=0;d<(p||[]).length&&l>d;d++)if(null!=(s=a(p[i+d])))return s}else for(var d=0;dd;d++){var g=f[i+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===wb){var v=t;if(!u)return kb.not;for(var d=0;dd;d++){var y=v[d];if(y&&null!=(s=a(y[u])))return s}}else if(e===bb){var m=t;if(!u)return kb.not;var p=m[u];if(!p||l(p))return kb.not;for(var d=0;dd;d++)if(null!=(s=a(p[d])))return s}else if(e===_b)for(var _=t,d=0;d<_.length&&l>d;d++){var y=_[d],x=ii(y);if(!m(x))return kb.not;if(null!=(s=a(x[o])))return s}return kb.not}function zl(t,e,n){var r=ib.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}function kl(t,e){for(var n=t.length,r=0;n>r;r++)if(t[r].length>e)return t[r];return t[n-1]}function $l(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteidx||0,u=s.palettenamemap=s.palettenamemap||{};if(u.hasownproperty(i))return u[i];var h=null!=a&&r?kl(r,a):n;if(h=h||n,h&&h.length){var c=h[l];return i&&(u[i]=c),s.paletteidx=(l+1)%h.length,c}}function ql(t,e){e(t).paletteidx=0,e(t).palettenamemap={}}function jl(t,e){if(e){var n=e.seriesindex,r=e.seriesid,i=e.seriesname;return null!=n&&t.componentindex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function tu(t,e){var n=t.color&&!t.colorlayer;v(e,function(e,r){"colorlayer"===r&&n||fb.hasclass(r)||("object"==typeof e?t[r]=t[r]?l(t[r],e,!1):s(e):null==t[r]&&(t[r]=e))})}function eu(t,e,n){if(m(e)){var r=y();return v(e,function(t){if(null!=t){var e=vi(t,null);null!=e&&r.set(t,!0)}}),_(n,function(e){return e&&r.get(e[t])})}var i=vi(e,null);return _(n,function(e){return e&&null!=i&&e[t]===i})}function nu(t,e){return e.hasownproperty("subtype")?_(t,function(t){return t&&t.subtype===e.subtype}):t}function ru(t){var e=y();return t&&v(ki(t.replacemerge),function(t){e.set(t,!0)}),{replacemergemaintypemap:e}}function iu(t,e,n){function r(t){v(e,function(e){e(t,n)})}var i,o,a=[],s=t.baseoption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,f=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((f||c)&&(t.options=t.media=null),o=t),c&&m(h)&&v(h,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))}),r(o),v(u,function(t){return r(t)}),v(a,function(t){return r(t.option)}),{baseoption:o,timelineoptions:u||[],mediadefault:i,medialist:a}}function ou(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return v(t,function(t,e){var n=e.match(qb);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].tolowercase();au(r[a],t,o)||(i=!1)}}),i}function au(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function su(t,e){return t.join(",")===e.join(",")}function lu(t){var e=t&&t.itemstyle;if(e)for(var n=0,r=zb.length;r>n;n++){var i=zb[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?l(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?l(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function uu(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurscope&&(t.emphasis.blurscope=i.blurscope))}}function hu(t){uu(t,"itemstyle"),uu(t,"linestyle"),uu(t,"areastyle"),uu(t,"label"),uu(t,"labelline"),uu(t,"upperlabel"),uu(t,"edgelabel")}function cu(t,e){var n=jb(t)&&t[e],r=jb(n)&&n.textstyle;if(r)for(var i=0,o=km.length;o>i;i++){var a=km[i];r.hasownproperty(a)&&(n[a]=r[a])}}function fu(t){t&&(hu(t),cu(t,"label"),t.emphasis&&cu(t.emphasis,"label"))}function pu(t){if(jb(t)){lu(t),hu(t),cu(t,"label"),cu(t,"upperlabel"),cu(t,"edgelabel"),t.emphasis&&(cu(t.emphasis,"label"),cu(t.emphasis,"upperlabel"),cu(t.emphasis,"edgelabel"));var e=t.markpoint;e&&(lu(e),fu(e));var n=t.markline;n&&(lu(n),fu(n));var r=t.markarea;r&&fu(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!l(o))for(var a=0;a=0;g--){var v=t[g];if(s||(p=v.data.rawindexof(v.stackedbydimension,f)),p>=0){var y=v.data.getbyrawindex(v.stackresultdimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&c>=0&&y>0||"samesign"===l&&0>=c&&0>y){c=ci(c,y),d=y;break}}}return r[0]=c,r[1]=d,r})})}function du(t){return t instanceof jb}function iu(t,e,n){n=n||ou(t);var r=e.serieslayoutby,i=pu(t,n,r,e.sourceheader,e.dimensions),o=new jb({data:t,sourceformat:n,serieslayoutby:r,dimensionsdefine:i.dimensionsdefine,startindex:i.startindex,dimensionsdetectedcount:i.dimensionsdetectedcount,metarawoption:s(e)}); return o}function au(t){return new jb({data:t,sourceformat:l(t)?sb:_b})}function lu(t){return new jb({data:t.data,sourceformat:t.sourceformat,serieslayoutby:t.serieslayoutby,dimensionsdefine:s(t.dimensionsdefine),startindex:t.startindex,dimensionsdetectedcount:t.dimensionsdetectedcount})}function ou(t){var e=mb;if(l(t))e=sb;else if(m(t)){0===t.length&&(e=xb);for(var n=0,r=t.length;r>n;n++){var i=t[n];if(null!=i){if(m(i)){e=xb;break}if(i(i)){e=wb;break}}}}else if(i(t))for(var o in t)if($(t,o)&&g(t[o])){e=bb;break}return e}function pu(t,e,n,r,i){var o,a;if(!t)return{dimensionsdefine:nu(i),startindex:a,dimensionsdetectedcount:o};if(e===xb){var s=t;"auto"===r||null==r?bu(function(t){null!=t&&"-"!==t&&(c(t)?null==a&&(a=1):a=0)},n,s,10):a=d(r)?r:r?1:0,i||1!==a||(i=[],bu(function(t,e){i[e]=null!=t?t+"":""},n,s,1/0)),o=i?i.length:n===cb?s.length:s[0]?s[0].length:null}else if(e===wb)i||(i=ru(t));else if(e===bb)i||(i=[],v(t,function(t,e){i.push(e)}));else if(e===_b){var l=ii(t[0]);o=m(l)&&l.length||1}return{startindex:a,dimensionsdefine:nu(i),dimensionsdetectedcount:o}}function ru(t){for(var e,n=0;ni;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;ii;i++)t(o[i],i)}function eu(t){var e=t.sourceformat;return e===wb||e===bb}function zu(t,e){var n=ns[hu(t,e)];return n}function fu(t,e){var n=is[hu(t,e)];return n}function vu(t){var e=as[t];return e}function hu(t,e){return t===xb?t+"_"+e:t}function wu(t,e,n){if(t){var r=t.getrawdataitem(e);if(null!=r){var i=t.getstore(),o=i.getsource().sourceformat;if(null!=n){var a=t.getdimensionindex(n),s=i.getdimensionproperty(a);return vu(o)(r,a,s)}var l=r;return o===_b&&(l=ii(r)),l}}}function uu(t){return new us(t)}function gu(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||d(t)||null==t||"-"===t||(t=+di(t)),null==t||""===t?0/0:+t)}function qu(t,e){var n=new fs,r=t.data,i=n.sourceformat=t.sourceformat,o=t.startindex,a="";t.serieslayoutby!==tb&&ti(a);var s=[],l={},u=t.dimensionsdefine;if(u)v(u,function(t,e){var n=t.name,r={index:e,name:n,displayname:t.displayname};if(s.push(r),null!=n){var i="";$(l,n)&&ti(i),l[n]=r}});else for(var h=0;ho;o++)i.push(n[o].slice());return i}if(e===wb){for(var i=[],o=0,a=n.length;a>o;o++)i.push(h({},n[o]));return i}}function ju(t,e,n){return null!=n?d(n)||!isnan(n)&&!$(e,n)?t[n]:$(e,n)?e[n]:void 0:void 0}function zu(t){return s(t)}function ku(t){t=s(t);var e=t.type,n="";e||ti(n);var r=e.split(":");2!==r.length&&ti(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isbuiltin=i,ps.set(e,t)}function $u(t,e,n){var r=ki(t),i=r.length,o="";i||ti(o);for(var a=0,s=i;s>a;a++){var l=r[a];e=qu(l,e,n,1===i?null:a),a!==s-1&&(e.length=math.max(e.length,1))}return e}function qu(t,e){var n="";e.length||ti(n),i(t)||ti(n);var r=t.type,i=ps.get(r);i||ti(n);var o=y(e,function(t){return qu(t,i)}),a=ki(i.transform({upstream:o[0],upstreamlist:o,config:s(t.config)}));return y(a,function(t,n){var r="";i(t)||ti(r),t.data||ti(r);var i=ou(t.data);ju(i)||ti(r);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:tb,sourceheader:s,dimensions:a.metarawoption.dimensions}}else o={serieslayoutby:tb,sourceheader:0,dimensions:t.dimensions};return iu(t.data,o,null)})}function ju(t){return t===xb||t===wb}function th(t){return t>65535?gs:vs}function eh(){return[1/0,-1/0]}function nh(t){var e=t.constructor;return e===array?t.slice():new e(t)}function rh(t,e,n,r,i){var o=_s[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}function ih(t){var e=t.option.transform;e&&g(t.option.transform)}function oh(t){return"series"===t.maintype}function ah(t){throw new error(t)}function sh(t,e){return e.type=t,e}function lh(t,e){var n=t.getdata().getitemvisual(e,"style"),r=n[t.visualdrawtype];return rl(r)}function uh(t){var e,n,r,i,o=t.series,a=t.dataindex,s=t.multipleseries,l=o.getdata(),u=l.mapdimensionsall("defaultedtooltip"),h=u.length,c=o.getrawvalue(a),f=m(c),p=lh(o,a);if(h>1||f&&!h){var d=hh(c,o,a,u,p);e=d.inlinevalues,n=d.inlinevaluetypes,r=d.blocks,i=d.inlinevalues[0]}else if(h){var g=l.getdimensioninfo(u[0]);i=e=wu(l,a,u[0]),n=g.type}else i=e=f?c[0]:c;var v=hi(o),y=v&&o.name||"",m=l.getname(a),_=s?y:m;return sh("section",{header:y,noheader:s||!v,sortparam:i,blocks:[sh("namevalue",{markertype:"item",markercolor:p,name:_,noname:!u(_),value:e,valuetype:n})].concat(r||[])})}function hh(t,e,n,r,i){function o(t,e){var n=a.getdimensioninfo(e);n&&n.otherdims.tooltip!==!1&&(s?h.push(sh("namevalue",{markertype:"subitem",markercolor:i,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 r=a.getdimensioninfo(n);return t=t||r&&r.tooltip!==!1&&null!=r.displayname},!1),l=[],u=[],h=[];return r.length?v(r,function(t){o(wu(a,n,t),t)}):v(t,o),{inlinevalues:l,inlinevaluetypes:u,blocks:h}}function ch(t,e){return t.getname(e)||t.getid(e)}function fh(t){var e=t.name;hi(t)||(t.name=ph(t)||e)}function ph(t){var e=t.getrawdata(),n=e.mapdimensionsall("seriesname"),r=[];return v(n,function(t){var n=e.getdimensioninfo(t);n.displayname&&r.push(n.displayname)}),r.join(" ")}function dh(t){return t.model.getrawdata().count()}function gh(t){var e=t.model;return e.setdata(e.getrawdata().cloneshallow()),vh}function vh(t,e){e.outputdata&&t.end>e.outputdata.count()&&e.model.getrawdata().cloneshallow(e.outputdata)}function yh(t,e){v(j(t.changable_methods,t.downsample_methods),function(n){t.wrapmethod(n,s(mh,e))})}function mh(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 r=n.currenttask;if(r){var i=r.agentstubmap;i&&(r=i.get(t.uid))}return r}}function xh(){var t=xi();return function(e){var n=t(e),r=e.pipelinecontext,i=!!n.large,o=!!n.progressiverender,a=n.large=!(!r||!r.large),s=n.progressiverender=!(!r||!r.progressiverender);return!(i===a&&o===s)&&"reset"}}function wh(t,e,n){t&&za(t)&&("emphasis"===e?ca:ka)(t,n)}function bh(t,e,n){var r=qi(t,e),i=e&&null!=e.highlightkey?ka(e.highlightkey):null;null!=r?v(ki(r),function(e){wh(t.getitemgraphicel(e),n,i)}):t.eachitemgraphicel(function(t){wh(t,n,i)})}function sh(t){return ks(t.model)}function mh(t){var e=t.model,n=t.ecmodel,r=t.api,i=t.payload,o=e.pipelinecontext.progressiverender,a=t.view,s=i&&cs(i).updatemethod,l=o?"incrementalpreparerender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),as[l]}function th(t,e,n){function r(){h=(new date).gettime(),c=null,t.apply(a,s||[])}var i,o,a,s,l,u=0,h=0,c=null;e=e||0;var f=function(){for(var t=[],f=0;f=0?r():c=settimeout(r,-o),u=i};return f.clear=function(){c&&(cleartimeout(c),c=null)},f.debouncenextcall=function(t){l=t},f}function ch(t,e){var n=t.visualstylemapper||os[e];return n?n:(console.warn("unknown style type '"+e+"'."),os.itemstyle)}function kh(t,e){var n=t.visualdrawtype||ps[e];return n?n:(console.warn("unknown style type '"+e+"'."),"fill")}function dh(t,e){e=e||{},c(e,{text:"loading",textcolor:"#000",fontsize:12,fontweight:"normal",fontstyle:"normal",fontfamily:"sans-serif",maskcolor:"rgba(255, 255, 255, 0.8)",showspinner:!0,color:"#5470c6",spinnerradius:10,linewidth:5,zlevel:0});var n=new gm,r=new u_({style:{fill:e.maskcolor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new y_({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 u_({style:{fill:"none"},textcontent:i,textconfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showspinner&&(a=new aw({shape:{startangle:-zs/2,endangle:-zs/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*zs/2}).start("circularinout"),a.animateshape(!0).when(1e3,{startangle:3*zs/2}).delay(300).start("circularinout"),n.add(a)),n.resize=function(){var n=i.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}),r.setshape({x:0,y:0,width:t.getwidth(),height:t.getheight()})},n.resize(),n}function ih(t){t.overallreset(t.ecmodel,t.api,t.payload)}function ah(t){return t.overallprogress&&lh}function lh(){this.agent.dirty(),this.getdownstream().dirty()}function oh(){this.agent&&this.agent.dirty()}function ph(t){return t.plan?t.plan(t.model,t.ecmodel,t.api,t.payload):null}function rh(t){t.useclearvisual&&t.data.clearallvisual();var e=t.resetdefines=ki(t.reset(t.model,t.ecmodel,t.api,t.payload));return e.length>1?y(e,function(t,e){return nh(e)}):vs}function nh(t){return function(e,n){var r=n.data,i=n.resetdefines[t];if(i&&i.dataeach)for(var o=e.start;o=0&&yh(l)?l:.5;var u=t.createradialgradient(a,s,0,a,s,l);return u}function kh(t,e,n){for(var r="radial"===e.type?zh(t,e,n):jh(t,e,n),i=e.colorstops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:d(t)?[t]:m(t)?t:null:null}function ec(t){var e=t.style,n=e.linedash&&e.linewidth>0&&tc(e.linedash,e.linewidth),r=e.linedashoffset;if(n){var i=e.strokenoscale&&t.getlinescale?t.getlinescale():1;i&&1!==i&&(n=y(n,function(t){return t/i}),r/=i)}return[n,r]}function nc(t){var e=t.stroke;return!(null==e||"none"===e||!(t.linewidth>0))}function rc(t){return"string"==typeof t&&"none"!==t}function ic(t){var e=t.fill;return null!=e&&"none"!==e}function oc(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 ac(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 sc(t,e,n){var r=co(e.image,e.__image,n);if(po(r)){var i=t.createpattern(r,e.repeat||"repeat");if("function"==typeof dommatrix&&i&&i.settransform){var o=new dommatrix;o.translateself(e.x||0,e.y||0),o.rotateself(0,0,(e.rotation||0)*uv),o.scaleself(e.scalex||1,e.scaley||1),i.settransform(o)}return i}}function lc(t,e,n,r){var i,o=nc(n),a=ic(n),s=n.strokepercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createpathproxy();var h=e.path||fm,c=e.__dirty;if(!r){var f=n.fill,p=n.stroke,d=a&&!!f.colorstops,g=o&&!!p.colorstops,v=a&&!!f.image,y=o&&!!p.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getboundingrect()),d&&(m=c?kh(t,f,b):e.__canvasfillgradient,e.__canvasfillgradient=m),g&&(_=c?kh(t,p,b):e.__canvasstrokegradient,e.__canvasstrokegradient=_),v&&(x=c||!e.__canvasfillpattern?sc(t,f,e):e.__canvasfillpattern,e.__canvasfillpattern=x),y&&(w=c||!e.__canvasstrokepattern?sc(t,p,e):e.__canvasstrokepattern,e.__canvasstrokepattern=x),d?t.fillstyle=m:v&&(x?t.fillstyle=x:a=!1),g?t.strokestyle=_:y&&(w?t.strokestyle=w:o=!1)}var s=e.getglobalscale();h.setscale(s[0],s[1],e.segmentignorethreshold);var m,t;t.setlinedash&&n.linedash&&(i=ec(e),m=i[0],t=i[1]);var c=!0;(u||c&$v)&&(h.setdpr(t.dpr),l?h.setcontext(null):(h.setcontext(t),c=!1),h.reset(),e.buildpath(h,e.shape,r),h.tostatic(),e.pathupdated()),c&&h.rebuildpath(t,l?s:1),m&&(t.setlinedash(m),t.linedashoffset=t),r||(n.strokefirst?(o&&ac(t,n),a&&oc(t,n)):(a&&oc(t,n),o&&ac(t,n))),m&&t.setlinedash([])}function uc(t,e,n){var r=e.__image=co(n.image,e.__image,e,e.onload);if(r&&po(r)){var i=n.x||0,o=n.y||0,a=e.getwidth(),s=e.getheight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.swidth&&n.sheight){var u=n.sx||0,h=n.sy||0;t.drawimage(r,u,h,n.swidth,n.sheight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,f=s-h;t.drawimage(r,u,h,c,f,i,o,a,s)}else t.drawimage(r,i,o,a,s)}}function hc(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||fg,t.textalign=n.textalign,t.textbaseline=n.textbaseline;var o=void 0,a=void 0;t.setlinedash&&n.linedash&&(r=ec(e),o=r[0],a=r[1]),o&&(t.setlinedash(o),t.linedashoffset=a),n.strokefirst?(nc(n)&&t.stroketext(i,n.x,n.y),ic(n)&&t.filltext(i,n.x,n.y)):(ic(n)&&t.filltext(i,n.x,n.y),nc(n)&&t.stroketext(i,n.x,n.y)),o&&t.setlinedash([])}}function cc(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){mc(t,i),o=!0;var a=math.max(math.min(e.opacity,1),0);t.globalalpha=isnan(a)?gm.opacity:a}(r||e.blend!==n.blend)&&(o||(mc(t,i),o=!0),t.globalcompositeoperation=e.blend||gm.blend);for(var s=0;so;o++){var l=r[o];l.beforebrush&&l.beforebrush(),l.innerbeforebrush(),wc(t,l,s,o===a-1),l.innerafterbrush(),l.afterbrush&&l.afterbrush(),s.prevel=l}for(var u=0,h=i.length;h>u;u++){var l=i[u];l.beforebrush&&l.beforebrush(),l.innerbeforebrush(),wc(t,l,s,u===h-1),l.innerafterbrush(),l.afterbrush&&l.afterbrush(),s.prevel=l}e.cleartemporaldisplayables(),e.notclear=!0,t.restore()}function sc(t,e){function n(t){function e(){for(var t=1,e=0,n=y.length;n>e;++e)t=mi(t,y[e]);for(var r=1,e=0,n=v.length;n>e;++e)r=mi(r,v[e].length);t*=r;var i=m*y.length*v.length;return{width:math.max(1,math.min(t,s.maxtilewidth)),height:math.max(1,math.min(i,s.maxtileheight))}}function n(){function t(t,e,n,a,l){var u=o?1:r,h=xh(l,t*u,e*u,n*u,a*u,s.color,s.symbolkeepaspect);if(o){var c=i.painter.renderonetovnode(h);c&&x.children.push(c)}else xc(p,h)}p&&(p.clearrect(0,0,_.width,_.height),s.backgroundcolor&&(p.fillstyle=s.backgroundcolor,p.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(y%2===0){var m=.5*(1-s.symbolsize),t=f+d[h][y]*m,c=a+g[l]*m,k=d[h][y]*s.symbolsize,d=g[l]*s.symbolsize,i=b/2%v[c].length;t(t,c,k,d,v[c][i])}f+=d[h][y],++b,++y,y===d[h].length&&(y=0)}++h,h===d.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[r],l=!0,u=0;u=0)){pt.push(n);var o=fs.wrapstagehandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function jc(t,e){ct[t]=e}function tf(t){i({createcanvas:t})}function ef(t,e,n){var r=lc("registermap");r&&r(t,e,n)}function nf(t){var e=lc("getmap");return e&&e(t)}function rf(t){return null==t?0:t.length||1}function of(t){return t}function af(t,e){var n={},r=n.encode={},i=y(),o=[],a=[],s={};v(t.dimensions,function(e){var n=t.getdimensioninfo(e),l=n.coorddim;if(l){var u=n.coorddimindex;sf(r,l)[u]=e,n.isextracoord||(i.set(l,1),uf(n.type)&&(o[0]=e),sf(s,l)[u]=t.getdimensionindex(n.name)),n.defaulttooltip&&a.push(e)}mb.each(function(t,e){var i=sf(r,e),o=n.otherdims[e];null!=o&&o!==!1&&(i[o]=n.name)})});var l=[],u={};i.each(function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)}),n.datadimsoncoord=l,n.datadimindicesoncoord=y(l,function(e){return t.getdimensioninfo(e).storedimindex}),n.encodefirstdimnotextra=u;var h=r.label;h&&h.length&&(o=h.slice());var c=r.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),r.defaultedlabel=o,r.defaultedtooltip=a,n.useroutput=new gt(s,e),n}function sf(t,e){return t.hasownproperty(e)||(t[e]=[]),t[e]}function lf(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function uf(t){return!("ordinal"===t||"time"===t)}function hf(t){return t instanceof jt}function cf(t){for(var e=y(),n=0;n<(t||[]).length;n++){var r=t[n],i=i(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function ff(t){var e=xt(t);return e.dimnamemap||(e.dimnamemap=cf(t.dimensionsdefine))}function pf(t){return t>30}function df(t,e){return gf(t,e).dimensions}function gf(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],r=i(n)?n:{name:n},i=new qt,o=r.name;null!=o&&null!=d.get(o)&&(i.name=i.displayname=o),null!=r.type&&(i.type=r.type),null!=r.displayname&&(i.displayname=r.displayname);var s=l.length;return m[t]=s,i.storedimindex=t,l.push(i),i}return l[e]}function r(t,e,n){null!=mb.get(e)?t.otherdims[e]=n:(t.coorddim=e,t.coorddimindex=n,s.set(e,!0))}function i(t){null==t.name&&(t.name=t.coorddim)}du(t)||(t=au(t)),e=e||{};var o=e.coorddimensions||[],a=e.dimensionsdefine||t.dimensionsdefine||[],s=y(),l=[],u=yf(t,o,a,e.dimensionscount),f=e.canomitunuseddimensions&&pf(u),p=a===t.dimensionsdefine,d=p?ff(t):cf(a),g=e.encodedefine;!g&&e.encodedefaulter&&(g=e.encodedefaulter(t,u));for(var y=y(g),m=new ys(u),_=0;__;_++)n(_);y.each(function(t,e){var i=ki(t).slice();if(1===i.length&&!c(i[0])&&i[0]<0)return void y.set(e,!1);var o=y.set(e,[]);v(i,function(t,i){var a=c(t)?d.get(t):t;null!=a&&u>a&&(o[i]=a,r(n(a),e,i))})});var x=0;v(o,function(t){var e,i,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,i=a.dimsdef,o=a.otherdims,a.name=a.coorddim=a.coorddimindex=a.dimsdef=a.otherdims=null}var l=y.get(e);if(l!==!1){if(l=ki(l),!l.length)for(var f=0;f<(i&&i.length||1);f++){for(;u>x&&null!=n(x).coorddim;)x++;u>x&&l.push(x++)}v(l,function(t,s){var l=n(t);if(p&&null!=a.type&&(l.type=a.type),r(c(l,a),e,s),null==l.name&&i){var u=i[s];!i(u)&&(u={name:u}),l.name=l.displayname=u.name,l.defaulttooltip=u.defaulttooltip}o&&c(l.otherdims,o)})}});var w=e.generatecoord,b=e.generatecoordcount,s=null!=b;b=w?b||1:0;var m=w||"value";if(f)v(l,function(t){i(t)}),l.sort(function(t,e){return t.storedimindex-e.storedimindex});else for(var t=0;u>t;t++){var k=n(t),d=k.coorddim;null==d&&(k.coorddim=mf(m,s,s),k.coorddimindex=0,(!w||0>=b)&&(k.isextracoord=!0),b--),i(k),null!=k.type||yl(t,t)!==kb.must&&(!k.isextracoord||null==k.otherdims.itemname&&null==k.otherdims.seriesname)||(k.type="ordinal")}return vf(l),new jt({source:t,dimensions:l,fulldimensioncount:u,dimensionomitted:f})}function vf(t){for(var e=y(),n=0;n0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function yf(t,e,n,r){var i=math.max(t.dimensionsdetectedcount||1,e.length,n.length,r||0);return v(e,function(t){var e;i(t)&&(e=t.dimsdef)&&(i=math.max(i,e.length))}),i}function mf(t,e,n){if(n||e.haskey(t)){for(var r=0;e.haskey(t+r);)r++;t+=r}return e.set(t,!0),t}function _f(t){var e=t.get("coordinatesystem"),n=new rc(e),r=ic[e];return r?(r(t,n,n.axismap,n.categoryaxismap),n):void 0}function xf(t){return"category"===t.get("type")}function wf(t,e,n){n=n||{};var r,i,o,a=n.byindex,s=n.stackedcoorddimension;bf(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,h,c,f=!(!t||!t.get("stack"));if(v(r,function(t,e){c(t)&&(r[e]=t={name:t}),f&&!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 p=u.coorddim,d=u.type,g=0;v(r,function(t){t.coorddim===p&&g++});var y={name:h,coorddim:p,coorddimindex:g,type:d,isextracoord:!0,iscalculationcoord:!0,storedimindex:r.length},m={name:c,coorddim:c,coorddimindex:g+1,type:d,isextracoord:!0,iscalculationcoord:!0,storedimindex:r.length+1};i?(o&&(y.storedimindex=o.ensurecalculationdimension(c,d),m.storedimindex=o.ensurecalculationdimension(h,d)),i.appendcalculationdimension(y),i.appendcalculationdimension(m)):(r.push(y),r.push(m))}return{stackeddimension:u&&u.name,stackedbydimension:l&&l.name,isstackedbyindex:a,stackedoverdimension:c,stackresultdimension:h}}function bf(t){return!hf(t.schema)}function sf(t,e){return!!e&&e===t.getcalculationinfo("stackeddimension")}function mf(t,e){return sf(t,e)?t.getcalculationinfo("stackresultdimension"):e}function tf(t,e){var n,r=t.get("coordinatesystem"),i=gb.get(r);return e&&e.coordsysdims&&(n=y(e.coordsysdims,function(t){var n={name:t},r=e.axismap.get(t);if(r){var i=r.get("type");n.type=lf(i)}return n})),n||(n=i&&(i.getdimensionsinfo?i.getdimensionsinfo():i.dimensions.slice())||["x","y"]),n}function cf(t,e,n){var r,i;return n&&v(t,function(t,o){var a=t.coorddim,s=n.categoryaxismap.get(a);s&&(null==r&&(r=o),t.ordinalmeta=s.getordinalmeta(),e&&(t.createinvertedindices=!0)),null!=t.otherdims.itemname&&(i=!0)}),i||null==r||(t[r].otherdims.itemname=0),r}function kf(t,e,n){n=n||{};var r,i=e.getsourcemanager(),o=!1;t?(o=!0,r=au(t)):(r=i.getsource(),o=r.sourceformat===_b);var a=_f(e),s=tf(e,a),l=n.useencodedefaulter,u=t(l)?l:l?s(ul,s,e):null,h={coorddimensions:s,generatecoord:n.generatecoord,encodedefine:e.getencode(),encodedefaulter:u,canomitunuseddimensions:!o},c=gf(r,h),f=cf(c.dimensions,n.createinvertedindices,a),p=o?null:i.getshareddatastore(c),d=wf(e,{schema:c,store:p}),g=new nc(c,e);g.setcalculationinfo(d);var v=null!=f&&df(r)?function(t,e,n,r){return r===f?n:this.defaultdimvaluegetter(t,e,n,r)}:null;return g.hasitemoption=!1,g.initdata(o?r:p,null,v),g}function df(t){if(t.sourceformat===_b){var e=if(t.data||[]); return!m(ii(e))}}function if(t){for(var e=0;ea&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalprecision=of(a),l=i.nicetickextent=[ii(math.ceil(t[0]/a)*a,s),ii(math.floor(t[1]/a)*a,s)];return rf(l,t),i}function of(t){return ai(t)+2}function pf(t,e,n){t[e]=math.max(math.min(t[e],n[1]),n[0])}function rf(t,e){!isfinite(t[0])&&(t[0]=e[0]),!isfinite(t[1])&&(t[1]=e[1]),pf(t,0,e),pf(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function nf(t,e){return t>=e[0]&&t<=e[1]}function bf(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function ef(t,e){return t*(e[1]-e[0])+e[0]}function zf(t){return t.get("stack")||cc+t.seriesindex}function ff(t){return t.dim+t.index}function vf(t,e){var n=[];return e.eachseriesbytype(t,function(t){qf(t)&&n.push(t)}),n}function hf(t){var e={};v(t,function(t){var n=t.coordinatesystem,r=n.getbaseaxis();if("time"===r.type||"value"===r.type)for(var i=t.getdata(),o=r.dim+"_"+r.index,a=i.getdimensionindex(i.mapdimension(r.dim)),s=i.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 r in e)if(e.hasownproperty(r)){var i=e[r];if(i){i.sort(function(t,e){return t-e});for(var o=null,a=1;a0&&(o=null===o?s:math.min(o,s))}n[r]=o}}return n}function wf(t){var e=hf(t),n=[];return v(t,function(t){var r,i=t.coordinatesystem,o=i.getbaseaxis(),a=o.getextent();if("category"===o.type)r=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]);r=l?u/c*l:u}else{var f=t.getdata();r=math.abs(a[1]-a[0])/f.count()}var p=ri(t.get("barwidth"),r),d=ri(t.get("barmaxwidth"),r),g=ri(t.get("barminwidth")||(xf(t)?.5:1),r),v=t.get("bargap"),y=t.get("barcategorygap");n.push({bandwidth:r,barwidth:p,barmaxwidth:d,barminwidth:g,bargap:v,barcategorygap:y,axiskey:ff(o),stackid:zf(t)})}),uf(n)}function uf(t){var e={};v(t,function(t){var n=t.axiskey,r=t.bandwidth,i=e[n]||{bandwidth:r,remainedwidth:r,autowidthcount:0,categorygap:null,gap:"20%",stacks:{}},o=i.stacks;e[n]=i;var a=t.stackid;o[a]||i.autowidthcount++,o[a]=o[a]||{width:0,maxwidth:0};var s=t.barwidth;s&&!o[a].width&&(o[a].width=s,s=math.min(i.remainedwidth,s),i.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&&(i.gap=h);var c=t.barcategorygap;null!=c&&(i.categorygap=c)});var n={};return v(e,function(t,e){n[e]={};var r=t.stacks,i=t.bandwidth,o=t.categorygap;if(null==o){var a=w(r).length;o=math.max(35-4*a,15)+"%"}var s=ri(o,i),l=ri(t.gap,1),u=t.remainedwidth,h=t.autowidthcount,c=(u-s)/(h+(h-1)*l);c=math.max(c,0),v(r,function(t){var e=t.maxwidth,n=t.minwidth;if(t.width){var r=t.width;e&&(r=math.min(r,e)),n&&(r=math.max(r,n)),t.width=r,u-=r+l*r,h--}else{var r=c;e&&r>e&&(r=math.min(e,u)),n&&n>r&&(r=n),r!==c&&(t.width=r,u-=r+l*r,h--)}}),c=(u-s)/(h+(h-1)*l),c=math.max(c,0);var f,p=0;v(r,function(t){t.width||(t.width=c),f=t,p+=t.width*(1+l)}),f&&(p-=f.width*l);var d=-p/2;v(r,function(t,r){n[e][r]=n[e][r]||{bandwidth:i,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function gf(t,e,n){if(t&&e){var r=t[ff(e)];return null!=r&&null!=n?r[zf(n)]:r}}function qf(t){return t.coordinatesystem&&"cartesian2d"===t.coordinatesystem.type}function xf(t){return t.pipelinecontext&&t.pipelinecontext.large}function yf(t,e,n,r){var i=di(e),o=di(n),a=function(t){return fl(i,t,r)===fl(o,t,r)},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")},f=function(){return c()&&a("second")},p=function(){return f()&&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 f();case"millisecond":return p()}}function jf(t){return t/=qw,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function zf(t){var e=30*qw;return t/=e,t>6?6:t>3?3:t>2?2:1}function kf(t){return t/=$w,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function $f(t,e){return t/=e?kw:zw,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function qf(t){return yi(t,!0)}function jf(t,e,n){var r=new date(t);switch(al(e)){case"year":case"month":r[wl(n)](0);case"day":r[bl(n)](1);case"hour":r[sl(n)](0);case"minute":r[ml(n)](0);case"second":r[tl(n)](0),r[cl(n)](0)}return r.gettime()}function tp(t,e,n,r){function i(t,e,n,i,o,a,s){for(var l=new date(e),u=e,h=l[i]();n>u&&u<=r[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(!yf(al(t),r[0],r[1],n)){l&&(o=[{value:jf(new date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-f})}}for(var u=0;u=r[0]&&x<=r[1]&&c++)}var w=(r[1]-r[0])/e;if(c>1.5*w&&f>w/1.5)break;if(u.push(v),c>w||t===s[p])break}h=[]}}}for(var b=_(y(u,function(t){return _(t,function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notadd})}),function(t){return t.length>0}),s=[],m=b.length-1,p=0;p=0||(ac.push(t),t(t)&&(t={install:t}),t.install(lc)))}function yp(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,r+=(a+u)*h,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}function bp(t){if(!t.utf8encoding)return t;var e=t,n=e.utf8scale;null==n&&(n=1024);var r=e.features;return v(r,function(t){var e=t.geometry,r=e.encodeoffsets,i=e.coordinates;if(r)switch(e.type){case"linestring":e.coordinates=mp(i,r,n);break;case"polygon":sp(i,r,n);break;case"multilinestring":sp(i,r,n);break;case"multipolygon":v(i,function(t,e){return sp(t,r[e],n)})}}),e.utf8encoding=!1,e}function sp(t,e,n){for(var r=0;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function tp(t,e){return t=bp(t),y(_(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"polygon":var o=r.coordinates;i.push(new nc(o[0],o.slice(1)));break;case"multipolygon":v(r.coordinates,function(t){t[0]&&i.push(new nc(t[0],t.slice(1)))});break;case"linestring":i.push(new bc([r.coordinates]));break;case"multilinestring":i.push(new bc(r.coordinates))}var a=new ec(n[e||"name"],i,n.cp);return a.properties=n,a})}function cp(t){return"category"===t.type?dp(t):lp(t)}function kp(t,e){return"category"===t.type?ap(t,e):{ticks:y(t.scale.getticks(),function(t){return t.value})}}function dp(t){var e=t.getlabelmodel(),n=ip(t,e);return!e.get("show")||t.scale.isblank()?{labels:[],labelcategoryinterval:n.labelcategoryinterval}:n}function ip(t,e){var n=op(t,"labels"),r=hp(e),i=pp(n,r);if(i)return i;var o,a;return t(r)?o=fp(t,r):(a="auto"===r?np(t):r,o=zp(t,a)),rp(n,r,{labels:o,labelcategoryinterval:a})}function ap(t,e){var n=op(t,"ticks"),r=hp(e),i=pp(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isblank())&&(o=[]),t(r))o=fp(t,r,!0);else if("auto"===r){var s=ip(t,t.getlabelmodel());a=s.labelcategoryinterval,o=y(s.labels,function(t){return t.tickvalue})}else a=r,o=zp(t,a,!0);return rp(n,r,{ticks:o,tickcategoryinterval:a})}function lp(t){var e=t.scale.getticks(),n=lp(t);return{labels:y(e,function(e,r){return{level:e.level,formattedlabel:n(e,r),rawlabel:t.scale.getlabel(e),tickvalue:e.value}})}}function op(t,e){return uc(t)[e]||(uc(t)[e]=[])}function pp(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(r)),c=math.abs(u*math.sin(r)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,v=nr(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,f=math.max(f,d,7),p=math.max(p,g,7)}var y=f/h,m=p/c;isnan(y)&&(y=1/0),isnan(m)&&(m=1/0);var _=math.max(0,math.floor(math.min(y,m))),x=uc(t.model),w=t.getextent(),b=x.lastautointerval,s=x.lasttickcount;return null!=b&&null!=s&&math.abs(b-_)<=1&&math.abs(s-a)<=1&&b>_&&x.axisextent0===w[0]&&x.axisextent1===w[1]?_=b:(x.lasttickcount=a,x.lastautointerval=_,x.axisextent0=w[0],x.axisextent1=w[1]),_}function ep(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 zp(t,e,n){function r(t){var e={value:t};l.push(n?t:{formattedlabel:i(e),rawlabel:o.getlabel(e),tickvalue:t})}var i=lp(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 f=cp(t),p=s.get("showminlabel")||f,d=s.get("showmaxlabel")||f;p&&h!==a[0]&&r(a[0]);for(var g=h;g<=a[1];g+=u)r(g);return d&&g-u!==a[1]&&r(a[1]),l}function fp(t,e,n){var r=t.scale,i=lp(t),o=[];return v(r.getticks(),function(t){var a=r.getlabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedlabel:i(t),rawlabel:a,tickvalue:s})}),o}function vp(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function hp(t,e,n,r){function i(t,e){return t=ii(t),e=ii(e),f?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;v(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 f=l[0]>l[1];i(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&i(l[0],e[0].coord)&&e.unshift({coord:l[0]}),i(l[1],a.coord)&&(r?a.coord=l[1]:e.pop()),r&&i(a.coord,l[1])&&e.push({coord:l[1]})}}function wp(t){var e=fb.extend(t);return fb.registerclass(e),e}function up(t){var e=ts.extend(t);return ts.registerclass(e),e}function gp(t){var e=ms.extend(t);return ms.registerclass(e),e}function qp(t){var e=ds.extend(t);return ds.registerclass(e),e}function xp(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function yp(t,e,n,r,i,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(r-i)%xc<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var f=r;r=no(i),i=no(f)}else r=no(r),i=no(i);r>i&&(i+=xc);var p=math.atan2(s,a);if(0>p&&(p+=xc),p>=r&&i>=p||p+xc>=r&&i>=p+xc)return l[0]=h,l[1]=c,u-n;var d=n*math.cos(r)+t,g=n*math.sin(r)+e,v=n*math.cos(i)+t,y=n*math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return _>m?(l[0]=d,l[1]=g,math.sqrt(m)):(l[0]=v,l[1]=y,math.sqrt(_))}function jp(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,h=n-t,c=r-e,f=math.sqrt(h*h+c*c);h/=f,c/=f;var p=l*h+u*c,d=p/f;s&&(d=math.min(math.max(d,0),1)),d*=f;var g=a[0]=t+d*h,v=a[1]=e+d*c;return math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function zp(t,e,n,r,i,o,a){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=math.min(math.max(i,t),s),h=a[1]=math.min(math.max(o,e),l);return math.sqrt((u-i)*(u-i)+(h-o)*(h-o))}function kp(t,e,n){var r=zp(e.x,e.y,e.width,e.height,t.x,t.y,zc);return n.set(zc[0],zc[1]),r}function $p(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,f=t.y,p=0;p=p&&(s=r,l=i);var s=(c-v)*_/m+v;g=yp(v,y,_,x,x+w,b,s,f,zc),o=math.cos(x+w)*m+v,a=math.sin(x+w)*_+y;break;case yc.r:s=o=h[p++],l=a=h[p++];var m=h[p++],t=h[p++];g=zp(s,l,m,t,c,f,zc);break;case yc.z:g=jp(o,a,s,l,c,f,zc,!0),o=s,a=l}u>g&&(u=g,n.set(zc[0],zc[1]))}return u}function qp(t,e){if(t){var n=t.gettextguideline(),r=t.gettextcontent();if(r&&n){var i=t.textguidelineconfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||jc,s=r.getboundingrect().clone();s.applytransform(r.getcomputedtransform());var l=1/0,u=i.anchor,h=t.getcomputedtransform(),c=h&&ue([],h),f=e.get("length2")||0;u&&qc.copy(u);for(var p=0;pv&&(l=v,$c.transform(h),qc.transform(h),qc.toarray(o[0]),$c.toarray(o[1]),kc.toarray(o[2]))}jp(o,e.get("minturnangle")),n.setshape({points:o})}}}function jp(t,e){if(180>=e&&e>0){e=e/180*math.pi,kc.fromarray(t[0]),$c.fromarray(t[1]),qc.fromarray(t[2]),av.sub(jc,kc,$c),av.sub(tk,qc,$c);var n=jc.len(),r=tk.len();if(!(.001>n||.001>r)){jc.scale(1/n),tk.scale(1/r);var i=jc.dot(tk),o=math.cos(e);if(i>o){var a=jp($c.x,$c.y,qc.x,qc.y,kc.x,kc.y,ek,!1);nk.fromarray(ek),nk.scaleandadd(tk,a/math.tan(math.pi-e));var s=qc.x!==$c.x?(nk.x-$c.x)/(qc.x-$c.x):(nk.y-$c.y)/(qc.y-$c.y);if(isnan(s))return;0>s?av.copy(nk,$c):s>1&&av.copy(nk,qc),nk.toarray(t[1])}}}}function td(t,e,n){if(180>=n&&n>0){n=n/180*math.pi,kc.fromarray(t[0]),$c.fromarray(t[1]),qc.fromarray(t[2]),av.sub(jc,$c,kc),av.sub(tk,qc,$c);var r=jc.len(),i=tk.len();if(!(.001>r||.001>i)){jc.scale(1/r),tk.scale(1/i);var o=jc.dot(e),a=math.cos(n);if(a>o){var s=jp($c.x,$c.y,qc.x,qc.y,kc.x,kc.y,ek,!1);nk.fromarray(ek);var l=math.pi/2,u=math.acos(tk.dot(e)),h=l+u-n;if(h>=l)av.copy(nk,qc);else{nk.scaleandadd(tk,s/math.tan(math.pi/2-h));var c=qc.x!==$c.x?(nk.x-$c.x)/(qc.x-$c.x):(nk.y-$c.y)/(qc.y-$c.y);if(isnan(c))return;0>c?av.copy(nk,$c):c>1&&av.copy(nk,qc)}nk.toarray(t[1])}}}}function ed(t,e,n,r){var i="normal"===n,o=i?t:t.ensurestate(n);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getmodel("linestyle").getlinestyle();i?t.usestyle(s):o.style=s}function nd(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveto(r[0][0],r[0][1]),n>0&&r.length>=3){var i=pv(r[0],r[1]),o=pv(r[1],r[2]);if(!i||!o)return t.lineto(r[1][0],r[1][1]),void t.lineto(r[2][0],r[2][1]);var a=math.min(i,o)*n,s=ve([],r[1],r[0],a/i),l=ve([],r[1],r[2],a/o),u=ve([],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],r[2][0],r[2][1])}else for(var h=1;ht){var r=math.min(e,-t);if(r>0){l(r*n,0,c);var i=r+t;0>i&&u(-i*n,1)}else u(-t*n,1)}}function l(n,r,i){0!==n&&(d=!0);for(var o=r;i>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(r,i){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 f=math.min(math.abs(r)/a,i);if(r>0)for(var s=0;c-1>s;s++){var p=o[s]*f;l(p,0,s+1)}else for(var s=c-1;s>0;s--){var p=o[s-1]*f;l(-p,s,c)}}}function h(t){var e=0>t?-1:1;t=math.abs(t);for(var n=math.ceil(t/(c-1)),r=0;c-1>r;r++)if(e>0?l(n,0,r+1):l(-n,c-r-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 f,p=0,d=!1,g=[],v=0,y=0;c>y;y++){var m=t[y],_=m.rect;f=_[e]-p,0>f&&(_[e]-=f,m.label[e]-=f,d=!0);var x=math.max(-f,0);g.push(x),v+=x,p=_[e]+_[n]}v>0&&o&&l(-v/c,0,c);var w,b,s=t[0],m=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function sd(t,e,n,r){return ad(t,"x","width",e,n,r)}function ld(t,e,n,r){return ad(t,"y","height",e,n,r)}function ud(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 r=new fv(0,0,0,0),i=0;ir?(r=c,_-=c):x+=t;var i=w+b*r;e.setitemlayout(n,{angle:r,startangle:w,endangle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?ni(t,m,[u,l]):l}),w=i}),mk>_&&f)if(.001>=_){var s=mk/f;e.each(r,function(t,n){if(!isnan(t)){var r=e.getitemlayout(n);r.angle=s,r.startangle=h+b*n*s,r.endangle=h+b*(n+1)*s}})}else d=_/x,w=h,e.each(r,function(t,n){if(!isnan(t)){var r=e.getitemlayout(n),i=r.angle===c?c:t*d;r.startangle=w,r.endangle=w+b*i,w+=b*i}})})}function bd(t){return{seriestype:t,reset:function(t,e){var n=e.findcomponents({maintype:"legend"});if(n&&n.length){var r=t.getdata();r.filterself(function(t){for(var e=r.getname(t),i=0;in?a:o,c=math.abs(l.label.y-n);if(c>=u.maxy){var f=l.label.x-e-l.len2*i,p=r+l.len,d=math.abs(f)p;p++)if("outer"===t[p].position&&"labelline"===t[p].labelalignto){var d=t[p].label.x-u;t[p].linepoints[1][0]+=d,t[p].label.x=u}ld(t,l,l+a)&&c(t)}}function md(t,e,n,r,i,o,a,s){for(var l=[],u=[],h=number.max_value,c=-number.max_value,f=0;fe||n){var c=o.height;if(u&&u.match("break")){r.setstyle("backgroundcolor",null),r.setstyle("width",e-l);var f=r.getboundingrect();r.setstyle("width",math.ceil(f.width)),r.setstyle("backgroundcolor",a)}else{var p=e-l,d=h>e?p:n?p>t.unconstrainedwidth?null:p:null;r.setstyle("width",d)}var g=r.getboundingrect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-c)/2}}}function cd(t){return"center"===t.position}function kd(t){function e(t){t.ignore=!0}function n(t){if(!t.ignore)return!0;for(var e in t.states)if(t.states[e].ignore===!1)return!0;return!1}var r,i,o=t.getdata(),a=[],s=!1,l=(t.get("minshowlabelangle")||0)*xk,u=o.getlayout("viewrect"),h=o.getlayout("r"),c=u.width,f=u.x,p=u.y,d=u.height;o.each(function(t){var u=o.getitemgraphicel(t),p=u.shape,d=u.gettextcontent(),g=u.gettextguideline(),y=o.getitemmodel(t),m=y.getmodel("label"),_=m.get("position")||y.get(["emphasis","label","position"]),x=m.get("distancetolabelline"),w=m.get("alignto"),b=ri(m.get("edgedistance"),c),s=m.get("bleedmargin"),m=y.getmodel("labelline"),t=m.get("length");t=ri(t,c);var c=m.get("length2");if(c=ri(c,c),math.abs(p.endangle-p.startangle)p?-1:1)*c,h=f;k="edge"===w?0>p?f+b:f+c-b:v+(0>p?-x:x),i=h,a=[[b,e],[z,f],[v,h]]}l=n?"center":"edge"===w?p>0?"right":"left":p>0?"left":"right"}var w=math.pi,u=0,g=m.get("rotate");if(d(g))u=g*(w/180);else if("center"===_)u=0;else if("radial"===g||g===!0){var q=0>p?-o+w:-o;u=q}else if("tangential"===g&&"outside"!==_&&"outer"!==_){var x=math.atan2(p,r);0>x&&(x=2*w+x);var y=r>0;y&&(x=w+x),u=x-w}if(s=!!u,d.x=k,d.y=i,d.rotation=u,d.setstyle({verticalalign:"middle"}),n){d.setstyle({align:l});var j=d.states.select;j&&(j.x+=d.x,j.y+=d.y)}else{var z=d.getboundingrect().clone();z.applytransform(d.getcomputedtransform());var k=(d.style.margin||0)+2.1;z.y-=k/2,z.height+=k,a.push({label:d,labelline:g,position:_,len:t,len2:c,minturnangle:m.get("minturnangle"),maxsurfaceangle:m.get("maxsurfaceangle"),surfacenormal:new av(p,r),linepoints:a,textalign:l,labeldistance:x,labelalignto:w,edgedistance:b,bleedmargin:s,rect:z,unconstrainedwidth:z.width,labelstylewidth:d.style.width})}u.settextconfig({inside:n})}}),!s&&t.get("avoidlabeloverlap")&&md(a,r,i,h,c,d,f,p);for(var g=0;gr?!1:!0})}}}function ld(t){t.registerchartview(bk),t.registerseriesmodel(tk),hh("pie",t.registeraction),t.registerlayout(s(wd,"pie")),t.registerprocessor(bd("pie")),t.registerprocessor(ad("pie"))}function od(t){var e=t.fill;return null!=e&&e!==ok}function pd(t){var e=t.stroke;return null!=e&&e!==ok}function rd(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof f_)return void t("opacity",i);if(od(e)){var o=xn(e.fill);t("fill",o.color);var a=null!=e.fillopacity?e.fillopacity*o.opacity*i:o.opacity*i;(r||1>a)&&t("fill-opacity",a)}else t("fill",ok);if(pd(e)){var s=xn(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*i:s.opacity*i,c=e.strokefirst;if((r||1!==u)&&t("stroke-width",u),(r||c)&&t("paint-order",c?"stroke":"fill"),(r||1>h)&&t("stroke-opacity",h),e.linedash){var f=ec(n),p=f[0],d=f[1];p&&(d=pk(d||0),t("stroke-dasharray",p.join(",")),(d||r)&&t("stroke-dashoffset",d))}else r&&t("stroke-dasharray",ok);for(var g=0;g"}function zd(t){return""}function fd(t,e){function n(t){var e=t.children,i=t.tag,o=t.attrs,a=t.text;return ed(i,o)+("style"!==i?ce(a):a||"")+(e?""+r+y(e,function(t){return n(t)}).join(r)+r:"")+zd(i)}e=e||{};var r=e.newline?"\n":"";return n(t)}function vd(t,e,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=y(w(t),function(e){return e+i+y(w(t[e]),function(n){return n+":"+t[e][n]+";"}).join(r)+o}).join(r),s=y(w(e),function(t){return"@keyframes "+t+i+y(w(e[t]),function(n){return n+i+y(w(e[t][n]),function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"}).join(r)+o}).join(r)+o}).join(r);return a||s?[""].join(r):""}function hd(t){return{zrid:t,shadowcache:{},patterncache:{},gradientcache:{},clippathcache:{},defs:{},cssnodes:{},cssanims:{},cssclassidx:0,cssanimidx:0,shadowidx:0,gradientidx:0,patternidx:0,clippathidx:0}}function wd(t,e,n,r){return bd("svg","root",{width:t,height:e,xmlns:bk,"xmlns:xlink":ek,version:"1.1",baseprofile:"full",viewbox:r?"0 0 "+t+" "+e:!1},n)}function ud(t,e,n){var r=h({},t.shape);h(r,e),t.buildpath(n,r);var i=new lk;return i.reset(sr(t)),n.rebuildpath(i,1),i.generatestr(),i.getstr()}function gd(t,e){var n=e.originx,r=e.originy;(n||r)&&(t[hk]=n+"px "+r+"px")}function qd(t,e){var n=e.zrid+"-ani-"+e.cssanimidx++;return e.cssanims[n]=t,n}function xd(t,e,n){var r,i,o=t.shape.paths,a={};if(v(o,function(t){var e=hd(n.zrid);e.animation=!0,jd(t,{},e,!0);var o=e.cssanims,s=e.cssnodes,l=w(o),u=l.length;if(u){i=l[u-1];var h=o[i];for(var c in h){var f=h[c];a[c]=a[c]||{d:""},a[c].d+=f.d||""}for(var p in s){var d=s[p].animation;d.indexof(i)>=0&&(r=d)}}}),r){e.d=!1;var s=qd(a,n);return r.replace(i,s)}}function yd(t){return c(t)?vk[t]?"cubic-bezier("+vk[t]+")":sn(t)?t:"":""}function jd(t,e,n,r){function i(i){function o(t,e,n){for(var r=t.gettracks(),i=t.getmaxtime(),o=0;op;p++){var d=a[p],g=d.targetname;g?"shape"===g&&o(d,u):!r&&o(d,l)}for(var v in l){var y={};or(y,t),h(y,l[v]);var m=lr(y),x=l[v][f];c[v]=m?{transform:m}:{},gd(c[v],y),x&&(c[v][f]=x)}var b,s=!0;for(var v in u){c[v]=c[v]||{};var m=!b,x=u[v][f];m&&(b=new s_);var t=b.len();b.reset(),c[v].d=ud(t,u[v],b);var k=b.len();if(!m&&t!==k){s=!1;break}x&&(c[v][f]=x)}if(!s)for(var v in c)delete c[v].d;if(!r)for(var p=0;s>p;p++){var d=a[p],g=d.targetname;"style"===g&&o(d,c,function(t){return wk[t]})}for(var i,a=w(c),l=!0,p=1;p0}).length){var r=qd(c,n);return r+" "+i[0]+" both"}}var o=t.animators,a=o.length,s=[];if(t instanceof sw){var l=xd(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 f=o[c],p=[f.getmaxtime()/1e3+"s"],d=yd(f.getclip().easing),g=f.getdelay();p.push(d?d:"linear"),g&&p.push(g/1e3+"s"),f.getloop()&&p.push("infinite");var v=p.join(" ");u[v]=u[v]||[v,[]],u[v][1].push(f)}for(var y in u){var l=i(u[y]);l&&s.push(l)}if(s.length){var m=n.zrid+"-cls-"+n.cssclassidx++;n.cssnodes["."+m]={animation:s.join(",")},e["class"]=m}}function zd(t){return t&&c(t.src)}function kd(t){return t&&t(t.todataurl)}function $d(t,e,n,r){rd(function(i,o){var a="fill"===i||"stroke"===i;a&&or(o)?hg(e,t,i,r):a&&nr(o)?cg(n,t,i,r):t[i]=o},e,n,!1),ug(n,t,r)}function qd(t){return yn(t[0]-1)&&yn(t[1])&&yn(t[2])&&yn(t[3]-1)}function jd(t){return yn(t[4])&&yn(t[5])}function tg(t,e,n){if(e&&(!jd(e)||!qd(e))){var r=n?10:1e4;t.transform=qd(e)?"translate("+uk(e[4]*r)/r+" "+uk(e[5]*r)/r+")":kn(e)}}function eg(t,e,n){for(var r=t.points,i=[],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 f=c.getversion(),p=t,d=p.__svgpathbuilder;p.__svgpathversion===f&&d&&l===p.__svgpathstrokepercent||(d||(d=p.__svgpathbuilder=new lk),d.reset(u),c.rebuildpath(d,l),d.generatestr(),p.__svgpathversion=f,p.__svgpathstrokepercent=l),o.d=d.getstr()}else{s=t.type;var g=math.pow(10,u);i[0](r,o,g)}return tg(o,t.transform),$d(o,n,t,e),e.animation&&jd(t,o,e),bd(s,t.id+"",o)}function ag(t,e){var n=t.style,r=n.image;if(r&&!c(r)&&(zd(r)?r=r.src:kd(r)&&(r=r.todataurl())),r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),tg(l,t.transform),$d(l,n,t,e),e.animation&&jd(t,l,e),bd("image",t.id+"",l)}}function sg(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isnan(n.x)&&!isnan(n.y)){var i=n.font||fg,o=n.x||0,a=$n(n.y||0,zr(i),n.textbaseline),s=my[n.textalign]||n.textalign,l={"dominant-baseline":"central","text-anchor":s};if(jo(n)){var u="",h=n.fontstyle,c=$o(n.fontsize);if(!parsefloat(c))return;var f=n.fontfamily||zg,p=n.fontweight;u+="font-size:"+c+";font-family:"+f+";",h&&"normal"!==h&&(u+="font-style:"+h+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),tg(l,t.transform),$d(l,n,t,e),e.animation&&jd(t,l,e),bd("text",t.id+"",l,void 0,r)}}function lg(t,e){return t instanceof r_?og(t,e):t instanceof f_?ag(t,e):t instanceof b_?sg(t,e):void 0}function ug(t,e,n){var r=t.style;if(qn(r)){var i=jn(t),o=n.shadowcache,a=o[i];if(!a){var s=t.getglobalscale(),l=s[0],u=s[1];if(!l||!u)return;var h=r.shadowoffsetx||0,c=r.shadowoffsety||0,f=r.shadowblur,p=xn(r.shadowcolor),d=p.opacity,g=p.color,v=f/2/l,y=f/2/u,m=v+" "+y;a=n.zrid+"-s"+n.shadowidx++,n.defs[a]=bd("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[bd("fedropshadow","",{dx:h/l,dy:c/u,stddeviation:m,"flood-color":g,"flood-opacity":d})]),o[i]=a}e.filter=ar(a)}}function hg(t,e,n,r){var i,o=t[n],a={gradientunits:o.global?"userspaceonuse":"objectboundingbox"};if(rr(o))i="lineargradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!ir(o))return;i="radialgradient",a.cx=z(o.x,.5),a.cy=z(o.y,.5),a.r=z(o.r,.5)}for(var s=o.colorstops,l=[],u=0,h=s.length;h>u;++u){var c=100*zn(s[u].offset)+"%",f=s[u].color,p=xn(f),d=p.color,g=p.opacity,v={offset:c};v["stop-color"]=d,1>g&&(v["stop-opacity"]=g),l.push(bd("stop",u+"",v))}var y=bd(i,"",a,l),m=fd(y),_=r.gradientcache,x=_[m];x||(x=r.zrid+"-g"+r.gradientidx++,_[m]=x,a.id=x,r.defs[x]=bd(i,x,a,l)),e[n]=ar(x)}function cg(t,e,n,r){var i,o=t.style[n],a=t.getboundingrect(),l={},u=o.repeat,h="no-repeat"===u,c="repeat-x"===u,f="repeat-y"===u;if(tr(o)){var p=o.imagewidth,d=o.imageheight,g=void 0,v=o.image;if(c(v)?g=v:zd(v)?g=v.src:kd(v)&&(g=v.todataurl()),"undefined"==typeof image){var y="image width/height must been given explictly in svg-ssr renderer.";w(p,y),w(d,y)}else if(null==p||null==d){var m=function(t,e){if(t){var n=t.elm,r=p||e.width,i=d||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):f&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setattribute("width",r),n.setattribute("height",i))}},_=co(g,null,t,function(t){h||m(s,t),m(i,t)});_&&_.width&&_.height&&(p=p||_.width,d=d||_.height)}i=bd("image","img",{href:g,width:p,height:d}),l.width=p,l.height=d}else o.svgelement&&(i=s(o.svgelement),l.width=o.svgwidth,l.height=o.svgheight);if(i){var x,w;h?x=w=1:c?(w=1,x=l.width/a.width):f?(x=1,w=l.height/a.height):l.patternunits="userspaceonuse",null==x||isnan(x)||(l.width=x),null==w||isnan(w)||(l.height=w);var b=lr(o);b&&(l.patterntransform=b);var s=bd("pattern","",l,[i]),m=fd(s),t=r.patterncache,k=t[m];k||(k=r.zrid+"-p"+r.patternidx++,t[m]=k,l.id=k,s=r.defs[k]=bd("pattern",k,l,[i])),e[n]=ar(k)}}function fg(t,e,n){var r=n.clippathcache,i=n.defs,o=r[t.id];if(!o){o=n.zrid+"-c"+n.clippathidx++;var a={id:o};r[t.id]=o,i[o]=bd("clippath",o,a,[og(t,n)])}e["clip-path"]=ar(o)}function pg(t){return document.createtextnode(t)}function dg(t,e,n){t.insertbefore(e,n)}function gg(t,e){t.removechild(e)}function vg(t,e){t.appendchild(e)}function yg(t){return t.parentnode}function mg(t){return t.nextsibling}function _g(t,e){t.textcontent=e}function xg(t){return void 0===t}function wg(t){return void 0!==t}function bg(t,e,n){for(var r={},i=e;n>=i;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function sg(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function mg(t){var e,n=t.children,r=t.tag;if(wg(r)){var i=t.elm=nd(r);if(kg(yk,t),m(n))for(e=0;e=r;++r){var o=n[r];null!=o&&dg(t,mg(o),e)}}function cg(t,e,n,r){for(;r>=n;++n){var i=e[n];if(null!=i)if(wg(i.tag)){var o=yg(i.elm);gg(o,i.elm)}else gg(t,i.elm)}}function kg(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setattribute(n,""):a===!1?r.removeattribute(n):n.charcodeat(0)!==xk?r.setattribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setattributens(zk,n,a):n.charcodeat(3)===qk?r.setattributens(fk,n,a):n.charcodeat(5)===qk?r.setattributens(ek,n,a):r.setattribute(n,a))}for(n in i)n in o||r.removeattribute(n)}}function dg(t,e,n){for(var r,i,o,a,s=0,l=0,u=e.length-1,h=e[0],c=e[u],f=n.length-1,p=n[0],d=n[f];u>=s&&f>=l;)null==h?h=e[++s]:null==c?c=e[--u]:null==p?p=n[++l]:null==d?d=n[--f]:sg(h,p)?(ig(h,p),h=e[++s],p=n[++l]):sg(c,d)?(ig(c,d),c=e[--u],d=n[--f]):sg(h,d)?(ig(h,d),dg(t,h.elm,mg(c.elm)),h=e[++s],d=n[--f]):sg(c,p)?(ig(c,p),dg(t,c.elm,h.elm),c=e[--u],p=n[++l]):(xg(r)&&(r=bg(e,s,u)),i=r[p.key],xg(i)?dg(t,mg(p),h.elm):(o=e[i],o.tag!==p.tag?dg(t,mg(p),h.elm):(ig(o,p),e[i]=void 0,dg(t,o.elm,h.elm))),p=n[++l]);(u>=s||f>=l)&&(s>u?(a=null==n[f+1]?null:n[f+1].elm,tg(t,a,n,l,f)):cg(t,e,s,u))}function ig(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(kg(t,e),xg(e.text)?wg(r)&&wg(i)?r!==i&&dg(n,r,i):wg(i)?(wg(t.text)&&_g(n,""),tg(n,null,i,0,i.length-1)):wg(r)?cg(n,r,0,r.length-1):wg(t.text)&&_g(n,""):t.text!==e.text&&(wg(r)&&cg(n,r,0,r.length-1),_g(n,e.text)))}function ag(t,e){if(sg(t,e))ig(t,e);else{var n=t.elm,r=yg(n);mg(e),null!==r&&(dg(r,e.elm,mg(n)),cg(r,[t],0,0))}return e}function lg(){return function(){}}function og(t,e,n,r){var i;if(n&&"none"!==n)if(i=bd("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),or(n))hg({fill:n},i.attrs,"fill",r);else if(nr(n))cg({style:{fill:n},dirty:q,getboundingrect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=xn(n),a=o.color,s=o.opacity;i.attrs.fill=a,1>s&&(i.attrs["fill-opacity"]=s)}return i}var pg=function(t,e){return(pg=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)},rg=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newedge=!1,this.wechat=!1}return t}(),ng=function(){function t(){this.browser=new rg,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}(),bg=new ng;"object"==typeof wx&&"function"==typeof wx.getsysteminfosync?(bg.wxa=!0,bg.toucheventssupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?bg.worker=!0:"undefined"==typeof navigator?(bg.node=!0,bg.svgsupported=!0):n(navigator.useragent,bg);var eg=12,zg="sans-serif",fg=eg+"px "+zg,vg=20,hg=100,wg="007llmw'55;n0500llllllllll00nnnlzww\\\\wqb\\0fwlg\\bwb\\wq\\wrwwq000cl5llfll0ll**f*gllll5f0lf\\fff5.5n",ug=r(wg),gg={createcanvas:function(){return"undefined"!=typeof document&&document.createelement("canvas")},measuretext:function(){var t,e;return function(n,r){if(!t){var i=gg.createcanvas();t=i&&i.getcontext("2d")}if(t)return e!==r&&(e=t.font=r||fg),t.measuretext(n);n=n||"",r=r||fg;var o=/(\d+)px/.exec(r),a=o&&+o[1]||eg,s=0;if(r.indexof("mono")>=0)s=a*n.length;else for(var l=0;li;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}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=r[s];if(!i||!i.filter||null==l.query||i.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 i&&i.aftertrigger&&i.aftertrigger(t),this},t.prototype.triggerwithcontext=function(t){for(var e=[],n=1;nl;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.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 i&&i.aftertrigger&&i.aftertrigger(t),this},t}(),_v=math.log(2),xv="___zreventsaved",wv=/([&<>"'])/g,bv={"&":"&","<":"<",">":">",'"':""","'":"'"},sv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mv=[],tv=bg.browser.firefox&&+bg.browser.version.split(".")[0]<39,cv=function(t){t.preventdefault(),t.stoppropagation(),t.cancelbubble=!0},kv=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 r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;a>o;o++){var s=r[o],l=ke(n,s,{});i.points.push([l.zrx,l.zry]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in dv)if(dv.hasownproperty(e)){var n=dv[e](this._track,t);if(n)return n}},t}(),dv={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=re(r)/re(i);!isfinite(o)&&(o=1),e.pinchscale=o;var a=ne(r);return e.pinchx=a[0],e.pinchy=a[1],{type:"pinch",target:t[0].target,event:e}}}}},iv=(object.freeze||object)({create:be,identity:ee,copy:ze,mul:fe,translate:ve,rotate:he,scale:we,invert:ue,clone:ge}),av=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,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),lv=math.min,ov=math.max,pv=new av,rv=new av,nv=new av,bv=new av,ev=new av,zv=new av,fv=function(){function t(t,e,n,r){0>n&&(t+=n,n=-n),0>r&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=lv(t.x,this.x),n=lv(t.y,this.y);this.width=isfinite(this.x)&&isfinite(this.width)?ov(t.x+t.width,this.x+this.width)-e:t.width,this.height=isfinite(this.y)&&isfinite(this.height)?ov(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,r=t.height/e.height,i=be();return ve(i,i,[-e.x,-e.y]),we(i,i,[n,r]),ve(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(l>o||i>u||h>s||a>c);if(n){var p=1/0,d=0,g=math.abs(o-l),v=math.abs(u-i),y=math.abs(s-h),m=math.abs(c-a),_=math.min(g,v),x=math.min(y,m);l>o||i>u?_>d&&(d=_,v>g?av.set(zv,-g,0):av.set(zv,v,0)):p>_&&(p=_,v>g?av.set(ev,g,0):av.set(ev,-v,0)),h>s||a>c?x>d&&(d=x,m>y?av.set(zv,0,-y):av.set(zv,0,m)):p>_&&(p=_,m>y?av.set(ev,0,y):av.set(ev,0,-m))}return n&&av.copy(n,f?ev:zv),f},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,r){if(!r)return void(e!==n&&t.copy(e,n));if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,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))}pv.x=nv.x=n.x,pv.y=bv.y=n.y,rv.x=bv.x=n.x+n.width,rv.y=nv.y=n.y+n.height,pv.transform(r),bv.transform(r),rv.transform(r),nv.transform(r),e.x=lv(pv.x,rv.x,nv.x,bv.x),e.y=lv(pv.y,rv.y,nv.y,bv.y);var l=ov(pv.x,rv.x,nv.x,bv.x),u=ov(pv.y,rv.y,nv.y,bv.y);e.width=l-e.x,e.height=u-e.y},t}(),vv="silent",hv=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}(mv),wv=function(){function t(t,e){this.x=t,this.y=e}return t}(),uv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gv=new fv(0,0,0,0),qv=function(t){function n(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new wv(0,0),a.storage=e,a.painter=n,a.painterroot=i,a._pointersize=o,r=r||new hv,a.proxy=null,a.sethandlerproxy(r),a._draggingmgr=new yv(a),a}return e(n,t),n.prototype.sethandlerproxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v(uv,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,r=ze(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findhover(i.x,i.y),o=i.target);var a=this._hovered=r?new wv(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(i,"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 wv(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 r=t.target;if(!r||!r.silent){for(var i="on"+e,o=qe(e,t,n);r&&(r[i]&&(o.cancelbubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hosttarget?r.__hosttarget:r.parent,!o.cancelbubble););o.cancelbubble||(this.trigger(e,o),this.painter&&this.painter.eachotherlayer&&this.painter.eachotherlayer(function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findhover=function(t,e,n){var r=this.storage.getdisplaylist(),i=new wv(t,e);if(je(r,i,t,e,n),this._pointersize&&!i.target){for(var o=[],a=this._pointersize,s=a/2,l=new fv(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var h=r[u];h===n||h.ignore||h.ignorecoarsepointer||h.parent&&h.parent.ignorecoarsepointer||(gv.copy(h.getboundingrect()),h.transform&&gv.applytransform(h.transform),gv.intersect(l)&&o.push(h))}if(o.length)for(var c=4,f=math.pi/12,p=2*math.pi,d=0;s>d;d+=c)for(var g=0;p>g;g+=f){var v=t+d*math.cos(g),y=e+d*math.sin(g);if(je(o,i,v,y,n),i.target)return i}}return i},n.prototype.processgesture=function(t,e){this._gesturemgr||(this._gesturemgr=new kv);var n=this._gesturemgr;"start"===e&&n.clear();var r=n.recognize(t,this.findhover(t.zrx,t.zry,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureevent=i;var o=new wv;o.target=r.target,this.dispatchtoelement(o,i,r.event)}},n}(mv);v(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){qv.prototype[t]=function(e){var n,r,i=e.zrx,o=e.zry,a=ze(this,i,o);if("mouseup"===t&&a||(n=this.findhover(i,o),r=n.target),"mousedown"===t)this._downel=r,this._downpoint=[e.zrx,e.zry],this._upel=r;else if("mouseup"===t)this._upel=r;else if("click"===t){if(this._downel!==this._upel||!this._downpoint||pv(this._downpoint,[e.zrx,e.zry])>4)return;this._downpoint=null}this.dispatchtoelement(n,t,e)}});var xv,yv=32,jv=7,zv=1,kv=2,$v=4,qv=!1,jv=function(){function t(){this._roots=[],this._displaylist=[],this._displaylistlen=0,this.displayablesortfunc=an}return t.prototype.traverse=function(t,e){for(var n=0;nr;r++)this._updateandadddisplayable(e[r],null,t);n.length=this._displaylistlen,rn(n,an)},t.prototype._updateandadddisplayable=function(t,e,n){if(!t.ignore||n){t.beforeupdate(),t.update(),t.afterupdate();var r=t.getclippath();if(t.ignoreclip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updatetransform(),e.push(i),o=i,i=i.getclippath()}if(t.childrenref){for(var a=t.childrenref(),s=0;s0&&(u.__clippaths=[]),isnan(u.z)&&(on(),u.z=0),isnan(u.z2)&&(on(),u.z2=0),isnan(u.zlevel)&&(on(),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 f=t.gettextcontent();f&&this._updateandadddisplayable(f,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 r=f(this._roots,t);r>=0&&this._roots.splice(r,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}();xv=bg.hasglobalwindow&&(window.requestanimationframe&&window.requestanimationframe.bind(window)||window.msrequestanimationframe&&window.msrequestanimationframe.bind(window)||window.mozrequestanimationframe||window.webkitrequestanimationframe)||function(t){return settimeout(t,16)};var ty=xv,ey={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,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*math.asin(1/n)/(2*math.pi),-(n*math.pow(2,10*(t-=1))*math.sin(2*(t-e)*math.pi/r)))},elasticout:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*math.asin(1/n)/(2*math.pi),n*math.pow(2,-10*t)*math.sin(2*(t-e)*math.pi/r)+1)},elasticinout:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*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/r):n*math.pow(2,-10*(t-=1))*math.sin(2*(t-e)*math.pi/r)*.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-ey.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*ey.bouncein(2*t):.5*ey.bounceout(2*t-1)+.5 }},ny=math.pow,ry=math.sqrt,iy=1e-8,oy=1e-4,ay=ry(3),sy=1/3,ly=j(),uy=j(),hy=j(),cy=/cubic-bezier\(([0-9,\.e ]+)\)/,fy=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,r=t-this._starttime-this._pausedtime,i=r/n;0>i&&(i=0),i=math.min(i,1);var o=this.easingfunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%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:ey[t]||sn(t)},t}(),py=function(){function t(t){this.value=t}return t}(),dy=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new py(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}(),gy=function(){function t(t){this._list=new dy,this._maxsize=10,this._map={},this._maxsize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastremovedentry;if(o>=this._maxsize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastremovedentry=s}a?a.value=e:a=new py(e),a.key=t,n.insertentry(a),r[t]=a}return i},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}(),vy={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]},yy=new gy(20),my=null,_y=fn,xy=vn,wy=(object.freeze||object)({parse:rn,lift:en,tohex:zn,fastlerp:fn,fastmaptocolor:_y,lerp:vn,maptocolor:xy,modifyhsl:hn,modifyalpha:wn,stringify:un,lum:gn,random:qn}),by=math.round,sy=1e-4,my={left:"start",right:"end",center:"middle",middle:"middle"},ty=function(){return bg.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}}(),cy=array.prototype.slice,ky=0,dy=1,iy=2,ay=3,ly=4,oy=5,py=6,ry=[0,0,0,0],ny=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 r=this.keyframes,i=r.length,o=!1,a=py,s=e;if(g(e)){var l=mr(e);a=l,(1===l&&!d(e[0])||2===l&&!d(e[0][0]))&&(o=!0)}else if(d(e)&&!b(e))a=ky;else if(c(e))if(isnan(+e)){var u=rn(e);u&&(s=u,a=ay)}else a=ky;else if(p(e)){var c=h({},s);c.colorstops=y(e.colorstops,function(t){return{offset:t.offset,color:rn(t.color)}}),rr(e)?a=ly:ir(e)&&(a=oy),s=c}0===i?this.valtype=a:(a!==this.valtype||a===py)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:s,rawvalue:e,percent:0};return n&&(f.easing=n,f.easingfunc=t(n)?n:ey[n]||sn(n)),r.push(f),f},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needssort&&n.sort(function(t,e){return t.time-e.time});for(var r=this.valtype,i=n.length,o=n[i-1],a=this.discrete,s=xr(r),l=_r(r),u=0;i>u;u++){var h=n[u],c=h.value,f=o.value;h.percent=h.time/t,a||(s&&u!==i-1?gr(c,f,r):l&&dr(c.colorstops,f.colorstops))}if(!a&&r!==oy&&e&&this.needsanimate()&&e.needsanimate()&&r===e.valtype&&!e._finished){this._additivetrack=e;for(var p=n[0].value,u=0;i>u;u++)r===ky?n[u].additivevalue=n[u].value-p:r===ay?n[u].additivevalue=fr([],n[u].value,p,-1):xr(r)&&(n[u].additivevalue=r===dy?fr([],n[u].value,p,-1):pr([],n[u].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additivetrack&&this._additivetrack._finished&&(this._additivetrack=null);var n,r,i,o=null!=this._additivetrack,a=o?"additivevalue":"value",s=this.valtype,l=this.keyframes,u=l.length,h=this.propname,c=s===ay,f=this._lastfr,p=math.min;if(1===u)r=i=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=f;u>n&&!(l[n].percent>e);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastfr=n,this._lastfrp=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingfunc&&(v=i.easingfunc(v));var m=o?this._additivevalue:c?ry:t[h];if(!xr(s)&&!c||m||(m=this._additivevalue=[]),this.discrete)t[h]=1>v?r.rawvalue:i.rawvalue;else if(xr(s))s===dy?hr(m,r[a],i[a],v):cr(m,r[a],i[a],v);else if(_r(s)){var _=r[a],x=i[a],w=s===ly;t[h]={type:w?"linear":"radial",x:ur(_.x,x.x,v),y:ur(_.y,x.y,v),colorstops:y(_.colorstops,function(t,e){var n=x.colorstops[e];return{offset:ur(t.offset,n.offset,v),color:yr(hr([],t.color,n.color,v))}}),global:x.global},w?(t[h].x2=ur(_.x2,x.x2,v),t[h].y2=ur(_.y2,x.y2,v)):t[h].r=ur(_.r,x.r,v)}else if(c)hr(m,r[a],i[a],v),o||(t[h]=yr(m));else{var b=ur(r[a],i[a],v);o?this._additivevalue=b:t[h]=b}o&&this._addtotarget(t)}}},t.prototype._addtotarget=function(t){var e=this.valtype,n=this.propname,r=this._additivevalue;e===ky?t[n]=t[n]+r:e===ay?(rn(t[n],ry),fr(ry,ry,r,1),t[n]=yr(ry)):e===dy?fr(t[n],t[n],r,1):e===iy&&pr(t[n],t[n],r,1)},t}(),by=function(){function t(t,e,n,r){return this._tracks={},this._trackkeys=[],this._maxtime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?void a("can' use additive animation on looped animation."):(this._additiveanimators=r,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,w(e),n)},t.prototype.whenwithkeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addkeyframe(0,vr(l),r),this._trackkeys.push(a)}s.addkeyframe(t,vr(e[a]),r)}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=[],r=this._maxtime||0,i=0;i1){var a=o.pop();i.addkeyframe(a.time,t[r]),i.prepare(this._maxtime,i.getadditivetrack())}}}},t}(),ey=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=wr()-this._pausedtime,n=e-this._time,r=this._head;r;){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeclip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startloop=function(){function t(){e._running&&(ty(t),!e._paused&&e.update())}var e=this;this._running=!0,ty(t)},n.prototype.start=function(){this._running||(this._time=wr(),this._pausedtime=0,this._startloop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pausestart=wr(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedtime+=wr()-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 by(t,e.loop);return this.addanimator(n),n},n}(mv),zy=300,fy=bg.domsupported,vy=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},r=y(t,function(t){var e=t.replace("mouse","pointer");return n.hasownproperty(e)?e:t});return{mouse:t,touch:e,pointer:r}}(),hy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wy=!1,uy=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}(),gy={mousedown:function(t){t=ae(this.dom,t),this.__maypointercapture=[t.zrx,t.zry],this.trigger("mousedown",t)},mousemove:function(t){t=ae(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=ae(this.dom,t),this.__togglepointercapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ae(this.dom,t);var e=t.toelement||t.relatedtarget;cr(this,e)||(this.__pointercapturing&&(t.zreventcontrol="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wy=!0,t=ae(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wy||(t=ae(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ae(this.dom,t),mr(t),this.__lasttouchmoment=new date,this.handler.processgesture(t,"start"),gy.mousemove.call(this,t),gy.mousedown.call(this,t)},touchmove:function(t){t=ae(this.dom,t),mr(t),this.handler.processgesture(t,"change"),gy.mousemove.call(this,t)},touchend:function(t){t=ae(this.dom,t),mr(t),this.handler.processgesture(t,"end"),gy.mouseup.call(this,t),+new date-+this.__lasttouchmoment1e-10&&om(t[3]-1)>1e-10?math.sqrt(om(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copytransform=function(t){or(this,t)},t.getlocaltransform=function(t,e){e=e||[];var n=t.originx||0,r=t.originy||0,i=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,f=t.skewy?math.tan(-t.skewy):0;if(n||r||a||s){var p=n+a,d=r+s;e[4]=-p*i-c*d*o,e[5]=-d*o-f*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=c*o,l&&he(e,e,l),e[4]+=n+u,e[5]+=r+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}(),sm=["x","y","originx","originy","anchorx","anchory","rotation","scalex","scaley","skewx","skewy"],lm={},um="__zr_normal__",hm=sm.concat(["ignore"]),cm=m(sm,function(t,e){return t[e]=!0,t},{ignore:!1}),fm={},pm=new fv(0,0,0,0),dm=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,r=n.local,i=e.innertransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copytransform(e),null!=n.position){var u=pm;u.copy(n.layoutrect?n.layoutrect:this.getboundingrect()),r||u.applytransform(this.transform),this.calculatetextposition?this.calculatetextposition(fm,n,u):vr(fm,n,u),i.x=fm.x,i.y=fm.y,o=fm.align,a=fm.verticalalign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,f=void 0;"center"===h?(c=.5*u.width,f=.5*u.height):(c=fr(h[0],u.width),f=fr(h[1],u.height)),l=!0,i.originx=-i.x+c+(r?0:u.x),i.originy=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originx=-p[0],i.originy=-p[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexof("inside")>=0:n.inside,g=this._innertextdefaultstyle||(this._innertextdefaultstyle={}),v=void 0,y=void 0,m=void 0;d&&this.canbeinsidetext()?(v=n.insidefill,y=n.insidestroke,(null==v||"auto"===v)&&(v=this.getinsidetextfill()),(null==y||"auto"===y)&&(y=this.getinsidetextstroke(v),m=!0)):(v=n.outsidefill,y=n.outsidestroke,(null==v||"auto"===v)&&(v=this.getoutsidefill()),(null==y||"auto"===y)&&(y=this.getoutsidestroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autostroke||o!==g.align||a!==g.verticalalign)&&(s=!0,g.fill=v,g.stroke=y,g.autostroke=m,g.align=o,g.verticalalign=a,e.setdefaulttextstyle(g)),e.__dirty|=zv,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()?qy:$y},t.prototype.getoutsidestroke=function(){var t=this.__zr&&this.__zr.getbackgroundcolor(),e="string"==typeof t&&rn(t);e||(e=[255,255,255,1]);for(var n=e[3],r=this.__zr.isdarkmode(),i=0;3>i;i++)e[i]=e[i]*n+(r?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(i(t))for(var n=t,r=w(n),i=0;i0},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(um,!1,t)},t.prototype.usestate=function(t,e,n,r){var i=t===um,o=this.hasstate();if(o||!i){var s=this.currentstates,l=this.statetransition;if(!(f(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateproxy&&!i&&(u=this.stateproxy(t)),u||(u=this.states&&this.states[t]),!u&&!i)return void a("state "+t+" not exists.");i||this.savecurrenttonormalstate(u);var h=!!(u&&u.hoverlayer||r);h&&this._togglehoverlayerflag(!0),this._applystateobj(t,u,this._normalstate,e,!n&&!this.__inhover&&l&&l.duration>0,l);var c=this._textcontent,p=this._textguide;return c&&c.usestate(t,e,n,h),p&&p.usestate(t,e,n,h),i?(this.currentstates=[],this._normalstate={}):e?this.currentstates.push(t):this.currentstates=[t],this._updateanimationtargets(),this.markredraw(),!h&&this.__inhover&&(this._togglehoverlayerflag(!1),this.__dirty&=~zv),u}}},t.prototype.usestates=function(t,e,n){if(t.length){var r=[],i=this.currentstates,o=t.length,a=o===i.length;if(a)for(var s=0;o>s;s++)if(t[s]!==i[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&&r.push(u)}var h=r[o-1],c=!!(h&&h.hoverlayer||n);c&&this._togglehoverlayerflag(!0);var f=this._mergestates(r),p=this.statetransition;this.savecurrenttonormalstate(f),this._applystateobj(t.join(","),f,this._normalstate,!1,!e&&!this.__inhover&&p&&p.duration>0,p);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&=~zv)}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 r=this.currentstates.slice(),i=f(r,t),o=f(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.usestates(r)},t.prototype.togglestate=function(t,e){e?this.usestate(t,!0):this.removestate(t)},t.prototype._mergestates=function(t){for(var e,n={},r=0;r=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,r=n.length,i=[],o=0;r>o;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateto=function(t,e,n){hr(this,t,e,n)},t.prototype.animatefrom=function(t,e,n){hr(this,t,e,n,!0)},t.prototype._transitionstate=function(t,e,n,r){for(var i=hr(this,e,n,r),o=0;o=0&&(n.splice(r,0,t),this._doadd(t))}return this},n.prototype.replace=function(t,e){var n=f(this._children,t);return n>=0&&this.replaceat(e,n),this},n.prototype.replaceat=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeselffromzr(i),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,r=f(n,t);return 0>r?this:(n.splice(r,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=m_(n/zy/t)||0,this._uy=m_(n/zy/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(s_.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=m_(t-this._xi),r=m_(e-this._yi),i=n>this._ux||r>this._uy;if(this.adddata(s_.l,t,e),this._ctx&&i&&this._ctx.lineto(t,e),i)this._xi=t,this._yi=e,this._pendingptdist=0;else{var o=n*n+r*r;o>this._pendingptdist&&(this._pendingptx=t,this._pendingpty=e,this._pendingptdist=o)}return this},t.prototype.beziercurveto=function(t,e,n,r,i,o){return this._drawpendingpt(),this.adddata(s_.c,t,e,n,r,i,o),this._ctx&&this._ctx.beziercurveto(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticcurveto=function(t,e,n,r){return this._drawpendingpt(),this.adddata(s_.q,t,e,n,r),this._ctx&&this._ctx.quadraticcurveto(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawpendingpt(),b_[0]=r,b_[1]=i,lo(b_,o),r=b_[0],i=b_[1];var a=i-r;return this.adddata(s_.a,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=v_(i)*n+t,this._yi=y_(i)*n+e,this},t.prototype.arcto=function(t,e,n,r,i){return this._drawpendingpt(),this._ctx&&this._ctx.arcto(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawpendingpt(),this._ctx&&this._ctx.rect(t,e,n,r),this.adddata(s_.r,t,e,n,r),this},t.prototype.closepath=function(){this._drawpendingpt(),this.adddata(s_.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||!w_||(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,r=this._len,i=0;e>i;i++)n+=t[i].len();w_&&this.data instanceof float32array&&(this.data=new float32array(r+n));for(var i=0;e>i;i++)for(var o=t[i].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(){h_[0]=h_[1]=f_[0]=f_[1]=number.max_value,c_[0]=c_[1]=p_[0]=p_[1]=-number.max_value;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tc;){var f=t[c++],p=1===c;p&&(i=t[c],o=t[c+1],a=i,s=o);var d=-1;switch(f){case s_.m:i=a=t[c++],o=s=t[c++];break;case s_.l:var g=t[c++],v=t[c++],y=g-i,m=v-o;(m_(y)>n||m_(m)>r||c===e-1)&&(d=math.sqrt(y*y+m*m),i=g,o=v);break;case s_.c:var _=t[c++],x=t[c++],g=t[c++],v=t[c++],w=t[c++],b=t[c++];d=gn(i,o,_,x,g,v,w,b,10),i=w,o=b;break;case s_.q:var _=t[c++],x=t[c++],g=t[c++],v=t[c++];d=bn(i,o,_,x,g,v,10),i=g,o=v;break;case s_.a:var s=t[c++],m=t[c++],t=t[c++],c=t[c++],k=t[c++],d=t[c++],i=d+k;c+=1;{!t[c++]}p&&(a=v_(k)*t+s,s=y_(k)*c+m),d=g_(t,c)*d_(x_,math.abs(d)),i=v_(i)*t+s,o=y_(i)*c+m;break;case s_.r:a=i=t[c++],s=o=t[c++];var a=t[c++],l=t[c++];d=2*a+2*l;break;case s_.z:var y=a-i,m=s-o;d=math.sqrt(y*y+m*m),i=a,o=s}d>=0&&(l[h++]=d,u+=d)}return this._pathlen=u,u},t.prototype.rebuildpath=function(t,e){var n,r,i,o,a,s,l,u,h,c,f,p=this.data,d=this._ux,g=this._uy,v=this._len,y=1>e,m=0,_=0,x=0;if(!y||(this._pathseglen||this._calculatelength(),l=this._pathseglen,u=this._pathlen,h=e*u))t:for(var w=0;v>w;){var b=p[w++],s=1===w;switch(s&&(i=p[w],o=p[w+1],n=i,r=o),b!==s_.l&&x>0&&(t.lineto(c,f),x=0),b){case s_.m:n=i=p[w++],r=o=p[w++],t.moveto(i,o);break;case s_.l:a=p[w++],s=p[w++];var m=m_(a-i),t=m_(s-o);if(m>d||t>g){if(y){var c=l[_++];if(m+c>h){var k=(h-m)/c;t.lineto(i*(1-k)+a*k,o*(1-k)+s*k);break t}m+=c}t.lineto(a,s),i=a,o=s,x=0}else{var d=m*m+t*t;d>x&&(c=a,f=s,x=d)}break;case s_.c:var i=p[w++],a=p[w++],l=p[w++],o=p[w++],p=p[w++],r=p[w++];if(y){var c=l[_++];if(m+c>h){var k=(h-m)/c;pn(i,i,l,p,k,l_),pn(o,a,o,r,k,u_),t.beziercurveto(l_[1],u_[1],l_[2],u_[2],l_[3],u_[3]);break t}m+=c}t.beziercurveto(i,a,l,o,p,r),i=p,o=r;break;case s_.q:var i=p[w++],a=p[w++],l=p[w++],o=p[w++];if(y){var c=l[_++];if(m+c>h){var k=(h-m)/c;xn(i,i,l,k,l_),xn(o,a,o,k,u_),t.quadraticcurveto(l_[1],u_[1],l_[2],u_[2]);break t}m+=c}t.quadraticcurveto(i,a,l,o),i=l,o=o;break;case s_.a:var n=p[w++],b=p[w++],e=p[w++],z=p[w++],f=p[w++],v=p[w++],h=p[w++],w=!p[w++],u=e>z?e:z,g=m_(e-z)>.001,q=f+v,x=!1;if(y){var c=l[_++];m+c>h&&(q=f+v*(h-m)/c,x=!0),m+=c}if(g&&t.ellipse?t.ellipse(n,b,e,z,h,f,q,w):t.arc(n,b,u,f,q,w),x)break t;s&&(n=v_(f)*e+n,r=y_(f)*z+b),i=v_(q)*e+n,o=y_(q)*z+b;break;case s_.r:n=i=p[w],r=o=p[w+1],a=p[w++],s=p[w++];var y=p[w++],j=p[w++];if(y){var c=l[_++];if(m+c>h){var z=h-m;t.moveto(a,s),t.lineto(a+d_(z,y),s),z-=y,z>0&&t.lineto(a+y,s+d_(z,j)),z-=j,z>0&&t.lineto(a+g_(y-z,0),s+j),z-=y,z>0&&t.lineto(a,s+g_(j-z,0));break t}m+=c}t.rect(a,s,y,j);break;case s_.z:if(y){var c=l[_++];if(m+c>h){var k=(h-m)/c;t.lineto(i*(1-k)+n*k,o*(1-k)+r*k);break t}m+=c}t.closepath(),i=n,o=r}}},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=s_,t.initdefaultprops=function(){var e=t.prototype;e._savedata=!0,e._ux=0,e._uy=0,e._pendingptdist=0,e._version=0}(),t}(),m_=2*math.pi,t_=2*math.pi,c_=s_.cmd,k_=2*math.pi,d_=1e-4,i_=[-1,-1,-1],a_=[-1,-1],l_=c({fill:"#000",stroke:null,strokepercent:1,fillopacity:1,strokeopacity:1,linedashoffset:0,linewidth:1,linecap:"butt",miterlimit:10,strokenoscale:!1,strokefirst:!1},gm),o_={style:c({fill:!0,stroke:!0,strokepercent:!0,fillopacity:!0,strokeopacity:!0,linedashoffset:!0,linewidth:!0,miterlimit:!0},qm.style)},p_=sm.concat(["invisible","culling","z","z2","zlevel","parent"]),r_=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 r=this.style;if(r.decal){var i=this._decalel=this._decalel||new n;i.buildpath===n.prototype.buildpath&&(i.buildpath=function(t){e.buildpath(t,e.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowcolor=null,r.strokefirst&&(o.stroke=null);for(var s=0;s.5?$y:e>.2?jy:qy}if(t)return qy}return $y},n.prototype.getinsidetextstroke=function(t){var e=this.style.fill;if(c(e)){var n=this.__zr,r=!(!n||!n.isdarkmode()),i=gn(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 r=!1;this.path||(r=!0,this.createpathproxy());var i=this.path;(r||this.__dirty&$v)&&(i.beginpath(),this.buildpath(i,this.shape,!1),this.pathupdated()),t=i.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),r=this.getboundingrect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasstroke()){var a=i.linewidth,s=i.strokenoscale?this.getlinescale():1;if(s>1e-10&&(this.hasfill()||(a=math.max(a,this.strokecontainthreshold)),qo(o,a/s,t,e)))return!0}if(this.hasfill())return go(o,t,e)}return!1},n.prototype.dirtyshape=function(){this.__dirty|=$v,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&$v)},n.prototype.createstyle=function(t){return z(l_,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,r,i,o,a){t.prototype._applystateobj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=h({},r.shape),h(s,n.shape)):(s=h({},i?this.shape:r.shape),h(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=w(s),f=0;f0},n.prototype.hasfill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createstyle=function(t){return z(n_,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=nr(e,t.font,t.textalign,t.textbaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasstroke()){var r=t.linewidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},n.initdefaultprops=function(){var t=n.prototype;t.dirtyrecttolerance=10}(),n}(jm);b_.prototype.type="tspan";var e_=c({x:0,y:0},gm),z_={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,swidth:!0,sheight:!0},qm.style)},f_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createstyle=function(t){return z(e_,t)},n.prototype._getsize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=xo(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},n.prototype.getwidth=function(){return this._getsize("width")},n.prototype.getheight=function(){return this._getsize("height")},n.prototype.getanimationstyleprops=function(){return z_},n.prototype.getboundingrect=function(){var t=this.style;return this._rect||(this._rect=new fv(t.x||0,t.y||0,this.getwidth(),this.getheight())),this._rect},n}(jm);f_.prototype.type="image";var v_=math.round,h_=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),w_={},u_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new h_},n.prototype.buildpath=function(t,e){var n,r,i,o;if(this.subpixeloptimize){var a=zo(w_,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?yo(t,e):t.rect(n,r,i,o)},n.prototype.iszeroarea=function(){return!this.shape.width||!this.shape.height},n}(r_);u_.prototype.type="rect";var g_={fill:"#000"},q_=2,x_={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},qm.style)},y_=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultstyle=g_,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),k=i.calculatedlineheight,d=0;dm&&(d=x[m],!d.align||"left"===d.align);)this._placetoken(d,t,b,g,t,"left",y),s-=d.width,t+=d.width,m++;for(;k>=0&&(d=x[k],"right"===d.align);)this._placetoken(d,t,b,g,c,"right",y),s-=d.width,c-=d.width,k--;for(t+=(r-(t-d)-(v-c)-s)/2;k>=m;)d=x[m],this._placetoken(d,t,b,g,t+d.width/2,"center",y),t+=d.width,m++;g+=b}},n.prototype._placetoken=function(t,e,n,r,i,o,a){var s=e.rich[t.stylename]||{};s.text=t.text;var l=t.verticalalign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var h=!t.islineholder&&aa(s);h&&this._renderbackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundcolor,f=t.textpadding;f&&(i=ia(i,o,f),u-=t.height/2-f[0]-t.innerheight/2);var p=this._getorcreatechild(b_),d=p.createstyle();p.usestyle(d);var g=this._defaultstyle,v=!1,y=0,m=ra("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=na("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||g.autostroke&&!v?null:(y=q_,g.stroke)),x=s.textshadowblur>0||e.textshadowblur>0;d.text=t.text,d.x=i,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||fg,d.opacity=f(s.opacity,e.opacity,1),qo(d,s),_&&(d.linewidth=f(s.linewidth,e.linewidth,y),d.linedash=z(s.linedash,e.linedash),d.linedashoffset=e.linedashoffset||0,d.stroke=_),m&&(d.fill=m);var w=t.contentwidth,b=t.contentheight;p.setboundingrect(new fv(br(d.x,w,d.textalign),er(d.y,b,d.textbaseline),w,b))},n.prototype._renderbackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundcolor,u=t.borderwidth,h=t.bordercolor,c=l&&l.image,f=l&&!c,p=t.borderradius,d=this;if(f||t.lineheight||u&&h){a=this._getorcreatechild(u_),a.usestyle(a.createstyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyshape()}if(f){var v=a.style;v.fill=l||null,v.fillopacity=z(t.fillopacity,1)}else if(c){s=this._getorcreatechild(f_),s.onload=function(){d.dirtystyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&h){var v=a.style;v.linewidth=u,v.stroke=h,v.strokeopacity=z(t.strokeopacity,1),v.linedash=t.borderdash,v.linedashoffset=t.borderdashoffset||0,a.strokecontainthreshold=0,a.hasfill()&&a.hasstroke()&&(v.strokefirst=!0,v.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 jo(t)&&(e=[t.fontstyle,t.fontweight,$o(t.fontsize),t.fontfamily||"sans-serif"].join(" ")),e&&u(e)||t.textfont||t.font},n}(jm),j_={left:!0,right:1,center:1},z_={top:1,bottom:1,middle:1},k_=["fontstyle","fontweight","fontsize","fontfamily"],$_=xi(),q_=function(t,e,n,r){if(r){var i=$_(r);i.dataindex=n,i.datatype=e,i.seriesindex=t,"group"===r.type&&r.traverse(function(r){var i=$_(r);i.seriesindex=t,i.dataindex=n,i.datatype=e})}},j_=1,tx={},ex=xi(),nx=xi(),rx=0,ix=1,ox=2,ax=["emphasis","blur","select"],sx=["normal","emphasis","blur","select"],lx=10,ux=9,hx="highlight",cx="downplay",fx="select",px="unselect",dx="toggleselect",gx=new gy(100),vx=["emphasis","blur","select"],yx={itemstyle:"getitemstyle",linestyle:"getlinestyle",areastyle:"getareastyle"},mx=s_.cmd,_x=[[],[],[]],xx=math.sqrt,bx=math.atan2,sx=math.sqrt,mx=math.sin,tx=math.cos,cx=math.pi,kx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,dx=/-?([0-9]*\.)?[0-9]+([ee]-?[0-9]+)?/g,ix=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applytransform=function(){},n}(r_),ax=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),lx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ax},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}(r_);lx.prototype.type="circle";var ox=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),px=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new ox},n.prototype.buildpath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveto(r-o,i),t.beziercurveto(r-o,i-l,r-s,i-a,r,i-a),t.beziercurveto(r+s,i-a,r+o,i-l,r+o,i),t.beziercurveto(r+o,i+l,r+s,i+a,r,i+a),t.beziercurveto(r-s,i+a,r-o,i+l,r-o,i),t.closepath()},n}(r_);px.prototype.type="ellipse";var rx=math.pi,nx=2*rx,bx=math.sin,ex=math.cos,zx=math.acos,fx=math.atan2,vx=math.abs,hx=math.sqrt,wx=math.max,ux=math.min,gx=1e-4,qx=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}(),xx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new qx},n.prototype.buildpath=function(t,e){ds(t,e)},n.prototype.iszeroarea=function(){return this.shape.startangle===this.shape.endangle||this.shape.r===this.shape.r0},n}(r_);xx.prototype.type="sector";var yx=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),jx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new yx},n.prototype.buildpath=function(t,e){var n=e.cx,r=e.cy,i=2*math.pi;t.moveto(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveto(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},n}(r_);jx.prototype.type="ring";var zx=function(){function t(){this.points=null,this.smooth=0,this.smoothconstraint=null}return t}(),kx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getdefaultshape=function(){return new zx},n.prototype.buildpath=function(t,e){vs(t,e,!0)},n}(r_);kx.prototype.type="polygon";var $x=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothconstraint=null}return t}(),qx=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 $x},n.prototype.buildpath=function(t,e){vs(t,e,!1)},n}(r_);qx.prototype.type="polyline";var jx={},tw=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ew=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 tw},n.prototype.buildpath=function(t,e){var n,r,i,o;if(this.subpixeloptimize){var a=jo(jx,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveto(n,r),1>s&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineto(i,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}(r_);ew.prototype.type="line";var nw=[],rw=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}(),iw=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 rw},n.prototype.buildpath=function(t,e){var n=e.x1,r=e.y1,i=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,r),null==l||null==u?(1>h&&(xn(n,a,i,h,nw),a=nw[1],i=nw[2],xn(r,s,o,h,nw),s=nw[1],o=nw[2]),t.quadraticcurveto(a,s,i,o)):(1>h&&(pn(n,a,l,i,h,nw),a=nw[1],l=nw[2],i=nw[3],pn(r,s,u,o,h,nw),s=nw[1],u=nw[2],o=nw[3]),t.beziercurveto(a,s,l,u,i,o)))},n.prototype.pointat=function(t){return ys(this.shape,t,!1)},n.prototype.tangentat=function(t){var e=ys(this.shape,t,!0);return fe(e,e)},n}(r_);iw.prototype.type="bezier-curve";var ow=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}(),aw=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 ow},n.prototype.buildpath=function(t,e){var n=e.cx,r=e.cy,i=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*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},n}(r_);aw.prototype.type="arc";var sw=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 av;for(var n=0;2>n;n++)this._axes[n]=new av;t&&this.fromboundingrect(t,e)}return t.prototype.fromboundingrect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;4>l;l++)n[l].transform(e);av.sub(r[0],n[1],n[0]),av.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;2>l;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return pw.set(1/0,1/0),dw.set(0,0),!this._intersectcheckoneside(this,t,pw,dw,r,1)&&(n=!1,r)?n:!this._intersectcheckoneside(t,this,pw,dw,r,-1)&&(n=!1,r)?n:(r||av.copy(e,n?pw:dw),n)},t.prototype._intersectcheckoneside=function(t,e,n,r,i,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getprojminmaxonaxis(s,t._corners,cw),this._getprojminmaxonaxis(s,e._corners,fw),cw[1]fw[1]){if(a=!1,i)return a;var u=math.abs(fw[0]-cw[1]),h=math.abs(cw[0]-fw[1]);math.min(u,h)>r.len()&&(h>u?av.scale(r,l,-u*o):av.scale(r,l,h*o))}else if(n){var u=math.abs(fw[0]-cw[1]),h=math.abs(cw[0]-fw[1]);math.min(u,h)u?av.scale(n,l,u*o):av.scale(n,l,-h*o))}}return a},t.prototype._getprojminmaxonaxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l-1?uw:qw}():qw;el(gw,hw),el(uw,ww);var zw=1e3,kw=60*zw,$w=60*kw,qw=24*$w,jw=365*qw,tb={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}"},eb="{yyyy}-{mm}-{dd}",nb={year:"{yyyy}",month:"{yyyy}-{mm}",day:eb,hour:eb+" "+tb.hour,minute:eb+" "+tb.minute,second:eb+" "+tb.second,millisecond:tb.none},rb=["year","month","day","hour","minute","second","millisecond"],ib=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],ob=h,ab=["a","b","c","d","e","f","g"],sb=function(t,e){return"{"+t+(null==e?"":e)+"}"},lb=v,ub=["left","right","top","bottom","width","height"],hb=[["width","left","right"],["height","top","bottom"]],cb=(s(nl,"vertical"),s(nl,"horizontal"),xi()),fb=function(t){function n(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=qs("ec_cpt_model"),i}return e(n,t),n.prototype.init=function(t,e,n){this.mergedefaultandtheme(t,n)},n.prototype.mergedefaultandtheme=function(t,e){var n=el(this),r=n?fl(t):{},i=e.gettheme();l(t,i.get(this.maintype)),l(t,this.getdefaultoption()),n&&zl(t,r,n)},n.prototype.mergeoption=function(t){l(this.option,t,!0);var e=el(this);e&&zl(this.option,t,e)},n.prototype.optionupdated=function(){},n.prototype.getdefaultoption=function(){var t=this.constructor;if(!eo(t))return t.defaultoption;var e=cb(this);if(!e.defaultoption){for(var n=[],r=t;r;){var i=r.prototype.defaultoption;i&&n.push(i),r=r.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",r=t+"id";return zi(this.ecmodel,t,{index:this.get(n,!0),id:this.get(r,!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}(fw);io(fb,fw),lo(fb),js(fb),tl(fb,hl);var pb="";"undefined"!=typeof navigator&&(pb=navigator.platform||"");var db,gb,vb="rgba(0, 0, 0, 0.2)",yb={darkmode:"auto",colorby:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientcolor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:vb,dasharrayx:[1,0],dasharrayy:[2,5],symbolsize:1,rotation:math.pi/6},{color:vb,symbol:"circle",dasharrayx:[[8,8],[0,8,8,0]],dasharrayy:[6,0],symbolsize:.8},{color:vb,dasharrayx:[1,0],dasharrayy:[4,3],rotation:-math.pi/4},{color:vb,dasharrayx:[[6,6],[0,6,6,0]],dasharrayy:[6,0]},{color:vb,dasharrayx:[[1,0],[1,6]],dasharrayy:[1,0,6,0],rotation:math.pi/4},{color:vb,symbol:"triangle",dasharrayx:[[9,9],[0,9,9,0]],dasharrayy:[7,2],symbolsize:.75}]}},textstyle:{fontfamily:pb.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},mb=y(["tooltip","label","itemname","itemid","itemgroupid","seriesname"]),_b="original",xb="arrayrows",wb="objectrows",bb="keyedcolumns",sb="typedarray",mb="unknown",tb="column",cb="row",kb={must:1,might:2,not:3},db=xi(),ib=y(),ab=xi(),lb=(xi(),function(){function t(){}return t.prototype.getcolorfrompalette=function(t,e,n){var r=ki(this.get("color",!0)),i=this.get("colorlayer",!0);return $l(this,ab,r,i,t,e,n)},t.prototype.clearcolorpalette=function(){ql(this,ab)},t}()),ob="\x00_ec_inner",pb=1,rb=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new fw(r),this._locale=new fw(i),this._optionmanager=o},n.prototype.setoption=function(t,e,n){var r=ru(e);this._optionmanager.setoption(t,n,r),this._resetoption(null,r)},n.prototype.resetoption=function(t,e){return this._resetoption(t,ru(e))},n.prototype._resetoption=function(t,e){var n=!1,r=this._optionmanager;if(!t||"recreate"===t){var i=r.mountoption("recreate"===t);this.option&&"recreate"!==t?(this.restoredata(),this._mergeoption(i,e)):gb(this,i),n=!0}if(("timeline"===t||"media"===t)&&this.restoredata(),!t||"recreate"===t||"timeline"===t){var o=r.gettimelineoption(this);o&&(n=!0,this._mergeoption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getmediaoption(this);a.length&&v(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=zl(this,e,ki(t[e])),a=i.get(e),s=a?c&&c.get(e)?"replacemerge":"normalmerge":"replaceall",l=li(a,n,s);ui(l,e,fb),r[e]=null,i.set(e,null),o.set(e,0);var u,f=[],p=[],d=0;v(l,function(t,n){var r=t.existing,i=t.newoption;if(i){var o="series"===e,a=fb.getclass(e,t.keyinfo.subtype,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(r&&r.constructor===a)r.name=t.keyinfo.name,r.mergeoption(i,this),r.optionupdated(i,!1);else{var s=h({componentindex:n},t.keyinfo);r=new a(i,this,this,s),h(r,s),t.brandnew&&(r.__requirenewview=!0),r.init(i,this,this),r.optionupdated(null,!0)}}else r&&(r.mergeoption({},this),r.optionupdated({},!1));r?(f.push(r.option),p.push(r),d++):(f.push(void 0),p.push(void 0))},this),r[e]=f,i.set(e,p),o.set(e,d),"series"===e&&db(this)}var r=this.option,i=this._componentsmap,o=this._componentscount,a=[],u=y(),c=e&&e.replacemergemaintypemap;wl(this),v(t,function(t,e){null!=t&&(fb.hasclass(e)?e&&(a.push(e),u.set(e,!0)):r[e]=null==r[e]?s(t):l(r[e],t,!0))}),c&&c.each(function(t,e){fb.hasclass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),fb.topologicaltravel(a,fb.getallclassmaintypes(),n,this),this._seriesindices||db(this)},n.prototype.getoption=function(){var t=s(this.option);return v(t,function(e,n){if(fb.hasclass(n)){for(var r=ki(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!wi(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}}),delete t[ob],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 r=n[e||0];if(r)return r;if(null==e)for(var i=0;ia;a++)ou(n[a].query,t,e)&&i.push(a);return!i.length&&r&&(i=[-1]),i.length&&!su(i,this._currentmediaindices)&&(o=y(i,function(t){return s(-1===t?r.option:n[t].option)})),this._currentmediaindices=i,o},t}(),yb=v,jb=i,zb=["areastyle","linestyle","nodestyle","linkstyle","chordstyle","label","labelline"],kb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$b=["grid","geo","parallel","legend","toolbox","title","visualmap","datazoom","timeline"],qb=[["borderradius","barborderradius"],["bordercolor","barbordercolor"],["borderwidth","barborderwidth"]],jb=function(){function t(t){this.data=t.data||(t.sourceformat===bb?{}:[]),this.sourceformat=t.sourceformat||mb,this.serieslayoutby=t.serieslayoutby||tb,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[i+o];return e},r=function(t,e,n,r){for(var i=this._data,o=this._dimsize,a=0;o>a;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],f=0;h>f;f++){var p=i[f*o+a];c[t+f]=p,l>p&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimsize:0};e={},e[xb+"_"+tb]={pure:!0,appenddata:t},e[xb+"_"+cb]={pure:!0,appenddata:function(){throw new error('do not support appenddata when set serieslayoutby: "row".')}},e[wb]={pure:!0,appenddata:t},e[bb]={pure:!0,appenddata:function(t){var e=this._data;v(t,function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])})}},e[_b]={appenddata:t},e[sb]={persistent:!1,pure:!0,appenddata:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},zb=e}(),t}(),es=function(t,e,n,r){return t[r]},ns=(nb={},nb[xb+"_"+tb]=function(t,e,n,r){return t[r+e]},nb[xb+"_"+cb]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s=0&&(s=o.interpolatedvalue[l])}return null!=s?s+"":""})}},t.prototype.getrawvalue=function(t,e){return wu(this.getdata(e),t)},t.prototype.formattooltip=function(){},t}(),us=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,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputdata=n.context.outputdata}this.__pipeline&&(this.__pipeline.currenttask=this);var o;this._plan&&!r&&(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(r)),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 f=this._dueindex,p=math.min(null!=c?this._dueindex+c:1/0,this._dueend);if(!r&&(h||p>f)){var d=this._progress;if(m(d))for(var g=0;gr?r++:null}function e(){var t=r%a*i+math.ceil(r/a),e=r>=n?null:o>t?t:r;return r++,e}var n,r,i,o,a,s={reset:function(l,u,h,c){r=l,n=u,i=h,o=c,a=math.ceil(o/i),s.next=i>1&&o>0?e:t}};return s}(),cs=(y({number:function(t){return parsefloat(t)},time:function(t){return+di(t)},trim:function(t){return c(t)?u(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}}),fs=(function(){function t(t,e){if(!d(e)){var n="";ti(n)}this._opfn=cs[t],this._rvalfloat=xi(e)}return t.prototype.evaluate=function(t){return d(t)?this._opfn(t,this._rvalfloat):this._opfn(xi(t),this._rvalfloat)},t}(),function(){function t(t,e){var n="desc"===t;this._resultlt=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=d(t)?t:xi(t),r=d(e)?e:xi(e),i=isnan(n),o=isnan(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=c(t),s=c(e);a&&(n=s?t:0),s&&(r=a?e:0)}return r>n?this._resultlt:n>r?-this._resultlt:0},t}(),function(){function t(t,e){this._rval=e,this._iseq=t,this._rvaltypeof=typeof e,this._rvalfloat=xi(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=xi(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 gu(t,e)},t}()),ps=y(),ds="undefined",gs=typeof uint32array===ds?array:uint32array,vs=typeof uint16array===ds?array:uint16array,ys=typeof int32array===ds?array:int32array,ms=typeof float64array===ds?array:float64array,_s={"float":ms,"int":ys,ordinal:array,number:array,time:ms},xs=function(){function t(){this._chunks=[],this._rawextent=[],this._extent=[],this._count=0,this._rawcount=0,this._calcdimnametoidx=y()}return t.prototype.initdata=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getrawindex=this._getrawidxidentity;var r=t.getsource(),i=this.defaultdimvaluegetter=vb[r.sourceformat];this._dimvaluegetter=n||i,this._rawextent=[];eu(r);this._dimensions=y(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,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new _s[e||"float"](this._rawcount),this._rawextent[i]=eh(),i},t.prototype.collectordinalmeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawextent,o=r.ordinaloffset||0,a=n.length;0===o&&(i[t]=eh());for(var s=i[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]))}r.ordinalmeta=e,r.ordinaloffset=a,r.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 r=e.count();return e.persistent||(r+=n),r>n&&this._initdatafromprovider(n,r,!0),[n,r]},t.prototype.appendvalues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawextent,a=this.count(),s=a+math.max(t.length,e||0),l=0;i>l;l++){var u=r[l];rh(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var f=c-a,p=0;i>p;p++){var u=r[p],d=vb.arrayrows.call(this,t[f]||h,u.property,f,p);n[p][c]=d;var g=o[p];dg[1]&&(g[1]=d)}return this._rawcount=this._count=s,{start:a,end:s}},t.prototype._initdatafromprovider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawextent,l=y(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=eh()),rh(i,u,h.type,e,n)}if(r.fillstorage)r.fillstorage(t,e,i,s);else for(var c=[],f=t;e>f;f++){c=r.getitem(f,c);for(var p=0;a>p;p++){var d=i[p],g=this._dimvaluegetter(c,l[p],f,p);d[f]=g;var v=s[p];gv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawcount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&ei;i++)n.push(this.get(r[i],e));return n},t.prototype.getbyrawindex=function(t,e){if(!(e>=0&&er;r++){var o=this.get(t,r);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}),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/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=r;){var o=(r+i)/2|0;if(e[o]t))return o;i=o-1}}return-1},t.prototype.indicesofnearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)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),f=e-i[c],p=math.abs(f);n>=p&&((a>p||p===a&&f>=0&&0>s)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getindices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===array){t=new n(r);for(var i=0;r>i;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{var n=th(this._rawcount);t=new n(this.count());for(var i=0;ic;c++){var f=void 0,p=n.getrawindex(c);if(0===s)f=e(c);else if(1===s){var d=h[u][p];f=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][p];a[g]=c,f=e.apply(null,a)}f&&(o[l++]=p)}return r>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 r=w(t),i=r.length;if(!i)return this;var o=e.count(),a=th(e._rawcount),s=new a(o),l=0,u=r[0],h=t[u][0],c=t[u][1],f=e._chunks,p=!1;if(!e._indices){var d=0;if(1===i){for(var g=f[r[0]],v=0;n>v;v++){var y=g[v];(y>=h&&c>=y||isnan(y))&&(s[l++]=d),d++}p=!0}else if(2===i){for(var g=f[r[0]],m=f[r[1]],_=t[r[1]][0],x=t[r[1]][1],v=0;n>v;v++){var y=g[v],b=m[v];(y>=h&&c>=y||isnan(y))&&(b>=_&&x>=b||isnan(b))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===i)for(var v=0;o>v;v++){var s=e.getrawindex(v),y=f[r[0]][s];(y>=h&&c>=y||isnan(y))&&(s[l++]=s)}else for(var v=0;o>v;v++){for(var m=!0,s=e.getrawindex(v),t=0;i>t;t++){var c=r[t],y=f[c][s];(yt[c][1])&&(m=!1)}m&&(s[l++]=e.getrawindex(v))}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 r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawextent,u=0;uh;h++){for(var c=t.getrawindex(h),f=0;o>f;f++)s[f]=r[e[f]][c];s[o]=h;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var u=0;uv[1]&&(v[1]=g)}}}},t.prototype.lttbdownsample=function(t,e){var n,r,i,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),f=new(th(this._rawcount))(math.min(2*(math.ceil(l/h)+2),l));f[u++]=c;for(var p=1;l-1>p;p+=h){for(var d=math.min(p+h,l-1),g=math.min(p+2*h,l),v=(g+d)/2,y=0,m=d;g>m;m++){var _=this.getrawindex(m),x=s[_];isnan(x)||(y+=x)}y/=g-d;var w=p,b=math.min(p+h,l),s=p-1,m=s[c];n=-1,i=w;for(var t=-1,c=0,m=w;b>m;m++){var _=this.getrawindex(m),x=s[_];isnan(x)?(c++,0>t&&(t=_)):(r=math.abs((s-v)*(x-m)-(s-m)*(y-m)),r>n&&(n=r,i=_))}c>0&&b-w>c&&(f[u++]=math.min(t,i),i=math.max(t,i)),f[u++]=i,c=i}return f[u++]=this.getrawindex(l-1),o._count=u,o._indices=f,o.getrawindex=this._getrawidx,o},t.prototype.downsample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=math.floor(1/e),l=o[t],u=this.count(),h=i._rawextent[t]=eh(),c=new(th(this._rawcount))(math.ceil(u/s)),f=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,a.length=s);for(var d=0;s>d;d++){var g=this.getrawindex(p+d);a[d]=l[g]}var v=n(a),y=this.getrawindex(math.min(p+r(a,v)||0,u-1));l[y]=v,vh[1]&&(h[1]=v),c[f++]=y}return i._count=f,i._indices=c,i._updategetrawidx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();o>i;i++){var a=this.getrawindex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];n>s;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getdataextent=function(t){var e=this._chunks[t],n=eh();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawextent[t].slice();if(r=this._extent[t])return r.slice();r=n;for(var a=r[0],s=r[1],l=0;i>l;l++){var u=this.getrawindex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return r=[a,s],this._extent[t]=r,r},t.prototype.getrawdataitem=function(t){var e=this.getrawindex(t);if(this._provider.persistent)return this._provider.getitem(e);for(var n=[],r=this._chunks,i=0;ir;r++)e[r]=this._indices[r]}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,r){return gu(t[r],this._dimensions[r])}vb={arrayrows:t,objectrows:function(t,e,n,r){return gu(t[e],this._dimensions[r])},keyedcolumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return gu(i instanceof array?i[r]:i,this._dimensions[r])},typedarray:function(t,e,n,r){return t[r]}}}(),t}(),ws=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,r=this._getupstreamsourcemanagers(),i=!!r.length;if(oh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.preparesource(),l=u.getsource(),a=l.data,s=l.sourceformat,e=[u._getversionsign()]}else a=o.get("data",!0),s=l(a)?sb:_b,e=[];var h=this._getsourcemetarawoption()||{},c=l&&l.metarawoption||{},f=z(h.serieslayoutby,c.serieslayoutby)||null,p=z(h.sourceheader,c.sourceheader),d=z(h.dimensions,c.dimensions),g=f!==c.serieslayoutby||!!p!=!!c.sourceheader||d;t=g?[iu(a,{serieslayoutby:f,sourceheader:p,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applytransform(r);t=y.sourcelist,e=y.upstreamsignlist}else{var m=v.get("source",!0);t=[iu(m,this._getsourcemetarawoption(),null)],e=[]}}this._setlocalsource(t,e)},t.prototype._applytransform=function(t){var e=this._sourcehost,n=e.get("transform",!0),r=e.get("fromtransformresult",!0);if(null!=r){var i="";1!==t.length&&ah(i)}var o,a=[],s=[];return v(t,function(t){t.preparesource();var e=t.getsource(r||0),n="";null==r||e||ah(n),a.push(e),s.push(t._getversionsign())}),n?o=$u(n,a,{datasetindex:e.componentindex}):null!=r&&(o=[lu(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 r=this.ecmodel,i=lb.prototype.getcolorfrompalette.call(this,t,e,n);return i||(i=r.getcolorfrompalette(t,e,n)),i},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 r=this.option.selectedmode,i=this.getdata(e);if("series"===r||"all"===n)return this.option.selectedmap={},void(this._selecteddataindicesmap={});for(var o=0;o=0&&n.push(i)}return n},n.prototype.isselected=function(t,e){var n=this.option.selectedmap;if(!n)return!1;var r=this.getdata(e);return("all"===n||n[ch(r,t)])&&!r.getitemmodel(t).get(["select","disabled"])},n.prototype.isuniversaltransitionenabled=function(){if(this[ss])return!0;var t=this.option.universaltransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerselect=function(t,e){var n,r,i=this.option,o=i.selectedmode,a=e.length;if(o&&a)if("series"===o)i.selectedmap="all";else if("multiple"===o){i(i.selectedmap)||(i.selectedmap={});for(var s=i.selectedmap,l=0;a>l;l++){var u=e[l],h=ch(t,u);s[h]=!0,this._selecteddataindicesmap[h]=t.getrawindex(u)}}else if("single"===o||o===!0){var c=e[a-1],h=ch(t,c);i.selectedmap=(n={},n[h]=!0,n),this._selecteddataindicesmap=(r={},r[h]=t.getrawindex(c),r)}},n.prototype._initselectedmapfromdata=function(t){if(!this.option.selectedmap){var e=[];t.hasitemoption&&t.each(function(n){var r=t.getrawdataitem(n);r&&r.selected&&e.push(n)}),e.length>0&&this._innerselect(t,e)}},n.registerclass=function(t){return fb.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}(fb);d(ms,ls),d(ms,lb),io(ms,fb);var ts=function(){function t(){this.group=new gm,this.uid=qs("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}();no(ts),lo(ts);var cs=xi(),ks=xh(),ds=function(){function t(){this.group=new gm,this.uid=qs("viewchart"),this.rendertask=uu({plan:sh,reset:mh}),this.rendertask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,r){var i=t.getdata(r&&r.datatype);i&&bh(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getdata(r&&r.datatype);i&&bh(i,r,"normal")},t.prototype.remove=function(){this.group.removeall()},t.prototype.dispose=function(){},t.prototype.updateview=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updatelayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updatevisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachrendered=function(t){vs(this.group,t)},t.markupdatemethod=function(t,e){cs(t).updatemethod=e},t.protoinitialize=function(){var e=t.prototype;e.type="chart"}(),t}();no(ds,["dispose"]),lo(ds);var is,as={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)}}},ls=xi(),os={itemstyle:uo(bw,!0),linestyle:uo(pw,!0)},ps={linestyle:"stroke",itemstyle:"fill"},rs={createonallseries:!0,performrawseries:!0,reset:function(t,e){var n=t.getdata(),r=t.visualstyleaccesspath||"itemstyle",i=t.getmodel(r),o=ch(t,r),a=o(i),s=i.getshallow("decal");s&&(n.setvisual("decal",s),s.dirty=!0);var l=kh(t,r),u=a[l],c=t(u)?u:null,f="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||f){var p=t.getcolorfrompalette(t.name,null,e.getseriescount());a[l]||(a[l]=p,n.setvisual("colorfrompalette",!0)),a.fill="auto"===a.fill||t(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||t(a.stroke)?p:a.stroke}return n.setvisual("style",a),n.setvisual("drawtype",l),!e.isseriesfiltered(t)&&c?(n.setvisual("colorfrompalette",!1),{dataeach:function(e,n){var r=t.getdataparams(n),i=h({},a);i[l]=c(r),e.setitemvisual(n,"style",i)}}):void 0}},ns=new fw,bs={createonallseries:!0,performrawseries:!0,reset:function(t,e){if(!t.ignorestyleondata&&!e.isseriesfiltered(t)){var n=t.getdata(),r=t.visualstyleaccesspath||"itemstyle",i=ch(t,r),o=n.getvisual("drawtype");return{dataeach:n.hasitemoption?function(t,e){var n=t.getrawdataitem(e);if(n&&n[r]){ns.option=n[r]; var a=i(ns),s=t.ensureuniqueitemvisual(e,"style");h(s,a),ns.option.decal&&(t.setitemvisual(e,"decal",ns.option.decal),ns.option.decal.dirty=!0),o in a&&t.setitemvisual(e,"colorfrompalette",!1)}}:null}}}},es={performrawseries:!0,overallreset:function(t){var e=y();t.eachseries(function(t){var n=t.getcolorby();if(!t.iscolorbyseries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),ls(t).scope=i}}),t.eachseries(function(e){if(!e.iscolorbyseries()&&!t.isseriesfiltered(e)){var n=e.getrawdata(),r={},i=e.getdata(),o=ls(e).scope,a=e.visualstyleaccesspath||"itemstyle",s=kh(e,a);i.each(function(t){var e=i.getrawindex(t);r[e]=t}),n.each(function(t){var a=r[t],l=i.getitemvisual(a,"colorfrompalette");if(l){var u=i.ensureuniqueitemvisual(a,"style"),h=n.getname(t)||t+"",c=n.count();u[s]=e.getcolorfrompalette(h,o,c)}})}})}},zs=math.pi,fs=function(){function t(t,e,n,r){this._stagetaskmap=y(),this.ecinstance=t,this.api=e,n=this._dataprocessorhandlers=n.slice(),r=this._visualhandlers=r.slice(),this._allhandlers=n.concat(r)}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),r=n.context,i=!e&&n.progressiveenabled&&(!r||r.progressiverender)&&t.__idxinpipeline>n.blockindex,o=i?n.step:null,a=r&&r.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),r=t.getdata(),i=r.count(),o=n.progressiveenabled&&e.incrementalpreparerender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largethreshold"),s="mod"===t.get("progressivechunkmode")?i:null;t.pipelinecontext=n.context={progressiverender:o,moddatacount:s,large:a}},t.prototype.restorepipelines=function(t){var e=this,n=e._pipelinemap=y();t.eachseries(function(t){var r=t.getprogressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getprogressivethreshold(),progressiveenabled:r&&!(t.preventincremental&&t.preventincremental()),blockindex:-1,step:math.round(r||700),count:0}),e._pipe(t,t.datatask)})},t.prototype.preparestagetasks=function(){var t=this._stagetaskmap,e=this.api.getmodel(),n=this.api;v(this._allhandlers,function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";w(!(r.reset&&r.overallreset),o),r.reset&&this._createseriesstagetask(r,i,e,n),r.overallreset&&this._createoverallstagetask(r,i,e,n)},this)},t.prototype.prepareview=function(t,e,n,r){var i=t.rendertask,o=i.context;o.model=e,o.ecmodel=n,o.api=r,i.__block=!t.incrementalpreparerender,this._pipe(e,i)},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,r){function i(t,e){return t.setdirty&&(!t.dirtymap||t.dirtymap.get(e.__pipeline.id))}r=r||{};var o=!1,a=this;v(t,function(t){if(!r.visualtype||r.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){i(r,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatepayload(u,n);var f=a.getperformargs(u,r.block);c.each(function(t){t.perform(f)}),u.perform(f)&&(o=!0)}else l&&l.each(function(s){i(r,s)&&s.dirty();var l=a.getperformargs(s,r.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,r){function i(e){var i=e.uid,l=s.set(i,a&&a.get(i)||uu({plan:ph,reset:rh,count:bh}));l.context={model:e,ecmodel:n,api:r,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=y(),l=t.seriestype,u=t.gettargetseries;t.createonallseries?n.eachrawseries(i):l?n.eachrawseriesbytype(l,i):u&&u(n,r).each(i)},t.prototype._createoverallstagetask=function(t,e,n,r){function i(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(f=!0,uu({reset:ah,ondirty:oh})));n.context={model:t,overallprogress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overalltask=e.overalltask||uu({reset:ih});a.context={ecmodel:n,api:r,overallreset:t.overallreset,scheduler:o};var s=a.agentstubmap,l=a.agentstubmap=y(),u=t.seriestype,h=t.gettargetseries,c=!0,f=!1,p="";w(!t.createonallseries,p),u?n.eachrawseriesbytype(u,i):h?h(n,r).each(i):(c=!1,v(n.getseries(),i)),f&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelinemap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxinpipeline=r.count++,e.__pipeline=r},t.wrapstagehandler=function(t,e){return t(t)&&(t={overallreset:t,seriestype:eh(t)}),t.uid=qs("stagehandler"),e&&(t.visualtype=e),t},t}(),vs=nh(0),hs={},ws={};zh(hs,rb),zh(ws,wb),hs.eachseriesbytype=hs.eachrawseriesbytype=function(t){is=t},hs.eachcomponent=function(t){"series"===t.maintype&&t.subtype&&(is=t.subtype)};var us=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"],gs={color:us,colorlayer:[["#37a2da","#ffd85c","#fd7b5f"],["#37a2da","#67e0e3","#ffdb5c","#ff9f7f","#e062ae","#9d96f5"],["#37a2da","#32c5e9","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e7bcf3","#8378ea","#96bfff"],us]},qs="#b9b8ce",xs="#100c2a",ys=function(){return{axisline:{linestyle:{color:qs}},splitline:{linestyle:{color:"#484753"}},splitarea:{areastyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorsplitline:{linestyle:{color:"#20203b"}}}},js=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],zs={darkmode:!0,color:js,backgroundcolor:xs,axispointer:{linestyle:{color:"#817f91"},crossstyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textstyle:{color:qs}},textstyle:{color:qs},title:{textstyle:{color:"#eef1fa"},subtextstyle:{color:"#b9b8ce"}},toolbox:{iconstyle:{bordercolor:qs}},datazoom:{bordercolor:"#71708a",textstyle:{color:qs},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:qs}},timeline:{linestyle:{color:qs},label:{color:qs},controlstyle:{color:qs,bordercolor:qs}},calendar:{itemstyle:{color:xs},daylabel:{color:qs},monthlabel:{color:qs},yearlabel:{color:qs}},timeaxis:ys(),logaxis:ys(),valueaxis:ys(),categoryaxis:ys(),line:{symbol:"circle"},graph:{color:js},gauge:{title:{color:qs},axisline:{linestyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axislabel:{color:qs},detail:{color:"#eef1fa"}},candlestick:{itemstyle:{color:"#f64e56",color0:"#54ea92",bordercolor:"#f64e56",bordercolor0:"#54ea92"}}};zs.categoryaxis.splitline.show=!1;var ks=function(){function t(){}return t.prototype.normalizequery=function(t){var e={},n={},r={};if(c(t)){var i=ji(t);e.maintype=i.main||null,e.subtype=i.sub||null}else{var o=["index","name","id"],a={name:1,dataindex:1,datatype:1};v(t,function(t,i){for(var s=!1,l=0;l0&&h===i.length-u.length){var c=i.slice(0,h);"data"!==c&&(e.maintype=c,e[u.tolowercase()]=t,s=!0)}}a.hasownproperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)})}return{cptquery:e,dataquery:n,otherquery:r}},t.prototype.filter=function(t,e){function n(t,e,n,r){return null==t[n]||e[r||n]===t[n]}var r=this.eventinfo;if(!r)return!0;var i=r.targetel,o=r.packedevent,a=r.model,s=r.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,i,o))},t.prototype.aftertrigger=function(){this.eventinfo=null},t}(),$s=["symbol","symbolsize","symbolrotate","symboloffset"],qs=$s.concat(["symbolkeepaspect"]),js={createonallseries:!0,performrawseries:!0,reset:function(t,e){function n(e,n){for(var r=t.getrawvalue(n),i=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[um]&&!this._disposed){var r,i,o;if(i(e)&&(n=e.lazyupdate,r=e.silent,i=e.replacemerge,o=e.transition,e=e.notmerge),this[um]=!0,!this._model||e){var a=new xb(this._api),s=this._theme,l=this._model=new rb;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setoption(t,{replacemerge:i},st);var u={seriestransition:o,optionchanged:!0};if(n)this[gm]={silent:r,updateparams:u},this[um]=!1,this.getzr().wakeup();else{try{jm(this),nt.update.call(this,null,u)}catch(h){throw this[gm]=null,this[um]=!1,h}this._ssr||this._zr.flush(),this[gm]=null,this[um]=!1,at.call(this,r),st.call(this,r)}}},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||bg.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(bg.svgsupported){var t=this._zr,e=t.storage.getdisplaylist();return v(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,r=[],i=this;v(e,function(t){n.eachcomponent({maintype:t},function(t){var e=i._componentsmap[t.__viewid];e.group.ignore||(r.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 v(r,function(t){t.group.ignore=!1}),o}},n.prototype.getconnecteddataurl=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=math.min,i=math.max,o=1/0;if(dt[n]){var a=o,l=o,u=-o,h=-o,c=[],f=t&&t.pixelratio||this.getdevicepixelratio();v(kt,function(o){if(o.group===n){var f=e?o.getzr().painter.getsvgdom().innerhtml:o.rendertocanvas(s(t)),p=o.getdom().getboundingclientrect();a=r(p.left,a),l=r(p.top,l),u=i(p.right,u),h=i(p.bottom,h),c.push({dom:f,left:p.left,top:p.top})}}),a*=f,l*=f,u*=f,h*=f;var p=u-a,d=h-l,g=gg.createcanvas(),y=kr(g,{renderer:e?"svg":"canvas"});if(y.resize({width:p,height:d}),e){var m="";return v(c,function(t){var e=t.left-a,n=t.top-l;m+=''+t.dom+""}),y.painter.getsvgroot().innerhtml=m,t.connectedbackgroundcolor&&y.painter.setbackgroundcolor(t.connectedbackgroundcolor),y.refreshimmediately(),y.painter.todataurl()}return t.connectedbackgroundcolor&&y.add(new u_({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedbackgroundcolor}})),v(c,function(t){var e=new f_({style:{x:t.left*f-a,y:t.top*f-l,image:t.dom}});y.add(e)}),y.refreshimmediately(),g.todataurl("image/"+(t&&t.type||"png"))}return this.getdataurl(t)}},n.prototype.converttopixel=function(t,e){return rt(this,"converttopixel",t,e)},n.prototype.convertfrompixel=function(t,e){return rt(this,"convertfrompixel",t,e)},n.prototype.containpixel=function(t,e){if(!this._disposed){var n,r=this._model,i=yi(r,t);return v(i,function(t,r){r.indexof("models")>=0&&v(t,function(t){var i=t.coordinatesystem;if(i&&i.containpoint)n=n||!!i.containpoint(e);else if("seriesmodels"===r){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,r=yi(n,t,{defaultmaintype:"series"}),i=r.seriesmodel,o=i.getdata(),a=r.hasownproperty("dataindexinside")?r.dataindexinside:r.hasownproperty("dataindex")?o.indexofrawindex(r.dataindex):null;return null!=a?fh(o,a,e):vh(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;v(_t,function(e){var n=function(n){var r,i=t.getmodel(),o=n.target,a="globalout"===e;if(a?r={}:o&&gh(o,function(t){var e=$_(t);if(e&&null!=e.dataindex){var n=e.datamodel||i.getseriesbyindex(e.seriesindex);return r=n&&n.getdataparams(e.dataindex,e.datatype)||{},!0}return e.eventdata?(r=h({},e.eventdata),!0):void 0},!0),r){var s=r.componenttype,l=r.componentindex;("markline"===s||"markpoint"===s||"markarea"===s)&&(s="series",l=r.seriesindex);var u=s&&null!=l&&i.getcomponent(s,l),c=u&&t["series"===u.maintype?"_chartsmap":"_componentsmap"][u.__viewid];r.event=n,r.type=e,t._$eventprocessor.eventinfo={targetel:o,packedevent:r,model:u,view:c},t.trigger(e,r)}};n.zreventfulcallatlast=!0,t._zr.on(e,n,t)}),v(wt,function(e,n){t._messagecenter.on(n,function(t){this.trigger(n,t)},t)}),v(["selectchanged"],function(e){t._messagecenter.on(e,function(t){this.trigger(e,t)},t)}),uh(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&&ki(this.getdom(),lt,"");var e=this,n=e._api,r=e._model;v(e._componentsviews,function(t){t.dispose(r,n)}),v(e._chartsviews,function(t){t.dispose(r,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 kt[e.id]}},n.prototype.resize=function(t){if(!this[um]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingfx&&this._loadingfx.resize(),e){var n=e.resetoption("media"),r=t&&t.silent;this[gm]&&(null==r&&(r=this[gm].silent),n=!0,this[gm]=null),this[um]=!0;try{n&&jm(this),nt.update.call(this,{type:"resize",animation:h({duration:0},t&&t.animation)})}catch(i){throw this[um]=!1,i}this[um]=!1,at.call(this,r),st.call(this,r)}}},n.prototype.showloading=function(t,e){if(!this._disposed&&(i(t)&&(e=t,t=""),t=t||"default",this.hideloading(),ct[t])){var n=ct[t](this._api,e),r=this._zr;this._loadingfx=n,r.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=wt[t.type],e},n.prototype.dispatchaction=function(t,e){if(!this._disposed&&(i(e)||(e={silent:!!e}),xt[t.type]&&this._model)){if(this[um])return void this._pendingactions.push(t);var n=e.silent;ot.call(this,t,n);var r=e.flush;r?this._zr.flush():r!==!1&&bg.browser.wechat&&this._throttledzrflush(),at.call(this,n),st.call(this,n)}},n.prototype.updatelabellayout=function(){bm.trigger("series:layoutlabels",this._model,this._api,{updatedseries:[]})},n.prototype.appenddata=function(t){if(!this._disposed){var e=t.seriesindex,n=this.getmodel(),r=n.getseriesbyindex(e);r.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=[],r=!1;if(t.eachcomponent(function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getzlevelkey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentindex,type:t,key:s})}),r){var i,o,a=e.concat(n);rn(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),v(a,function(e){var n=t.getcomponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setzlevel(r)})}}function r(t){for(var e=[],n=t.currentstates,r=0;re.get("hoverlayerthreshold")&&!bg.node&&!bg.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,r=t.get("zlevel")||0;e.eachrendered(function(t){return s(t,n,r,-1/0),!0})}}function s(t,e,n,r){var i=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(bs(t))return;if(t instanceof r_&&ja(t),t.__dirty){var e=t.prevstates;e&&t.usestates(e)}if(i){t.statetransition=a;var n=t.gettextcontent(),o=t.gettextguideline();n&&(n.statetransition=a),o&&(o.statetransition=a)}t.__dirty&&r(t)}})}jm=function(t){var e=t._scheduler;e.restorepipelines(t._model),e.preparestagetasks(),tt(t,!0),tt(t,!1),e.plan()},tt=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=ji(t.type),f=e?ts.getclass(c.main,c.sub):ds.getclass(c.sub);h=new f,h.init(r,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&&i.prepareview(h,t,r,l)}for(var r=t._model,i=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(i,n)},t.prototype._executemultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initindexmap(t,n,i,"_oldkeygetter"),this._initindexmap(e,r,o,"_newkeygetter");for(var a=0;a1&&1===c)this._updatemanytoone&&this._updatemanytoone(u,l),r[s]=null;else if(1===h&&c>1)this._updateonetomany&&this._updateonetomany(u,l),r[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),r[s]=null;else if(h>1&&c>1)this._updatemanytomany&&this._updatemanytomany(u,l),r[s]=null;else if(h>1)for(var f=0;h>f;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performrestadd(o,r)},t.prototype._performrestadd=function(t,e){for(var n=0;n1)for(var a=0;o>a;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initindexmap=function(t,e,n,r){for(var i=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)}i.push({property:s,type:l,ordinalmeta:u}),!e||null==s||h&&h.iscalculationcoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=yt[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source,p=[f.serieslayoutby,f.startindex,r].join("$$");return{dimensions:i,hash:p}},t.prototype.makeoutputdimensionnames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-r;this._namelist[a]=e[s],o&&ht(this,a)}},t.prototype._updateordinalmeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,r=n.getprovider();this._updateordinalmeta();var i=this._namelist,o=this._idlist,a=r.getsource().sourceformat,s=a===_b;if(s&&!r.pure)for(var l=[],u=t;e>u;u++){var h=r.getitem(u,l);if(!this.hasitemoption&&ai(h)&&(this.hasitemoption=!0),h){var c=h.name;null==i[u]&&null!=c&&(i[u]=vi(c,null));var f=h.id;null==o[u]&&null!=f&&(o[u]=vi(f,null))}}if(this._shouldmakeidfromname())for(var u=t;e>u;u++)ht(this,u);nt(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){zt(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=et(this,this._namedimidx,e)),null==n&&(n=""),n},t.prototype._getcategory=function(t,e){var n=this._store.get(t,e),r=this._store.getordinalmeta(t);return r?r.categories[n]:n},t.prototype.getid=function(t){return bt(this,this.getrawindex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._diminfos[t];return r?n.get(r.storedimindex,e):void 0},t.prototype.getbyrawindex=function(t,e){var n=this._store,r=this._diminfos[t];return r?n.getbyrawindex(r.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,r=this._store;return m(t)?r.getvalues(kt(t,function(t){return n._getstoredimindex(t)}),e):r.getvalues(t)},t.prototype.hasvalue=function(t){for(var e=this._dimsummary.datadimindicesoncoord,n=0,r=e.length;r>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],r=n[e];return null==r||isnan(r)?jt:r},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 r=n||this,i=kt(zt(t),this._getstoredimindex,this);this._store.each(i,r?iv(e,r):e)},t.prototype.filterself=function(t,e,n){t(t)&&(n=e,e=t,t=[]);var r=n||this,i=kt(zt(t),this._getstoredimindex,this);return this._store=this._store.filter(i,r?iv(e,r):e),this},t.prototype.selectrange=function(t){var e=this,n={},r=w(t),i=[];return v(r,function(r){var o=e._getstoredimindex(r);n[o]=t[r],i.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 r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=kt(zt(t),this._getstoredimindex,this),a=vt(this);return a._store=this._store.map(o,i?iv(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this,o=kt(zt(t),this._getstoredimindex,this);this._store.modify(o,i?iv(e,i):e)},t.prototype.downsample=function(t,e,n,r){var i=vt(this);return i._store=this._store.downsample(this._getstoredimindex(t),e,n,r),i},t.prototype.lttbdownsample=function(t,e){var n=vt(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 fw(n,e,e&&e.ecmodel)},t.prototype.diff=function(t){var e=this;return new ut(t?t.getstore().getindices():[],this.getstore().getindices(),function(e){return bt(t,e)},function(t){return bt(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||{},zt(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getitemvisual=function(t,e){var n=this._itemvisuals[t],r=n&&n[e];return null==r?this.getvisual(e):r},t.prototype.hasitemvisual=function(){return this._itemvisuals.length>0},t.prototype.ensureuniqueitemvisual=function(t,e){var n=this._itemvisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getvisual(e),m(i)?i=i.slice():zt(i)&&(i=h({},i)),r[e]=i),i},t.prototype.setitemvisual=function(t,e,n){var r=this._itemvisuals[t]||{};this._itemvisuals[t]=r,zt(e)?h(r,e):r[e]=n},t.prototype.clearallvisual=function(){this._visual={},this._itemvisuals=[]},t.prototype.setlayout=function(t,e){zt(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;q_(n,this.datatype,t,e),this._graphicels[t]=e},t.prototype.getitemgraphicel=function(t){return this._graphicels[t]},t.prototype.eachitemgraphicel=function(t,e){v(this._graphicels,function(n,r){n&&t&&t.call(e,n,r)})},t.prototype.cloneshallow=function(e){return e||(e=new t(this._schema?this._schema:kt(this.dimensions,this._getdiminfo,this),this.hostmodel)),ft(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(){nt=function(t){var e=t._invertedindicesmap;v(e,function(n,r){var i=t._diminfos[r],o=i.ordinalmeta,a=t._store;if(o){n=e[r]=new $t(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),rc=function(){function t(t){this.coordsysdims=[],this.axismap=y(),this.categoryaxismap=y(),this.coordsysname=t}return t}(),ic={cartesian2d:function(t,e,n,r){var i=t.getreferringcomponents("xaxis",im).models[0],o=t.getreferringcomponents("yaxis",im).models[0];e.coordsysdims=["x","y"],n.set("x",i),n.set("y",o),xf(i)&&(r.set("x",i),e.firstcategorydimindex=0),xf(o)&&(r.set("y",o),null==e.firstcategorydimindex&&(e.firstcategorydimindex=1))},singleaxis:function(t,e,n,r){var i=t.getreferringcomponents("singleaxis",im).models[0];e.coordsysdims=["single"],n.set("single",i),xf(i)&&(r.set("single",i),e.firstcategorydimindex=0)},polar:function(t,e,n,r){var i=t.getreferringcomponents("polar",im).models[0],o=i.findaxismodel("radiusaxis"),a=i.findaxismodel("angleaxis");e.coordsysdims=["radius","angle"],n.set("radius",o),n.set("angle",a),xf(o)&&(r.set("radius",o),e.firstcategorydimindex=0),xf(a)&&(r.set("angle",a),null==e.firstcategorydimindex&&(e.firstcategorydimindex=1))},geo:function(t,e){e.coordsysdims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecmodel,o=i.getcomponent("parallel",t.get("parallelindex")),a=e.coordsysdims=o.dimensions.slice();v(o.parallelaxisindex,function(t,o){var s=i.getcomponent("parallelaxis",t),l=a[o];n.set(l,s),xf(s)&&(r.set(l,s),null==e.firstcategorydimindex&&(e.firstcategorydimindex=o))})}},oc=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}();lo(oc);var ac=0,sc=function(){function t(t){this.categories=t.categories||[],this._needcollect=t.needcollect,this._deduplication=t.deduplication,this.uid=++ac}return t.createbyaxismodel=function(e){var n=e.option,r=n.data,i=r&&y(r,af);return new t({categories:i,needcollect:!i,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 r=this._getorcreatemap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=0/0),e},t.prototype._getorcreatemap=function(){return this._map||(this._map=y(this.categories))},t}(),lc=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getsetting("ordinalmeta");return r||(r=new sc({})),m(r)&&(r=new sc({categories:y(r,function(t){return i(t)?t.value:t})})),n._ordinalmeta=r,n._extent=n.getsetting("extent")||[0,r.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),nf(t,this._extent)&&null!=this._ordinalmeta.categories[t]},n.prototype.normalize=function(t){return t=this._getticknumber(this.parse(t)),bf(t,this._extent)},n.prototype.scale=function(t){return t=math.round(ef(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=[],r=this._ticksbyordinalnumber=[],i=0,o=this._ordinalmeta.categories.length,a=math.min(o,e.length);a>i;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;o>i;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}},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}(oc);oc.registerclass(lc);var uc=ii,hc=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 nf(t,this._extent)},n.prototype.normalize=function(t){return bf(t,this._extent)},n.prototype.scale=function(t){return ef(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=of(t)},n.prototype.getticks=function(t){var e=this._interval,n=this._extent,r=this._niceextent,i=this._intervalprecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[];var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&o.push(t?{value:uc(l+e,i)}:{value:n[1]}),o},n.prototype.getminorticks=function(t){for(var e=this.getticks(!0),n=[],r=this.getextent(),i=1;is;){var c=uc(a.value+(s+1)*h);c>r[0]&&ci&&(i=-i,r.reverse());var o=lf(r,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 r=e[1]-e[0];isfinite(r)||(e[0]=0,e[1]=1),this.calcniceticks(t.splitnumber,t.mininterval,t.maxinterval);var i=this._interval;t.fixmin||(e[0]=uc(math.floor(e[0]/i)*i)),t.fixmax||(e[1]=uc(math.ceil(e[1]/i)*i))},n.prototype.setniceextent=function(t,e){this._niceextent=[t,e]},n.type="interval",n}(oc);oc.registerclass(hc);var cc="__ec_stack_",fc=function(t,e,n,r){for(;r>n;){var i=n+r>>>1;t[i][1]n&&(this._approxinterval=n);var o=dc.length,a=math.min(fc(dc,this._approxinterval,0,o),o-1);this._interval=dc[a][1],this._minlevelunit=dc[math.max(a-1,0)][0]},n.prototype.parse=function(t){return d(t)?t:+di(t)},n.prototype.contain=function(t){return nf(this.parse(t),this._extent)},n.prototype.normalize=function(t){return bf(this.parse(t),this._extent)},n.prototype.scale=function(t){return ef(t,this._extent)},n.type="time",n}(hc),dc=[["second",zw],["minute",kw],["hour",$w],["quarter-day",6*$w],["half-day",12*$w],["day",1.2*qw],["half-week",3.5*qw],["week",7*qw],["month",31*qw],["quarter",95*qw],["half-year",jw/2],["year",jw]];oc.registerclass(pc);var gc=oc.prototype,vc=hc.prototype,yc=ii,mc=math.floor,_c=math.ceil,xc=math.pow,wc=math.log,bc=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalscale=new hc,e._interval=0,e}return e(n,t),n.prototype.getticks=function(t){var e=this._originalscale,n=this._extent,r=e.getextent(),i=vc.getticks.call(this,t);return y(i,function(t){var e=t.value,i=ii(xc(this.base,e));return i=e===n[0]&&this._fixmin?ep(i,r[0]):i,i=e===n[1]&&this._fixmax?ep(i,r[1]):i,{value:i}},this)},n.prototype.setextent=function(t,e){var n=wc(this.base);t=wc(math.max(0,t))/n,e=wc(math.max(0,e))/n,vc.setextent.call(this,t,e)},n.prototype.getextent=function(){var t=this.base,e=gc.getextent.call(this);e[0]=xc(t,e[0]),e[1]=xc(t,e[1]);var n=this._originalscale,r=n.getextent();return this._fixmin&&(e[0]=ep(e[0],r[0])),this._fixmax&&(e[1]=ep(e[1],r[1])),e},n.prototype.unionextent=function(t){this._originalscale.unionextent(t);var e=this.base;t[0]=wc(t[0])/wc(e),t[1]=wc(t[1])/wc(e),gc.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 r=gi(n),i=t/n*r;for(.5>=i&&(r*=10);!isnan(r)&&math.abs(r)<1&&math.abs(r)>0;)r*=10;var o=[ii(_c(e[0]/r)*r),ii(mc(e[1]/r)*r)];this._interval=r,this._niceextent=o}},n.prototype.calcniceextent=function(t){vc.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=wc(t)/wc(this.base),nf(t,this._extent)},n.prototype.normalize=function(t){return t=wc(t)/wc(this.base),bf(t,this._extent)},n.prototype.scale=function(t){return t=ef(t,this._extent),xc(this.base,t)},n.type="log",n}(oc),sc=bc.prototype;sc.getminorticks=vc.getminorticks,sc.getlabel=vc.getlabel,oc.registerclass(bc);var mc=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,f=this._determinedmax;return null!=c&&(a=c,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minfixed:l,maxfixed:u,isblank:h}},t.prototype.modifydataminmax=function(t,e){this[cc[t]]=e},t.prototype.setdeterminedminmax=function(t,e){var n=tc[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),tc={min:"_determinedmin",max:"_determinedmax"},cc={min:"_datamin",max:"_datamax"},kc=function(){function t(){}return t.prototype.getneedcrosszero=function(){var t=this.option;return!t.scale},t.prototype.getcoordsysmodel=function(){},t}(),dc={isdimensionstacked:sf,enabledatastack:wf,getstackeddimension:mf},ic=(object.freeze||object)({createlist:fp,getlayoutrect:bl,datastack:dc,createscale:pp,mixinaxismodelcommonmethods:dp,getecdata:$_,createtextstyle:gp,createdimensions:df,createsymbol:xh,enablehoveremphasis:ua}),ac=[],lc={registerpreprocessor:wc,registerprocessor:uc,registerpostinit:gc,registerpostupdate:qc,registerupdatelifecycle:xc,registeraction:yc,registercoordinatesystem:jc,registerlayout:kc,registervisual:$c,registertransform:rt,registerloading:jc,registermap:ef,registerimpl:ac,priority:wm,componentmodel:fb,componentview:ts,seriesmodel:ms,chartview:ds,registercomponentmodel:function(t){fb.registerclass(t)},registercomponentview:function(t){ts.registerclass(t)},registerseriesmodel:function(t){ms.registerclass(t)},registerchartview:function(t){ds.registerclass(t)},registersubtypedefaulter:function(t,e){fb.registersubtypedefaulter(t,e)},registerpainter:function(t,e){ti(t,e)}},oc=1e-8,pc=[],rc=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}(),nc=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),bc=function(){function t(t){this.type="linestring",this.points=t}return t}(),ec=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.type="geojson",i.geometries=n,i._center=r&&[r[0],r[1]],i}return e(n,t),n.prototype.calccenter=function(){for(var t,e=this.geometries,n=0,r=0;rn&&(t=i,n=a)}if(t)return wp(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],r=[-1/0,-1/0],i=this.geometries;return v(i,function(e){"polygon"===e.type?xp(e.exterior,n,r,t):v(e.points,function(e){xp(e,n,r,t)})}),isfinite(n[0])&&isfinite(n[1])&&isfinite(r[0])&&isfinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new fv(n[0],n[1],r[0]-n[0],r[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 r=0,i=n.length;i>r;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(mp(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(mp(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformto=function(t,e,n,r){var i=this.getboundingrect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new fv(t,e,n,r),s=i.calculatetransform(a),l=this.geometries,u=0;u=n&&r>=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 li(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,r=this.scale;return t=r.normalize(t),this.onband&&"ordinal"===r.type&&(n=n.slice(),vp(n,r.count())),ni(t,gc,n,e)},t.prototype.coordtodata=function(t,e){var n=this._extent,r=this.scale;this.onband&&"ordinal"===r.type&&(n=n.slice(),vp(n,r.count()));var i=ni(t,n,gc,e);return this.scale.scale(i)},t.prototype.pointtodata=function(){},t.prototype.gettickscoords=function(t){t=t||{};var e=t.tickmodel||this.gettickmodel(),n=kp(this,e),r=n.ticks,i=y(r,function(t){return{coord:this.datatocoord("ordinal"===this.scale.type?this.scale.getrawordinalnumber(t):t),tickvalue:t}},this),o=e.get("alignwithlabel");return hp(this,i,o,t.clamp),i},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),r=y(n,function(t){return y(t,function(t){return{coord:this.datatocoord(t),tickvalue:t}},this)},this);return r},t.prototype.getviewlabels=function(){return cp(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 r=math.abs(t[1]-t[0]);return math.abs(r)/n},t.prototype.calculatecategoryinterval=function(){return bp(this)},t}(),xc=2*math.pi,yc=s_.cmd,jc=["top","right","bottom","left"],zc=[],kc=new av,$c=new av,qc=new av,jc=new av,tk=new av,ek=[],nk=new av,rk=["align","verticalalign","width","height","fontsize"],ik=new am,ok=xi(),ak=xi(),sk=["x","y","rotation"],lk=function(){function t(){this._labellist=[],this._chartviewlist=[]}return t.prototype.clearlabels=function(){this._labellist=[],this._chartviewlist=[]},t.prototype._addlabel=function(t,e,n,r,i){var o=r.style,a=r.__hosttarget,s=a.textconfig||{},l=r.getcomputedtransform(),u=r.getboundingrect().plain();fv.applytransform(u,u,l),l?ik.setlocaltransform(l):(ik.x=ik.y=ik.rotation=ik.originx=ik.originy=0,ik.scalex=ik.scaley=1);var h,c=r.__hosttarget;if(c){h=c.getboundingrect().plain();var f=c.getcomputedtransform();fv.applytransform(h,h,f)}var p=h&&c.gettextguideline();this._labellist.push({label:r,labelline:p,seriesmodel:n,dataindex:t,datatype:e,layoutoption:i,computedlayoutoption:null,rect:u,hostrect:h,priority:h?h.width*h.height:0,defaultattr:{ignore:r.ignore,labelguideignore:p&&p.ignore,x:ik.x,y:ik.y,scalex:ik.scalex,scaley:ik.scaley,rotation:ik.rotation,style:{x:o.x,y:o.y,align:o.align,verticalalign:o.verticalalign,width:o.width,height:o.height,fontsize:o.fontsize},cursor:r.cursor,attachedpos:s.position,attachedrot:s.rotation}})},t.prototype.addlabelsofseries=function(t){var e=this;this._chartviewlist.push(t);var n=t.__model,r=n.get("labellayout");(t(r)||w(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var i=t.gettextcontent(),o=$_(t);i&&!i.disablelabellayout&&e._addlabel(o.dataindex,o.datatype,n,i,r)})},t.prototype.updatelayoutconfig=function(t){function e(t,e){return function(){qp(t,e)}}for(var n=t.getwidth(),r=t.getheight(),i=0;i=0&&n.attr(i.oldlayoutselect),f(h,"emphasis")>=0&&n.attr(i.oldlayoutemphasis)),xs(n,l,e,s)}else if(n.attr(l),!dw(n).valueanimation){var c=z(n.style.opacity,1);n.style.opacity=0,ws(n,{style:{opacity:c}},e,s)}if(i.oldlayout=l,n.states.select){var p=i.oldlayoutselect={};fd(p,l,sk),fd(p,n.states.select,sk)}if(n.states.emphasis){var d=i.oldlayoutemphasis={};fd(d,l,sk),fd(d,n.states.emphasis,sk)}$s(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){var i=ak(r),o=i.oldlayout,g={points:r.shape.points};o?(r.attr({shape:o}),xs(r,{shape:g},e)):(r.setshape(g),r.style.strokepercent=0,ws(r,{style:{strokepercent:1}},e)),i.oldlayout=g}},t}(),uk=xi();vp(pd);var hk=function(t){function n(e,n,r){var i=t.call(this)||this;i.motionblur=!1,i.lastframealpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxrepaintrectcount=5,i.__dirty=!0,i.__firsttimepaint=!0,i.__used=!1,i.__drawindex=0,i.__startindex=0,i.__endindex=0,i.__prevstartindex=null,i.__prevendindex=null;var o;r=r||zy,"string"==typeof e?o=dd(e,n,r):i(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var a=o.style;return a&&(k(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderwidth="0"),i.painter=n,i.dpr=r,i}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=dd("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,r){function i(t){if(t.isfinite()&&!t.iszero())if(0===o.length){var e=new fv(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;ug&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){var e=new fv(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 fv(0,0,0,0),u=this.__startindex;uo;o++){var a=t[o];a.__inhover&&(n||(n=this._hoverlayer=this.getlayer(ck)),r||(r=n.ctx,r.save()),wc(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.gethoverlayer=function(){return this.getlayer(ck)},t.prototype.paintone=function(t,e){xc(t,e)},t.prototype._paintlist=function(t,e,n,r){if(this._redrawid===r){n=n||!1,this._updatelayerstatus(t);var i=this._dopaintlist(t,e,n),o=i.finished,a=i.needsrefreshhover;if(this._needsmanuallycompositing&&this._compositemanually(),a&&this._painthoverlist(t),o)this.eachlayer(function(t){t.afterbrush&&t.afterbrush()});else{var s=this;ty(function(){s._paintlist(t,e,n,r)})}}},t.prototype._compositemanually=function(){var t=this.getlayer(fk).ctx,e=this._domroot.width,n=this._domroot.height;t.clearrect(0,0,e,n),this.eachbuiltinlayer(function(r){r.virtual&&t.drawimage(r.dom,0,0,e,n)})},t.prototype._dopaintlist=function(t,e,n){for(var r=this,i=[],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=f.dpr,w=0;w0&&t>r[0]){for(s=0;i-1>s&&!(r[s]t);s++);a=n[r[s]]}if(r.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,r=0;r0?pk: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),r.__dirty&zv&&!r.__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,v(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 r=0;rs;s++){var u=a[s];wc(n,u,o,s===l-1)}return e.dom},t.prototype.getwidth=function(){return this._width},t.prototype.getheight=function(){return this._height},t}(),vk=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,r){t.prototype.init.call(this,e,n,r),this._sourcemanager=new ws(this),ih(this)},n.prototype.mergeoption=function(e,n){t.prototype.mergeoption.call(this,e,n),ih(this)},n.prototype.optionupdated=function(){this._sourcemanager.dirty()},n.prototype.getsourcemanager=function(){return this._sourcemanager},n.type="dataset",n.defaultoption={serieslayoutby:tb},n}(fb),yk=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}(ts);vp([yd,md]),vp(pd);var mk=2*math.pi,_k=math.pi/180,xk=math.pi/180,wk=function(t){function n(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new y_;return i.settextcontent(o),i.updatedata(e,n,r,!0),i}return e(n,t),n.prototype.updatedata=function(t,e,n,r){var i=this,o=t.hostmodel,a=t.getitemmodel(e),s=a.getmodel("emphasis"),l=t.getitemlayout(e),u=h(dd(a.getmodel("itemstyle"),l,!0),l);if(isnan(u.startangle))return void i.setshape(u);if(r){i.setshape(u);var c=o.getshallow("animationtype");o.ecmodel.ssr?(ws(i,{scalex:0,scaley:0},o,{dataindex:e,isfrom:!0}),i.originx=u.cx,i.originy=u.cy):"scale"===c?(i.shape.r=l.r0,ws(i,{shape:{r:l.r}},o,e)):null!=n?(i.setshape({startangle:n,endangle:n}),ws(i,{shape:{startangle:l.startangle,endangle:l.endangle}},o,e)):(i.shape.endangle=l.startangle,xs(i,{shape:{endangle:l.endangle}},o,e))}else cs(i),xs(i,{shape:u},o,e);i.usestyle(t.getitemvisual(e,"style")),ya(i,a);var f=(l.startangle+l.endangle)/2,p=o.get("selectedoffset"),d=math.cos(f)*p,g=math.sin(f)*p,v=a.getshallow("cursor");v&&i.attr("cursor",v),this._updatelabel(o,t,e),i.ensurestate("emphasis").shape=h({r:l.r+(s.get("scale")?s.get("scalesize")||0:0)},dd(s.getmodel("itemstyle"),l)),h(i.ensurestate("select"),{x:d,y:g,shape:dd(a.getmodel(["select","itemstyle"]),l)}),h(i.ensurestate("blur"),{shape:dd(a.getmodel(["blur","itemstyle"]),l)});var y=i.gettextguideline(),m=i.gettextcontent();y&&h(y.ensurestate("select"),{x:d,y:g}),h(m.ensurestate("select"),{x:d,y:g}),qa(this,s.get("focus"),s.get("blurscope"),s.get("disabled"))},n.prototype._updatelabel=function(t,e,n){var r=this,i=e.getitemmodel(n),o=i.getmodel("labelline"),a=e.getitemvisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;us(r,gs(i),{labelfetcher:e.hostmodel,labeldataindex:n,inheritcolor:s,defaultopacity:l,defaulttext:t.getformattedlabel(n,"normal")||e.getname(n)});var u=r.gettextcontent();r.settextconfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)r.removetextguideline();else{var c=this.gettextguideline();c||(c=new qx,this.settextguideline(c)),rd(this,id(i),{stroke:s,opacity:f(o.get(["linestyle","opacity"]),l,1)})}},n}(xx),bk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignorelabellineupdate=!0,e}return e(n,t),n.prototype.render=function(t,e,n){var r,i=t.getdata(),o=this._data,a=this.group;if(!o&&i.count()>0){for(var s=i.getitemlayout(0),l=1;isnan(s&&s.startangle)&&l=r.r0}},n.type="pie",n}(ds),sk=function(){function t(t,e){this._getdatawithencodedvisual=t,this._getrawdata=e}return t.prototype.getallnames=function(){var t=this._getrawdata();return t.maparray(t.getname)},t.prototype.containname=function(t){var e=this._getrawdata();return e.indexofname(t)>=0},t.prototype.indexofname=function(t){var e=this._getdatawithencodedvisual();return e.indexofname(t)},t.prototype.getitemvisual=function(t,e){var n=this._getdatawithencodedvisual();return n.getitemvisual(t,e)},t}(),mk=xi(),tk=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendvisualprovider=new sk(iv(this.getdata,this),iv(this.getrawdata,this)),this._defaultlabelline(e)},n.prototype.mergeoption=function(){t.prototype.mergeoption.apply(this,arguments)},n.prototype.getinitialdata=function(){return id(this,{coorddimensions:["value"],encodedefaulter:s(gl,this)})},n.prototype.getdataparams=function(e){var n=this.getdata(),r=mk(n),i=r.seats;if(!i){var o=[];n.each(n.mapdimension("value"),function(t){o.push(t)}),i=r.seats=hi(o,n.hostmodel.get("percentprecision"))}var a=t.prototype.getdataparams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},n.prototype._defaultlabelline=function(t){di(t,"labelline",["show"]);var e=t.labelline,n=t.emphasis.labelline;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultoption={z:2,legendhoverlink:!0,colorby:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startangle:90,minangle:0,minshowlabelangle:0,selectedoffset:10,percentprecision:2,stillshowzerosum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignto:"none",edgedistance:"25%",bleedmargin:10,distancetolabelline:5},labelline:{show:!0,length:15,length2:15,smooth:!1,minturnangle:90,maxsurfaceangle:90,linestyle:{width:1,type:"solid"}},itemstyle:{borderwidth:1,borderjoin:"round"},showemptycircle:!0,emptycirclestyle:{color:"lightgray",opacity:1},labellayout:{hideoverlap:!0},emphasis:{scale:!0,scalesize:5},avoidlabeloverlap:!0,animationtype:"expansion",animationduration:1e3,animationtypeupdate:"transition",animationeasingupdate:"cubicinout",animationdurationupdate:500,animationeasing:"cubicinout"},n}(ms);vp(ld);var ck=math.sin,kk=math.cos,dk=math.pi,ik=2*math.pi,ak=180/dk,lk=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=math.pow(10,t||4)},t.prototype.moveto=function(t,e){this._add("m",t,e)},t.prototype.lineto=function(t,e){this._add("l",t,e)},t.prototype.beziercurveto=function(t,e,n,r,i,o){this._add("c",t,e,n,r,i,o)},t.prototype.quadraticcurveto=function(t,e,n,r){this._add("q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,h=math.abs(l),c=yn(h-ik)||(u?l>=ik:-l>=ik),f=l>0?l%ik:l%ik+ik,p=!1;p=c?!0:yn(h)?!1:f>=dk==!!u;var d=t+n*kk(o),g=e+r*ck(o);this._start&&this._add("m",d,g);var v=math.round(i*ak);if(c){var y=1/this._p,m=(u?1:-1)*(ik-y);this._add("a",n,r,v,1,+u,t+n*kk(o+m),e+r*ck(o+m)),y>.01&&this._add("a",n,r,v,0,+u,d,g)}else{var _=t+n*kk(a),x=e+r*ck(a);this._add("a",n,r,v,+p,+u,_,x)}},t.prototype.rect=function(t,e,n,r){this._add("m",t,e),this._add("l",n,0),this._add("l",0,r),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,r=1;ru;u++){var h=t[u]; if(!h.invisible){var c=h.__clippaths,f=c&&c.length||0,p=i&&i.length||0,d=void 0;for(d=math.max(f-1,p-1);d>=0&&(!c||!i||c[d]!==i[d]);d--);for(var g=p-1;g>d;g--)s--,r=a[s-1];for(var v=d+1;f>v;v++){var y={};fg(c[v],y,e);var m=bd("g","clip-g-"+l++,y,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=c;var _=lg(h,e);_&&(r?r.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=jh(r,0,n),e=jh(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(nr(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=ty(e),e&&n+"base64,"+e):n+"charset=utf-8,"+encodeuricomponent(e)},t}();ti("svg",zk),t.version=mm,t.dependencies=tm,t.priority=wm,t.init=nc,t.connect=bc,t.disconnect=ec,t.disconnect=ot,t.dispose=zc,t.getinstancebydom=fc,t.getinstancebyid=vc,t.registertheme=hc,t.registerpreprocessor=wc,t.registerprocessor=uc,t.registerpostinit=gc,t.registerpostupdate=qc,t.registerupdatelifecycle=xc,t.registeraction=yc,t.registercoordinatesystem=jc,t.getcoordinatesystemdimensions=zc,t.registerlayout=kc,t.registervisual=$c,t.registerloading=jc,t.setcanvascreator=tf,t.registermap=ef,t.getmap=nf,t.registertransform=rt,t.datatool=wt,t.registerlocale=el,t.zrender=xm,t.matrix=iv,t.vector=gv,t.zrutil=hv,t.color=wy,t.helper=ic,t.number=zc,t.time=fc,t.graphic=vc,t.format=hc,t.util=wc,t.list=nc,t.componentmodel=fb,t.componentview=ts,t.seriesmodel=ms,t.chartview=ds,t.extendcomponentmodel=wp,t.extendcomponentview=up,t.extendseriesmodel=gp,t.extendchartview=qp,t.throttle=th,t.use=vp,t.setplatformapi=i,t.parsegeojson=tp,t.parsegeojson=tp,t.env=bg,t.model=fw,t.axis=qc,t.innerdrawelementoncanvas=xc});