21 lines
650 KiB
JavaScript
21 lines
650 KiB
JavaScript
|
!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");Xb(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-$b)/Qb;e[i]=r}return e}function r(t){for(var e in ew)t[e]&&(ew[e]=t[e])}function o(){return dw++}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function s(t){if(null==t||"object"!=typeof t)return t;var e=t,n=rw.call(t);if("[object Array]"===n){if(!Y(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=s(t[i])}}else if(iw[n]){if(!Y(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!nw[n]&&!Y(t)&&!P(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==pw&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!k(e)||!k(t))return n?s(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==pw){var r=t[i],o=e[i];!k(o)||!k(r)||M(o)||M(r)||P(o)||P(r)||A(o)||A(r)||Y(o)||Y(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==pw&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=b(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function p(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function d(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else c(t,e,n)}function g(t){return t?"string"==typeof t?!1:"number"==typeof t.length:!1}function v(t,e,n){if(t&&e)if(t.forEach&&t.forEach===aw)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function y(t,e,n){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===uw)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===sw)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function x(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function b(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function w(t,e){for(var n=[],i=2;i<arguments.length;i+
|
||
|
if(I(t)){var e=PM.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?0/0:Math.round(t))}function nr(t){return Math.pow(10,ir(t))}function ir(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function rr(t,e){var n,i=ir(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function or(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function ar(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function sr(t){var e=parseFloat(t);return e==t&&(0!==e||!I(t)||t.indexOf("x")<=0)?e:0/0}function lr(t){return!isNaN(sr(t))}function ur(){return Math.round(9*Math.random())}function hr(t,e){return 0===e?t:hr(e,t%e)}function cr(t,e){return null==t?e:null==e?t:t*e/hr(t,e)}function pr(t){throw new Error(t)}function dr(t,e,n){return(e-t)*n+t}function fr(t){return t instanceof Array?t:null==t?[]:[t]}function gr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function vr(t){return!k(t)||M(t)||t instanceof Date?t:t.value}function yr(t){return k(t)&&!(t instanceof Array)}function mr(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Z();v(e,function(t,n){return k(t)?void 0:void(e[n]=null)});var s=_r(t,a,n);return(i||r)&&xr(s,t,a,e),i&&br(s,e),i||r?wr(s,e,r):o&&Sr(s,e),Mr(s),s}function _r(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||kr(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function xr(t,e,n,i){v(i,function(r,o){if(r&&null!=r.id){var a=Ir(r.id),s=n.get(a);if(null!=s){var l=t[s];W(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}function br(t,e){v(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!kr(n)&&!kr(o)&&Tr("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}function wr(t,e,n){v(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||kr(i.existing)||i.existing&&null!=e.id&&!Tr("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}function Sr(t,e){v(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Mr(t){var e=Z();v(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),v(t,function(t){var n=t.newOption;W(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),v(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(k(r)){if(o.name=null!=r.name?Ir(r.name):i?i.name:OM+n,i)o.id=Ir(i.id);else if(null!=r.id)o.id=Ir(r.id);else{var a=0;do o.id="\x00"+o.name+"\x00"+a++;while(e.get(o.id))}e.set(o.id,t)}})}function Tr(t,e,n){var i=Cr(e[t],null),r=Cr(n[t],null);return null!=i&&null!=r&&i===r}function Ir(t){return Cr(t,"")}function Cr(t,e){return null==t?e:I(t)?t:D(t)||C(t)?t+"":e}function Dr(t){var e=t.name;return!(!e||!e.indexOf(OM))}function kr(t){return t&&null!=t.id&&0===Ir(t.id).indexOf(RM)}function Ar(t,e,n){v(t,function(t){var i=t.newOption;k(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Lr(e,i,t.existing,n))})}function Lr(t,e,n,i){var r=e.type?e
|
||
|
}},i.applyTransform=function(t){Xa(n,t),this.dirtyShape()},i}function Qa(t,e){return new BI($a(t,e))}function Ja(t,n){var i=$a(t,n),r=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(BI);return r}function ts(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new GT(e);return a.createPathProxy(),a.buildPath=function(t){if(Ka(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function es(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;return QI>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function ns(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/jI(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,v=(p+f)/2,y=(d+g)/2,m=f-p,_=g-d,x=m*m+_*_,b=r-o,w=p*g-f*d,S=(0>_?-1:1)*jI(KI(0,b*b*x-w*w)),M=(w*_-m*S)/x,T=(-w*m-_*S)/x,I=(w*_+m*S)/x,C=(-w*m+_*S)/x,D=M-v,k=T-y,A=I-v,L=C-y;return D*D+k*k>A*A+L*L&&(M=I,T=C),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}function is(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 rs(t,e){var n,i=KI(e.r,0),r=KI(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,d=qI(u-l),f=d>GI&&d%GI;if(f>QI&&(d=f),i>QI)if(d>GI-QI)t.moveTo(h+i*YI(l),c+i*XI(l)),t.arc(h,c,i,l,u,!p),r>QI&&(t.moveTo(h+r*YI(u),c+r*XI(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,D=void 0,k=void 0,A=void 0,L=i*YI(l),P=i*XI(l),O=r*YI(u),R=r*XI(u),z=d>QI;if(z){var E=e.cornerRadius;E&&(n=is(E),g=n[0],v=n[1],y=n[2],m=n[3]);var B=qI(i-r)/2;if(_=$I(B,y),x=$I(B,m),b=$I(B,g),w=$I(B,v),T=S=KI(_,x),I=M=KI(b,w),(S>QI||M>QI)&&(C=i*YI(u),D=i*XI(u),k=r*YI(l),A=r*XI(l),WI>d)){var N=es(L,P,k,A,C,D,O,R);if(N){var V=L-N[0],F=P-N[1],H=C-N[0],W=D-N[1],G=1/XI(UI((V*H+F*W)/(jI(V*V+F*F)*jI(H*H+W*W)))/2),X=jI(N[0]*N[0]+N[1]*N[1]);T=$I(S,(i-X)/(G+1)),I=$I(M,(r-X)/(G-1))}}}if(z)if(T>QI){var Y=$I(y,T),U=$I(m,T),Z=ns(k,A,L,P,i,Y,p),q=ns(C,D,O,R,i,U,p);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),S>T&&Y===U?t.arc(h+Z.cx,c+Z.cy,T,ZI(Z.y0,Z.x0),ZI(q.y0,q.x0),!p):(Y>0&&t.arc(h+Z.cx,c+Z.cy,Y,ZI(Z.y0,Z.x0),ZI(Z.y1,Z.x1),!p),t.arc(h,c,i,ZI(Z.cy+Z.y1,Z.cx+Z.x1),ZI(q.cy+q.y1,q.cx+q.x1),!p),U>0&&t.arc(h+q.cx,c+q.cy,U,ZI(q.y1,q.x1),ZI(q.y0,q.x0),!p))}else t.moveTo(h+L,c+P),t.arc(h,c,i,l,u,!p);else t.moveTo(h+L,c+P);if(r>QI&&z)if(I>QI){var Y=$I(g,I),U=$I(v,I),Z=ns(O,R,C,D,r,-U,p),q=ns(L,P,k,A,r,-Y,p);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),M>I&&Y===U?t.arc(h+Z.cx,c+Z.cy,I,ZI(Z.y0,Z.x0),ZI(q.y0,q.x0),!p):(U>0&&t.arc(h+Z.cx,c+Z.cy,U,ZI(Z.y0,Z.x0),ZI(Z.y1,Z.x1),!p),t.arc(h,c,r,ZI(Z.cy+Z.y1,Z.cx+Z.x1),ZI(q.cy+q.y1,q.cx+q.x1),p),Y>0&&t.arc(h+q.cx,c+q.cy,Y,ZI(q.y1,q.x1),ZI(q.y0,q.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}function os(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;d>p;p++)me(a,a,t[p]),_e(s,s,t[p]);me(a,a,i[0]),_e(s,s,i[1])}for(var p=0,d=t.length;d>p;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(ee(t[p]));continue}r=t[p-1],o=t[p+1]}oe(u,o,r),ce(u,u,e);var g=de(f,r),v=de(f,o),y=g+v;0!==y&&(g/=y,v/=y),ce(h,u,-g),ce(c,u,v);var m=ie([],f,h),_=ie([],f,c);i&&(_e(m,m,a),me(m,m,s),_e(_,_,a),me(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function as(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=os(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function ss(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?pn:cn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?pn:cn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?_n:mn)(t.x1,t.cpx1,t.x2,e),(n?_n
|
||
|
var n=t.data;if(n&&!L(n))for(var i=0;i<n.length;i++)Du(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=Mu(t,"pointer.color");null!=r&&Tu(t,"itemStyle.color",r)}else if("bar"===e){Cu(t),Cu(t.backgroundStyle),Cu(t.emphasis);var n=t.data;if(n&&!L(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(Cu(n[i]),Cu(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),ku(t),Lu(t.data,ku)}else"graph"===e||"sankey"===e?Au(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&c(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Iu(t)}}),t.dataRange&&(t.visualMap=t.dataRange),v(lk,function(e){var n=t[e];n&&(M(n)||(n=[n]),v(n,function(t){Iu(t)}))})}function Ou(t){var e=Z();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(Ru)}function Ru(t){v(t,function(e,n){var i=[],r=[0/0,0/0],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return r;var p,d;s?d=a.getRawIndex(h):p=a.get(e.stackedByDimension,h);for(var f=0/0,g=n-1;g>=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,p)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&0>y||"samesign"===l&&c>=0&&y>0||"samesign"===l&&0>=c&&0>y){c=Qi(c,y),f=y;break}}}return i[0]=c,i[1]=f,i})})}function zu(t){return t instanceof hk}function Eu(t,e,n){n=n||Vu(t);var i=e.seriesLayoutBy,r=Fu(t,n,i,e.sourceHeader,e.dimensions),o=new hk({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:s(e)});return o}function Bu(t){return new hk({data:t,sourceFormat:L(t)?RD:AD})}function Nu(t){return new hk({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Vu(t){var e=zD;if(L(t))e=RD;else if(M(t)){0===t.length&&(e=LD);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(M(r)){e=LD;break}if(k(r)){e=PD;break}}}}else if(k(t))for(var o in t)if($(t,o)&&g(t[o])){e=OD;break}return e}function Fu(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Wu(r),startIndex:a,dimensionsDetectedCount:o};if(e===LD){var s=t;"auto"===i||null==i?Gu(function(t){null!=t&&"-"!==t&&(I(t)?null==a&&(a=1):a=0)},n,s,10):a=D(i)?i:i?1:0,r||1!==a||(r=[],Gu(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===BD?s.length:s[0]?s[0].length:null}else if(e===PD)r||(r=Hu(t));else if(e===OD)r||(r=[],v(t,function(t,e){r.push(e)}));else if(e===AD){var l=vr(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Wu(r),dimensionsDetectedCount:o}}function Hu(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return v(e,function(t,e){i.push(e)}),i}}function Wu(t){if(t){var e=Z();return y(t,function(t){t=k(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Gu(t,e,n,i){if(e===BD)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[
|
||
|
}kD.each(function(t,e){var r=Op(i,e),o=n.otherDims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=y(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new uP(s,e),n}function Op(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Rp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function zp(t){return!("ordinal"===t||"time"===t)}function Ep(t){return t instanceof dP}function Bp(t){for(var e=Z(),n=0;n<(t||[]).length;n++){var i=t[n],r=k(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Np(t){var e=cP(t);return e.dimNameMap||(e.dimNameMap=Bp(t.dimensionsDefine))}function Vp(t){return t>30}function Fp(t,e){return Hp(t,e).dimensions}function Hp(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=k(n)?n:{name:n},r=new hP,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=kD.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}zu(t)||(t=Bu(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Z(),l=[],u=Gp(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Vp(u),d=a===t.dimensionsDefine,f=d?Np(t):Bp(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var y=Z(g),m=new kk(u),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;u>_;_++)n(_);y.each(function(t,e){var r=fr(t).slice();if(1===r.length&&!I(r[0])&&r[0]<0)return void y.set(e,!1);var o=y.set(e,[]);v(r,function(t,r){var a=I(t)?f.get(t):t;null!=a&&u>a&&(o[r]=a,i(n(a),e,r))})});var x=0;v(o,function(t){var e,r,o,a;if(I(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=y.get(e);if(l!==!1){if(l=fr(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;u>x&&null!=n(x).coordDim;)x++;u>x&&l.push(x++)}v(l,function(t,s){var l=n(t);if(d&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!k(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var M=b||"value";if(p)v(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;u>T;T++){var C=n(T),D=C.coordDim;null==D&&(C.coordDim=Xp(M,s,S),C.coordDimIndex=0,(!b||0>=w)&&(C.isExtraCoord=!0),w--),r(C),null!=C.type||tu(t,T)!==ND.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return Wp(l),new dP({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:p})}function Wp(t){for(var e=Z(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Gp(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return v(e,function(t){var e;k(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Xp(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function Yp(t){var e=t.get("coordinateSystem"),n=new wP(e),i=SP[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Up(t){return"category"===t.get("type")}function Zp(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;qp(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(v(i,function(t,e){I(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\x00ecstackresult_"+t.id,c="__\x00ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,
|
||
|
}function eg(t){t.registerPainter("canvas",EO)}function ng(t){t.registerComponentModel(BO),t.registerComponentView(NO)}function ig(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;I(r)?d=VO[r]:T(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,FO))}}}}}function rg(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new QT({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=T(r)?function(t){r(t,c)}:null;cs(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function og(t,e,n){var i=t.getArea(),r=Yi(i.r0,1),o=Yi(i.r,1),a=new tC({shape:{cx:Yi(t.cx,1),cy:Yi(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,cs(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function ag(t,e,n,i,r){return t?"polar"===t.type?og(t,e,n):"cartesian2d"===t.type?rg(t,e,n,i,r):null:null}function sg(t,e){return t.type===e}function lg(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=ju(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(ju(t,e,n[a]));return o.join(" ")}}function ug(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!M(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}function hg(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return Ci(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,d=(c+p)/2,f=l.startAngle,g=l.endAngle,v=(f+g)/2,y=n?Math.abs(c-p)/2:0,m=Math.cos,_=Math.sin,x=u+c*m(f),b=h+c*_(f),w="left",S="top";switch(a){case"startArc":x=u+(p-s)*m(v),b=h+(p-s)*_(v),w="center",S="top";break;case"insideStartArc":x=u+(p+s)*m(v),b=h+(p+s)*_(v),w="center",S="bottom";break;case"startAngle":x=u+d*m(f)+pg(f,s+y,!1),b=h+d*_(f)+dg(f,s+y,!1),w="right",S="middle";break;case"insideStartAngle":x=u+d*m(f)+pg(f,-s+y,!1),b=h+d*_(f)+dg(f,-s+y,!1),w="left",S="middle";break;case"middle":x=u+d*m(v),b=h+d*_(v),w="center",S="middle";break;case"endArc":x=u+(c+s)*m(v),b=h+(c+s)*_(v),w="center",S="bottom";break;case"insideEndArc":x=u+(c-s)*m(v),b=h+(c-s)*_(v),w="center",S="top";break;case"endAngle":x=u+d*m(g)+pg(g,s+y,!0),b=h+d*_(g)+dg(g,s+y,!0),w="left",S="middle";break;case"insideEndAngle":x=u+d*m(g)+pg(g,-s+y,!0),b=h+d*_(g)+dg(g,-s+y,!0),w="right",S="middle";break;default:return Ci(e,i,r)}return e=e||{},e.x=x,e.y=b,e.align=w,e.verticalAlign=S,e}}function cg(t,e,n,i){if(D(i))return void t.setTextConfig({rotation:i});if(M(e))return void t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}function pg(t,e,n){return e*Math.sin(t)*(n?-1:1)}function dg(t,e,n){return e*Math.cos(t)*(n?1:-1)}function fg(t,e){var n=t.getArea&&t.getArea();if(sg(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function gg(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();return n&&"category"===i.type&&"cartesian2d"===e.typ
|
||
|
(p||d)&&v(f.baseAxes,S(s,d?"cross":!0,p)),d&&v(f.otherAxes,S(s,"cross",!1))}}})}function Nv(t,e,n,i,r,o){var a=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};v(l,function(t){u[t]=s(a.get(t))}),u.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===r){var p=a.get(["label","show"]);if(h.show=null!=p?p:!0,!o){var d=u.lineStyle=a.get("crossStyle");d&&c(h,d.textStyle)}}return t.model.getModel("axisPointer",new jC(u,n,i))}function Vv(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&i!==!1&&"item"!==i&&r!==!1&&e.get(["axisPointer","show"],!0)!==!1&&v(t.coordSysAxesInfo[Uv(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Fv(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Hv(o[i+"AxisId"],n.id)||Hv(o[i+"AxisIndex"],n.componentIndex)||Hv(o[i+"AxisName"],n.name))return r}}function Hv(t,e){return"all"===t||M(t)&&p(t,e)>=0||t===e}function Wv(t){var e=Gv(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Yv(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Gv(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Uv(t)]}function Xv(t){var e=Gv(t);return e&&e.axisPointerModel}function Yv(t){return!!t.get(["handle","show"])}function Uv(t){return t.type+"||"+t.id}function Zv(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var h=s.length,p=HR(t).splitAreaColors,d=Z(),f=0;if(p)for(var g=0;g<u.length;g++){var v=p.get(u[g].tickValue);if(null!=v){f=(v+(h-1)*g)%h;break}}var y=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=M(s)?s:[s];for(var g=1;g<u.length;g++){var _=r.toGlobalCoord(u[g].coord),x=void 0,b=void 0,w=void 0,S=void 0;r.isHorizontal()?(x=y,b=l.y,w=_-x,S=l.height,y=x+w):(x=l.x,b=y,w=l.width,S=_-b,y=b+S);var T=u[g-1].tickValue;null!=T&&d.set(T,f),e.add(new QT({anid:null!=T?"area_"+T:null,shape:{x:x,y:b,width:w,height:S},style:c({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%h}HR(t).splitAreaColors=d}}}function qv(t){HR(t).splitAreaColors=null}function jv(t){t.registerComponentView(qR),t.registerComponentModel(bR),t.registerCoordinateSystem("cartesian2d",zR),vv(t,"x",wR,jR),vv(t,"y",wR,jR),t.registerComponentView(UR),t.registerComponentView(ZR),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Kv(t){t.registerComponentModel(KR),t.registerComponentView($R)}function $v(t,e){var n=gD(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new QT({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function Qv(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),ez(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?Kc(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inact
|
||
|
}function b_(t){t.registerAction("dataZoom",function(t,e){var n=Qm(e,t);v(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}function w_(t){gE||(gE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,fE),b_(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function S_(t){w_(t),t.registerComponentModel(iE),t.registerComponentView(lE),m_(t)}function M_(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function T_(t){return"vertical"===t?"ns-resize":"ew-resize"}function I_(t){t.registerComponentModel(vE),t.registerComponentView(CE),w_(t)}function C_(){Jd(S_),Jd(I_)}function D_(t,e){var n=fr(t?t.brush:[]);if(n.length){var i=[];v(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;M(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),k_(s),e&&!s.length&&s.push.apply(s,DE)}}function k_(t){var e={};v(t,function(t){e[t]=1}),t.length=0,v(e,function(e,n){t.push(n)})}function A_(t,e){var n=GE[e.brushType].createCover(t,e);return n.__brushOption=e,O_(n,e),t.group.add(n),n}function L_(t,e){var n=z_(e);return n.endCreating&&(n.endCreating(t,e),O_(e,e.__brushOption)),e}function P_(t,e){var n=e.__brushOption;z_(e).updateCoverShape(t,e,n.range,n)}function O_(t,e){var n=e.z;null==n&&(n=OE),t.traverse(function(t){t.z=n,t.z2=n})}function R_(t,e){z_(e).updateCommon(t,e),P_(t,e)}function z_(t){return GE[t.__brushOption.brushType]}function E_(t,e,n){var i=t._panels;if(!i)return kE;var r,o=t._transform;return v(i,function(t){t.isTargetByCursor(e,n,o)&&(r=t)}),r}function B_(t,e){var n=t._panels;if(!n)return kE;var i=e.__brushOption.panelId;return null!=i?n[i]:kE}function N_(t){var e=t._covers,n=e.length;return v(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function V_(t,e){var n=y(t._covers,function(t){var e=t.__brushOption,n=s(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function F_(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1],a=PE(r*r+o*o,.5);return a>RE}function H_(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function W_(t,e,n,i){var r=new SM;return r.add(new QT({name:"main",style:U_(n),silent:!0,draggable:!0,cursor:"move",drift:S($_,t,e,r,["n","s","w","e"]),ondragend:S(V_,e,{isEnd:!0})})),v(i,function(n){r.add(new QT({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:S($_,t,e,r,n),ondragend:S(V_,e,{isEnd:!0})}))}),r}function G_(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=LE(r,zE),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,h=n[0][1],c=n[1][1],p=h-o+r/2,d=c-o+r/2,f=h-a,g=c-s,v=f+r,y=g+r;Y_(t,e,"main",a,s,f,g),i.transformable&&(Y_(t,e,"w",l,u,o,y),Y_(t,e,"e",p,u,o,y),Y_(t,e,"n",l,u,v,o),Y_(t,e,"s",l,d,v,o),Y_(t,e,"nw",l,u,o,o),Y_(t,e,"ne",p,u,o,o),Y_(t,e,"sw",l,d,o,o),Y_(t,e,"se",p,d,o,o))}function X_(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(U_(n)),r.attr({silent:!i,cursor:i?"move":"default"}),v([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var r=e.childOfName(n.join("")),o=1===n.length?j_(t,n[0]):K_(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?NE[o]+"-resize":null})})}function Y_(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(ex(tx(t,e,[[i,r],[i+o,r+a]])))}function U_(t){return c({strokeNoScale:!0},t.brushStyle)}function Z_(t,e,n,i){var r=[AE(t,n),AE(e,i)],o=[LE(t,n),LE(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function q_(t){return Cs(t.group)}function j_(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=ks(n[e],q_(t));return i[r]}function K_(t,e){var n=[j_(t,e[0]),j_(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function $_(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=J_(e,r,o);v(i,function(t){var e=BE[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(Z_(s[0][0],s[1][0],s[0][1],s[1][1])
|
||
|
},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),Gw=Math.min,Xw=Math.max,Yw=new Ww,Uw=new Ww,Zw=new Ww,qw=new Ww,jw=new Ww,Kw=new Ww,$w=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Gw(t.x,this.x),n=Gw(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Xw(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Xw(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Ne();return We(r,r,[-e.x,-e.y]),Xe(r,r,[n,i]),We(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(n){var d=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,v),x=Math.min(y,m);l>o||r>u?_>f&&(f=_,v>g?Ww.set(Kw,-g,0):Ww.set(Kw,v,0)):d>_&&(d=_,v>g?Ww.set(jw,g,0):Ww.set(jw,-v,0)),h>s||a>c?x>f&&(f=x,m>y?Ww.set(Kw,0,-y):Ww.set(Kw,0,m)):d>_&&(d=_,m>y?Ww.set(jw,0,y):Ww.set(jw,0,-m))}return n&&Ww.copy(n,p?jw:Kw),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Yw.x=Zw.x=n.x,Yw.y=qw.y=n.y,Uw.x=qw.x=n.x+n.width,Uw.y=Zw.y=n.y+n.height,Yw.transform(i),qw.transform(i),Uw.transform(i),Zw.transform(i),e.x=Gw(Yw.x,Uw.x,Zw.x,qw.x),e.y=Gw(Yw.y,Uw.y,Zw.y,qw.y);var l=Xw(Yw.x,Uw.x,Zw.x,qw.x),u=Xw(Yw.y,Uw.y,Zw.y,qw.y);e.width=l-e.x,e.height=u-e.y},t}(),Qw="silent",Jw=function(t){function n(){var e=null!==t&&t.app
|
||
|
},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(hM);var n=hM[0]<0?-1:1,i=hM[1]<0?-1:1,r=((hM[0]-n)*e+n)/hM[0]||0,o=((hM[1]-i)*e+i)/hM[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ne(),Ye(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(He(cM,t.invTransform,e),e=cM);var n=this.originX,i=this.originY;(n||i)&&(pM[4]=n,pM[5]=i,He(cM,e,pM),cM[4]-=n,cM[5]-=i,e=cM),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ye(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ye(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&dM(t[0]-1)>1e-10&&dM(t[3]-1)>1e-10?Math.sqrt(dM(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){_i(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&Ge(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),gM=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],vM={},yM="__zr_normal__",mM=gM.concat(["ignore"]),_M=m(gM,function(t,e){return t[e]=!0,t},{ignore:!1}),xM={},bM=new $w(0,0,0,0),wM=function(){function t(t){this.id=o(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=bM;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xM,n,u):Ci(xM,n,u),r.x=xM.x,r.y=xM.y,o=xM.align,a=xM.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=Ii(h[0],u.width),p=Ii(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"==
|
||
|
case vT.Q:var k=d[b++],A=d[b++],L=d[b++],P=d[b++];if(y){var I=l[_++];if(m+I>h){var C=(h-m)/I;wn(r,k,L,C,yT),wn(o,A,P,C,mT),t.quadraticCurveTo(yT[1],mT[1],yT[2],mT[2]);break t}m+=I}t.quadraticCurveTo(k,A,L,P),r=L,o=P;break;case vT.A:var z=d[b++],E=d[b++],B=d[b++],N=d[b++],V=d[b++],F=d[b++],H=d[b++],W=!d[b++],G=B>N?B:N,X=CT(B-N)>.001,Y=V+F,U=!1;if(y){var I=l[_++];m+I>h&&(Y=V+F*(h-m)/I,U=!0),m+=I}if(X&&t.ellipse?t.ellipse(z,E,B,N,H,V,Y,W):t.arc(z,E,G,V,Y,W),U)break t;S&&(n=TT(V)*B+z,i=IT(V)*N+E),r=TT(Y)*B+z,o=IT(Y)*N+E;break;case vT.R:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var Z=d[b++],q=d[b++];if(y){var I=l[_++];if(m+I>h){var j=h-m;t.moveTo(a,s),t.lineTo(a+ST(j,Z),s),j-=Z,j>0&&t.lineTo(a+Z,s+ST(j,q)),j-=q,j>0&&t.lineTo(a+MT(Z-j,0),s+q),j-=Z,j>0&&t.lineTo(a,s+MT(q-j,0));break t}m+=I}t.rect(a,s,Z,q);break;case vT.Z:if(y){var I=l[_++];if(m+I>h){var C=(h-m)/I;t.lineTo(r*(1-C)+n*C,o*(1-C)+i*C);break t}m+=I}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=vT,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),OT=2*Math.PI,RT=2*Math.PI,zT=PT.CMD,ET=2*Math.PI,BT=1e-4,NT=[-1,-1,-1],VT=[-1,-1],FT=c({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},JM),HT={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tT.style)},WT=gM.concat(["invisible","culling","z","z2","zlevel","parent"]),GT=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<WT.length;++s)r[WT[s]]=this[WT[s]];r.__dirty|=sS}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=b(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?h(this.style,a):this.useStyle(a):"shape"===o?h(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(I(t)){var e=Un(t,0);return e>.5?oM:e>.2?sM:aM}if(t)return aM}return oM},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(I(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Un(t,0)<rM;if(i===r)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~uS},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new PT(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&uS)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null=
|
||
|
return t.indexOf(JC)>-1?JC:eD}():eD;ol(tD,$C),ol(JC,QC);var oD=1e3,aD=60*oD,sD=60*aD,lD=24*sD,uD=365*lD,hD={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}"},cD="{yyyy}-{MM}-{dd}",pD={year:"{yyyy}",month:"{yyyy}-{MM}",day:cD,hour:cD+" "+hD.hour,minute:cD+" "+hD.minute,second:cD+" "+hD.second,millisecond:hD.none},dD=["year","month","day","hour","minute","second","millisecond"],fD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],gD=H,vD=["a","b","c","d","e","f","g"],yD=function(t,e){return"{"+t+(null==e?"":e)+"}"},mD=v,_D=["left","right","top","bottom","width","height"],xD=[["width","left","right"],["height","top","bottom"]],bD=Hl,wD=(S(Hl,"vertical"),S(Hl,"horizontal"),Rr()),SD=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=el("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Xl(this),i=n?Ul(t):{},r=e.getTheme();l(t,r.get(this.mainType)),l(t,this.getDefaultOption()),n&&Yl(t,i,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=Xl(this);e&&Yl(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!Xr(t))return t.defaultOption;var e=wD(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Br(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(jC);Zr(SD,jC),$r(SD),nl(SD),il(SD,ql);var MD="";"undefined"!=typeof navigator&&(MD=navigator.platform||"");var TD,ID,CD="rgba(0, 0, 0, 0.2)",DD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:CD,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:CD,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:CD,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:CD,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:CD,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:CD,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:MD.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},kD=Z(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),AD="original",LD="arrayRows",PD="objectRows",OD="keyedColumns",RD="typedArray",zD="unknown",ED="column",BD="row",ND={Must:1,Might:2,Not:3},VD=Rr(),FD=Z(),HD=Rr(),WD=(Rr(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=fr(this.get("color",!0)),r=this.get("colorLayer",!0);return ru(this,HD,i,r,t,e,n)},t.prototype.clearColorPalette=function(){ou(this,HD)},t}()),GD="\x00_ec_inner",XD=1,YD=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=nul
|
||
|
if(null!=i){var r="";1!==t.length&&fh(r)}var o,a=[],s=[];return v(t,function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||fh(n),a.push(e),s.push(t._getVersionSign())}),n?o=oh(n,a,{datasetIndex:e.componentIndex}):null!=i&&(o=[Nu(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];dh(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new Pk,a.initData(new ck(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(dh(t)){var e=Ql(t);return e?[e.getSourceManager()]:[]}return y(Jl(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(dh(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),Rk="line-height:1",zk=[0,10,20,30],Ek=["","\n","\n\n","\n\n\n"],Bk=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ur()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=El({color:e,type:t,renderMode:n,markerId:i});return I(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};M(e)?v(e,function(t){return h(n,t)}):h(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),Nk=Rr(),Vk="__universalTransitionEnabled",Fk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=$u({count:Eh,reset:Bh}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Nk(this).sourceManager=new Ok(this);i.prepareSource();var r=this.getInitialData(t,n);Vh(r,this),this.dataTask.context.data=r,Nk(this).dataBeforeProcessed=r,Rh(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=Xl(this),i=n?Ul(t):{},r=this.subType;SD.hasClass(r)&&(r+="Series"),l(t,e.getTheme().get(this.subType)),l(t,this.getDefaultOption()),gr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Yl(t,i,n)},n.prototype.mergeOption=function(t,e){t=l(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Xl(this);n&&Yl(this.option,t,n);var i=Nk(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Vh(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Nk(this).dataBeforeProcessed=r,Rh(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!L(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&gr(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},n.prototype.getData=function(t){var e=Hh(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Nk(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=Hh(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Nk(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);return t?Z(t):void 0},n.p
|
||
|
}},n.prototype.updateLabelLayout=function(){HA.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);an(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),v(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}function i(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===fI&&t.states.emphasis?e.push("emphasis"):t.hoverState===dI&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!Zb.node&&!Zb.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u<l.length;u++)i=Math.max(s(l[u],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var h=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(h&&h.showAbove?1:-1))}return i}function l(t,e){e.eachRendered(function(t){if(!ps(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function u(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(ps(t))return;if(t instanceof GT&&Ga(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}})}mL=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),_L(t,!0),_L(t,!1),e.plan()},_L=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=Wr(t.type),p=e?Hk.getClass(c.main,c.sub):Xk.getClass(c.sub);h=new p,h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},xL=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(a.setUpdatePayload(n),!i)return void v([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={m
|
||
|
}(MP);MP.registerClass(CP);var DP=Yi,kP=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return ud(t,this._extent)},n.prototype.normalize=function(t){return hd(t,this._extent)},n.prototype.scale=function(t){return cd(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=ad(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<i[0]&&o.push(t?{value:DP(i[0]-e,r)}:{value:n[0]});for(var s=i[0];s<=i[1]&&(o.push({value:s}),s=DP(s+e,r),s!==o[o.length-1].value);)if(o.length>a)return[];var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&o.push(t?{value:DP(l+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,h=u/t;t-1>s;){var c=DP(a.value+(s+1)*h);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=Zi(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=DP(t.value,n,!0);return Pl(i)},n.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var o=rd(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=DP(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=DP(Math.ceil(e[1]/r)*r))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type="interval",n}(MP);MP.registerClass(kP);var AP="undefined"!=typeof Float32Array,LP=AP?Float32Array:Array,PP="__ec_stack_",OP=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},RP=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return dl(t.value,pD[pl(hl(this._minLevelUnit))]||pD.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return fl(t,e,n,r,i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=Pd(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=lD,e[1]+=lD),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-lD}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=zP.length,a=Math.min(OP(zP,this._approxInterval,0,o),o-1);this._interval=zP[a][1],this._minLevelUnit=zP[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return D(t)?t:+er(t)},n.prototype.contain=function(t){return ud(this.parse(t),this._extent)},n.prototype.normalize=function(t){return hd(this.parse(t),this._extent)},n.prototype.scale=function(t){return cd(t,this._extent)},n.type="time",n}(kP),zP=[["second",oD],["minute
|
||
|
return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},FO=function(t){return Math.round(t.length/2)},HO=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Jp(null,this,{useEncodeDefaulter:!0})},n.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.dataToPoint(i.clampData(t));if(n)v(i.getAxes(),function(n,o){if("category"===n.type){var a=n.getTicksCoords(),s=i.clampData(t)[o];!e||"x1"!==e[o]&&"y1"!==e[o]||(s+=1),s>a.length-1&&(s=a.length-1),0>s&&(s=0),a[s]&&(r[o]=n.toGlobalCoord(a[s].coord))}});else{var o=this.getData(),a=o.getLayout("offset"),s=o.getLayout("size"),l=i.getBaseAxis().isHorizontal()?0:1;r[l]+=a+s/2}return r}return[0/0,0/0]},n.type="series.__base_bar__",n.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},n}(Fk);Fk.registerClass(HO);var WO=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Jp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},n.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},n.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type="series.bar",n.dependencies=["grid","polar"],n.defaultOption=rl(HO.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),n}(HO),GO=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),XO=function(t){function n(e){var n=t.call(this,e)||this;return n.type="sausage",n}return e(n,t),n.prototype.getDefaultShape=function(){return new GO},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?c>u-l:c>l-u;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},n}(GT),YO=Math.max,UO=Math.min,ZO=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isFirstFrame=!0,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},n.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},n.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},n.prototype.eachRendered=function(t){Ws(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t,e,n,i){function r(t){var e=JO[u.type](s,t),n=Tg(u,o,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===u.type&&n.setShape("r",m),_[t]=n,n}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();"cartesian2d"===u.t
|
||
|
}),r=i.seats=$i(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},n.prototype._defaultLabelLine=function(t){gr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},n.type="series.pie",n.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},n}(Fk);Jd(gv);var bR=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(SD),wR=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",BM).models[0]},n.type="cartesian2dAxis",n}(SD);f(wR,qP);var SR={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},MR=l({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},SR),TR=l({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},SR),IR=l({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},TR),CR=c({logBase:10},TR),DR={category:MR,value:TR,time:IR,log:CR},kR={value:1,category:1,time:1,log:1},AR=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return y(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),_(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),LR=["x","y"],PR=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=LR,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(mv(t)&&mv(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Ye([],p)}}},n.prototype.getBaseAxis=function(){return
|
||
|
if(d){var m=t.get("pageButtonPosition",!0);"end"===m?v[i]+=n[r]-p[r]:g[i]+=p[r]+y}v[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(v);var _={x:0,y:0};if(_[r]=d?n[r]:c[r],_[o]=Math.max(c[o],p[o]),_[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-y,0),x[o]=_[o],u.setClipPath(new QT({shape:x})),u.__rectSize=x[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return null!=b.pageIndex&&hs(l,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),_},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;v(["pagePrev","pageNext"],function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",I(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=az[a],l=sz[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=e(c);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,_=null;p>=v;++v)_=e(h[v]),(!_&&m.e>y.s+o||_&&!n(_,y.s))&&(y=m.i>y.i?m:_,y&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=y.i),++f.pageCount)),m=_;for(var v=u-1,y=g,m=g,_=null;v>=-1;--v)_=e(h[v]),_&&n(m,_.s)||!(y.i<m.i)||(m=y,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=_;return f},n.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n},n.type="legend.scroll",n}(iz);Jd(hy);var uz=Rr(),hz=s,cz=gw,pz=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=S(cy,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new SM,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);gy(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Gv(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return n===!0},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=uz(t).pointerEl=new OC[n.type](hz(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=uz(t).labelEl=new nI(hz(e.label));t.add(r),dy(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=uz(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){va
|
||
|
}var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),r=e.getTextContent();if(n||i||r&&!r.ignore){for(var o=1,a=this.parent;a;)a.scaleX&&(o/=a.scaleX),a=a.parent;var s=e.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,u=s.pointAt(0),h=s.pointAt(l),c=oe([],h,u);if(pe(c,c),n&&(n.setPosition(u),t(n,0),n.scaleX=n.scaleY=o*l,n.markRedraw()),i&&(i.setPosition(h),t(i,1),i.scaleX=i.scaleY=o*l,i.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var p=void 0,d=void 0,f=r.__labelDistance,g=f[0]*o,v=f[1]*o,y=l/2,m=s.tangentAt(y),_=[m[1],-m[0]],x=s.pointAt(y);_[1]>0&&(_[0]=-_[0],_[1]=-_[1]);var b=m[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var w=-Math.atan2(m[1],m[0]);h[0]<u[0]&&(w=Math.PI+w),r.rotation=w}var S=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-v,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=v,d="top";break;default:S=0,d="middle"}switch(r.__position){case"end":r.x=c[0]*g+h[0],r.y=c[1]*v+h[1],p=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*g+u[0],r.y=-c[1]*v+u[1],p=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=g*b+u[0],r.y=u[1]+S,p=m[0]<0?"right":"left",r.originX=-g*b,r.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=x[0],r.y=x[1]+S,p="center",r.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-g*b+h[0],r.y=h[1]+S,p=m[0]>=0?"right":"left",r.originX=g*b,r.originY=-S}r.scaleX=r.scaleY=o,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||p})}}}},n}(SM),Xz=function(){function t(t){this.group=new SM,this._LineCtor=t||Gz}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=zm(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=zm(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||Rm(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(Bm(r)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Ws(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(Bm(i)){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);return Bm(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),void this.group.add(o)):void this.group.remove(o)},t}(),Yz=Rr(),Uz=function(t,e,n,i){var r,o=t.getData();if(M(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var u=void 0,c=void 0;if(null!=i.yAxis||null!=i.xAxis)u=e.getAxis(null!=i.yAxis?"y":"x"),c=B(i.yAxis,i.xAxis);else{var p=xm(i,o,e,t);u=p.valueAxis;var d=Kp(o,p.valueDataDim);c=Tm(o,d,a)}var f="x"===u.dim?0:1,g=1-f,v=s(i),y={coord:[]};v.type=null,v.coord=[],v.coord[g]=-1/0,y.coord[g]=1/0;var m=n.get("precision");m>=0&&D(c)&&(c=+c.toFixed(Math.min(m,20))),v.coord[f]=y.coord[f]=c,r=[v,y,{type:a,valueIndex:i.valueIndex,value:c}]}else r=[]}var _=[_m(t,r[0]),_m(t,r[1]),h({},r[2])];return _[2].type=_[2].type||null,l(_[2],_[0]),l(_[2],_[1]),_},Zz=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type
|
||
|
var s=this._range,l=this._range=Ui([Gi(i[0],r,a,!0),Gi(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},n.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Ui(n.slice()),r=this._size;v([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new QT,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},n.prototype._updateDataInfo=function(t){function e(t){var e=Cs(i.handles[t].parent,this.group),n=ks(0===t?"right":"left",e),s=this._handleWidth/2+ME,l=Ds([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:o===wE?"middle":n,align:o===wE?n:"center",text:a[t]})}var n=this.dataZoomModel,i=this._displayables,r=i.handleLabels,o=this._orient,a=["",""];if(n.get("showDetail")){var s=n.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=Ui(this._handleEnds.slice());e.call(this,0),e.call(this,1)},n.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");(null==r||"auto"===r)&&(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return T(i)?i(t,o):I(i)?i.replace("{value}",o):o},n.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},n.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Nw(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=Ds([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},n.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},n.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},n.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Ww(e,n),this._brushing=!0,this._brushStartTime=+new Date},n.prototype._onBrushEnd=function(){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var e=t.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(e.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=Ui([Gi(e.x,i,r,!0),Gi(e.x+e.width,i,r,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)}}}},n.prototype._onBrush=function(t){this._brushing&&(Nw(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},n.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new yE({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},n.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?IE:null,start:e[0],end:e[1]})},n.prototype._f
|
||
|
},n.prototype._createIndicator=function(t,e,n,i,r){var o=Ii(t.get("indicatorSize"),n[0]),a=yc(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof qT){var l=a.style;a.useStyle(h({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new nI({silent:!0,invisible:!0,style:Zs(u,{x:0,y:0,text:""})});this.group.add(c);var p=[("horizontal"===r?i/2:PB)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=p,this._firstShowIndicator=!0},n.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():nb(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},n.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[CB(e[0],n,i,!0),CB(e[1],n,i,!0)]},n.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];e_(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[CB(i[0],r,o,!0),CB(i[1],r,o,!0)]},n.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},n.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new yC(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},n.prototype._makeColorGradient=function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;n>o;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},n.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},n.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new SM("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},n.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();DB([0,1],function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var h=CB(t[l],[0,a[1]],s,!0),c=this.getControllerVisual(h,"symbolSize");u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2;var p=Ds(n.handleLabelPoints[l],Cs(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},n.prototype._showIndicator=function(t,e,n){var i=this.visualMapModel,r=i.getExtent(),o=i.itemSize,a=[0,o[1]],s=this._shapes,l=s.indicator;if(l){l.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",u),c=this.getControllerVisual(t,"symbolSize"),p=CB(t,r,a,!0),d=o[0]-c/2,f={x:l.x,y:l.y};l.y=p,l.x=d;var g=Ds(s.indicatorLabelPoint,Cs(l,this.group)),v=s
|