pivotkit-element 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ import{b as OE}from"./chunk-DCANE7XH.js";var zp=function(r,e){return zp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},zp(r,e)};function z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var PE=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),RE=(function(){function r(){this.browser=new PE,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=typeof window<"u"}return r})(),ki=new RE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ki.wxa=!0,ki.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ki.worker=!0:!ki.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(ki.node=!0,ki.svgSupported=!0):NE(navigator.userAgent,ki);function NE(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var ae=ki;var Kl=12,kE="sans-serif",sr=Kl+"px "+kE,zE=20,BE=100,UE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function VE(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-zE)/BE;e[i]=n}return e}var FE=VE(UE),Re={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var n=Re.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||sr),r.measureText(t);t=t||"",i=i||sr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Kl,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=FE[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}};var Yg=jt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Xg=jt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ss=Object.prototype.toString,$l=Array.prototype,HE=$l.forEach,GE=$l.filter,Up=$l.slice,WE=$l.map,Gg=function(){}.constructor,jl=Gg?Gg.prototype:null,Vp="__proto__",Bp=2311,YE=Math.pow(2,53)-1;function Ql(){return Bp>=YE&&(Bp=0),Bp++}function Fa(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function j(r){if(r==null||typeof r!="object")return r;var e=r,t=ss.call(r);if(t==="[object Array]"){if(!os(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=j(r[i])}}else if(Xg[t]){if(!os(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!Yg[t]&&!os(r)&&!Va(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Vp&&(e[o]=j(r[o]))}return e}function me(r,e,t){if(!V(e)||!V(r))return t?j(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==Vp){var n=r[i],a=e[i];V(a)&&V(n)&&!R(a)&&!R(n)&&!Va(a)&&!Va(n)&&!Wg(a)&&!Wg(n)&&!os(a)&&!os(n)?me(n,a,t):(t||!(i in r))&&(r[i]=j(e[i]))}return r}function N(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Vp&&(r[t]=e[t]);return r}function qg(r,e,t){r=r||{};for(var i=0;i<t.length;i++){var n=t[i];r[n]=e[n]}return r}function oe(r,e,t){for(var i=he(e),n=0,a=i.length;n<a;n++){var o=i[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var Fz=Re.createCanvas;function fe(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function Zg(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Dt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else oe(r,e,t)}function Ke(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,e,t){if(r&&e)if(r.forEach&&r.forEach===HE)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function B(r,e,t){if(!r)return[];if(!e)return eu(r);if(r.map&&r.map===WE)return r.map(e,t);for(var i=[],n=0,a=r.length;n<a;n++)i.push(e.call(t,r[n],n,r));return i}function jt(r,e,t,i){if(r&&e){for(var n=0,a=r.length;n<a;n++)t=e.call(i,t,r[n],n,r);return t}}function Ve(r,e,t){if(!r)return[];if(!e)return eu(r);if(r.filter&&r.filter===GE)return r.filter(e,t);for(var i=[],n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r)&&i.push(r[n]);return i}function Jl(r,e,t){if(r&&e){for(var i=0,n=r.length;i<n;i++)if(e.call(t,r[i],i,r))return r[i]}}function he(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function XE(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(Up.call(arguments)))}}var ee=jl&&K(jl.bind)?jl.call.bind(jl.bind):XE;function we(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Up.call(arguments)))}}function R(r){return Array.isArray?Array.isArray(r):ss.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function U(r){return typeof r=="string"}function ls(r){return ss.call(r)==="[object String]"}function ue(r){return typeof r=="number"}function V(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Wg(r){return!!Yg[ss.call(r)]}function Fe(r){return!!Xg[ss.call(r)]}function Va(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function zi(r){return r.colorStops!=null}function Kg(r){return r.image!=null}function lr(r){return r!==r}function Bi(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function q(r,e){return r??e}function $t(r,e,t){return r??e??t}function eu(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Up.apply(r,e)}function Ha(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function He(r,e){if(!r)throw new Error(e)}function pt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var jg="__ec_primitive__";function Ga(r){r[jg]=!0}function os(r){return r[jg]}var qE=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return he(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),$g=typeof Map=="function";function ZE(){return $g?new Map:new qE}var KE=(function(){function r(e){var t=R(e);this.data=ZE();var i=this;e instanceof r?e.each(n):e&&T(e,n);function n(a,o){t?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return $g?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function X(r){return new KE(r)}function Qg(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var n=r.length,i=0;i<e.length;i++)t[i+n]=e[i];return t}function Ui(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&N(t,e),t}function tu(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Me(r,e){return r.hasOwnProperty(e)}function Le(){}var Jg=180/Math.PI,Hz=Number.EPSILON||Math.pow(2,-52);var Fp=function(r,e){return Fp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Fp(r,e)};function ie(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Fp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Vi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function ey(r){return[r[0],r[1]]}function ru(r,e,t){return r[0]=e,r[1]=t,r}function Hp(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function ty(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function jE(r){return Math.sqrt($E(r))}function $E(r){return r[0]*r[0]+r[1]*r[1]}function iu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ry(r,e){var t=jE(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function nu(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var us=nu;function QE(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Dn=QE;function au(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function ht(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function li(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ui(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Wa=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),JE=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Wa(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,t.drift(a,o,e),this.handler.dispatchToElement(new Wa(t,e),"drag",e.event);var s=this.handler.findHover(i,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Wa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Wa(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Wa(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Wa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),iy=JE;var eD=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(n=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==t&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r})(),vt=eD;var tD=Math.log(2);function Gp(r,e,t,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/tD);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*r[t][p]*Gp(r,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function Wp(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},n=Gp(t,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Gp(t,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var ou="___zrEVENTSAVED",Yp=[];function ny(r,e,t,i,n){return su(Yp,e,i,n,!0)&&su(r,t,Yp[0],Yp[1])}function ay(r,e){r&&t(r),e&&t(e);function t(i){var n=i[ou];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ou])}}function su(r,e,t,i,n){if(e.getBoundingClientRect&&ae.domSupported&&!Xp(e)){var a=e[ou]||(e[ou]={}),o=rD(e,a),s=iD(o,a,n);if(s)return s(r,t,i),!0}return!1}function rD(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){T(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function iD(r,e,t){for(var i=t?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=t?Wp(s,o):Wp(o,s))}function Xp(r){return r.nodeName.toUpperCase()==="CANVAS"}var nD=/([&<>"'])/g,aD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function dt(r){return r==null?"":(r+"").replace(nD,function(e,t){return aD[t]})}var oD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qp=[],sD=ae.browser.firefox&&+ae.browser.version.split(".")[0]<39;function lu(r,e,t,i){return t=t||{},i?oy(r,e,t):sD&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):oy(r,e,t),t}function oy(r,e,t){if(ae.domSupported&&r.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(Xp(r)){var a=r.getBoundingClientRect();t.zrX=i-a.left,t.zrY=n-a.top;return}else if(su(qp,r,i,n)){t.zrX=qp[0],t.zrY=qp[1];return}}t.zrX=t.zrY=0}function uu(r){return r||window.event}function Ut(r,e,t){if(e=uu(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&lu(r,o,e,t)}else{lu(r,e,e,t);var a=lD(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&oD.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function lD(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var n=Math.abs(i!==0?i:t),a=i>0?-1:i<0?1:t>0?-1:1;return 3*n*a}function sy(r,e,t,i){r.addEventListener(e,t,i)}function ly(r,e,t,i){r.removeEventListener(e,t,i)}var Hi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};var fy=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=lu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in Zp)if(Zp.hasOwnProperty(t)){var i=Zp[t](this._track,e);if(i)return i}},r})();function uy(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function uD(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Zp={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,n=(r[t-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=uy(i)/uy(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=uD(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Mt(){return[1,0,0,1,0,0]}function fi(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function fs(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Gi(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function cs(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Ya(r,e,t,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),c=Math.cos(t);return r[0]=n*c+s*f,r[1]=-n*f+s*c,r[2]=a*c+l*f,r[3]=-a*f+c*l,r[4]=c*(o-i[0])+f*(u-i[1])+i[0],r[5]=c*(u-i[1])-f*(o-i[0])+i[1],r}function cy(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function zr(r,e){var t=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-t*s)*l,r):null}var fD=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var a=1-n;e.x=a*t.x+n*i.x,e.y=a*t.y+n*i.y},r})(),se=fD;var Pn=Math.min,Xa=Math.max,$p=Math.abs,py=["x","y"],cD=["width","height"],Mn=new se,In=new se,Ln=new se,On=new se,Qt=Jp(),hs=Qt.minTv,Qp=Qt.maxTv,vs=[0,0],ci=(function(){function r(e,t,i,n){Kp(this,e,t,i,n)}return r.set=function(e,t,i,n,a){return n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),e.x=t,e.y=i,e.width=n,e.height=a,e},r.prototype.union=function(e){var t=Pn(e.x,this.x),i=Pn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xa(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xa(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return pD(Mt(),this,e)},r.prototype.intersect=function(e,t,i){return r.intersect(this,e,t,i)},r.intersect=function(e,t,i,n){i&&se.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!t)return!1;e instanceof r||(e=Kp(hD,e.x,e.y,e.width,e.height)),t instanceof r||(t=Kp(vD,t.x,t.y,t.width,t.height));var s=!!i;Qt.reset(n,s);var l=Qt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=t.x+l,v=t.x+t.width-l,d=t.y+l,m=t.y+t.height-l;if(u>f||c>p||h>v||d>m)return!1;var g=!(f<h||v<u||p<d||m<c);return(s||a)&&(vs[0]=1/0,vs[1]=0,vy(u,f,h,v,0,s,a,o),vy(c,p,d,m,1,s,a,o),s&&se.copy(i,g?Qt.useDir?Qt.dirMinTv:hs:Qp)),g},r.contain=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){hy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,i){if(!i){e!==t&&hy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=t.x*n+o,e.y=t.y*a+s,e.width=t.width*n,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Mn.x=Ln.x=t.x,Mn.y=On.y=t.y,In.x=On.x=t.x+t.width,In.y=Ln.y=t.y+t.height,Mn.transform(i),On.transform(i),In.transform(i),Ln.transform(i),e.x=Pn(Mn.x,In.x,Ln.x,On.x),e.y=Pn(Mn.y,In.y,Ln.y,On.y);var l=Xa(Mn.x,In.x,Ln.x,On.x),u=Xa(Mn.y,In.y,Ln.y,On.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,i){var n=i.width/t.width,a=i.height/t.height;return e=fi(e||[]),cs(e,e,ru(jp,-t.x,-t.y)),cy(e,e,ru(jp,n,a)),cs(e,e,ru(jp,i.x,i.y)),e},r})(),rB=ci.create,Kp=ci.set,hy=ci.copy,pD=ci.calculateTransform,iB=ci.applyTransform,nB=ci.contain,hD=new ci(0,0,0,0),vD=new ci(0,0,0,0),jp=[];function vy(r,e,t,i,n,a,o,s){var l=$p(e-t),u=$p(i-r),f=Pn(l,u),c=py[n],p=py[1-n],h=cD[n];e<t||i<r?l<u?(a&&(Qp[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Qp[c]=u),s&&(o[c]=r,o[h]=0)):(o&&(o[c]=Xa(r,t),o[h]=Pn(e,i)-o[c]),a&&(f<vs[0]||Qt.useDir)&&(vs[0]=Pn(f,vs[0]),(l<u||!Qt.bidirectional)&&(hs[c]=l,hs[p]=0,Qt.useDir&&Qt.calcDirMTV()),(l>=u||!Qt.bidirectional)&&(hs[c]=-u,hs[p]=0,Qt.useDir&&Qt.calcDirMTV())))}function Jp(){var r=0,e=new se,t=new se,i={minTv:new se,maxTv:new se,useDir:!1,dirMinTv:new se,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Xa(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),t.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(i.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(a){return $p(a)<1e-10}return i}var re=ci;var my="silent";function dD(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:mD}}function mD(){Hi(this.event)}var gD=(function(r){ie(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(vt),ds=(function(){function r(e,t){this.x=e,this.y=t}return r})(),yD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],eh=new re(0,0,0,0),gy=(function(r){ie(e,r);function e(t,i,n,a,o){var s=r.call(this)||this;return s._hovered=new ds(0,0),s.storage=t,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new gD,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new iy(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(yD,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,n=t.zrY,a=yy(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ds(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ds(0,0)},e.prototype.dispatch=function(t,i){var n=this[t];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,n){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+i,s=dD(i,t,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,n){var a=this.storage.getDisplayList(),o=new ds(t,i);if(dy(a,o,t,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new re(t-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(eh.copy(p.getBoundingRect()),p.transform&&eh.applyTransform(p.transform),eh.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=t+m*Math.cos(g),_=i+m*Math.sin(g);if(dy(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new fy);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;t.gestureEvent=o;var s=new ds;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(vt);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){gy.prototype[r]=function(e){var t=e.zrX,i=e.zrY,n=yy(this,t,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(t,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||us(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function _D(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?my:!0}return!1}function dy(r,e,t,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=_D(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==my)){e.target=o;break}}}function yy(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var _y=gy;var by=32,ms=7;function xD(r){for(var e=0;r>=by;)e|=r&1,r>>=1;return r+e}function xy(r,e,t,i){var n=e+1;if(n===t)return 1;if(i(r[n++],r[e])<0){for(;n<t&&i(r[n],r[n-1])<0;)n++;SD(r,e,n)}else for(;n<t&&i(r[n],r[n-1])>=0;)n++;return n-e}function SD(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function Sy(r,e,t,i,n){for(i===e&&i++;i<t;i++){for(var a=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function th(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])>0){for(s=i-n;l<s&&a(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function rh(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])<0){for(s=n+1;l<s&&a(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function bD(r,e){var t=ms,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],m=i[h+1],g=n[h+1];n[h]=d+g,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=rh(r[m],r,v,d,0,e);v+=y,d-=y,d!==0&&(g=th(r[v+d-1],r,m,g,g-1,e),g!==0&&(d<=g?c(v,d,m,g):p(v,d,m,g)))}function c(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=r[h+g];var y=0,_=d,x=h;if(r[x++]=r[_++],--m===0){for(g=0;g<v;g++)r[x+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y];return}for(var b=t,S,w,A;;){S=0,w=0,A=!1;do if(e(r[_],o[y])<0){if(r[x++]=r[_++],w++,S=0,--m===0){A=!0;break}}else if(r[x++]=o[y++],S++,w=0,--v===1){A=!0;break}while((S|w)<b);if(A)break;do{if(S=rh(r[_],o,y,v,0,e),S!==0){for(g=0;g<S;g++)r[x+g]=o[y+g];if(x+=S,y+=S,v-=S,v<=1){A=!0;break}}if(r[x++]=r[_++],--m===0){A=!0;break}if(w=th(o[y],r,_,m,0,e),w!==0){for(g=0;g<w;g++)r[x+g]=r[_+g];if(x+=w,_+=w,m-=w,m===0){A=!0;break}}if(r[x++]=o[y++],--v===1){A=!0;break}b--}while(S>=ms||w>=ms);if(A)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),v===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)r[x+g]=o[y+g]}}function p(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=r[d+g];var y=h+v-1,_=m-1,x=d+m-1,b=0,S=0;if(r[x--]=r[y--],--v===0){for(b=x-(m-1),g=0;g<m;g++)r[b+g]=o[g];return}if(m===1){for(x-=v,y-=v,S=x+1,b=y+1,g=v-1;g>=0;g--)r[S+g]=r[b+g];r[x]=o[_];return}for(var w=t;;){var A=0,C=0,E=!1;do if(e(o[_],r[y])<0){if(r[x--]=r[y--],A++,C=0,--v===0){E=!0;break}}else if(r[x--]=o[_--],C++,A=0,--m===1){E=!0;break}while((A|C)<w);if(E)break;do{if(A=v-rh(o[_],r,h,v,v-1,e),A!==0){for(x-=A,y-=A,v-=A,S=x+1,b=y+1,g=A-1;g>=0;g--)r[S+g]=r[b+g];if(v===0){E=!0;break}}if(r[x--]=o[_--],--m===1){E=!0;break}if(C=m-th(r[y],o,0,m,m-1,e),C!==0){for(x-=C,_-=C,m-=C,S=x+1,b=_+1,g=0;g<C;g++)r[S+g]=o[b+g];if(m<=1){E=!0;break}}if(r[x--]=r[y--],--v===0){E=!0;break}w--}while(A>=ms||C>=ms);if(E)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),m===1){for(x-=v,y-=v,S=x+1,b=y+1,g=v-1;g>=0;g--)r[S+g]=r[b+g];r[x]=o[_]}else{if(m===0)throw new Error;for(b=x-(m-1),g=0;g<m;g++)r[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Rn(r,e,t,i){t||(t=0),i||(i=r.length);var n=i-t;if(!(n<2)){var a=0;if(n<by){a=xy(r,t,i,e),Sy(r,t,i,t+a,e);return}var o=bD(r,e),s=xD(n);do{if(a=xy(r,t,i,e),a<s){var l=n;l>s&&(l=s),Sy(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),n-=a,t+=a}while(n!==0);o.forceMergeRuns()}}var Xe=1,Nn=2,Wi=4;var Ty=!1;function ih(){Ty||(Ty=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wy(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var TD=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wy}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,a=t.length;n<a;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,Rn(i,wy)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Xe),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(ih(),v.z=0),isNaN(v.z2)&&(ih(),v.z2=0),isNaN(v.zlevel)&&(ih(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var n=fe(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Cy=TD;var Ay;Ay=ae.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var gs=Ay;var cu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-cu.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?cu.bounceIn(r*2)*.5:cu.bounceOut(r*2-1)*.5+.5}},pu=cu;var hu=Math.pow,Xi=Math.sqrt,du=1e-8,Dy=1e-4,Ey=Xi(3),vu=1/3,Br=Vi(),ur=Vi(),qa=Vi();function Yi(r){return r>-du&&r<du}function My(r){return r>du||r<-du}function Ne(r,e,t,i,n){var a=1-n;return a*a*(a*r+3*n*e)+n*n*(n*i+3*a*t)}function nh(r,e,t,i,n){var a=1-n;return 3*(((e-r)*a+2*(t-e)*n)*a+(i-t)*n*n)}function kn(r,e,t,i,n,a){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Yi(f)&&Yi(c))if(Yi(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(Yi(d)){var m=c/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g)}else if(d>0){var y=Xi(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-hu(-_,vu):_=hu(_,vu),x<0?x=-hu(-x,vu):x=hu(x,vu);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var b=(2*f*s-3*o*c)/(2*Xi(f*f*f)),S=Math.acos(b)/3,w=Xi(f),A=Math.cos(S),v=(-s-2*w*A)/(3*o),g=(-s+w*(A+Ey*Math.sin(S)))/(3*o),C=(-s+w*(A-Ey*Math.sin(S)))/(3*o);v>=0&&v<=1&&(a[h++]=v),g>=0&&g<=1&&(a[h++]=g),C>=0&&C<=1&&(a[h++]=C)}}return h}function mu(r,e,t,i,n){var a=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Yi(o)){if(My(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Yi(f))n[0]=-a/(2*o);else if(f>0){var c=Xi(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Za(r,e,t,i,n,a){var o=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function Iy(r,e,t,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,m,g;Br[0]=l,Br[1]=u;for(var y=0;y<1;y+=.05)ur[0]=Ne(r,t,n,o,y),ur[1]=Ne(e,i,a,s,y),m=Dn(Br,ur),m<h&&(c=y,h=m);h=1/0;for(var _=0;_<32&&!(p<Dy);_++)v=c-p,d=c+p,ur[0]=Ne(r,t,n,o,v),ur[1]=Ne(e,i,a,s,v),m=Dn(ur,Br),v>=0&&m<h?(c=v,h=m):(qa[0]=Ne(r,t,n,o,d),qa[1]=Ne(e,i,a,s,d),g=Dn(qa,Br),d<=1&&g<h?(c=d,h=g):p*=.5);return f&&(f[0]=Ne(r,t,n,o,c),f[1]=Ne(e,i,a,s,c)),Xi(h)}function Ly(r,e,t,i,n,a,o,s,l){for(var u=r,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Ne(r,t,n,o,v),m=Ne(e,i,a,s,v),g=d-u,y=m-f;c+=Math.sqrt(g*g+y*y),u=d,f=m}return c}function Je(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function ah(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function Oy(r,e,t,i,n){var a=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(Yi(a)){if(My(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Yi(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Xi(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function gu(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function Ka(r,e,t,i,n){var a=(e-r)*i+r,o=(t-e)*i+e,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Py(r,e,t,i,n,a,o,s,l){var u,f=.005,c=1/0;Br[0]=o,Br[1]=s;for(var p=0;p<1;p+=.05){ur[0]=Je(r,t,n,p),ur[1]=Je(e,i,a,p);var h=Dn(Br,ur);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<Dy);v++){var d=u-f,m=u+f;ur[0]=Je(r,t,n,d),ur[1]=Je(e,i,a,d);var h=Dn(ur,Br);if(d>=0&&h<c)u=d,c=h;else{qa[0]=Je(r,t,n,m),qa[1]=Je(e,i,a,m);var g=Dn(qa,Br);m<=1&&g<c?(u=m,c=g):f*=.5}}return l&&(l[0]=Je(r,t,n,u),l[1]=Je(e,i,a,u)),Xi(c)}function Ry(r,e,t,i,n,a,o){for(var s=r,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=Je(r,t,n,p),v=Je(e,i,a,p),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var wD=/cubic-bezier\(([0-9,\.e ]+)\)/;function yu(r){var e=r&&wD.exec(r);if(e){var t=e[1].split(","),i=+pt(t[0]),n=+pt(t[1]),a=+pt(t[2]),o=+pt(t[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:kn(0,i,a,1,l,s)&&Ne(0,n,o,1,s[0])}}}var CD=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Le,this.ondestroy=e.ondestroy||Le,this.onrestart=e.onrestart||Le,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:pu[e]||yu(e)},r})(),Ny=CD;var ky=(function(){function r(e){this.value=e}return r})();var AD=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new ky(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var ED=(function(){function r(e){this._list=new AD,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new ky(t),s.key=e,i.insertEntry(s),n[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Ur=ED;var zy={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]};function xr(r){return r=Math.round(r),r<0?0:r>255?255:r}function DD(r){return r=Math.round(r),r<0?0:r>360?360:r}function ys(r){return r<0?0:r>1?1:r}function sh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?xr(parseFloat(e)/100*255):xr(parseInt(e,10))}function zn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ys(parseFloat(e)/100):ys(parseFloat(e))}function lh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function qi(r,e,t){return r+(e-r)*t}function fr(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function uh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Vy=new Ur(20),_u=null;function ja(r,e){_u&&uh(_u,e),_u=Vy.put(r,_u||e.slice())}function St(r,e){if(r){e=e||[];var t=Vy.get(r);if(t)return uh(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in zy)return uh(e,zy[i]),ja(r,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){fr(e,0,0,0,1);return}return fr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),ja(r,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){fr(e,0,0,0,1);return}return fr(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),ja(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?fr(e,+u[0],+u[1],+u[2],1):fr(e,0,0,0,1);f=zn(u.pop());case"rgb":if(u.length>=3)return fr(e,sh(u[0]),sh(u[1]),sh(u[2]),u.length===3?f:zn(u[3])),ja(r,e),e;fr(e,0,0,0,1);return;case"hsla":if(u.length!==4){fr(e,0,0,0,1);return}return u[3]=zn(u[3]),fh(u,e),ja(r,e),e;case"hsl":if(u.length!==3){fr(e,0,0,0,1);return}return fh(u,e),ja(r,e),e;default:return}}fr(e,0,0,0,1)}}function fh(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=zn(r[1]),n=zn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],fr(e,xr(lh(o,a,t+1/3)*255),xr(lh(o,a,t)*255),xr(lh(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function MD(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-t)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:t===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function By(r,e){var t=St(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return cr(t,t.length===4?"rgba":"rgb")}}function xu(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return t[0]=xr(qi(o[0],s[0],l)),t[1]=xr(qi(o[1],s[1],l)),t[2]=xr(qi(o[2],s[2],l)),t[3]=ys(qi(o[3],s[3],l)),t}}function Fy(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=St(e[n]),s=St(e[a]),l=i-n,u=cr([xr(qi(o[0],s[0],l)),xr(qi(o[1],s[1],l)),xr(qi(o[2],s[2],l)),ys(qi(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function pi(r,e,t,i){var n=St(r);if(r)return n=MD(n),e!=null&&(n[0]=DD(K(e)?e(n[0]):e)),t!=null&&(n[1]=zn(K(t)?t(n[1]):t)),i!=null&&(n[2]=zn(K(i)?i(n[2]):i)),cr(fh(n),"rgba")}function Hy(r,e){var t=St(r);if(t&&e!=null)return t[3]=ys(e),cr(t,"rgba")}function cr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function $a(r,e){var t=St(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Uy=new Ur(100);function ch(r){if(U(r)){var e=Uy.get(r);return e||(e=By(r,-.1),Uy.put(r,e)),e}else if(zi(r)){var t=N({},r);return t.colorStops=B(r.colorStops,function(i){return{offset:i.offset,color:By(i.color,-.1)}}),t}return r}function Wy(r){return r.type==="linear"}function Yy(r){return r.type==="radial"}var LB=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var hh=Array.prototype.slice;function hi(r,e,t){return(e-r)*t+r}function ph(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=hi(e[a],t[a],i);return r}function ID(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=hi(e[o][s],t[o][s],i)}return r}function Su(r,e,t,i){for(var n=e.length,a=0;a<n;a++)r[a]=e[a]+t[a]*i;return r}function Xy(r,e,t,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function LD(r,e){for(var t=r.length,i=e.length,n=t>i?e:r,a=Math.min(t,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function OD(r,e,t){var i=r,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(t===1?n[l]:hh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Ss(r){if(Ke(r)){var e=r.length;if(Ke(r[0])){for(var t=[],i=0;i<e;i++)t.push(hh.call(r[i]));return t}return hh.call(r)}return r}function wu(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function PD(r){return Ke(r&&r[0])?2:1}var bu=0,Cu=1,Ky=2,xs=3,vh=4,dh=5,qy=6;function Zy(r){return r===vh||r===dh}function Tu(r){return r===Cu||r===Ky}var _s=[0,0,0,0],RD=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=qy,l=t;if(Ke(t)){var u=PD(t);s=u,(u===1&&!ue(t[0])||u===2&&!ue(t[0][0]))&&(o=!0)}else if(ue(t)&&!lr(t))s=bu;else if(U(t))if(!isNaN(+t))s=bu;else{var f=St(t);f&&(l=f,s=xs)}else if(zi(t)){var c=N({},l);c.colorStops=B(t.colorStops,function(h){return{offset:h.offset,color:St(h.color)}}),Wy(t)?s=vh:Yy(t)&&(s=dh),l=c}a===0?this.valType=s:(s!==this.valType||s===qy)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:t,percent:0};return i&&(p.easing=i,p.easingFunc=K(i)?i:pu[i]||yu(i)),n.push(p),p},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Tu(n),u=Zy(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?OD(p,h,n):u&&LD(p.colorStops,h.colorStops))}if(!s&&n!==dh&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var v=i[0].value,f=0;f<a;f++)n===bu?i[f].additiveValue=i[f].value-v:n===xs?i[f].additiveValue=Su([],i[f].value,v,-1):Tu(n)&&(i[f].additiveValue=n===Cu?Su([],i[f].value,v,-1):Xy([],i[f].value,v,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===xs,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>t);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=t;var m=v.percent-h.percent,g=m===0?1:p((t-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?_s:e[l];if((Tu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(Tu(a))a===Cu?ph(y,h[n],v[n],g):ID(y,h[n],v[n],g);else if(Zy(a)){var _=h[n],x=v[n],b=a===vh;e[l]={type:b?"linear":"radial",x:hi(_.x,x.x,g),y:hi(_.y,x.y,g),colorStops:B(_.colorStops,function(w,A){var C=x.colorStops[A];return{offset:hi(w.offset,C.offset,g),color:wu(ph([],w.color,C.color,g))}}),global:x.global},b?(e[l].x2=hi(_.x2,x.x2,g),e[l].y2=hi(_.y2,x.y2,g)):e[l].r=hi(_.r,x.r,g)}else if(u)ph(y,h[n],v[n],g),i||(e[l]=wu(y));else{var S=hi(h[n],v[n],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;t===bu?e[i]=e[i]+n:t===xs?(St(e[i],_s),Su(_s,_s,n,1),e[i]=wu(_s)):t===Cu?Su(e[i],e[i],n,1):t===Ky&&Xy(e[i],e[i],n,1)},r})(),ND=(function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){Fa("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,he(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new RD(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===xs&&u&&(u=wu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ss(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ss(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Ny({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var v=t._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(t._target,h);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var a=t[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Ss(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||he(e);for(var i=0;i<t.length;i++){var n=t[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),bs=ND;function Bn(){return new Date().getTime()}var kD=(function(r){ie(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.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},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,n=t.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Bn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(gs(i),!t._paused&&t.update())}gs(i)},e.prototype.start=function(){this._running||(this._time=Bn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Bn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Bn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var n=new bs(t,i.loop);return this.addAnimator(n),n},e})(vt),jy=kD;var zD=300,mh=ae.domSupported,gh=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=B(r,function(n){var a=n.replace("mouse","pointer");return t.hasOwnProperty(a)?a:n});return{mouse:r,touch:e,pointer:i}})(),$y={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qy=!1;function xh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function BD(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function yh(r){r&&(r.zrByTouch=!0)}function UD(r,e){return Ut(r.dom,new VD(r,e),!0)}function e_(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var VD=(function(){function r(e,t){this.stopPropagation=Le,this.stopImmediatePropagation=Le,this.preventDefault=Le,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Sr={mousedown:function(r){r=Ut(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ut(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ut(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ut(this.dom,r);var e=r.toElement||r.relatedTarget;e_(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Qy=!0,r=Ut(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Qy||(r=Ut(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ut(this.dom,r),yh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Sr.mousemove.call(this,r),Sr.mousedown.call(this,r)},touchmove:function(r){r=Ut(this.dom,r),yh(r),this.handler.processGesture(r,"change"),Sr.mousemove.call(this,r)},touchend:function(r){r=Ut(this.dom,r),yh(r),this.handler.processGesture(r,"end"),Sr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<zD&&Sr.click.call(this,r)},pointerdown:function(r){Sr.mousedown.call(this,r)},pointermove:function(r){xh(r)||Sr.mousemove.call(this,r)},pointerup:function(r){Sr.mouseup.call(this,r)},pointerout:function(r){xh(r)||Sr.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){Sr[r]=function(e){e=Ut(this.dom,e),this.trigger(r,e)}});var Sh={pointermove:function(r){xh(r)||Sh.mousemove.call(this,r)},pointerup:function(r){Sh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function FD(r,e){var t=e.domHandlers;ae.pointerEventsSupported?T(gh.pointer,function(i){Au(e,i,function(n){t[i].call(r,n)})}):(ae.touchEventsSupported&&T(gh.touch,function(i){Au(e,i,function(n){t[i].call(r,n),BD(e)})}),T(gh.mouse,function(i){Au(e,i,function(n){n=uu(n),e.touching||t[i].call(r,n)})}))}function HD(r,e){ae.pointerEventsSupported?T($y.pointer,t):ae.touchEventsSupported||T($y.mouse,t);function t(i){function n(a){a=uu(a),e_(r,a.target)||(a=UD(r,a),e.domHandlers[i].call(r,a))}Au(e,i,n,{capture:!0})}}function Au(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,sy(r.domTarget,e,t,i)}function _h(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&ly(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Jy=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),GD=(function(r){ie(e,r);function e(t,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=i,n._localHandlerScope=new Jy(t,Sr),mh&&(n._globalHandlerScope=new Jy(document,Sh)),FD(n,n._localHandlerScope),n}return e.prototype.dispose=function(){_h(this._localHandlerScope),mh&&_h(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,mh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?HD(this,i):_h(i)}},e})(vt),t_=GD;var r_=1;ae.hasGlobalWindow&&(r_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Un=r_,Ts=.4,ws="#333",Cs="#ccc",i_="#eee";var n_=fi,a_=5e-5;function Vn(r){return r>a_||r<-a_}var Fn=[],Qa=[],bh=Mt(),Th=Math.abs,o_=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return WD(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Vn(this.rotation)||Vn(this.x)||Vn(this.y)||Vn(this.scaleX-1)||Vn(this.scaleY-1)||Vn(this.skewX)||Vn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(n_(i),this.invTransform=null);return}i=i||Mt(),t?this.getLocalTransform(i):n_(i),e&&(t?Gi(i,e,i):fs(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Mt(),zr(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Fn);var i=Fn[0]<0?-1:1,n=Fn[1]<0?-1:1,a=((Fn[0]-i)*t+i)/Fn[0]||0,o=((Fn[1]-n)*t+n)/Fn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Mt(),Gi(Qa,e.invTransform,t),t=Qa);var i=this.originX,n=this.originY;(i||n)&&(bh[4]=i,bh[5]=n,Gi(Qa,t,bh),Qa[4]-=i,Qa[5]-=n,t=Qa),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&ht(i,i,n),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&ht(i,i,n),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Th(e[0]-1)>1e-10&&Th(e[3]-1)>1e-10?Math.sqrt(Th(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){eo(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;t[4]=-v*a-p*d*o,t[5]=-d*o-h*v*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=h*a,t[2]=p*o,u&&Ya(t,t,u),t[4]+=i+f,t[5]+=n+c,t},r.initDefaultProps=(function(){var e=r.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})(),r})(),WD=o_.getLocalTransform;var Ja=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function eo(r,e){return qg(r,e,Ja)}var to=o_;function br(r){Eu||(Eu=new Ur(100)),r=r||sr;var e=Eu.get(r);return e||(e={font:r,strWidthCache:new Ur(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Re.measureText("\u56FD",r).width,asciiCharWidth:Re.measureText("a",r).width},Eu.put(r,e)),e}var Eu;function YD(r){if(!(wh>=s_)){r=r||sr;for(var e=[],t=+new Date,i=0;i<=127;i++)e[i]=Re.measureText(String.fromCharCode(i),r).width;var n=+new Date-t;return n>16?wh=s_:n>2&&wh++,e}}var wh=0,s_=5;function Ch(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=YD(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Tr(r,e){var t=r.strWidthCache,i=t.get(e);return i==null&&(i=Re.measureText(e,r.font).width,t.put(e,i)),i}function l_(r,e,t,i){var n=Tr(br(e),r),a=As(e),o=Zi(0,n,t),s=vi(0,a,i),l=new re(o,s,n,a);return l}function Du(r,e,t,i){var n=((r||"")+"").split(`
2
+ `),a=n.length;if(a===1)return l_(n[0],e,t,i);for(var o=new re(0,0,0,0),s=0;s<n.length;s++){var l=l_(n[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function Zi(r,e,t,i){return t==="right"?i?r+=e:r-=e:t==="center"&&(i?r+=e/2:r-=e/2),r}function vi(r,e,t,i){return t==="middle"?i?r+=e/2:r-=e/2:t==="bottom"&&(i?r+=e:r-=e),r}function As(r){return br(r).stWideCharWidth}function Vt(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Hn(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",c="top";if(i instanceof Array)l+=Vt(i[0],t.width),u+=Vt(i[1],t.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Ah="__zr_normal__",Eh=Ja.concat(["ignore"]),XD=jt(Ja,function(r,e){return r[e]=!0,r},{ignore:!1}),ro={},qD=new re(0,0,0,0),Mu=[],Iu=0,io=1,Ih=(function(){function r(e){this.id=Ql(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(t);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=qD,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ro,i,p):Hn(ro,i,p),a.x=ro.x,a.y=ro.y,o=ro.align,s=ro.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=Vt(h[0],p.width),d=Vt(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=g.overflowRect=g.overflowRect||new re(0,0,0,0);a.getLocalTransform(Mu),zr(Mu,Mu),re.copy(y,p),y.applyTransform(Mu)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,b=void 0,S=void 0;_&&this.canBeInsideText()?(x=i.insideFill,b=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(x),S=!0)):(x=i.outsideFill,b=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==g.fill||b!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=b,g.autoStroke=S,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Xe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cs:ws},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&St(t);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,cr(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(V(e))for(var i=e,n=he(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ah)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Eh)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ah,!1,e)},r.prototype.useState=function(e,t,i,n){var a=e===Ah,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(fe(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Fa("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=f_(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,t,p_(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,t,i,!!c),p&&p.useState(e,t,i,!!c),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Iu,this.__dirty&=~Xe),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=f_(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,p_(this,t,d),d);var m=this._textGuide;p&&p.useStates(e,t,!!h),m&&m.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Iu,this.__dirty&=~Xe)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=fe(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var n=this.currentStates.slice(),a=fe(n,e),o=fe(n,t)>=0;a>=0?o?n.splice(a,1):n[a]=t:i&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,n=0;n<e.length;n++){var a=e[n];N(t,a),a.textConfig&&(i=i||{},N(i,a.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,n,a,o){if(this.__inHover!==io){var s=!(t&&n);t&&t.textConfig?(this.textConfig=N({},n?this.textConfig:i.textConfig),N(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Eh.length;f++){var c=Eh[f],p=a&&XD[c];t&&t[c]!=null?p?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(t||i)[v]:t||i)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new to,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Xe;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var n=e?this[e]:this,a=new bs(n,t,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var a=n.animators,o=fe(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,i){Dh(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){Dh(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,n){for(var a=Dh(this,t,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Iu,e.__dirty=Xe;var t={};function i(a,o,s){t[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();Dt(Ih,vt);Dt(Ih,to);function Dh(r,e,t,i,n){t=t||{};var a=[];h_(r,"",r,e,t,i,a,n);var o=a.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(v,d){t.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),t.force&&h.duration(t.duration),h.start(t.easing)}return a}function Mh(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function ZD(r){return Ke(r[0])}function KD(r,e,t){if(Ke(e[t]))if(Ke(r[t])||(r[t]=[]),Fe(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),Mh(r[t],e[t],i))}else{var n=e[t],a=r[t],o=n.length;if(ZD(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Mh(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Mh(a,n,o);a.length=n.length}else r[t]=e[t]}function jD(r,e){return r===e||Ke(r)&&Ke(e)&&$D(r,e)}function $D(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function h_(r,e,t,i,n,a,o,s){for(var l=he(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!V(a),v=r.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&t[g]!=null&&(h||a[g]))if(V(y)&&!Ke(y)&&!zi(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}h_(r,g,t[g],y,n,a&&a[g],o,s)}else d.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var b=v[x];if(b.targetName===e){var S=b.stopTracks(d);if(S){var w=fe(v,b);v.splice(w,1)}}}if(n.force||(d=Ve(d,function(D){return!jD(i[D],t[D])}),_=d.length),_>0||n.force&&!o.length){var A=void 0,C=void 0,E=void 0;if(s){C={},p&&(A={});for(var x=0;x<_;x++){var g=d[x];C[g]=t[g],p?A[g]=i[g]:t[g]=i[g]}}else if(p){E={};for(var x=0;x<_;x++){var g=d[x];E[g]=Ss(t[g]),KD(t,i,g)}}var b=new bs(t,!1,!1,c?Ve(v,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),p&&A&&b.whenWithKeys(0,A,d),E&&b.whenWithKeys(0,E,d),b.whenWithKeys(u??500,s?C:i,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}function f_(r,e,t,i){return!(t&&t.hoverLayer||i)||c_(r)||e&&c_(e)?Iu:io}function c_(r){return r.type==="text"||r.type==="tspan"}function p_(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Lu=Ih;var v_=(function(r){ie(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===t)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var n=fe(this._children,t);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(t,i){var n=this._children,a=n[i];if(t&&t!==this&&t.parent!==this&&t!==a){n[i]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,n=this._children,a=fe(n,t);return a<0?this:(n.splice(a,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,n=0;n<t.length;n++){var a=t[n];i&&a.removeSelfFromZr(i),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];t.call(i,o,a)}return this},e.prototype.traverse=function(t,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=t.call(i,a);a.isGroup&&!o&&a.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new re(0,0,0,0),n=t||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(re.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Lu);v_.prototype.type="group";var _e=v_;var Ou={},d_={};function QD(r){delete d_[r]}function JD(r){if(!r)return!1;if(typeof r=="string")return $a(r,1)<Ts;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,n=0;n<i;n++)t+=$a(e[n].color,1);return t/=i,t<Ts}return!1}var eM=(function(){function r(e,t,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new Cy,o=i.renderer||"canvas";Ou[o]||(o=he(Ou)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ou[o](t,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ae.node&&!ae.worker&&!l?new t_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?ae.touchEventsSupported:!!f,p=44,h;c&&(h=q(i.pointerSize,p)),this.handler=new _y(a,s,u,s.root,h),this.animation=new jy({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=JD(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,i=Bn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=Bn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof _e&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,QD(this.id))},r})();function Lh(r,e){var t=new eM(Ql(),r,e);return d_[t.id]=t,t}function m_(r,e){Ou[r]=e}var tM;function g_(r){tM=r}var y_=1e-4,__=20;function iM(r){return r.replace(/^\s+|\s+$/g,"")}var ze=Math.min,ge=Math.max,Oe=Math.abs,Jt=Math.round,Vr=Math.floor,Ki=Math.ceil,ji=Math.pow,no=Math.log,Oh=Math.LN10,nM=Math.PI,aM=Math.random;function It(r,e,t,i){var n=e[0],a=e[1],o=t[0],s=t[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}var Ee=oM;function oM(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Pu(r,e,t)}function Pu(r,e,t){return U(r)?sM(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function sM(r){return!!iM(r).match(/%$/)}function ye(r,e,t){return isNaN(e)?t?""+r:+r:(e=ze(ge(0,e),__),r=(+r).toFixed(e),t?r:+r)}function Fr(r){return r.sort(function(e,t){return e-t}),r}function wr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Jt(r*e)/e===r)return t}return lM(r)}function lM(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,n=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ge(0,o-i)}function x_(r,e,t){var i=Oe(r[1]-r[0]);if(!isFinite(i)||i===0)return NaN;var n=no(2*Oe(t||1)*Oe(i))/Oh,a=no(Oe(e))/Oh,o=ge(0,Ki(-n+a));return isFinite(o)||(o=NaN),o}function S_(r,e){var t=jt(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var i=ji(10,e),n=B(r,function(h){return(isNaN(h)?0:h)/t*i*100}),a=i*100,o=B(n,function(h){return Vr(h)}),s=jt(o,function(h,v){return h+v},0),l=B(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return B(o,function(h){return h/i})}function di(r,e){var t=ge(wr(r),wr(e)),i=r+e;return t>__?i:ye(i,t)}var Ph=ji(2,53)-1;function Rh(r){var e=nM*2;return(r%e+e)%e}function Es(r){return r>-y_&&r<y_}var uM=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Hr(r){if(r instanceof Date)return r;if(U(r)){var e=uM.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else 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)}else if(r==null)return new Date(NaN);return new Date(Jt(r))}function Ru(r){return ji(10,Nu(r))}function Nu(r){if(r===0)return 0;var e=Vr(no(r)/Oh);return r/ji(10,e)>=10&&e++,e}var Nh=2;function Gn(r,e){var t=Nu(r),i=ji(10,t),n=r/i,a;return e===Nh?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,ye(r,-t)}function kh(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<r.length;){for(var n=r[i].interval,a=r[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-t),e=n[o],t=a[o];n[0]===n[1]&&a[0]*a[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Gr(r){var e=parseFloat(r);return e==r&&(e!==0||!U(r)||r.indexOf("x")<=0)?e:NaN}function zh(r){return!isNaN(Gr(r))}function Ds(){return Jt(aM()*9)}function b_(r,e){return e===0?r:b_(e,r%e)}function Bh(r,e){return r==null?e:e==null?r:r*e/b_(r,e)}function je(r){return r!=null&&isFinite(r)}var fM="[ECharts] ",T_={},cM=typeof console<"u"&&console.warn&&console.log;function pM(r,e,t){if(cM){if(t){if(T_[e])return;T_[e]=!0}console[r](fM+e)}}function Uh(r,e){pM("error",r,e)}function st(r){throw new Error(r)}function w_(r,e,t){return(e-r)*t+r}var C_="series\0",hM="\0_ec_\0";function Pe(r){return r instanceof Array?r:r==null?[]:[r]}function Ls(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,n=t.length;i<n;i++){var a=t[i];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var Vh=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function mi(r){return V(r)&&!R(r)&&!(r instanceof Date)?r.value:r}function A_(r){return V(r)&&!(r instanceof Array)}function E_(r,e,t){var i=t==="normalMerge",n=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=X();T(e,function(l,u){if(!V(l)){e[u]=null;return}});var s=vM(r,o,t);return(i||n)&&dM(s,r,o,e),i&&mM(s,e),i||n?gM(s,e,n):a&&yM(s,e),_M(s),s}function vM(r,e,t){var i=[];if(t==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:t==="replaceMerge"||ao(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function dM(r,e,t,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=Is(n.id),s=t.get(o);if(s!=null){var l=r[s];He(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function mM(r,e){T(e,function(t,i){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||t.id==null)&&!ao(t)&&!ao(a)&&D_("name",a,t)){r[n].newOption=t,e[i]=null;return}}})}function gM(r,e,t){T(e,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||ao(n.existing)||n.existing&&i.id!=null&&!D_("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),a++}})}function yM(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function _M(r){var e=X();T(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),T(r,function(t){var i=t.newOption;He(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),T(r,function(t,i){var n=t.existing,a=t.newOption,o=t.keyInfo;if(V(a)){if(o.name=a.name!=null?Is(a.name):n?n.name:C_+i,n)o.id=Is(n.id);else if(a.id!=null)o.id=Is(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function D_(r,e,t){var i=Ft(e[r],null),n=Ft(t[r],null);return i!=null&&n!=null&&i===n}function Is(r){return Ft(r,"")}function Ft(r,e){return r==null?e:U(r)?r:ue(r)||ls(r)?r+"":e}function oo(r){var e=r.name;return!!(e&&e.indexOf(C_))}function ao(r){return r&&r.id!=null&&Is(r.id).indexOf(hM)===0}function M_(r,e,t){T(r,function(i){var n=i.newOption;V(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=xM(e,n,i.existing,t))})}function xM(r,e,t,i){var n=e.type?e.type:t?t.subType:i.determineSubType(r,e);return n}function I_(r,e){var t={},i={};return n(r||[],t),n(e||[],i,t),[a(t),a(i)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=Ft(o[u].seriesId,null);if(c==null)return;for(var p=Pe(o[u].dataIndex),h=l&&l[c],v=0,d=p.length;v<d;v++){var m=p[v];h&&h[m]?h[m]=null:(s[c]||(s[c]={}))[m]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function pr(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return R(e.dataIndex)?B(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return R(e.name)?B(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ne(){var r="__ec_inner_"+SM++;return function(e){return e[r]||(e[r]={})}}var SM=Ds();function ku(r,e,t){var i=Os(e,t),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=Wr(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Os(r,e){var t;if(U(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var n=X(),a={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&fe(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var mt={useDefault:!0,enableAll:!1,enableNone:!1};function Wr(r,e,t,i){i=i||mt;var n=t.index,a=t.id,o=t.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:a,name:o}),s}function L_(r,e,t){var i={};i[e+"Id"]=r[e+"Id"],i[e+"Index"]=r[e+"Index"],i[e+"Name"]=r[e+"Name"];var n={mainType:e,query:i};return t&&(n.subType=t),n}function Fh(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function O_(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function P_(r){return r==="auto"?ae.domSupported?"html":"richText":r||"html"}function Hh(r,e,t,i,n){var a=e==null||e==="auto";if(i==null)return i;if(ue(i)){var o=w_(t||0,i,n);return ye(o,a?Math.max(wr(t||0),wr(i)):e)}else{if(U(i))return n<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=r.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=w_(h,v,n);s[c]=ye(o,a?Math.max(wr(h),wr(v)):e)}}return s}}var MU=(function(){function r(){}return r.prototype.reset=function(e,t,i,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function gt(){return[1/0,-1/0]}function Ps(r,e){Cr(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function Gh(r,e){Cr(e)&&e<r[0]&&(r[0]=e)}function Wh(r,e){Cr(e)&&e>r[1]&&(r[1]=e)}function R_(r,e){gi(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function Cr(r){return r!=null&&isFinite(r)}function gi(r,e){return Cr(r)&&Cr(e)&&r<=e}function N_(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function k_(r){gi(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function zu(){var r="__ec_once_"+bM++;return function(e,t){Me(e,r)||(e[r]=1,t())}}var bM=Ds();function so(r,e,t){var i=X(),n=0;T(r,function(a){var o=e(a),s=i.get(o)||0;t&&t(a,s),!s&&!t&&(r[n++]=a),i.set(o,s+1)}),t||(r.length=n)}function z_(r){return r.value+""}function B_(r){return r+""}function Bu(r,e){return q(e,!0)?r.seriesIndex+2:0}function Uu(r,e,t){var i=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&i>=t.threshold,large:r.get("large")&&i>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function U_(r,e){return{seriesType:r,overallReset:e}}function lo(r){return{overallReset:r}}var TM=".",Wn="___EC__COMPONENT__CONTAINER___",V_="___EC__EXTENDED_CLASS___";function Ht(r){var e={main:"",sub:""};if(r){var t=r.split(TM);e.main=t[0]||"",e.sub=t[1]||""}return e}function wM(r){He(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function F_(r){return!!(r&&r[V_])}function uo(r,e){r.$constructor=r,r.extend=function(t){var i=this,n;return CM(i)?n=(function(a){z(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(t.$constructor||i).apply(this,arguments)},Zg(n,this)),N(n.prototype,t),n[V_]=!0,n.extend=this.extend,n.superCall=EM,n.superApply=DM,n.superClass=i,n}}function CM(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Vu(r,e){r.extend=e.extend}var AM=Math.round(Math.random()*10);function H_(r){var e=["__\0is_clz",AM++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function EM(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function DM(r,e,t){return this.superClass.prototype[e].apply(r,t)}function $i(r){var e={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){wM(n),i.prototype.type=n;var a=Ht(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Wn){var o=t(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=e[i];if(o&&o[Wn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Ht(i),a=[],o=e[n.main];return o&&o[Wn]?T(o,function(s,l){l!==Wn&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Ht(i);return!!e[n.main]},r.getAllClassMainTypes=function(){var i=[];return T(e,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Ht(i),a=e[n.main];return a&&a[Wn]};function t(i){var n=e[i.main];return(!n||!n[Wn])&&(n=e[i.main]={},n[Wn]=!0),n}}function Xr(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&fe(n,l)>=0||a&&fe(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var MM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],IM=Xr(MM),G_=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return IM(this,e,t)},r})();var Xh=new Ur(50);function Y_(r){if(typeof r=="string"){var e=Xh.get(r);return e&&e.image}else return r}function qh(r,e,t,i,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=Xh.get(r),o={hostEl:t,cb:i,cbPayload:n};return a?(e=a.image,!fo(e)&&a.pending.push(o)):(e=Re.loadImage(r,W_,W_),e.__zrImageSrc=r,Xh.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function W_(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function fo(r){return r&&r.width&&r.height}var Zh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function OM(r,e,t,i,n,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);a=K_(t,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)j_(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function K_(r,e,t,i){i=i||{};var n=N({},i);t=q(t,"..."),n.maxIterations=q(i.maxIterations,2);var a=n.minChar=q(i.minChar,0),o=n.fontMeasureInfo=br(e),s=o.asciiCharWidth;n.placeholder=q(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=Tr(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function j_(r,e,t){var i=t.containerWidth,n=t.contentWidth,a=t.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Tr(a,e);if(o<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?PM(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Tr(a,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function PM(r,e,t){for(var i=0,n=0,a=r.length;n<a&&i<e;n++)i+=Ch(t,r.charCodeAt(n));return n}function $_(r,e,t,i){var n=$h(r),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=As(u),p=q(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&t!=null&&(d=t-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(a==="break"||a==="breakAll")?g=n?J_(n,e.font,d,a==="breakAll",0).lines:[]:g=n?n.split(`
5
+ `):[];var y=g.length*p;if(m==null&&(m=y),y>m&&h){var _=Math.floor(m/p);v=v||g.length>_,g=g.slice(0,_),y=g.length*p}if(n&&f&&d!=null)for(var x=K_(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<g.length;S++)j_(b,g[S],x),g[S]=b.textLine,v=v||b.isTruncated;for(var w=m,A=0,C=br(u),S=0;S<g.length;S++)A=Math.max(Tr(C,g[S]),A);d==null&&(d=A);var E=d;return w+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:w,lineHeight:p,calculatedLineHeight:c,contentWidth:A,contentHeight:y,width:d,isTruncated:v}}var RM=(function(){function r(){}return r})(),X_=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),NM=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function Q_(r,e,t,i,n){var a=new NM,o=$h(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=Zh.lastIndex=0,d;(d=Zh.exec(o))!=null;){var m=d.index;m>v&&Kh(a,o.substring(v,m),e,h),Kh(a,d[2],e,h,d[1]),v=Zh.lastIndex}v<o.length&&Kh(a,o.substring(v,o.length),e,h);var g=[],y=0,_=0,x=p==="truncate",b=e.lineOverflow==="truncate",S={};function w(xe,Ze,at){xe.width=Ze,xe.lineHeight=at,y+=at,_=Math.max(_,Ze)}e:for(var A=0;A<a.lines.length;A++){for(var C=a.lines[A],E=0,D=0,I=0;I<C.tokens.length;I++){var M=C.tokens[I],L=M.styleName&&e.rich[M.styleName]||{},O=M.textPadding=L.padding,P=O?O[1]+O[3]:0,F=M.font=L.font||e.font;M.contentHeight=As(F);var k=q(L.height,M.contentHeight);if(M.innerHeight=k,O&&(k+=O[0]+O[2]),M.height=k,M.lineHeight=$t(L.lineHeight,e.lineHeight,k),M.align=L&&L.align||n,M.verticalAlign=L&&L.verticalAlign||"middle",b&&c!=null&&y+M.lineHeight>c){var H=a.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,E),a.lines=a.lines.slice(0,A+1)):a.lines=a.lines.slice(0,A),a.isTruncated=a.isTruncated||a.lines.length<H;break e}var W=L.width,Y=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")M.percentWidth=W,g.push(M),M.contentWidth=Tr(br(F),M.text);else{if(Y){var $=L.backgroundColor,J=$&&$.image;J&&(J=Y_(J),fo(J)&&(M.width=Math.max(M.width,J.width*k/J.height)))}var Q=x&&f!=null?f-D:null;Q!=null&&Q<M.width?!Y||Q<P?(M.text="",M.width=M.contentWidth=0):(OM(S,M.text,Q-P,F,e.ellipsis,{minChar:e.truncateMinChar}),M.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,M.width=M.contentWidth=Tr(br(F),M.text)):M.contentWidth=Tr(br(F),M.text)}M.width+=P,D+=M.width,L&&(E=Math.max(E,M.lineHeight))}w(C,D,E)}a.outerWidth=a.width=q(f,_),a.outerHeight=a.height=q(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],ve=M.percentWidth;M.width=parseInt(ve,10)/100*a.width}return a}function Kh(r,e,t,i,n){var a=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Vt(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=v}else{var d=J_(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
7
+ `));for(var m=br(l),g=0;g<f.length;g++){var y=f[g],_=new RM;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:Tr(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new X_)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=_:(y||!b||a)&&x.push(_)}else s.push(new X_([_]))}}function kM(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var zM=jt(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function BM(r){return kM(r)?!!zM[r]:!0}function J_(r,e,t,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=br(e),p=0;p<r.length;p++){var h=r.charAt(p);if(h===`
8
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Ch(c,h.charCodeAt(0)),d=i?!1:!BM(h);if(a.length?f+v>t:n+f+v>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function jh(r,e,t,i,n,a){if(r.baseX=t,r.baseY=i,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;re.set(q_,Zi(t,o,n),vi(i,s,a),o,s),re.intersect(e,q_,null,Z_);var l=Z_.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Zi(l.x,l.width,n,!0),r.baseY=vi(l.y,l.height,a,!0)}}var q_=new re(0,0,0,0),Z_={outIntersectRect:{},clamp:!0};function $h(r){return r!=null?r+="":r=""}function e0(r){var e=$h(r.text),t=r.font,i=Tr(br(t),e),n=As(t);return Fu(r,i,n,null)}function Fu(r,e,t,i){var n=new re(Zi(r.x||0,e,r.textAlign),vi(r.y||0,t,r.textBaseline),e,t),a=i??(Qh(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Qh(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var tv="__zr_style_"+Math.round(Math.random()*10),qr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Yn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qr[tv]=!0;var t0=["z","z2","invisible"],UM=["invisible"],VM=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=he(t),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&FM(this,t,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new re(0,0,0,0)),i?re.applyTransform(t,n,i):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new re(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:N(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Nn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Nn)},e.prototype.styleUpdated=function(){this.__dirty&=~Nn},e.prototype.createStyle=function(t){return Ui(qr,t)},e.prototype.useStyle=function(t){t[tv]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[tv]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,t0)},e.prototype._applyStateObj=function(t,i,n,a,o,s){r.prototype._applyStateObj.call(this,t,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===io,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=he(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=he(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?UM:t0,h=0;h<m.length;h++){var v=m[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,i){return N(t,i),t},e.prototype.getAnimationStyleProps=function(){return Yn},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Xe|Nn})(),e})(Lu),Jh=new re(0,0,0,0),ev=new re(0,0,0,0);function FM(r,e,t){return Jh.copy(r.getBoundingRect()),r.transform&&Jh.applyTransform(r.transform),ev.width=e,ev.height=t,!Jh.intersect(ev)}var Zr=VM;var hr=Math.min,vr=Math.max,rv=Math.sin,iv=Math.cos,Xn=Math.PI*2,Hu=Vi(),Gu=Vi(),Wu=Vi();function nv(r,e,t,i,n,a){n[0]=hr(r,t),n[1]=hr(e,i),a[0]=vr(r,t),a[1]=vr(e,i)}var r0=[],i0=[];function n0(r,e,t,i,n,a,o,s,l,u){var f=mu,c=Ne,p=f(r,t,n,o,r0);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(r,t,n,o,r0[h]);l[0]=hr(v,l[0]),u[0]=vr(v,u[0])}p=f(e,i,a,s,i0);for(var h=0;h<p;h++){var d=c(e,i,a,s,i0[h]);l[1]=hr(d,l[1]),u[1]=vr(d,u[1])}l[0]=hr(r,l[0]),u[0]=vr(r,u[0]),l[0]=hr(o,l[0]),u[0]=vr(o,u[0]),l[1]=hr(e,l[1]),u[1]=vr(e,u[1]),l[1]=hr(s,l[1]),u[1]=vr(s,u[1])}function a0(r,e,t,i,n,a,o,s){var l=gu,u=Je,f=vr(hr(l(r,t,n),1),0),c=vr(hr(l(e,i,a),1),0),p=u(r,t,n,f),h=u(e,i,a,c);o[0]=hr(r,n,p),o[1]=hr(e,a,h),s[0]=vr(r,n,p),s[1]=vr(e,a,h)}function o0(r,e,t,i,n,a,o,s,l){var u=li,f=ui,c=Math.abs(n-a);if(c%Xn<1e-4&&c>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(Hu[0]=iv(n)*t+r,Hu[1]=rv(n)*i+e,Gu[0]=iv(a)*t+r,Gu[1]=rv(a)*i+e,u(s,Hu,Gu),f(l,Hu,Gu),n=n%Xn,n<0&&(n=n+Xn),a=a%Xn,a<0&&(a=a+Xn),n>a&&!o?a+=Xn:n<a&&o&&(n+=Xn),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Wu[0]=iv(h)*t+r,Wu[1]=rv(h)*i+e,u(s,Wu,s),f(l,Wu,l))}var Ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qn=[],Zn=[],Kr=[],Qi=[],jr=[],$r=[],av=Math.min,ov=Math.max,Kn=Math.cos,jn=Math.sin,yi=Math.abs,uv=Math.PI,Ji=uv*2,sv=typeof Float32Array<"u",Rs=[];function lv(r){var e=Math.round(r/uv*1e8)/1e8;return e%2*uv}function fv(r,e){var t=lv(r[0]);t<0&&(t+=Ji);var i=t-r[0],n=r[1];n+=i,!e&&n-t>=Ji?n=t+Ji:e&&t-n>=Ji?n=t-Ji:!e&&t>n?n=t+(Ji-lv(t-n)):e&&t<n&&(n=t-(Ji-lv(n-t))),r[0]=t,r[1]=n}var HM=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=yi(i/Un/e)||0,this._uy=yi(i/Un/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ce.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=yi(e-this._xi),n=yi(t-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ce.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){return this._drawPendingPt(),this.addData(Ce.C,e,t,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,n){return this._drawPendingPt(),this.addData(Ce.Q,e,t,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(e,t,i,n,a,o){this._drawPendingPt(),Rs[0]=n,Rs[1]=a,fv(Rs,o),n=Rs[0],a=Rs[1];var s=a-n;return this.addData(Ce.A,e,t,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,o),this._xi=Kn(a)*i+e,this._yi=jn(a)*i+t,this},r.prototype.arcTo=function(e,t,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},r.prototype.rect=function(e,t,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,n),this.addData(Ce.R,e,t,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ce.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&sv&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,a=0;a<t;a++)i+=e[a].len();var o=this.data;if(sv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<t;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(e,t,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sv&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Kr[0]=Kr[1]=jr[0]=jr[1]=Number.MAX_VALUE,Qi[0]=Qi[1]=$r[0]=$r[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],n=t,a=i),s){case Ce.M:t=n=e[o++],i=a=e[o++],jr[0]=n,jr[1]=a,$r[0]=n,$r[1]=a;break;case Ce.L:nv(t,i,e[o],e[o+1],jr,$r),t=e[o++],i=e[o++];break;case Ce.C:n0(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],jr,$r),t=e[o++],i=e[o++];break;case Ce.Q:a0(t,i,e[o++],e[o++],e[o],e[o+1],jr,$r),t=e[o++],i=e[o++];break;case Ce.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=Kn(h)*c+u,a=jn(h)*p+f),o0(u,f,c,p,h,v,d,jr,$r),t=Kn(v)*c+u,i=jn(v)*p+f;break;case Ce.R:n=t=e[o++],a=i=e[o++];var m=e[o++],g=e[o++];nv(n,a,n+m,a+g,jr,$r);break;case Ce.Z:t=n,i=a;break}li(Kr,Kr,jr),ui(Qi,Qi,$r)}return o===0&&(Kr[0]=Kr[1]=Qi[0]=Qi[1]=0),new re(Kr[0],Kr[1],Qi[0]-Kr[0],Qi[1]-Kr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<t;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case Ce.M:a=s=e[p++],o=l=e[p++];break;case Ce.L:{var m=e[p++],g=e[p++],y=m-a,_=g-o;(yi(y)>i||yi(_)>n||p===t-1)&&(d=Math.sqrt(y*y+_*_),a=m,o=g);break}case Ce.C:{var x=e[p++],b=e[p++],m=e[p++],g=e[p++],S=e[p++],w=e[p++];d=Ly(a,o,x,b,m,g,S,w,10),a=S,o=w;break}case Ce.Q:{var x=e[p++],b=e[p++],m=e[p++],g=e[p++];d=Ry(a,o,x,b,m,g,10),a=m,o=g;break}case Ce.A:var A=e[p++],C=e[p++],E=e[p++],D=e[p++],I=e[p++],M=e[p++],L=M+I;p+=1,v&&(s=Kn(I)*E+A,l=jn(I)*D+C),d=ov(E,D)*av(Ji,Math.abs(M)),a=Kn(L)*E+A,o=jn(L)*D+C;break;case Ce.R:{s=a=e[p++],l=o=e[p++];var O=e[p++],P=e[p++];d=O*2+P*2;break}case Ce.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=t<1,v,d,m=0,g=0,y,_=0,x,b;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))e:for(var S=0;S<o;){var w=i[S++],A=S===1;switch(A&&(u=i[S],f=i[S+1],s=u,l=f),w!==Ce.L&&_>0&&(e.lineTo(x,b),_=0),w){case Ce.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case Ce.L:{c=i[S++],p=i[S++];var C=yi(c-u),E=yi(p-f);if(C>n||E>a){if(h){var D=v[g++];if(m+D>y){var I=(y-m)/D;e.lineTo(u*(1-I)+c*I,f*(1-I)+p*I);break e}m+=D}e.lineTo(c,p),u=c,f=p,_=0}else{var M=C*C+E*E;M>_&&(x=c,b=p,_=M)}break}case Ce.C:{var L=i[S++],O=i[S++],P=i[S++],F=i[S++],k=i[S++],H=i[S++];if(h){var D=v[g++];if(m+D>y){var I=(y-m)/D;Za(u,L,P,k,I,qn),Za(f,O,F,H,I,Zn),e.bezierCurveTo(qn[1],Zn[1],qn[2],Zn[2],qn[3],Zn[3]);break e}m+=D}e.bezierCurveTo(L,O,P,F,k,H),u=k,f=H;break}case Ce.Q:{var L=i[S++],O=i[S++],P=i[S++],F=i[S++];if(h){var D=v[g++];if(m+D>y){var I=(y-m)/D;Ka(u,L,P,I,qn),Ka(f,O,F,I,Zn),e.quadraticCurveTo(qn[1],Zn[1],qn[2],Zn[2]);break e}m+=D}e.quadraticCurveTo(L,O,P,F),u=P,f=F;break}case Ce.A:var W=i[S++],Y=i[S++],$=i[S++],J=i[S++],Q=i[S++],ve=i[S++],xe=i[S++],Ze=!i[S++],at=$>J?$:J,Ae=yi($-J)>.001,ke=Q+ve,pe=!1;if(h){var D=v[g++];m+D>y&&(ke=Q+ve*(y-m)/D,pe=!0),m+=D}if(Ae&&e.ellipse?e.ellipse(W,Y,$,J,xe,Q,ke,Ze):e.arc(W,Y,at,Q,ke,Ze),pe)break e;A&&(s=Kn(Q)*$+W,l=jn(Q)*J+Y),u=Kn(ke)*$+W,f=jn(ke)*J+Y;break;case Ce.R:s=u=i[S],l=f=i[S+1],c=i[S++],p=i[S++];var Se=i[S++],kr=i[S++];if(h){var D=v[g++];if(m+D>y){var ot=y-m;e.moveTo(c,p),e.lineTo(c+av(ot,Se),p),ot-=Se,ot>0&&e.lineTo(c+Se,p+av(ot,kr)),ot-=kr,ot>0&&e.lineTo(c+ov(Se-ot,0),p+kr),ot-=Se,ot>0&&e.lineTo(c,p+ov(kr-ot,0));break e}m+=D}e.rect(c,p,Se,kr);break;case Ce.Z:if(h){var D=v[g++];if(m+D>y){var I=(y-m)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}m+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Ce,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})(),Lt=HM;function $n(r,e,t,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function s0(r,e,t,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>r+c&&u>t+c&&u>n+c&&u>o+c||u<r-c&&u<t-c&&u<n-c&&u<o-c)return!1;var p=Iy(r,e,t,i,n,a,o,s,u,f,null);return p<=c/2}function l0(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var f=Py(r,e,t,i,n,a,s,l,null);return f<=u/2}var u0=Math.PI*2;function Ns(r){return r%=u0,r<0&&(r+=u0),r}var ks=Math.PI*2;function f0(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(i-n)%ks<1e-4)return!0;if(a){var c=i;i=Ns(n),n=Ns(c)}else i=Ns(i),n=Ns(n);i>n&&(n+=ks);var p=Math.atan2(l,s);return p<0&&(p+=ks),p>=i&&p<=n||p+ks>=i&&p+ks<=n}function _i(r,e,t,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var en=Lt.CMD,Qn=Math.PI*2,qM=1e-4;function ZM(r,e){return Math.abs(r-e)<qM}var Ot=[-1,-1,-1],dr=[-1,-1];function KM(){var r=dr[0];dr[0]=dr[1],dr[1]=r}function jM(r,e,t,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=kn(e,i,a,s,u,Ot);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=Ot[d],g=m===0||m===1?.5:1,y=Ne(r,t,n,o,m);y<l||(p<0&&(p=mu(e,i,a,s,dr),dr[1]<dr[0]&&p>1&&KM(),h=Ne(e,i,a,s,dr[0]),p>1&&(v=Ne(e,i,a,s,dr[1]))),p===2?m<dr[0]?c+=h<e?g:-g:m<dr[1]?c+=v<h?g:-g:c+=s<v?g:-g:m<dr[0]?c+=h<e?g:-g:c+=s<h?g:-g)}return c}function $M(r,e,t,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=Oy(e,i,a,s,Ot);if(l===0)return 0;var u=gu(e,i,a);if(u>=0&&u<=1){for(var f=0,c=Je(e,i,a,u),p=0;p<l;p++){var h=Ot[p]===0||Ot[p]===1?.5:1,v=Je(r,t,n,Ot[p]);v<o||(Ot[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=Ot[0]===0||Ot[0]===1?.5:1,v=Je(r,t,n,Ot[0]);return v<o?0:a<e?h:-h}}function QM(r,e,t,i,n,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ot[0]=-l,Ot[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Qn-1e-4){i=0,n=Qn;var f=a?1:-1;return o>=Ot[0]+r&&o<=Ot[1]+r?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Qn,n+=Qn);for(var p=0,h=0;h<2;h++){var v=Ot[h];if(v+r>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=Qn+d),(d>=i&&d<=n||d+Qn>=i&&d+Qn<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function c0(r,e,t,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],m=v===1;switch(d===en.M&&v>1&&(t||(s+=_i(l,u,f,c,i,n))),m&&(l=a[v],u=a[v+1],f=l,c=u),d){case en.M:f=a[v++],c=a[v++],l=f,u=c;break;case en.L:if(t){if($n(l,u,a[v],a[v+1],e,i,n))return!0}else s+=_i(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case en.C:if(t){if(s0(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=jM(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case en.Q:if(t){if(l0(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=$M(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case en.A:var g=a[v++],y=a[v++],_=a[v++],x=a[v++],b=a[v++],S=a[v++];v+=1;var w=!!(1-a[v++]);p=Math.cos(b)*_+g,h=Math.sin(b)*x+y,m?(f=p,c=h):s+=_i(l,u,p,h,i,n);var A=(i-g)*x/_+g;if(t){if(f0(g,y,x,b,b+S,w,e,A,n))return!0}else s+=QM(g,y,x,b,b+S,w,A,n);l=Math.cos(b+S)*_+g,u=Math.sin(b+S)*x+y;break;case en.R:f=l=a[v++],c=u=a[v++];var C=a[v++],E=a[v++];if(p=f+C,h=c+E,t){if($n(f,c,p,c,e,i,n)||$n(p,c,p,h,e,i,n)||$n(p,h,f,h,e,i,n)||$n(f,h,f,c,e,i,n))return!0}else s+=_i(p,c,p,h,i,n),s+=_i(f,h,f,c,i,n);break;case en.Z:if(t){if($n(l,u,f,c,e,i,n))return!0}else s+=_i(l,u,f,c,i,n);l=f,u=c;break}}return!t&&!ZM(u,c)&&(s+=_i(l,u,f,c,i,n)||0),s!==0}function p0(r,e,t){return c0(r,0,!1,e,t)}function h0(r,e,t,i){return c0(r,e,!0,t,i)}var pv=oe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qr),eI={style:oe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yn.style)},cv=Ja.concat(["invisible","culling","z","z2","zlevel","parent"]),tI=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<cv.length;++s)n[cv[s]]=this[cv[s]];n.__dirty|=Xe}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=he(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=t[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(U(t)){var i=$a(t,0);return i>.5?ws:i>.2?i_:Cs}else if(t)return Cs}return ws},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(U(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=$a(t,0)<Ts;if(a===o)return i}},e.prototype.buildPath=function(t,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Wi},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Lt(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,n=!t;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Wi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect(),o=this.style;if(t=n[0],i=n[1],a.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),h0(s,l/u,t,i)))return!0}if(this.hasFill())return p0(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Wi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=i:N(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Wi)},e.prototype.createStyle=function(t){return Ui(pv,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,n,a,o,s){if(r.prototype._applyStateObj.call(this,t,i,n,a,o,s),this.__inHover!==io){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=N({},n.shape),N(u,i.shape)):(u=N({},a?this.shape:n.shape),N(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=N({},this.shape);for(var f={},c=he(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),n,a=0;a<t.length;a++){var o=t[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return eI},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=(function(a){ie(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(t.style)},o.prototype.getDefaultShape=function(){return j(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(i.prototype[n]=t[n]);return i},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Xe|Nn|Wi})(),e})(Zr),le=tI;var rI=oe({strokeFirst:!0,font:sr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},pv),v0=(function(r){ie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Qh(this.style)},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Ui(rI,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=e0(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Zr);v0.prototype.type="tspan";var zs=v0;var iI=oe({x:0,y:0},qr),nI={style:oe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Yn.style)};function aI(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var d0=(function(r){ie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Ui(iI,t)},e.prototype._getSize=function(t){var i=this.style,n=i[t];if(n!=null)return n;var a=aI(i.image)?i.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return nI},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new re(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Zr);d0.prototype.type="image";var bt=d0;function m0(r,e){var t=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),r.moveTo(t+s,i),r.lineTo(t+n-l,i),l!==0&&r.arc(t+n-l,i+l,l,-Math.PI/2,0),r.lineTo(t+n,i+a-u),u!==0&&r.arc(t+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(t+f,i+a),f!==0&&r.arc(t+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}var co=Math.round;function Yu(r,e,t){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(co(i*2)===co(n*2)&&(r.x1=r.x2=tn(i,s,!0)),co(a*2)===co(o*2)&&(r.y1=r.y2=tn(a,s,!0))),r}}function Xu(r,e,t){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=tn(i,s,!0),r.y=tn(n,s,!0),r.width=Math.max(tn(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(tn(n+o,s,!1)-r.y,o===0?0:1)),r}}function tn(r,e,t){if(!e)return r;var i=co(r*2);return(i+co(e))%2===0?i/2:(i+(t?1:-1))/2}var lI=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var uI={},g0=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new lI},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=Xu(uI,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?m0(t,i):t.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(le);g0.prototype.type="rect";var de=g0;var y0={fill:"#000"},_0=2,Qr={},fI={style:oe({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},Yn.style)},E0=(function(r){ie(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=y0,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,dI(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new re(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||y0},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var n=i.rich,a=t.rich||n&&{};return N(t,i),n&&a?(this._mergeRich(a,n),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,i){for(var n=he(i),a=0;a<n.length;a++){var o=n[a];t[o]=t[o]||{},N(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return fI},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||sr,n=t.padding,a=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||a.align||"left",u=t.verticalAlign||a.verticalAlign||"top";jh(Qr,a.overflowRect,o,s,l,u),o=Qr.baseX,s=Qr.baseY;var f=A0(t),c=$_(f,t,Qr.outerWidth,Qr.outerHeight),p=hv(t),h=!!t.backgroundColor,v=c.outerHeight,d=c.outerWidth,m=c.lines,g=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=vi(s,c.contentHeight,u);if(p||n){var x=Zi(o,d,l),b=vi(s,v,u);p&&this._renderBackground(t,t,x,b,d,v)}_+=g/2,n&&(y=C0(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var S=0,w=!1,A=!1,C=w0("fill"in t?t.fill:(A=!0,a.fill)),E=T0("stroke"in t?t.stroke:!h&&(!a.autoStroke||A)?(S=_0,w=!0,a.stroke):null),D=t.textShadowBlur>0,I=0;I<m.length;I++){var M=this._getOrCreateChild(zs),L=M.createStyle();M.useStyle(L),L.text=m[I],L.x=y,L.y=_,l&&(L.textAlign=l),L.textBaseline="middle",L.opacity=t.opacity,L.strokeFirst=!0,D&&(L.shadowBlur=t.textShadowBlur||0,L.shadowColor=t.textShadowColor||"transparent",L.shadowOffsetX=t.textShadowOffsetX||0,L.shadowOffsetY=t.textShadowOffsetY||0),L.stroke=E,L.fill=C,E&&(L.lineWidth=t.lineWidth||S,L.lineDash=t.lineDash,L.lineDashOffset=t.lineDashOffset||0),L.font=i,S0(L,t),_+=g,M.setBoundingRect(Fu(L,c.contentWidth,c.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,i=this._defaultStyle,n=t.align||i.align,a=t.verticalAlign||i.verticalAlign,o=t.x||0,s=t.y||0;jh(Qr,i.overflowRect,o,s,n,a),o=Qr.baseX,s=Qr.baseY;var l=A0(t),u=Q_(l,t,Qr.outerWidth,Qr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var v=Zi(o,c,n),d=vi(s,p,a),m=v,g=d;h&&(m+=h[3],g+=h[0]);var y=m+f;hv(t)&&this._renderBackground(t,t,v,d,c,p);for(var _=!!t.backgroundColor,x=0;x<u.lines.length;x++){for(var b=u.lines[x],S=b.tokens,w=S.length,A=b.lineHeight,C=b.width,E=0,D=m,I=y,M=w-1,L=void 0;E<w&&(L=S[E],!L.align||L.align==="left");)this._placeToken(L,t,A,g,D,"left",_),C-=L.width,D+=L.width,E++;for(;M>=0&&(L=S[M],L.align==="right");)this._placeToken(L,t,A,g,I,"right",_),C-=L.width,I-=L.width,M--;for(D+=(f-(D-m)-(y-I)-C)/2;E<=M;)L=S[E],this._placeToken(L,t,A,g,D+L.width/2,"center",_),D+=L.width,E++;g+=A}},e.prototype._placeToken=function(t,i,n,a,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,c=a+n/2;f==="top"?c=a+t.height/2:f==="bottom"&&(c=a+n-t.height/2);var p=!t.isLineHolder&&hv(u);p&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,c-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;v&&(o=C0(o,s,v),c-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(zs),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,b=w0("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),S=T0("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(_=_0,x=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=c,w&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||sr,m.opacity=$t(u.opacity,i.opacity,1),S0(m,u),S&&(m.lineWidth=$t(u.lineWidth,i.lineWidth,_),m.lineDash=q(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=S),b&&(m.fill=b),d.setBoundingRect(Fu(m,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,i,n,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,c=l&&l.image,p=l&&!c,h=t.borderRadius,v=this,d,m;if(p||t.lineHeight||u&&f){d=this._getOrCreateChild(de),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=q(t.fillOpacity,1)}else if(c){m=this._getOrCreateChild(bt),m.onload=function(){v.dirtyStyle()};var _=m.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=q(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=$t(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return vI(t)&&(i=[t.fontStyle,t.fontWeight,hI(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&pt(i)||t.textFont||t.font},e})(Zr),cI={left:!0,right:1,center:1},pI={top:1,bottom:1,middle:1},x0=["fontStyle","fontWeight","fontSize","fontFamily"];function hI(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Kl+"px":r+"px"}function S0(r,e){for(var t=0;t<x0.length;t++){var i=x0[t],n=e[i];n!=null&&(r[i]=n)}}function vI(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function dI(r){return b0(r),T(r.rich,b0),r}function b0(r){if(r){r.font=E0.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||cI[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||pI[t]?t:"top";var i=r.padding;i&&(r.padding=Ha(r.padding))}}function T0(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function w0(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function C0(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function A0(r){var e=r.text;return e!=null&&(e+=""),e}function hv(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var be=E0;var ce=ne(),D0=function(r,e,t,i){if(i){var n=ce(i);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=ce(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var rn="undefined",qu="series",Zu=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),et="original",$e="arrayRows",Tt="objectRows",Gt="keyedColumns",er="typedArray",vv="unknown",tr="column",Jr="row";var mI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gI=(function(){function r(e){T(mI,function(t){this[t]=ee(e[t],e)},this)}return r})();function M0(r,e){return e.mainType===qu?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var Ku=gI;var I0=1,L0={},k0=ne(),gv=ne(),yv=0,Bs=1,Us=2,Pt=["emphasis","blur","select"],ho=["normal","emphasis","blur","select"],yI=10,_I=9,nn="highlight",Vs="downplay",Fs="select",$u="unselect",Hs="toggleSelect",Qu="selectchanged";function po(r){return r!=null&&r!=="none"}function Ju(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function z0(r){Ju(r,"emphasis",Us)}function B0(r){r.hoverState===Us&&Ju(r,"normal",yv)}function _v(r){Ju(r,"blur",Bs)}function U0(r){r.hoverState===Bs&&Ju(r,"normal",yv)}function xI(r){r.selected=!0}function SI(r){r.selected=!1}function O0(r,e,t){e(r,t)}function xi(r,e,t){O0(r,e,t),r.isGroup&&r.traverse(function(i){O0(i,e,t)})}function xv(r,e){switch(e){case"emphasis":r.hoverState=Us;break;case"normal":r.hoverState=yv;break;case"blur":r.hoverState=Bs;break;case"select":r.selected=!0}}function bI(r,e,t,i){for(var n=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function TI(r,e,t,i){var n=t&&fe(t,"select")>=0,a=!1;if(r instanceof le){var o=k0(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(po(s)||po(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=N({},i),u=N({},u),u.fill=s):!po(u.fill)&&po(s)?(a=!0,i=N({},i),u=N({},u),u.fill=ch(s)):!po(u.stroke)&&po(l)&&(a||(i=N({},i),u=N({},u)),u.stroke=ch(l)),i.style=u}}if(i&&i.z2==null){a||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??yI)}return i}function wI(r,e,t){if(t&&t.z2==null){t=N({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??_I)}return t}function CI(r,e,t){var i=fe(r.currentStates,e)>=0,n=r.style.opacity,a=i?null:bI(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=N({},t),o=N({opacity:i?n:a.opacity*.1},o),t.style=o),t}function dv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return TI(this,r,e,t);if(r==="blur")return CI(this,r,t);if(r==="select")return wI(this,r,t)}return t}function AI(r){r.stateProxy=dv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=dv),t&&(t.stateProxy=dv)}function P0(r,e){!F0(r,e)&&!r.__highByOuter&&xi(r,z0)}function R0(r,e){!F0(r,e)&&!r.__highByOuter&&xi(r,B0)}function Jn(r,e){r.__highByOuter|=1<<(e||0),xi(r,z0)}function ea(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&xi(r,B0)}function V0(r){xi(r,_v)}function Sv(r){xi(r,U0)}function bv(r){xi(r,xI)}function Tv(r){xi(r,SI)}function F0(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function wv(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(n,a){var o=gv(a),s=M0(r,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){U0(u)}),l&&t.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function mv(r,e,t,i){var n=i.getModel();t=t||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&Sv(p)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||_v(m)}),Ke(e))a(u.getData(),e);else if(V(e))for(var v=he(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),gv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function ju(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){gv(i).isBlured=!0;var n=t.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){_v(a)})}}}function H0(r,e,t){var i=r.seriesIndex,n=r.getData(e.dataType);if(n){var a=pr(n,e);a=(R(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ce(o);mv(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&mv(i,f,c,t)}}}function ef(r,e,t,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var a=i.getModel().getComponent(r,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ce(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function G0(r,e,t){var i=ce(r),n=ef(i.componentMainType,i.componentIndex,i.componentHighDownName,t),a=n.dispatchers,o=n.focusSelf;a?(o&&ju(i.componentMainType,i.componentIndex,t),T(a,function(s){return P0(s,e)})):(mv(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&ju(i.componentMainType,i.componentIndex,t),P0(r,e))}function W0(r,e,t){wv(t);var i=ce(r),n=ef(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;n?T(n,function(a){return R0(a,e)}):R0(r,e)}function Y0(r,e,t){if(nf(e)){var i=e.dataType,n=r.getData(i),a=pr(n,e);R(a)||(a=[a]),r[e.type===Hs?"toggleSelect":e.type===Fs?"select":"unselect"](a,i)}}function Cv(r){var e=r.getAllData();T(e,function(t){var i=t.data,n=t.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?bv(a):Tv(a)})})}function X0(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();T(i,function(n){var a=n.data,o=n.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function tf(r,e,t){rf(r,!0),xi(r,AI),DI(r,e,t)}function EI(r){rf(r,!1)}function Ar(r,e,t,i){i?EI(r):tf(r,e,t)}function DI(r,e,t){var i=ce(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var N0=["emphasis","blur","select"],MI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ta(r,e,t,i){t=t||"itemStyle";for(var n=0;n<N0.length;n++){var a=N0[n],o=e.getModel([a,t]),s=r.ensureState(a);s.style=i?i(o):o[MI[t]]()}}function rf(r,e){var t=e===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function Gs(r){return!!(r&&r.__highDownDispatcher)}function q0(r){var e=L0[r];return e==null&&I0<=32&&(e=L0[r]=I0++),e}function nf(r){var e=r.type;return e===Fs||e===$u||e===Hs}function Av(r){var e=r.type;return e===nn||e===Vs}function Z0(r){var e=k0(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Ge={};OE(Ge,{Arc:()=>Ks,BezierCurve:()=>Rv,BoundingRect:()=>re,Circle:()=>Ys,CompoundPath:()=>_x,Ellipse:()=>Iv,Group:()=>_e,HOVER_LAYER_FOR_INCREMENTAL:()=>sa,HOVER_LAYER_FROM_THRESHOLD:()=>Hv,HOVER_LAYER_NO:()=>Fv,Image:()=>bt,IncrementalDisplayable:()=>Cx,Line:()=>Mr,LinearGradient:()=>go,OrientedBoundingRect:()=>hf,Path:()=>le,Point:()=>se,Polygon:()=>Zs,Polyline:()=>ia,RadialGradient:()=>xx,Rect:()=>de,Ring:()=>Ov,Sector:()=>Dr,Text:()=>be,WH:()=>on,XY:()=>ti,applyTransform:()=>sn,calcZ2Range:()=>yL,clipPointsByRect:()=>vL,clipRectByRect:()=>dL,createIcon:()=>Qs,decomposeTransform:()=>xL,ensureCopyRect:()=>To,ensureCopyTransform:()=>gf,expandOrShrinkRect:()=>So,extendPath:()=>lL,extendShape:()=>oL,getCurrentCanvasPainter:()=>SL,getShapeClass:()=>uL,getTransform:()=>$s,groupTransition:()=>Yv,initProps:()=>ut,isBoundingRectAxisAligned:()=>mf,isElementRemoved:()=>oa,lineLineIntersect:()=>Lx,linePolygonIntersect:()=>mL,makeImage:()=>Gv,makePath:()=>df,mergePath:()=>fL,payloadDisableAnimation:()=>_L,registerShape:()=>Ir,removeElement:()=>_o,removeElementWithFadeOut:()=>an,resizePath:()=>Ix,retrieveZInfo:()=>Xv,setTooltipConfig:()=>bo,subPixelOptimize:()=>pL,subPixelOptimizeLine:()=>la,subPixelOptimizeRect:()=>cL,transformDirection:()=>Wv,traverseElements:()=>Si,traverseUpdateZ:()=>qv,updateProps:()=>Be});var vo=Lt.CMD,II=[[],[],[]],K0=Math.sqrt,LI=Math.atan2;function Ev(r,e){if(e){var t=r.data,i=r.len(),n,a,o,s,l,u,f=vo.M,c=vo.C,p=vo.L,h=vo.R,v=vo.A,d=vo.Q;for(o=0,s=0;o<i;){switch(n=t[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var m=e[4],g=e[5],y=K0(e[0]*e[0]+e[1]*e[1]),_=K0(e[2]*e[2]+e[3]*e[3]),x=LI(-e[1]/_,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=_,t[o++]+=g,t[o++]*=y,t[o++]*=_,t[o++]+=x,t[o++]+=x,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],ht(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ht(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var b=II[l];b[0]=t[o++],b[1]=t[o++],ht(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var Dv=Math.sqrt,af=Math.sin,of=Math.cos,Ws=Math.PI;function j0(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Mv(r,e){return(r[0]*e[0]+r[1]*e[1])/(j0(r)*j0(e))}function $0(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Mv(r,e))}function Q0(r,e,t,i,n,a,o,s,l,u,f){var c=l*(Ws/180),p=of(c)*(r-t)/2+af(c)*(e-i)/2,h=-1*af(c)*(r-t)/2+of(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Dv(v),s*=Dv(v));var d=(n===a?-1:1)*Dv((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,m=d*o*h/s,g=d*-s*p/o,y=(r+t)/2+of(c)*m-af(c)*g,_=(e+i)/2+af(c)*m+of(c)*g,x=$0([1,0],[(p-m)/o,(h-g)/s]),b=[(p-m)/o,(h-g)/s],S=[(-1*p-m)/o,(-1*h-g)/s],w=$0(b,S);if(Mv(b,S)<=-1&&(w=Ws),Mv(b,S)>=1&&(w=0),w<0){var A=Math.round(w/Ws*1e6)/1e6;w=Ws*2+A%2*Ws}f.addData(u,y,_,o,s,x,w,c,a)}var OI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,PI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function RI(r){var e=new Lt;if(!r)return e;var t=0,i=0,n=t,a=i,o,s=Lt.CMD,l=r.match(OI);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(PI)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0,w=void 0,A=t,C=i,E=void 0,D=void 0;switch(c){case"l":t+=h[m++],i+=h[m++],p=s.L,e.addData(p,t,i);break;case"L":t=h[m++],i=h[m++],p=s.L,e.addData(p,t,i);break;case"m":t+=h[m++],i+=h[m++],p=s.M,e.addData(p,t,i),n=t,a=i,c="l";break;case"M":t=h[m++],i=h[m++],p=s.M,e.addData(p,t,i),n=t,a=i,c="L";break;case"h":t+=h[m++],p=s.L,e.addData(p,t,i);break;case"H":t=h[m++],p=s.L,e.addData(p,t,i);break;case"v":i+=h[m++],p=s.L,e.addData(p,t,i);break;case"V":i=h[m++],p=s.L,e.addData(p,t,i);break;case"C":p=s.C,e.addData(p,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),t=h[m-2],i=h[m-1];break;case"c":p=s.C,e.addData(p,h[m++]+t,h[m++]+i,h[m++]+t,h[m++]+i,h[m++]+t,h[m++]+i),t+=h[m-2],i+=h[m-1];break;case"S":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),p=s.C,A=h[m++],C=h[m++],t=h[m++],i=h[m++],e.addData(p,g,y,A,C,t,i);break;case"s":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),p=s.C,A=t+h[m++],C=i+h[m++],t+=h[m++],i+=h[m++],e.addData(p,g,y,A,C,t,i);break;case"Q":A=h[m++],C=h[m++],t=h[m++],i=h[m++],p=s.Q,e.addData(p,A,C,t,i);break;case"q":A=h[m++]+t,C=h[m++]+i,t+=h[m++],i+=h[m++],p=s.Q,e.addData(p,A,C,t,i);break;case"T":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t=h[m++],i=h[m++],p=s.Q,e.addData(p,g,y,t,i);break;case"t":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t+=h[m++],i+=h[m++],p=s.Q,e.addData(p,g,y,t,i);break;case"A":_=h[m++],x=h[m++],b=h[m++],S=h[m++],w=h[m++],A=t,C=i,t=h[m++],i=h[m++],p=s.A,Q0(A,C,t,i,S,w,_,x,b,p,e);break;case"a":_=h[m++],x=h[m++],b=h[m++],S=h[m++],w=h[m++],A=t,C=i,t+=h[m++],i+=h[m++],p=s.A,Q0(A,C,t,i,S,w,_,x,b,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),t=n,i=a),o=p}return e.toStatic(),e}var J0=(function(r){ie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(le);function ex(r){return r.setData!=null}function tx(r,e){var t=RI(r),i=N({},e);return i.buildPath=function(n){var a=ex(n);if(a&&n.canSave()){n.appendPath(t);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&t.rebuildPath(o,1)}},i.applyTransform=function(n){Ev(t,n),this.dirtyShape()},i}function rx(r,e){return new J0(tx(r,e))}function ix(r,e){var t=tx(r,e),i=(function(n){ie(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a})(J0);return i}function nx(r,e){for(var t=[],i=r.length,n=0;n<i;n++){var a=r[n];t.push(a.getUpdatedPathProxy(!0))}var o=new le(e);return o.createPathProxy(),o.buildPath=function(s){if(ex(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var kI=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var ax=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new kI},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(le);ax.prototype.type="circle";var Ys=ax;var zI=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var ox=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new zI},e.prototype.buildPath=function(t,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e})(le);ox.prototype.type="ellipse";var Iv=ox;var lx=Math.PI,Lv=lx*2,ra=Math.sin,mo=Math.cos,BI=Math.acos,wt=Math.atan2,sx=Math.abs,qs=Math.sqrt,Xs=Math.max,ei=Math.min,Er=1e-4;function UI(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<Er))return p=(f*(e-a)-c*(r-n))/p,[r+p*l,e+p*u]}function sf(r,e,t,i,n,a,o){var s=r-t,l=e-i,u=(o?a:-a)/qs(s*s+l*l),f=u*l,c=-u*s,p=r+f,h=e+c,v=t+f,d=i+c,m=(p+v)/2,g=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,b=n-a,S=p*d-v*h,w=(_<0?-1:1)*qs(Xs(0,b*b*x-S*S)),A=(S*_-y*w)/x,C=(-S*y-_*w)/x,E=(S*_+y*w)/x,D=(-S*y+_*w)/x,I=A-m,M=C-g,L=E-m,O=D-g;return I*I+M*M>L*L+O*O&&(A=E,C=D),{cx:A,cy:C,x0:-f,y0:-c,x1:A*(n/b-1),y1:C*(n/b-1)}}function VI(r){var e;if(R(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function ux(r,e){var t,i=Xs(e.r,0),n=Xs(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=sx(u-l),v=h>Lv&&h%Lv;if(v>Er&&(h=v),!(i>Er))r.moveTo(f,c);else if(h>Lv-Er)r.moveTo(f+i*mo(l),c+i*ra(l)),r.arc(f,c,i,l,u,!p),n>Er&&(r.moveTo(f+n*mo(u),c+n*ra(u)),r.arc(f,c,n,u,l,p));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,b=void 0,S=void 0,w=void 0,A=void 0,C=void 0,E=void 0,D=void 0,I=void 0,M=void 0,L=void 0,O=i*mo(l),P=i*ra(l),F=n*mo(u),k=n*ra(u),H=h>Er;if(H){var W=e.cornerRadius;W&&(t=VI(W),d=t[0],m=t[1],g=t[2],y=t[3]);var Y=sx(i-n)/2;if(_=ei(Y,g),x=ei(Y,y),b=ei(Y,d),S=ei(Y,m),C=w=Xs(_,x),E=A=Xs(b,S),(w>Er||A>Er)&&(D=i*mo(u),I=i*ra(u),M=n*mo(l),L=n*ra(l),h<lx)){var $=UI(O,P,M,L,D,I,F,k);if($){var J=O-$[0],Q=P-$[1],ve=D-$[0],xe=I-$[1],Ze=1/ra(BI((J*ve+Q*xe)/(qs(J*J+Q*Q)*qs(ve*ve+xe*xe)))/2),at=qs($[0]*$[0]+$[1]*$[1]);C=ei(w,(i-at)/(Ze+1)),E=ei(A,(n-at)/(Ze-1))}}}if(!H)r.moveTo(f+O,c+P);else if(C>Er){var Ae=ei(g,C),ke=ei(y,C),pe=sf(M,L,O,P,i,Ae,p),Se=sf(D,I,F,k,i,ke,p);r.moveTo(f+pe.cx+pe.x0,c+pe.cy+pe.y0),C<w&&Ae===ke?r.arc(f+pe.cx,c+pe.cy,C,wt(pe.y0,pe.x0),wt(Se.y0,Se.x0),!p):(Ae>0&&r.arc(f+pe.cx,c+pe.cy,Ae,wt(pe.y0,pe.x0),wt(pe.y1,pe.x1),!p),r.arc(f,c,i,wt(pe.cy+pe.y1,pe.cx+pe.x1),wt(Se.cy+Se.y1,Se.cx+Se.x1),!p),ke>0&&r.arc(f+Se.cx,c+Se.cy,ke,wt(Se.y1,Se.x1),wt(Se.y0,Se.x0),!p))}else r.moveTo(f+O,c+P),r.arc(f,c,i,l,u,!p);if(!(n>Er)||!H)r.lineTo(f+F,c+k);else if(E>Er){var Ae=ei(d,E),ke=ei(m,E),pe=sf(F,k,D,I,n,-ke,p),Se=sf(O,P,M,L,n,-Ae,p);r.lineTo(f+pe.cx+pe.x0,c+pe.cy+pe.y0),E<A&&Ae===ke?r.arc(f+pe.cx,c+pe.cy,E,wt(pe.y0,pe.x0),wt(Se.y0,Se.x0),!p):(ke>0&&r.arc(f+pe.cx,c+pe.cy,ke,wt(pe.y0,pe.x0),wt(pe.y1,pe.x1),!p),r.arc(f,c,n,wt(pe.cy+pe.y1,pe.cx+pe.x1),wt(Se.cy+Se.y1,Se.cx+Se.x1),p),Ae>0&&r.arc(f+Se.cx,c+Se.cy,Ae,wt(Se.y1,Se.x1),wt(Se.y0,Se.x0),!p))}else r.lineTo(f+F,c+k),r.arc(f,c,n,u,l,p)}r.closePath()}}}var HI=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var fx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new HI},e.prototype.buildPath=function(t,i){ux(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(le);fx.prototype.type="sector";var Dr=fx;var GI=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var cx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new GI},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.PI*2;t.moveTo(n+i.r,a),t.arc(n,a,i.r,0,o,!1),t.moveTo(n+i.r0,a),t.arc(n,a,i.r0,0,o,!0)},e})(le);cx.prototype.type="ring";var Ov=cx;function Pv(r,e,t,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=r.length;p<h;p++)li(f,f,r[p]),ui(c,c,r[p]);li(f,f,i[0]),ui(c,c,i[1])}for(var p=0,h=r.length;p<h;p++){var v=r[p];if(t)l=r[p?p-1:h-1],u=r[(p+1)%h];else if(p===0||p===h-1){n.push(ey(r[p]));continue}else l=r[p-1],u=r[p+1];ty(a,u,l),iu(a,a,e);var d=nu(v,l),m=nu(v,u),g=d+m;g!==0&&(d/=g,m/=g),iu(o,a,-d),iu(s,a,m);var y=Hp([],v,o),_=Hp([],v,s);i&&(ui(y,y,f),li(y,y,c),ui(_,_,f),li(_,_,c)),n.push(y),n.push(_)}return t&&n.push(n.shift()),n}function lf(r,e,t){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=Pv(n,i,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var WI=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var hx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WI},e.prototype.buildPath=function(t,i){lf(t,i,!0)},e})(le);hx.prototype.type="polygon";var Zs=hx;var YI=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var vx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new YI},e.prototype.buildPath=function(t,i){lf(t,i,!1)},e})(le);vx.prototype.type="polyline";var ia=vx;var XI={},qI=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var dx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qI},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=Yu(XI,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e})(le);dx.prototype.type="line";var Mr=dx;var Wt=[],ZI=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function mx(r,e,t){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(t?nh:Ne)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?nh:Ne)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?ah:Je)(r.x1,r.cpx1,r.x2,e),(t?ah:Je)(r.y1,r.cpy1,r.y2,e)]}var gx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZI},e.prototype.buildPath=function(t,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(t.moveTo(n,a),f==null||c==null?(p<1&&(Ka(n,l,o,p,Wt),l=Wt[1],o=Wt[2],Ka(a,u,s,p,Wt),u=Wt[1],s=Wt[2]),t.quadraticCurveTo(l,u,o,s)):(p<1&&(Za(n,l,f,o,p,Wt),l=Wt[1],f=Wt[2],o=Wt[3],Za(a,u,c,s,p,Wt),u=Wt[1],c=Wt[2],s=Wt[3]),t.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(t){return mx(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=mx(this.shape,t,!0);return ry(i,i)},e})(le);gx.prototype.type="bezier-curve";var Rv=gx;var KI=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var yx=(function(r){ie(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KI},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);t.moveTo(f*o+n,c*o+a),t.arc(n,a,o,s,l,!u)},e})(le);yx.prototype.type="arc";var Ks=yx;var jI=(function(r){ie(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),n=0;n<t.length;n++)i=i||t[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(i[0],i[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(t,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),le.prototype.getBoundingRect.call(this)},e})(le),_x=jI;var $I=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),uf=$I;var QI=(function(r){ie(e,r);function e(t,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(uf),go=QI;var JI=(function(r){ie(e,r);function e(t,i,n,a,o){var s=r.call(this,a)||this;return s.x=t??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(uf),xx=JI;var Nv=Math.min,eL=Math.max,ff=Math.abs,na=[0,0],aa=[0,0],lt=Jp(),cf=lt.minTv,pf=lt.maxTv,tL=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new se;for(var i=0;i<2;i++)this._axes[i]=new se;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),t)for(var u=0;u<4;u++)i[u].transform(t);se.sub(n[0],i[1],i[0]),se.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(e,t,i){var n=!0,a=!t;return t&&se.set(t,0,0),lt.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!lt.negativeSize&&se.copy(t,n?lt.useDir?lt.dirMinTv:cf:pf),n},r.prototype._intersectCheckOneSide=function(e,t,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,na),e._getProjMinMaxOnAxis(o,t._corners,aa),lt.negativeSize||na[1]<aa[0]||na[0]>aa[1]){if(a=!1,lt.negativeSize||i)return a;var l=ff(aa[0]-na[1]),u=ff(na[0]-aa[1]);Nv(l,u)>pf.len()&&(l<u?se.scale(pf,s,-l*n):se.scale(pf,s,u*n))}else if(!i){var l=ff(aa[0]-na[1]),u=ff(na[0]-aa[1]);(lt.useDir||Nv(l,u)<cf.len())&&((l<u||!lt.bidirectional)&&(se.scale(cf,s,l*n),lt.useDir&&lt.calcDirMTV()),(l>=u||!lt.bidirectional)&&(se.scale(cf,s,-u*n),lt.useDir&&lt.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var n=this._axes[e],a=this._origin,o=t[0].dot(n)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+a[e];s=Nv(f,s),l=eL(f,l)}i[0]=s+lt.touchThreshold,i[1]=l-lt.touchThreshold,lt.negativeSize=i[1]<i[0]},r})(),hf=tL;var kv=0,Sx=1,bx=2,Tx=1,yo=0;var rL=[],iL=(function(r){ie(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=Sx,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new re(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(rL)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e})(Zr),Cx=iL;var nL=ne();function aL(r,e,t,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=q(i.duration,200),f=q(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),K(c)&&(c=c(t,n)),K(u)&&(u=u(t));var p={duration:u||0,delay:c,easing:f};return p}else return null}function zv(r,e,t,i,n,a,o){var s=!1,l;K(n)?(o=a,a=n,n=null):V(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=aL(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function Be(r,e,t,i,n,a){zv("update",r,e,t,i,n,a)}function ut(r,e,t,i,n,a){zv("enter",r,e,t,i,n,a)}function oa(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function _o(r,e,t,i,n,a){oa(r)||zv("leave",r,e,t,i,n,a)}function Ax(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),_o(r,{style:{opacity:0}},e,t,i)}function an(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Ax(n,e,t,i)}):Ax(r,e,t,i)}function xo(r){nL(r).oldStyle=r.style}var Uv={},ti=["x","y"],on=["width","height"],Fv=0,Hv=1,sa=2;function oL(r){return le.extend(r)}var sL=ix;function lL(r,e){return sL(r,e)}function Ir(r,e){Uv[r]=e}function uL(r){if(Uv.hasOwnProperty(r))return Uv[r]}function df(r,e,t,i){var n=rx(r,e);return t&&(i==="center"&&(t=Mx(t,n.getBoundingRect())),Ix(n,t)),n}function Gv(r,e,t){var i=new bt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var a={width:n.width,height:n.height};i.setStyle(Mx(e,a))}}});return i}function Mx(r,e){var t=e.width/e.height,i=r.height*t,n;i<=r.width?n=r.height:(i=r.width,n=i/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var fL=nx;function Ix(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function la(r,e){return Yu(r,r,{lineWidth:e}),r}function cL(r,e){return Xu(r,r,e),r}var pL=tn;function $s(r,e){for(var t=fi([]);r&&r!==e;)Gi(t,r.getLocalTransform(),t),r=r.parent;return t}function sn(r,e,t){return e&&!Ke(e)&&(e=to.getLocalTransform(e)),t&&(e=zr([],e)),ht([],r,e)}function Wv(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Oe(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Oe(2*e[4]/e[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=sn(a,e,t),Oe(a[0])>Oe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ex(r){return!r.isGroup}function hL(r){return r.shape!=null}function Yv(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){Ex(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return hL(o)&&(s.shape=j(o.shape)),s}var a=i(r);e.traverse(function(o){if(Ex(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Be(o,l,t,ce(o).dataIndex)}}})}function vL(r,e){return B(r,function(t){var i=t[0];i=ge(i,e.x),i=ze(i,e.x+e.width);var n=t[1];return n=ge(n,e.y),n=ze(n,e.y+e.height),[i,n]})}function dL(r,e){var t=ge(r.x,e.x),i=ze(r.x+r.width,e.x+e.width),n=ge(r.y,e.y),a=ze(r.y+r.height,e.y+e.height);if(i>=t&&a>=n)return{x:t,y:n,width:i-t,height:a-n}}function Qs(r,e,t){var i=N({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),oe(n,t),new bt(i)):df(r.replace("path://",""),i,t,"center")}function mL(r,e,t,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Lx(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Lx(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,f=o-n,c=s-a,p=Bv(f,c,l,u);if(gL(p))return!1;var h=r-n,v=e-a,d=Bv(h,v,l,u)/p;if(d<0||d>1)return!1;var m=Bv(h,v,f,c)/p;return!(m<0||m>1)}function Bv(r,e,t,i){return r*i-t*e}function gL(r){return r<=1e-6&&r>=-1e-6}function So(r,e,t,i,n){return e==null||(ue(e)?Ie[0]=Ie[1]=Ie[2]=Ie[3]=e:(Ie[0]=e[0],Ie[1]=e[1],Ie[2]=e[2],Ie[3]=e[3]),i&&(Ie[0]=ge(0,Ie[0]),Ie[1]=ge(0,Ie[1]),Ie[2]=ge(0,Ie[2]),Ie[3]=ge(0,Ie[3])),t&&(Ie[0]=-Ie[0],Ie[1]=-Ie[1],Ie[2]=-Ie[2],Ie[3]=-Ie[3]),Dx(r,Ie,"x","width",3,1,n&&n[0]||0),Dx(r,Ie,"y","height",0,2,n&&n[1]||0)),r}var Ie=[0,0,0,0];function Dx(r,e,t,i,n,a,o){var s=e[a]+e[n],l=r[i];r[i]+=s,o=ge(0,ze(o,l)),r[i]<o?(r[i]=o,r[t]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Oe(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function bo(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,n=U(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(he(l),function(f){Me(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ce(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:oe({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function Vv(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Si(r,e){if(r)if(R(r))for(var t=0;t<r.length;t++)Vv(r[t],e);else Vv(r,e)}function mf(r){return!r||Oe(r[1])<vf&&Oe(r[2])<vf||Oe(r[0])<vf&&Oe(r[3])<vf}var vf=1e-5;function To(r,e){return r?re.copy(r,e):e.clone()}function gf(r,e){return e?fs(r||Mt(),e):void 0}function Xv(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function yL(r){var e=-1/0,t=1/0;Vv(r,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function qv(r,e,t){Ox(r,e,t,-1/0)}function Ox(r,e,t,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)i=ge(Ox(s[l],e,t,i),i);else r.z=e,r.zlevel=t,i=ge(r.z2||0,i);if(n&&(n.z=e,n.zlevel=t,isFinite(i)&&(n.z2=i+2)),a){var u=r.textGuideLineConfig;a.z=e,a.zlevel=t,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function _L(r){return r.animation={duration:0},r}function xL(r,e){return e?fs(js.transform,e):fi(js.transform),js.decomposeTransform(),eo(r,js),r}var js=new to;js.transform=Mt();function SL(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}Ir("circle",Ys);Ir("ellipse",Iv);Ir("sector",Dr);Ir("ring",Ov);Ir("polygon",Zs);Ir("polyline",ia);Ir("rect",de);Ir("line",Mr);Ir("bezierCurve",Rv);Ir("arc",Ks);var yf={};function bL(r,e){for(var t=0;t<Pt.length;t++){var i=Pt[t],n=e[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Px(r,e,t){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Pt.length;u++){var f=Pt[u],c=e[f];l[f]=q(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function mr(r,e,t,i){t=t||yf;for(var n=r instanceof be,a=!1,o=0;o<ho.length;o++){var s=e[ho[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new be,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Px(t,e),f=e.normal,c=!!f.getShallow("show"),p=tt(f,i&&i.normal,t,!1,!n);p.text=u.normal,n||r.setTextConfig(Rx(f,t,!1));for(var o=0;o<Pt.length;o++){var h=Pt[o],s=e[h];if(s){var v=l.ensureState(h),d=!!q(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=tt(s,i&&i[h],t,!0,!n),v.style.text=u[h],!n){var m=r.ensureState(h);m.textConfig=Rx(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),t.enableTextSetter&&(wo(l).setLabelText=function(g){var y=Px(t,e,g);bL(l,y)})}else l&&(l.ignore=!0);r.dirty()}function rr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<Pt.length;i++){var n=Pt[i];t[n]=r.getModel([n,e])}return t}function tt(r,e,t,i,n){var a={};return TL(a,r,t,i,n),e&&N(a,e),a}function Rx(r,e,t){e=e||{};var i={},n,a=r.getShallow("rotate"),o=q(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function TL(r,e,t,i,n){t=t||yf;var a=e.ecModel,o=a&&a.option.textStyle,s=wL(e),l;if(s){l={};var u="richInheritPlainLabel",f=q(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);Bx(l[c]={},p,o,e,f,t,i,n,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("lineOverflow");v&&(r.lineOverflow=v);var d=r,m=e.get("minMargin");if(m!=null)m=ue(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=ua.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=Ha(g),d.__marginType=ua.textMargin)}Bx(r,e,o,null,null,t,i,n,!0,!1)}function wL(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||yf).rich;if(t){e=e||{};for(var i=he(t),n=0;n<i.length;n++){var a=i[n];e[a]=1}}r=r.parentModel}return e}var Nx=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],kx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],zx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Bx(r,e,t,i,n,a,o,s,l,u){t=!o&&t||yf;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=q(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||t.color,p=p||t.textBorderColor),c!=null&&(r.fill=c),p!=null&&(r.stroke=p);var v=q(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var d=q(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(r.lineDash=d);var m=q(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var g=0;g<Nx.length;g++){var y=Nx[g],_=n!==!1&&i?$t(e.getShallow(y),i.getShallow(y),t[y]):q(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var g=0;g<kx.length;g++){var y=kx[g],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!l||!a.disableBox){for(var g=0;g<zx.length;g++){var y=zx[g],_=e.getShallow(y);_!=null&&(r[y]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Ux(r,e){var t=e&&e.getModel("textStyle");return pt([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var wo=ne();function Vx(r,e,t,i){if(r){var n=wo(r);n.prevValue=n.value,n.value=t;var a=e.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e)}}var ua={minMargin:1,textMargin:2};var CL=["textStyle","color"],Zv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Kv=new be,AL=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(CL):null)},r.prototype.getFont=function(){return Ux({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Zv.length;i++)t[Zv[i]]=this.getShallow(Zv[i]);return Kv.useStyle(t),Kv.update(),Kv.getBoundingRect()},r})(),Fx=AL;var jv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],EL=Xr(jv),Hx=(function(){function r(){}return r.prototype.getLineStyle=function(e){return EL(this,e)},r})();var $v=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],DL=Xr($v),Gx=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return DL(this,e,t)},r})();var fa=(function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},r.prototype.mergeOption=function(e,t){me(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,n=i==null?i:i[e];if(n==null&&!t){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},r.prototype.getModel=function(e,t){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(j(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!ae.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r})();uo(fa);H_(fa);Dt(fa,Hx);Dt(fa,Gx);Dt(fa,G_);Dt(fa,Fx);var De=fa;var ML=Math.round(Math.random()*10);function ln(r){return[r||"",ML++].join("_")}function Wx(r){var e={};r.registerSubTypeDefaulter=function(t,i){var n=Ht(t);e[n.main]=i},r.determineSubType=function(t,i){var n=i.type;if(!n){var a=Ht(t).main;r.hasSubTypes(t)&&e[a]&&(n=e[a](i))}return n}}function Yx(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,c=u.noEntryList,p={};for(T(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),T(v.successor,d?g:m)}T(p,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function g(y){p[y]=!0,m(y)}};function t(a){var o={},s=[];return T(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(p){fe(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);fe(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return T(a,function(l){fe(o,l)>=0&&s.push(l)}),s}}function un(r,e){return me(me({},r,!0),e,!0)}var Xx={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var qx={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var xf="ZH",Jv="EN",Co=Jv,_f={},ed={},Sf=ae.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Co).toUpperCase();return r.indexOf(xf)>-1?xf:Co})():Co;function Zx(r,e){r=r.toUpperCase(),ed[r]=new De(e),_f[r]=e}function Kx(r){if(U(r)){var e=_f[r.toUpperCase()]||{};return r===xf||r===Jv?j(e):me(j(e),j(_f[Co]),!1)}else return me(j(r),j(_f[Co]),!1)}function jx(r){return ed[r]}function $x(){return ed[Co]}Zx(Jv,Xx);Zx(xf,qx);var IL=null;function Ue(){return IL}function bf(r,e){var t=Ue(),i=e.breakOption,n=e.breakParsed;return!n&&t&&(n=t.parseAxisBreakOption(i,r)),n}function ca(r){var e=r.brk;return e?e.breaks:[]}function pa(r){var e=r.brk;return e?e.hasBreaks():!1}var Cf=1e3,Af=Cf*60,Ao=Af*60,ir=Ao*24,td=ir*365,LL={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},wf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},OL="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Tf="{yyyy}-{MM}-{dd}",rd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Tf,hour:Tf+" "+wf.hour,minute:Tf+" "+wf.minute,second:Tf+" "+wf.second,millisecond:OL},Yt=["year","month","day","hour","minute","second","millisecond"],Qx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Jx(r){return!U(r)&&!K(r)?PL(r):r}function PL(r){r=r||{};var e={},t=!0;return T(Yt,function(i){t&&(t=r[i]==null)}),T(Yt,function(i,n){var a=r[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=Yt[s],u=V(a)&&!R(a)?a[l]:a,f=void 0;R(u)?(f=u.slice(),o=f[0]||""):U(u)?(o=u,f=[o]):(o==null?o=wf[i]:LL[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function bi(r,e){return r+="","0000".substr(0,e-r.length)+r}function Eo(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function eS(r){return r===Eo(r)}function tS(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ha(r,e,t,i){var n=Hr(r),a=n[id(t)](),o=n[Df(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Mf(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[If(t)](),c=(f-1)%12+1,p=n[Lf(t)](),h=n[Of(t)](),v=n[Pf(t)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof De?i:jx(i||Sf)||$x(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,bi(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,bi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,bi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bi(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,bi(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,bi(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,bi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,bi(v,3)).replace(/{S}/g,v+"")}function rS(r,e,t,i,n){var a=null;if(U(t))a=t;else if(K(t)){var o={time:r.time,level:r.time?r.time.level:0},s=Ue();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=va(r.value,n);a=t[f][f][0]}}return ha(new Date(r.value),a,n,i)}function va(r,e){var t=Hr(r),i=t[Df(e)]()+1,n=t[Mf(e)](),a=t[If(e)](),o=t[Lf(e)](),s=t[Of(e)](),l=t[Pf(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ef(r,e,t){switch(e){case"year":r[nd(t)](0);case"month":r[ad(t)](1);case"day":r[od(t)](0);case"hour":r[sd(t)](0);case"minute":r[ld(t)](0);case"second":r[ud(t)](0)}return r}function id(r){return r?"getUTCFullYear":"getFullYear"}function Df(r){return r?"getUTCMonth":"getMonth"}function Mf(r){return r?"getUTCDate":"getDate"}function If(r){return r?"getUTCHours":"getHours"}function Lf(r){return r?"getUTCMinutes":"getMinutes"}function Of(r){return r?"getUTCSeconds":"getSeconds"}function Pf(r){return r?"getUTCMilliseconds":"getMilliseconds"}function iS(r){return r?"setUTCFullYear":"setFullYear"}function nd(r){return r?"setUTCMonth":"setMonth"}function ad(r){return r?"setUTCDate":"setDate"}function od(r){return r?"setUTCHours":"setHours"}function sd(r){return r?"setUTCMinutes":"setMinutes"}function ld(r){return r?"setUTCSeconds":"setSeconds"}function ud(r){return r?"setUTCMilliseconds":"setMilliseconds"}function cd(r){if(!zh(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Rf(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=Ha;function Nf(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&pt(f)?f:"-"}function a(f){return je(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Hr(r):r;if(isNaN(+l)){if(s)return"-"}else return ha(l,i,t)}if(e==="ordinal")return ls(r)?n(r):ue(r)&&a(r)?r+"":"-";var u=Gr(r);return a(u)?cd(u):ls(r)?n(r):typeof r=="boolean"?r+"":"-"}var nS=["a","b","c","d","e","f","g"],fd=function(r,e){return"{"+r+(e??"")+"}"};function kf(r,e,t){R(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=nS[a];r=r.replace(fd(o),fd(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(fd(nS[l],s),t?dt(u):u)}return r}function aS(r,e){var t=U(r)?{color:r,extraCssText:e}:r||{},i=t.color,n=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+dt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+dt(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Lr(r,e){return e=e||"transparent",U(r)?r:V(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function pd(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Bf={},hd={},RL=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=i(Bf,!0),this._normalMasterList=i(hd,!1);function i(n,a){var o=[];return T(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){T(this._normalMasterList,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Bf[e]=t;return}hd[e]=t},r.get=function(e){return hd[e]||Bf[e]},r})();function NL(r){return!!Bf[r]}var kL=1,vd=2;function oS(r){sS.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var sS=X();function Vf(r){var e=r.getShallow("coord",!0),t=kL;if(e==null){var i=sS.get(r.type);i&&i.getCoord2&&(t=vd,e=i.getCoord2(r))}return{coord:e,from:t}}var Do=0,Uf=1,zL=2;function BL(r,e){var t=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=i!=null,a=Do;if(t){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=Uf,o||(a=Do)):i==="box"&&(a=zL,!o&&!NL(t)&&(a=Do))}return{coordSysType:t,kind:a}}function lS(r){var e=r.targetModel,t=r.coordSysType,i=r.coordSysProvider,n=r.isDefaultDataCoordSys,a=r.allowNotFound,o=BL(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==Uf&&(s=Uf,l=t),s===Do||l!==t)return Do;var u=i(t,e);return u?(s===Uf?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Do}var da=RL;var Hf=T,UL=["left","right","top","bottom","width","height"],Ff=[["width","left","right"],["height","top","bottom"]];function dd(r,e,t,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(r==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(p?-p.y+f.y:0);v=o+m,v>n||l.newline?(a+=s+t,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=h+t:o=v+t)})}var Ti=dd,TG=we(dd,"vertical"),wG=we(dd,"horizontal");function uS(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function VL(r,e){var t=wi(r,e,{enableLayoutOnlyByCenter:!0}),i=r.getBoxLayoutParams(),n,a;if(t.type===Js.point)a=t.refPoint,n=Rt(i,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=R(o)?o:[o,o];n=Rt(i,t.refContainer),a=t.boxCoordFrom===vd?t.refPoint:[Ee(s[0],n.width)+n.x,Ee(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function fS(r,e){var t=VL(r,e),i=t.viewRect,n=t.center,a=r.get("radius");R(a)||(a=[0,a]);var o=Ee(i.width,e.getWidth()),s=Ee(i.height,e.getHeight()),l=Math.min(o,s),u=Ee(a[0],l/2),f=Ee(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:i}}function Rt(r,e,t){t=ri(t||0);var i=e.width,n=e.height,a=Ee(r.left,i),o=Ee(r.top,n),s=Ee(r.right,i),l=Ee(r.bottom,n),u=Ee(r.width,i),f=Ee(r.height,n),c=t[2]+t[0],p=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":a=i/2-u/2-t[3];break;case"right":a=i-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new re((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,f);return v.margin=t,v}var Js={rect:1,point:2};function wi(r,e,t){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var l=Vf(r),u=l.coord,f=l.from;if(o.dataToLayout){a=Js.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Js.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=Js.rect),a===Js.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function cS(r,e,t,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new re(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=Rt(oe({width:u.width,height:u.height},e),t,i),p=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(a.x=p,a.y=h):(a.x+=p,a.y+=h),a===r&&r.markRedraw(),!0}function fn(r){var e=r.layoutMode||r.constructor.layoutMode;return V(e)?e:e?{type:e}:null}function nr(r,e,t){var i=t&&t.ignoreSize;!R(i)&&(i=[i,i]);var n=o(Ff[0],0),a=o(Ff[1],1);l(Ff[0],r,n),l(Ff[1],r,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(Hf(u,function(y){h[y]=r[y]}),Hf(u,function(y){Me(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var m=0;m<u.length;m++){var g=u[m];if(!Me(c,g)&&Me(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Hf(u,function(p){f[p]=c[p]})}}function ii(r){return FL({},r)}function FL(r,e){return e&&r&&Hf(UL,function(t){Me(e,t)&&(r[t]=e[t])}),r}var HL=ne(),Mo=(function(r){z(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.uid=ln("ec_cpt_model"),a}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=fn(this),a=n?ii(t):{},o=i.getTheme();me(t,o.get(this.mainType)),me(t,this.getDefaultOption()),n&&nr(t,a,n)},e.prototype.mergeOption=function(t,i){me(this.option,t,!0);var n=fn(this);n&&nr(this.option,t,n)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!F_(t))return t.defaultOption;var i=HL(this);if(!i.defaultOption){for(var n=[],a=t;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=me(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var n=t+"Index",a=t+"Id";return Wr(this.ecModel,t,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return uS(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(De);Vu(Mo,De);$i(Mo);Wx(Mo);Yx(Mo,GL);function GL(r){var e=[];return T(Mo.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return Ht(t).main}),r!=="dataset"&&fe(e,"dataset")<=0&&e.unshift("dataset"),e}var Te=Mo;var ma={color:{},darkColor:{},size:{}},We=ma.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(We,{primary:We.neutral80,secondary:We.neutral70,tertiary:We.neutral60,quaternary:We.neutral50,disabled:We.neutral20,border:We.neutral30,borderTint:We.neutral20,borderShade:We.neutral40,background:We.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:We.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:We.neutral70,axisLineTint:We.neutral40,axisTick:We.neutral70,axisTickMinor:We.neutral60,axisLabel:We.neutral70,axisSplitLine:We.neutral15,axisMinorSplitLine:We.neutral05});for(cn in We)We.hasOwnProperty(cn)&&(md=We[cn],cn==="theme"?ma.darkColor.theme=We.theme.slice():cn==="highlight"?ma.darkColor.highlight="rgba(255,231,130,0.4)":cn.indexOf("accent")===0?ma.darkColor[cn]=pi(md,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):ma.darkColor[cn]=pi(md,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)}));var md,cn;ma.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var G=ma;var pS="";typeof navigator<"u"&&(pS=navigator.platform||"");var Io="rgba(0, 0, 0, 0.2)",hS=G.color.theme[0],WL=pi(hS,null,null,.9),Gf={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[WL,hS],aria:{decal:{decals:[{color:Io,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Io,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Io,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Io,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Io,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Io,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pS.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};var rt={Must:1,Might:2,Not:3},vS=ne();function dS(r){vS(r).datasetMap=X()}function mS(r,e,t){var i={},n=Wf(e);if(!n||!r)return i;var a=[],o=[],s=e.ecModel,l=vS(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),T(r,function(d,m){var g=V(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,c=v(g)),i[g.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(r,function(d,m){var g=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[g],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[g],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function gS(r,e,t){var i={},n=Wf(r);if(!n)return i;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Tt||a===Gt)&&T(o,function(f,c){(V(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},p=[],h=0,v=Math.min(5,t);h<v;h++){var d=_S(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(d);var m=d===rt.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&p[f.n]===rt.Not)&&(f.n=h),g(f)&&p[f.n]!==rt.Not)return f;m||(d===rt.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(c)?c:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Wf(r){var e=r.get("data",!0);if(!e)return Wr(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},mt).models[0]}function yS(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Wr(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},mt).models}function Yf(r,e){return _S(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function _S(r,e,t,i,n,a){var o,s=5;if(Fe(r))return rt.Not;var l,u;if(i){var f=i[a];V(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?rt.Must:rt.Not;if(e===$e){var c=r;if(t===Jr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===Tt){var d=r;if(!l)return rt.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=x(m[l]))!=null)return o}}else if(e===Gt){var g=r;if(!l)return rt.Not;var p=g[l];if(!p||Fe(p))return rt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===et)for(var y=r,h=0;h<y.length&&h<s;h++){var m=y[h],_=mi(m);if(!R(_))return rt.Not;if((o=x(_[a]))!=null)return o}function x(b){var S=U(b);if(b!=null&&isFinite(Number(b))&&b!=="")return S?rt.Might:rt.Not;if(S&&b!=="-")return rt.Must}return rt.Not}var YL=X();function xS(r,e,t){var i=YL.get(e);if(!i)return t;var n=i(r);if(!n)return t;if(0)for(var a;a<n.length;a++);return t.concat(n)}var SS=ne(),GG=ne(),tl=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var n=Pe(this.get("color",!0)),a=this.get("colorLayer",!0);return qL(this,SS,n,a,e,t,i)},r.prototype.clearColorPalette=function(){ZL(this,SS)},r})();function XL(r,e){for(var t=r.length,i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function qL(r,e,t,i,n,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?t:XL(i,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function ZL(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Xf,rl,bS,TS="\0_ec_inner",KL=1;var ES=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,n,a,o,s){a=a||{},this.option=null,this._theme=new De(a),this._locale=new De(o),this._optionManager=s},e.prototype.setOption=function(t,i,n){var a=AS(i);this._optionManager.setOption(t,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,i){return this._resetOption(t,AS(i))},e.prototype._resetOption=function(t,i){var n=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?bS(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=X(),u=i&&i.replaceMergeMainTypeMap;dS(this),T(t,function(c,p){c!=null&&(Te.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?j(c):me(n[p],c,!0))}),u&&u.each(function(c,p){Te.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),Te.topologicalTravel(s,Te.getAllClassMainTypes(),f,this);function f(c){var p=xS(this,c,Pe(t[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=E_(h,p,v);M_(d,c,Te),n[c]=null,a.set(c,null),o.set(c,0);var m=[],g=[],y=0,_,x;T(d,function(b,S){var w=b.existing,A=b.newOption;if(!A)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=c==="series",E=Te.getClass(c,b.keyInfo.subType,!C);if(!E){if(0)var D,I;return}if(c==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===E)w.name=b.keyInfo.name,w.mergeOption(A,this),w.optionUpdated(A,!1);else{var M=N({componentIndex:S},b.keyInfo);w=new E(A,this,this,M),N(w,M),b.brandNew&&(w.__requireNewView=!0),w.init(A,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),n[c]=m,a.set(c,g),o.set(c,y),c==="series"&&Xf(this)}this._seriesIndices||Xf(this)},e.prototype.getOption=function(){var t=j(this.option);return T(t,function(i,n){if(Te.hasClass(n)){for(var a=Pe(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ao(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[n]=a}}),delete t[TS],t},e.prototype.setTheme=function(t){this._theme=new De(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var n=this._componentsMap.get(t);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var n=t.index,a=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(Pe(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=wS("id",a,s):o!=null?l=wS("name",o,s):l=Ve(s,function(u){return!!u}),CS(l,t)},e.prototype.findComponents=function(t){var i=t.query,n=t.mainType,a=s(i),o=a?this.queryComponents(a):Ve(this._componentsMap.get(n),function(u){return!!u});return l(CS(o,t));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return t.filter?Ve(u,t.filter):u}},e.prototype.eachComponent=function(t,i,n){var a=this._componentsMap;if(K(t)){var o=i,s=t;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=U(t)?a.get(t):V(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=Ft(t,null);return Ve(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ve(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Ve(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){rl(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];t.call(i,a,n)},this)},e.prototype.eachRawSeries=function(t,i){T(this._componentsMap.get("series"),function(n){n&&t.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,n){rl(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,i,n){return T(this.getSeriesByType(t),i,n)},e.prototype.isSeriesFiltered=function(t){return rl(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){rl(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=X(n)},e.prototype.restoreData=function(t){Xf(this);var i=this._componentsMap,n=[];i.each(function(a,o){Te.hasClass(o)&&n.push(o)}),Te.topologicalTravel(n,Te.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!jL(o,t))&&o.restoreData()})})},e.internalField=(function(){Xf=function(t){var i=t._seriesIndices=[];T(t._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),t._seriesIndicesMap=X(i)},rl=function(t){},bS=function(t,i){t.option={},t.option[TS]=KL,t._componentsMap=X({series:[]}),t._componentsCount=X();var n=i.aria;V(n)&&n.enabled==null&&(n.enabled=!0),$L(i,t._theme.option),me(i,Gf,!1),t._mergeOption(i,null)}})(),e})(De);function jL(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||n!=null&&r.name!==n}}function $L(r,e){var t=r.color&&!r.colorLayer;T(e,function(i,n){n==="colorLayer"&&t||n==="color"&&r.color||Te.hasClass(n)||(typeof i=="object"?r[n]=r[n]?me(r[n],i,!1):j(i):r[n]==null&&(r[n]=i))})}function wS(r,e,t){if(R(e)){var i=X();return T(e,function(a){if(a!=null){var o=Ft(a,null);o!=null&&i.set(a,!0)}}),Ve(t,function(a){return a&&i.get(a[r])})}else{var n=Ft(e,null);return Ve(t,function(a){return a&&n!=null&&a[r]===n})}}function CS(r,e){return e.hasOwnProperty("subType")?Ve(r,function(t){return t&&t.subType===e.subType}):r}function AS(r){var e=X();return r&&T(Pe(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Dt(ES,tl);var qf=ES;var QL=/^(min|max)?(.+)$/,JL=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(T(Pe(e.series),function(o){o&&o.data&&Fe(o.data)&&Ga(o.data)}),T(Pe(e.dataset),function(o){o&&o.source&&Fe(o.source)&&Ga(o.source)})),e=j(e);var n=this._optionBackup,a=eO(e,t,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],j(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=j(i[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)tO(n[l].query,t,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!iO(o,this._currentMediaIndices)&&(s=B(o,function(f){return j(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function eO(r,e,t){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(r.options=r.media=null),a=r),f&&R(u)&&T(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),T(l,function(h){return p(h)}),T(i,function(h){return p(h.option)});function p(h){T(e,function(v){v(h,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function tO(r,e,t){var i={width:e,height:t,aspectratio:e/t},n=!0;return T(r,function(a,o){var s=o.match(QL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();rO(i[u],a,l)||(n=!1)}}),n}function rO(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function iO(r,e){return r.join(",")===e.join(",")}var DS=JL;var Or=T,nl=V,MS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gd(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=MS.length;t<i;t++){var n=MS[t],a=e.normal,o=e.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?me(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?me(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ct(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,n=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,oe(r[e],i)):r[e]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function il(r){Ct(r,"itemStyle"),Ct(r,"lineStyle"),Ct(r,"areaStyle"),Ct(r,"label"),Ct(r,"labelLine"),Ct(r,"upperLabel"),Ct(r,"edgeLabel")}function qe(r,e){var t=nl(r)&&r[e],i=nl(t)&&t.textStyle;if(i)for(var n=0,a=Vh.length;n<a;n++){var o=Vh[n];i.hasOwnProperty(o)&&(t[o]=i[o])}}function gr(r){r&&(il(r),qe(r,"label"),r.emphasis&&qe(r.emphasis,"label"))}function nO(r){if(nl(r)){gd(r),il(r),qe(r,"label"),qe(r,"upperLabel"),qe(r,"edgeLabel"),r.emphasis&&(qe(r.emphasis,"label"),qe(r.emphasis,"upperLabel"),qe(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(gd(e),gr(e));var t=r.markLine;t&&(gd(t),gr(t));var i=r.markArea;i&&gr(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Fe(a))for(var o=0;o<a.length;o++)gr(a[o]);T(r.categories,function(u){il(u)})}if(n&&!Fe(n))for(var o=0;o<n.length;o++)gr(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)gr(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)R(l[o])?(gr(l[o][0]),gr(l[o][1])):gr(l[o]);r.type==="gauge"?(qe(r,"axisLabel"),qe(r,"title"),qe(r,"detail")):r.type==="treemap"?(Ct(r.breadcrumb,"itemStyle"),T(r.levels,function(u){il(u)})):r.type==="tree"&&il(r.leaves)}}function Ci(r){return R(r)?r:r?[r]:[]}function IS(r){return(R(r)?r[0]:r)||{}}function yd(r,e){Or(Ci(r.series),function(i){nl(i)&&nO(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Or(t,function(i){Or(Ci(r[i]),function(n){n&&(qe(n,"axisLabel"),qe(n.axisPointer,"label"))})}),Or(Ci(r.parallel),function(i){var n=i&&i.parallelAxisDefault;qe(n,"axisLabel"),qe(n&&n.axisPointer,"label")}),Or(Ci(r.calendar),function(i){Ct(i,"itemStyle"),qe(i,"dayLabel"),qe(i,"monthLabel"),qe(i,"yearLabel")}),Or(Ci(r.radar),function(i){qe(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Or(Ci(r.geo),function(i){nl(i)&&(gr(i),Or(Ci(i.regions),function(n){gr(n)}))}),Or(Ci(r.timeline),function(i){gr(i),Ct(i,"label"),Ct(i,"itemStyle"),Ct(i,"controlStyle",!0);var n=i.data;R(n)&&T(n,function(a){V(a)&&(Ct(a,"label"),Ct(a,"itemStyle"))})}),Or(Ci(r.toolbox),function(i){Ct(i,"iconStyle"),Or(i.feature,function(n){Ct(n,"iconStyle")})}),qe(IS(r.axisPointer),"label"),qe(IS(r.tooltip).axisPointer,"label")}function aO(r,e){for(var t=e.split(","),i=r,n=0;n<t.length&&(i=i&&i[t[n]],i!=null);n++);return i}function oO(r,e,t,i){for(var n=e.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=t)}function LS(r){r&&T(sO,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var sO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],lO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_d=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function al(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<_d.length;t++){var i=_d[t][1],n=_d[t][0];e[i]!=null&&(e[n]=e[i])}}function OS(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function PS(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function uO(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function RS(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&RS(r[t].children,e)}function Zf(r,e){yd(r,e),r.series=Pe(r.series),T(r.series,function(t){if(V(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),OS(t.label);var n=t.data;if(n&&!Fe(n))for(var a=0;a<n.length;a++)OS(n[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=aO(t,"pointer.color");o!=null&&oO(t,"itemStyle.color",o)}else if(i==="bar"){al(t),al(t.backgroundStyle),al(t.emphasis);var n=t.data;if(n&&!Fe(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(al(n[a]),al(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),PS(t),RS(t.data,PS)}else i==="graph"||i==="sankey"?uO(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&oe(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),LS(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(lO,function(t){var i=r[t];i&&(R(i)||(i=[i]),T(i,function(n){LS(n)}))})}var NS=lo(fO);function fO(r){var e=X();r.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var i=t[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),T(t,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),cO(t)}})}function cO(r){T(r,function(e,t){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=di(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var Kf=(function(){function r(e){this.data=e.data||(e.sourceFormat===Gt?{}:[]),this.sourceFormat=e.sourceFormat||vv,this.seriesLayoutBy=e.seriesLayoutBy||tr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var n=t[i];n.type==null&&Yf(this,i)===rt.Must&&(n.type="ordinal")}}return r})();function Lo(r){return r instanceof Kf}function ol(r,e,t){t=t||xd(r);var i=e.seriesLayoutBy,n=pO(r,t,i,e.sourceHeader,e.dimensions),a=new Kf({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(e)});return a}function Oo(r){return new Kf({data:r,sourceFormat:Fe(r)?er:et})}function BS(r){return new Kf({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:j(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function xd(r){var e=vv;if(Fe(r))e=er;else if(R(r)){r.length===0&&(e=$e);for(var t=0,i=r.length;t<i;t++){var n=r[t];if(n!=null){if(R(n)||Fe(n)){e=$e;break}else if(V(n)){e=Tt;break}}}}else if(V(r)){for(var a in r)if(Me(r,a)&&Ke(r[a])){e=Gt;break}}return e}function pO(r,e,t,i,n){var a,o;if(!r)return{dimensionsDefine:kS(n),startIndex:o,dimensionsDetectedCount:a};if(e===$e){var s=r;i==="auto"||i==null?zS(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},t,s,10):o=ue(i)?i:i?1:0,!n&&o===1&&(n=[],zS(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),a=n?n.length:t===Jr?s.length:s[0]?s[0].length:null}else if(e===Tt)n||(n=hO(r));else if(e===Gt)n||(n=[],T(r,function(u,f){n.push(f)}));else if(e===et){var l=mi(r[0]);a=R(l)&&l.length||1}return{startIndex:o,dimensionsDefine:kS(n),dimensionsDetectedCount:a}}function hO(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return he(t)}function kS(r){if(r){var e=X();return B(r,function(t,i){t=V(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function zS(r,e,t,i){if(e===Jr)for(var n=0;n<t.length&&n<i;n++)r(t[n]?t[n][0]:null,n);else for(var a=t[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function jf(r){var e=r.sourceFormat;return e===Tt||e===Gt}var ga,ya,_a,xa,US,VS,Qf=(function(){function r(e,t){var i=Lo(e)?e:Oo(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===er&&(this._offset=0,this._dimSize=t,this._data=n),0)var s;VS(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;VS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=US[Cd(u,f)];if(N(o,h),u===er)o.getItem=t,o.count=n,o.fillStorage=i;else{var v=bd(u,f);o.getItem=ee(v,null,s,c,p);var d=Td(u,f);o.count=ee(d,null,s,c,p)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[p],y=0;y<m;y++){var _=f[y*c+p];g[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};US=(e={},e[$e+"_"+tr]={pure:!0,appendData:a},e[$e+"_"+Jr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Tt]={pure:!0,appendData:a},e[Gt]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[et]={appendData:a},e[er]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var $f=function(r){R(r)||Uh("series.data or dataset.source must be an array.")},E5=(ga={},ga[$e+"_"+tr]=$f,ga[$e+"_"+Jr]=$f,ga[Tt]=$f,ga[Gt]=function(r,e){for(var t=0;t<e.length;t++){var i=e[t].name;i==null&&Uh("dimension name must not be null/undefined.")}},ga[et]=$f,ga),FS=function(r,e,t,i){return r[i]},vO=(ya={},ya[$e+"_"+tr]=function(r,e,t,i){return r[i+e]},ya[$e+"_"+Jr]=function(r,e,t,i,n){i+=e;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},ya[Tt]=FS,ya[Gt]=function(r,e,t,i,n){for(var a=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;a[o]=l?l[i]:null}return a},ya[et]=FS,ya);function bd(r,e){var t=vO[Cd(r,e)];return t}var HS=function(r,e,t){return r.length},dO=(_a={},_a[$e+"_"+tr]=function(r,e,t){return Math.max(0,r.length-e)},_a[$e+"_"+Jr]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},_a[Tt]=HS,_a[Gt]=function(r,e,t){var i=t[0].name,n=i!=null?r[i]:null;return n?n.length:0},_a[et]=HS,_a);function Td(r,e){var t=dO[Cd(r,e)];return t}var Sd=function(r,e,t){return r[e]},mO=(xa={},xa[$e]=Sd,xa[Tt]=function(r,e,t){return r[t]},xa[Gt]=Sd,xa[et]=function(r,e,t){var i=mi(r);return i instanceof Array?i[e]:i},xa[er]=Sd,xa);function wd(r){var e=mO[r];return e}function Cd(r,e){return r===$e?r+"_"+e:r}function Ai(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return wd(a)(i,o,s)}else{var l=i;return a===et&&(l=mi(i)),l}}}}var gO=/\{@(.+?)\}/g,GS=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,n,a,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&R(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(K(a))return l.status=t,l.dimensionIndex=n,a(l);if(U(a)){var f=kf(a,l);return f.replace(gO,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=Ai(s,e,v);if(o&&R(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Ai(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r})();function Ad(r){var e,t;return V(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function pn(r){return new yO(r)}var yO=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(R(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,i,n,a){WS.reset(t,i,n,a),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:WS.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),R(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})();var WS=(function(){var r,e,t,i,n,a={reset:function(l,u,f,c){e=l,r=u,t=f,i=c,n=Math.ceil(i/t),a.next=t>1&&i>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<i?l:e;return e++,u}})();function Po(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!ue(r)&&r!=null&&r!=="-"&&(r=+Hr(r)),r==null||r===""?NaN:Number(r))}var B5=X({number:function(r){return parseFloat(r)},time:function(r){return+Hr(r)},trim:function(r){return U(r)?pt(r):r}});var _O={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},U5=(function(){function r(e,t){if(!ue(t)){var i="";st(i)}this._opFn=_O[e],this._rvalFloat=Gr(t)}return r.prototype.evaluate=function(e){return ue(e)?this._opFn(e,this._rvalFloat):this._opFn(Gr(e),this._rvalFloat)},r})(),YS=(function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=ue(e)?e:Gr(e),n=ue(t)?t:Gr(t),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=U(e),l=U(t);s&&(i=l?e:0),l&&(n=s?t:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})();var V5=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Gr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=Gr(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function Jf(r){var e="",t=-1/0,i=-1/0,n=1/0,a=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,i=r.ge),r.l!=null&&(e+="L"+r.l,n=r.l),r.le!=null&&(e+="LE"+r.le,a=r.le)),{key:e,g:t,ge:i,l:n,le:a}}function ec(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var xO=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Po(e,t)},r})();function SO(r,e){var t=new xO,i=r.data,n=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==tr&&st(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";Me(l,g)&&st(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=bd(n,tr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return c(i,a,s,d)},t.getRawData=ee(bO,null,r)),t.cloneRawData=ee(TO,null,r);var p=Td(n,tr);t.count=ee(p,null,i,a,s);var h=wd(n);t.retrieveValue=function(d,m){var g=c(i,a,s,d);return v(g,m)};var v=t.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return t.getDimensionInfo=ee(wO,null,s,l),t.cloneAllDimensionInfo=ee(CO,null,s),t}function bO(r){var e=r.sourceFormat;if(!Ed(e)){var t="";st(t)}return r.data}function TO(r){var e=r.sourceFormat,t=r.data;if(!Ed(e)){var i="";st(i)}if(e===$e){for(var n=[],a=0,o=t.length;a<o;a++)n.push(t[a].slice());return n}else if(e===Tt){for(var n=[],a=0,o=t.length;a<o;a++)n.push(N({},t[a]));return n}}function wO(r,e,t){if(t!=null){if(ue(t)||!isNaN(t)&&!Me(e,t))return r[t];if(Me(e,t))return e[t]}}function CO(r){return j(r)}var XS=X();function qS(r){r=j(r);var e=r.type,t="";e||st(t);var i=e.split(":");i.length!==2&&st(t);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),r.__isBuiltIn=n,XS.set(e,r)}function ZS(r,e,t){var i=Pe(r),n=i.length,a="";n||st(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=AO(l,e,t,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function AO(r,e,t,i){var n="";e.length||st(n),V(r)||st(n);var a=r.type,o=XS.get(a);o||st(n);var s=B(e,function(f){return SO(f,o)}),l=Pe(o.transform({upstream:s[0],upstreamList:s,config:j(r.config)}));if(0&&r.print)var u;return B(l,function(f,c){var p="";V(f)||st(p),f.data||st(p);var h=xd(f.data);Ed(h)||st(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:tr,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:tr,sourceHeader:0,dimensions:f.dimensions};return ol(f.data,v,null)})}function Ed(r){return r===$e||r===Tt}var EO=typeof Uint32Array===rn?Array:Uint32Array,DO=typeof Uint16Array===rn?Array:Uint16Array,Md=typeof Int32Array===rn?Array:Int32Array,KS=typeof Float64Array===rn?Array:Float64Array,$S={float:KS,int:Md,ordinal:Array,number:Array,time:KS},Dd;function Ro(r){return r>65535?EO:DO}function MO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function jS(r,e,t,i,n){var a=$S[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(i)}var IO=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=Dd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=jf(n);this._dimensions=B(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===t)return a}else a=n.length;return n[a]={type:t},i.set(e,a),this._chunks[a]=new $S[t||"float"](this._rawCount),this._rawExtent[a]=gt(),a},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=gt());for(var l=a[e],u=o;u<s;u++){var f=i[u]=t.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=n[u];jS(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=Dd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=B(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=gt()),jS(a,f,c.type,t,i)}if(n.fillStorage)n.fillStorage(e,t,a,l);else for(var p=[],h=e;h<t;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],m=this._dimValueGetter(p,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],n=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)}),Fr(t);var i=this.count();return i===0?0:i%2===1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=t[a]}else e=new i(t.buffer,0,n)}else{var i=Ro(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Ro(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=t(p);else if(l===1){var d=c[f][v];h=t(d,p)}else{for(var m=0;m<l;m++)s[m]=c[e[m]][v];s[m]=p,h=t.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var n=he(e),a=n.length;if(!a)return this;var o=t.count(),s=Ro(t._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=t._chunks,v=!1;if(!t._indices){var d=0;if(a===1){for(var m=h[n[0]],g=0;g<i;g++){var y=m[g];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var m=h[n[0]],_=h[n[1]],x=e[n[1]][0],b=e[n[1]][1],g=0;g<i;g++){var y=m[g],S=_[g];(y>=c&&y<=p||isNaN(y))&&(S>=x&&S<=b||isNaN(S))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var g=0;g<o;g++){var w=t.getRawIndex(g),y=h[n[0]][w];(y>=c&&y<=p||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=t.getRawIndex(g),C=0;C<a;C++){var E=n[C],y=h[E][w];(y<e[E][0]||y>e[E][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){for(var n=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=gt();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[t[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=t[f],m=v[f],g=u[d],y=n[d];y&&(y[p]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,p,h=new(Ro(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),b=a[x];isNaN(b)||(y+=b)}y/=m-d;var S=v,w=Math.min(v+l,o),A=v-1,C=a[u];f=-1,p=S;for(var E=-1,D=0,_=S;_<w;_++){var x=this.getRawIndex(_),b=a[x];if(isNaN(b)){D++,E<0&&(E=x);continue}c=Math.abs((A-g)*(b-C)-(A-_)*(y-C)),c>f&&(f=c,p=x)}D>0&&D<w-S&&(h[s++]=Math.min(E,p),p=Math.max(E,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/t),o=n[e],s=this.count(),l=new(Ro(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<p&&(p=y,c=f+m),y>v&&(v=y,h=f+m)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(e,t,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=a._rawExtent[e]=gt(),p=new(Ro(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+n(s,g)||0,f-1));u[y]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:t(a);break;case 1:t(n[e[0]][s],a);break;case 2:t(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var i=this._chunks[e],n=gt();if(!i)return n;var a=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Jf(t),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),m=i[d];(!t||ec(u,m))&&(m<p&&(p=m),m>h&&(h=m))}return l[f]=[p,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][t]);return i},r.prototype.clone=function(e,t){var i=new r,n=this._chunks,a=e&&jt(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?MO(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=j(this._extent),e._rawExtent=j(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var n=0;n<i;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,i,n,a){return Po(t[a],this._dimensions[a])}Dd={arrayRows:e,objectRows:function(t,i,n,a){return Po(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,n,a){var o=t&&(t.value==null?t:t.value);return Po(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,n,a){return t[a]}}})(),r})(),sl=IO;var JS=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,n,a;if(tc(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Fe(s)?er:et,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=q(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=q(c.sourceHeader,p.sourceHeader),d=q(c.dimensions,p.dimensions),m=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=m?[ol(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);n=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);n=[ol(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&QS(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&QS(c),s.push(f),l.push(u._getVersionSign())}),i?o=ZS(i,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[BS(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];tc(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new sl,s.initData(new Qf(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(tc(e)){var t=Wf(e);return t?[t.getSourceManager()]:[]}else return B(yS(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,n;if(tc(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:n}},r})();function tc(r){return r.mainType==="series"}function QS(r){throw new Error(r)}var LO="line-height:1";function eb(r){var e=r.lineHeight;return e==null?LO:"line-height:"+dt(e+"")+"px"}function tb(r,e){var t=r.color||G.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||G.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+dt(i+"")+"px;color:"+dt(t)+";font-weight:"+dt(n+""),valueStyle:"font-size:"+dt(o+"")+"px;color:"+dt(a)+";font-weight:"+dt(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var OO=[0,10,20,30],PO=["",`
9
+ `,`
10
+
11
+ `,`
12
+
13
+
14
+ `];function Sa(r,e){return e.type=r,e}function Id(r){return r.type==="section"}function rb(r){return Id(r)?RO:NO}function ib(r){if(Id(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return T(r.blocks,function(n){var a=ib(n);a>=e&&(e=a+ +(i&&(!a||Id(n)&&!n.noHeader)))}),e}return 0}function RO(r,e,t,i){var n=e.noHeader,a=kO(ib(e)),o=[],s=e.blocks||[];He(!s||R(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Me(u,l)){var f=new YS(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,m){var g=e.valueFormatter,y=rb(d)(g?N(N({},r),{valueFormatter:g}):r,d,m>0?a.html:0,i);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(a.richText):Ld(i,o.join(""),n?t:a.html);if(n)return c;var p=Nf(e.header,"ordinal",r.useUTC),h=tb(i,r.renderMode).nameStyle,v=eb(i);return r.renderMode==="richText"?nb(r,p,h)+a.richText+c:Ld(i,'<div style="'+h+";"+v+';">'+dt(p)+"</div>"+c,t)}function NO(r,e,t,i){var n=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(x){return x=R(x)?x:[x],B(x,function(b,S){return Nf(b,R(h)?h[S]:h,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||G.color.secondary,n),p=a?"":Nf(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,m=!s&&a,g=tb(i,n),y=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(a?"":nb(r,p,y))+(o?"":UO(r,v,d,m,_)):Ld(i,(s?"":c)+(a?"":zO(p,!s,y))+(o?"":BO(v,d,m,_)),t)}}function Od(r,e,t,i,n,a){if(r){var o=rb(r),s={useUTC:n,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function kO(r){return{html:OO[r],richText:PO[r]}}function Ld(r,e,t){var i='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",a=eb(r);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function zO(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+dt(r)+"</span>"}function BO(r,e,t,i){var n=t?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return r=R(r)?r:[r],'<span style="'+a+";"+i+'">'+B(r,function(o){return dt(o)}).join("&nbsp;&nbsp;")+"</span>"}function nb(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function UO(r,e,t,i,n){var a=[n],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(R(e)?e.join(" "):e,a)}function ab(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Lr(i)}function rc(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var ic=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Ds()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var n=i==="richText"?this._generateStyleName():null,a=aS({color:t,type:e,renderMode:i,markerId:n});return U(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};R(t)?T(t,function(a){return N(i,a)}):N(i,t);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},r})();function ob(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=R(s),u=ab(e,t),f,c,p,h;if(o>1||l&&!o){var v=VO(s,e,t,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=Ai(n,t,a[0]),c=d.type}else h=f=l?s[0]:s;var m=oo(e),g=m&&e.name||"",y=n.getName(t),_=i?g:y;return Sa("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[Sa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!pt(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(t)})].concat(p||[])})}function VO(r,e,t,i,n){var a=e.getData(),o=jt(r,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(c){f(Ai(a,t,c),c)}):T(r,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(Sa("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var hn=ne();function nc(r,e){return r.getName(e)||r.getId(e)}var FO="__universalTransitionEnabled",ac=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=pn({count:GO,reset:WO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var a=hn(this).sourceManager=new JS(this);a.prepareSource();var o=this.getInitialData(t,n);lb(o,this),this.dataTask.context.data=o,hn(this).dataBeforeProcessed=o,sb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=fn(this),a=n?ii(t):{},o=this.subType;Te.hasClass(o)&&(o+="Series"),me(t,i.getTheme().get(this.subType)),me(t,this.getDefaultOption()),Ls(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&nr(t,a,n)},e.prototype.mergeOption=function(t,i){t=me(this.option,t,!0),this.fillDataTextStyle(t.data);var n=fn(this);n&&nr(this.option,t,n);var a=hn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);lb(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,hn(this).dataBeforeProcessed=o,sb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Fe(t))for(var i=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ls(t[n],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=Pd(this);if(i){var n=i.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return hn(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=Pd(this);if(i){var n=i.context;n.outputData=t,i!==this.dataTask&&(n.data=t)}hn(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return X(t)},e.prototype.getSourceManager=function(){return hn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return hn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(v,m),_=l.dataToCoord(y),x=u-_,b=Math.abs(x);b<=a&&((b<c||b===c&&x>=0&&p<0)&&(c=b,p=x,h=0),x===p&&(f[h++]=m))}return f.length=h,f},e.prototype.formatTooltip=function(t,i,n){return ob({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ae.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,n){var a=this.ecModel,o=tl.prototype.getColorFromPalette.call(this,t,i,n);return o||(o=a.getColorFromPalette(t,i,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=nc(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var n=[],a=0;a<t.length;a++)n[0]=t[a],this.isSelected(t[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=he(t),n=[],a=0;a<i.length;a++){var o=t[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[nc(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[FO])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){V(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=nc(t,c);u[p]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=nc(t,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=t.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(n){var a=t.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return Te.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Te);Dt(ac,GS);Dt(ac,tl);Vu(ac,Te);function sb(r){var e=r.name;oo(r)||(r.name=HO(r)||e)}function HO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return T(t,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function GO(r){return r.model.getRawData().count()}function WO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),YO}function YO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lb(r,e){T(Qg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,we(XO,e))})}function XO(r,e){var t=Pd(r);return t&&t.setOutputEnd((e||this).count()),e}function Pd(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Nt=ac;var Rd=(function(){function r(){this.group=new _e,this.uid=ln("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){},r.prototype.updateLayout=function(e,t,i,n){},r.prototype.updateVisual=function(e,t,i,n){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();uo(Rd);$i(Rd);var it=Rd;function ba(){var r=ne();return function(e){var t=r(e),i=e.pipelineContext,n=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var cb=ne(),qO=ba(),Nd=(function(){function r(){this.group=new _e,this.uid=ln("viewChart"),this.renderTask=pn({plan:ZO,reset:KO}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.highlight=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&fb(a,n,"emphasis")},r.prototype.downplay=function(e,t,i,n){var a=e.getData(n&&n.dataType);a&&fb(a,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.eachRendered=function(e){Si(this.group,e)},r.markUpdateMethod=function(e,t){cb(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function ub(r,e,t){r&&Gs(r)&&(e==="emphasis"?Jn:ea)(r,t)}function fb(r,e,t){var i=pr(r,e),n=e&&e.highlightKey!=null?q0(e.highlightKey):null;i!=null?T(Pe(i),function(a){ub(r.getItemGraphicEl(a),t,n)}):r.eachItemGraphicEl(function(a){ub(a,t,n)})}uo(Nd,["dispose"]);$i(Nd);function ZO(r){return qO(r.model)}function KO(r){var e=r.model,t=r.ecModel,i=r.api,n=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=n&&cb(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,n),jO[l]}var jO={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},yt=Nd;var oc="\0__throttleOriginMethod",pb="\0__throttleRate",hb="\0__throttleType";function ll(r,e,t){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||t;f=null,s=i-(m?n:a)-d,clearTimeout(o),m?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function sc(r,e,t,i){var n=r[e];if(n){var a=n[oc]||n,o=n[hb],s=n[pb];if(s!==t||o!==i){if(t==null||!i)return r[e]=a;n=r[e]=ll(a,t,i==="debounce"),n[oc]=a,n[hb]=i,n[pb]=t}return n}}function ul(r,e){var t=r[e];t&&t[oc]&&(t.clear&&t.clear(),r[e]=t[oc])}var vb=ne(),db={itemStyle:Xr($v,!0),lineStyle:Xr(jv,!0)},QO={lineStyle:"stroke",itemStyle:"fill"};function mb(r,e){var t=r.visualStyleMapper||db[e];return t||(console.warn("Unknown style type '"+e+"'."),db.itemStyle)}function gb(r,e){var t=r.visualDrawType||QO[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var yb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=mb(r,i),o=a(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=gb(r,i),u=o[l],f=K(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=p,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?p:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},fl=new De,_b={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=mb(r,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){fl.option=l[i];var u=n(fl),f=o.ensureUniqueItemVisual(s,"style");N(f,u),fl.option.decal&&(o.setItemVisual(s,"decal",fl.option.decal),fl.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},xb={performRawSeries:!0,overallReset:function(r){var e=X();r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();vb(t).scope=e.get(i)||e.set(i,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.getRawData(),n={},a=t.getData(),o=vb(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=gb(t,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=t.getColorFromPalette(h,o,v)}})}})}};var lc=Math.PI;function kd(r,e){e=e||{},oe(e,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new _e,i=new de({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var n=new be({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new de({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new Ks({shape:{startAngle:-lc/2,endAngle:-lc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:lc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:lc*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var JO=(function(){function r(e,t,i,n){this._stageTaskMap=X(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(t,i):Uu(e,t,i);e.pipelineContext=i.context=n},r.prototype.restorePipelines=function(e,t){var i=this,n=i._pipelineMap=X();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";He(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,t,i),n.overallReset&&this._createOverallStageTask(n,a,t,i)},this)},r.prototype.prepareView=function(e,t,i,n){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,n){n=n||{};var a=!1,o=this;T(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(m){s(n,m)&&(m.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(m){m.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(m,g){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,n){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||pn({plan:nP,reset:aP,count:sP}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},r.prototype._createOverallStageTask=function(e,t,i,n){var a=this,o=t.overallTask=t.overallTask||pn({reset:eP});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=X(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";He(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):T(i.getSeries(),v);function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(p=!0,pn({reset:tP,onDirty:iP})));g.context={model:d,dirtyOnOverallProgress:c},g.agent=o,g.__block=c,a._pipe(d,g)}p&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:lP(e)}),e.uid=ln("stageHandler"),t&&(e.visualType=t),e},r})();function eP(r){r.overallReset(r.ecModel,r.api,r.payload)}function tP(r){return r.dirtyOnOverallProgress&&rP}function rP(){this.agent.dirty(),this.getDownstream().dirty()}function iP(){this.agent&&this.agent.dirty()}function nP(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function aP(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Pe(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?B(e,function(t,i){return Sb(i)}):oP}var oP=Sb(0);function Sb(r){return function(e,t){var i=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function sP(r){return r.data.count()}function lP(r){uc=null;try{r(cl,bb)}catch{}return uc}var cl={},bb={},uc;Tb(cl,qf);Tb(bb,Ku);cl.eachSeriesByType=cl.eachRawSeriesByType=function(r){uc=r};cl.eachComponent=function(r){r.mainType==="series"&&r.subType&&(uc=r.subType)};function Tb(r,e){for(var t in e.prototype)r[t]=Le}var zd=JO;var Z=G.darkColor,wb=Z.background,pl=function(){return{axisLine:{lineStyle:{color:Z.axisLine}},splitLine:{lineStyle:{color:Z.axisSplitLine}},splitArea:{areaStyle:{color:[Z.backgroundTint,Z.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Z.axisMinorSplitLine}},axisLabel:{color:Z.axisLabel},axisName:{}}},Cb={label:{color:Z.secondary},itemStyle:{borderColor:Z.borderTint},dividerLineStyle:{color:Z.border}},Ab={darkMode:!0,color:Z.theme,backgroundColor:wb,axisPointer:{lineStyle:{color:Z.border},crossStyle:{color:Z.borderShade},label:{color:Z.tertiary}},legend:{textStyle:{color:Z.secondary},pageTextStyle:{color:Z.tertiary}},textStyle:{color:Z.secondary},title:{textStyle:{color:Z.primary},subtextStyle:{color:Z.quaternary}},toolbox:{iconStyle:{borderColor:Z.accent50},feature:{dataView:{backgroundColor:wb,textColor:Z.primary,textareaColor:Z.background,textareaBorderColor:Z.border,buttonColor:Z.accent50,buttonTextColor:Z.neutral00}}},tooltip:{backgroundColor:Z.neutral20,defaultBorderColor:Z.border,textStyle:{color:Z.tertiary}},dataZoom:{borderColor:Z.accent10,textStyle:{color:Z.tertiary},brushStyle:{color:Z.backgroundTint},handleStyle:{color:Z.neutral00,borderColor:Z.accent20},moveHandleStyle:{color:Z.accent40},emphasis:{handleStyle:{borderColor:Z.accent50}},dataBackground:{lineStyle:{color:Z.accent30},areaStyle:{color:Z.accent20}},selectedDataBackground:{lineStyle:{color:Z.accent50},areaStyle:{color:Z.accent30}}},visualMap:{textStyle:{color:Z.secondary},handleStyle:{borderColor:Z.neutral30}},timeline:{lineStyle:{color:Z.accent10},label:{color:Z.tertiary},controlStyle:{color:Z.accent30,borderColor:Z.accent30}},calendar:{itemStyle:{color:Z.neutral00,borderColor:Z.neutral20},dayLabel:{color:Z.tertiary},monthLabel:{color:Z.secondary},yearLabel:{color:Z.secondary}},matrix:{x:Cb,y:Cb,backgroundColor:{borderColor:Z.axisLine},body:{itemStyle:{borderColor:Z.borderTint}}},timeAxis:pl(),logAxis:pl(),valueAxis:pl(),categoryAxis:pl(),line:{symbol:"circle"},graph:{color:Z.theme},gauge:{title:{color:Z.secondary},axisLine:{lineStyle:{color:[[1,Z.neutral05]]}},axisLabel:{color:Z.axisLabel},detail:{color:Z.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Z.background}},radar:(function(){var r=pl();return r.axisName={color:Z.axisLabel},r.axisLine.lineStyle.color=Z.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:Z.neutral20,textStyle:{color:Z.secondary}},emphasis:{itemStyle:{color:Z.neutral30}}}},sunburst:{itemStyle:{borderColor:Z.background}},map:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},label:{color:Z.tertiary},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}}},geo:{itemStyle:{borderColor:Z.border,areaColor:Z.neutral10},emphasis:{label:{color:Z.primary},itemStyle:{areaColor:Z.highlight}},select:{label:{color:Z.primary},itemStyle:{color:Z.highlight}}}};Ab.categoryAxis.splitLine.show=!1;var Eb=Ab;var Db=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},n={};if(U(e)){var a=Ht(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(t.mainType=v,t[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var Bd=["symbol","symbolSize","symbolRotate","symbolOffset"],Mb=Bd.concat(["symbolKeepAspect"]),Ib={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Bd.length;o++){var s=Bd[o],l=r.get(s);K(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(N({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=he(n);function f(c,p){for(var h=r.getRawValue(p),v=r.getDataParams(p),d=0;d<u.length;d++){var m=u[d];c.setItemVisual(p,m,n[m](h,v))}}return{dataEach:a?f:null}}},Lb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Mb.length;s++){var l=Mb[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function fc(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function cc(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}function Ob(r,e,t,i){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=i,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,i);break;default:}}function Pb(r,e){function t(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=N({},n),o.dispatchAction(N(n,{type:i[1],seriesIndex:t(a,n)}))})})}function No(r,e,t,i,n){var a=r+e;t.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=pr(c,n.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:R(p)?c.getName(p[0]):c.getName(p),selected:U(l)?l:N({},l)})}})}function Rb(r,e,t){r.on("selectchanged",function(i){var n=t.getModel();i.isFromClick?(No("map","selectchanged",e,n,i),No("pie","selectchanged",e,n,i)):i.fromAction==="select"?(No("map","selected",e,n,i),No("pie","selected",e,n,i)):i.fromAction==="unselect"&&(No("map","unselected",e,n,i),No("pie","unselected",e,n,i))})}function Ei(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var uP=new vt,ar=uP;var Nb={};function kb(r,e){Nb[r]=e}function zb(r){return Nb[r]}var fP={};function Bb(r,e){fP[r]=e}var pc=ne();function Ub(r){pc(r).prepare={}}function Vb(r){pc(r).fullUpdate={}}function Fb(r){return pc(r).prepare}function Ta(r){return pc(r).fullUpdate}var cP=Math.round(Math.random()*9),pP=typeof Object.defineProperty=="function",hP=(function(){function r(){this._id="__ec_inner_"+cP++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return pP?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),Hb=hP;var vP=le.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i+a),r.lineTo(t-n,i+a),r.closePath()}}),dP=le.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i),r.lineTo(t,i+a),r.lineTo(t-n,i),r.closePath()}}),mP=le.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*h,l+s+p*h,t,i-v,t,i),r.bezierCurveTo(t,i-v,t-f+c*h,l+s+p*h,t-f,l+s),r.closePath()}}),gP=le.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+t),r.lineTo(n,a+t/4*3),r.lineTo(n-o,a+t),r.lineTo(n,a),r.closePath()}}),yP={line:Mr,rect:de,roundRect:de,square:de,circle:Ys,diamond:dP,pin:mP,arrow:gP,triangle:vP},_P={line:function(r,e,t,i,n){n.x1=r,n.y1=e+i/2,n.x2=r+t,n.y2=e+i/2},rect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i},roundRect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i,n.r=Math.min(t,i)/4},square:function(r,e,t,i,n){var a=Math.min(t,i);n.x=r,n.y=e,n.width=a,n.height=a},circle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.r=Math.min(t,i)/2},diamond:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i},pin:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},arrow:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},triangle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i}},Ud={};T(yP,function(r,e){Ud[e]=new r});var xP=le.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=Hn(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var n=Ud[i];n||(i="rect",n=Ud[i]),_P[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function SP(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||G.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function At(r,e,t,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Gv(r.slice(8),new re(e,t,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=df(r.slice(7),{},new re(e,t,i,n),o?"center":"cover"):l=new xP({shape:{symbolType:r,x:e,y:t,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=SP,a&&l.setColor(a),l}function Gb(r){return R(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function hc(r,e){if(r!=null)return R(r)||(r=[r,r]),[Ee(r[0],e[0])||0,Ee(q(r[1],r[0]),e[1])||0]}function wa(r){return isFinite(r)}function bP(r,e,t){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,n=n*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),i=wa(i)?i:0,n=wa(n)?n:1,a=wa(a)?a:0,o=wa(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function TP(r,e,t){var i=t.width,n=t.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*n+t.y,l=l*a),o=wa(o)?o:.5,s=wa(s)?s:.5,l=l>=0&&wa(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function hl(r,e,t){for(var i=e.type==="radial"?TP(r,e,t):bP(r,e,t),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Wb(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function vc(r){return parseInt(r,10)}function vl(r,e,t){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||vc(s[i])||vc(r.style[i]))-(vc(s[a])||0)-(vc(s[o])||0)||0}function wP(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ue(r)?[r]:R(r)?r:null}function Vd(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&wP(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=B(t,function(a){return a/n}),i/=n)}return[t,i]}var CP=new Lt(!0);function dc(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Yb(r){return typeof r=="string"&&r!=="none"}function mc(r){var e=r.fill;return e!=null&&e!=="none"}function Xb(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function qb(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function gc(r,e,t){var i=qh(e.image,e.__image,t);if(fo(i)){var n=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Jg),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function AP(r,e,t,i,n){var a,o=dc(t),s=mc(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||CP,p=e.__dirty;if(!i){var h=t.fill,v=t.stroke,d=s&&!!h.colorStops,m=o&&!!v.colorStops,g=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,b=void 0,S=void 0,w=void 0;(d||m)&&(w=e.getBoundingRect()),d&&(_=p?hl(r,h,w):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=p?hl(r,v,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(b=p||!e.__canvasFillPattern?gc(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(S=p||!e.__canvasStrokePattern?gc(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),d?r.fillStyle=_:g&&(b?r.fillStyle=b:s=!1),m?r.strokeStyle=x:y&&(S?r.strokeStyle=S:o=!1)}var A=e.getGlobalScale();c.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,E;r.setLineDash&&t.lineDash&&(a=Vd(e),C=a[0],E=a[1]);var D=!0;(f||p&Wi)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=E),i?(n.batchFill=s,n.batchStroke=o):t.strokeFirst?(o&&qb(r,t),s&&Xb(r,t)):(s&&Xb(r,t),o&&qb(r,t)),C&&r.setLineDash([])}function EP(r,e,t){var i=e.__image=qh(t.image,e.__image,e,e.onload);if(!(!i||!fo(i))){var n=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,n,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,c=o-u,p=s-f;r.drawImage(i,u,f,c,p,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function DP(r,e,t){var i,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||sr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Vd(e),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(dc(t)&&r.strokeText(n,t.x,t.y),mc(t)&&r.fillText(n,t.x,t.y)):(mc(t)&&r.fillText(n,t.x,t.y),dc(t)&&r.strokeText(n,t.x,t.y)),a&&r.setLineDash([])}}var Zb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Kb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tT(r,e,t,i,n){var a=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){kt(r,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?qr.opacity:o}(i||e.blend!==t.blend)&&(a||(kt(r,n),a=!0),r.globalCompositeOperation=e.blend||qr.blend);for(var s=0;s<Zb.length;s++){var l=Zb[s];(i||e[l]!==t[l])&&(a||(kt(r,n),a=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(a||(kt(r,n),a=!0),r.shadowColor=e.shadowColor||qr.shadowColor),a}function jb(r,e,t,i,n){var a=e.style,o=i?null:t&&t.style||{};if(a===o)return!1;var s=tT(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(kt(r,n),s=!0),Yb(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(kt(r,n),s=!0),Yb(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(kt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(kt(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<Kb.length;f++){var c=Kb[f],p=c[0];(i||a[p]!==o[p])&&(s||(kt(r,n),s=!0),r[p]=a[p]||c[1])}return s}function MP(r,e,t,i,n){return tT(r,e.style,t&&t.style,i,n)}function rT(r,e){var t=e.transform,i=r.dpr||1;t?r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):r.setTransform(i,0,0,i,0,0)}function IP(r,e,t){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),rT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=i}function LP(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var $b=1,Qb=2,Jb=3,eT=4;function OP(r){var e=mc(r),t=dc(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function kt(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function yc(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};vn(r,e,t),Ca(r,t)}function vn(r,e,t){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Xe,e.__isRendered=!1;return}var n=e.__clipPaths,a=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||Wb(n,a))&&(a&&(kt(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(kt(r,t),r.save(),IP(n,r,t),s=!0,t.prevElClipPaths=n)),t.allClipped){e.__dirty&=~Xe,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof le&&e.autoBatch&&OP(o);s||LP(i,u.transform)?(kt(r,t),rT(r,e)):f||kt(r,t),e instanceof le?(t.lastDrawType!==$b&&(l=!0,t.lastDrawType=$b),jb(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),AP(r,e,o,f,t)):e instanceof zs?(t.lastDrawType!==Jb&&(l=!0,t.lastDrawType=Jb),jb(r,e,u,l,t),DP(r,e,o)):e instanceof bt?(t.lastDrawType!==Qb&&(l=!0,t.lastDrawType=Qb),MP(r,e,u,l,t),EP(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==eT&&(l=!0,t.lastDrawType=eT),PP(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&kt(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Ca(r,e){kt(r,e),e.prevElClipPaths&&r.restore()}function PP(r,e,t){var i=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),vn(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ca(r,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),vn(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}Ca(r,a),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Fd=new Hb,iT=new Ur(100),nT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";r.dirty&&Fd.delete(r);var a=Fd.get(r);if(a)return a;var o=oe(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,Fd.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,p=0;p<nT.length;++p){var h=o[nT[p]];if(h!=null&&!R(h)&&!U(h)&&!ue(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=iT.get(v);d&&(n?u.svgElement=d:u.image=d)}var m=oT(o.dashArrayX),g=RP(o.dashArrayY),y=aT(o.symbol),_=NP(m),x=sT(g),b=!n&&Re.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),A;b&&(b.width=w.width*t,b.height=w.height*t,A=b.getContext("2d")),E(),c&&iT.put(v,b||S),u.image=b,u.svgElement=S,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var D=1,I=0,M=_.length;I<M;++I)D=Bh(D,_[I]);for(var L=1,I=0,M=y.length;I<M;++I)L=Bh(L,y[I].length);D*=L;var O=x*_.length*y.length;if(0)var P;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function E(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<g.length;++I)D+=g[I];if(D<=0)return;for(var M=-x,L=0,O=0,P=0;M<w.height;){if(L%2===0){for(var F=O/2%y.length,k=0,H=0,W=0;k<w.width*2;){for(var Y=0,I=0;I<m[P].length;++I)Y+=m[P][I];if(Y<=0)break;if(H%2===0){var $=(1-o.symbolSize)*.5,J=k+m[P][H]*$,Q=M+g[L]*$,ve=m[P][H]*o.symbolSize,xe=g[L]*o.symbolSize,Ze=W/2%y[F].length;at(J,Q,ve,xe,y[F][Ze])}k+=m[P][H],++W,++H,H===m[P].length&&(H=0)}++P,P===m.length&&(P=0)}M+=g[L],++O,++L,L===g.length&&(L=0)}function at(Ae,ke,pe,Se,kr){var ot=n?1:t,Ni=At(kr,Ae*ot,ke*ot,pe*ot,Se*ot,o.color,o.symbolKeepAspect);if(n){var si=i.painter.renderOneToVNode(Ni);si&&S.children.push(si)}else yc(A,Ni)}}}}function aT(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!U(r[t])){e=!1;break}if(e)return aT([r]);for(var i=[],t=0;t<r.length;++t)U(r[t])?i.push([r[t]]):i.push(r[t]);return i}function oT(r){if(!r||r.length===0)return[[0,0]];if(ue(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!ue(r[i])){t=!1;break}if(t)return oT([r]);for(var n=[],i=0;i<r.length;++i)if(ue(r[i])){var e=Math.ceil(r[i]);n.push([e,e])}else{var e=B(r[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function RP(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ue(r)){var e=Math.ceil(r);return[e,e]}var t=B(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function NP(r){return B(r,function(e){return sT(e)})}function sT(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var lT=lo(kP);function kP(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=dl(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=dl(n,e)}}})}var zP=1,BP=800,UP=900,VP=920,FP=1e3,HP=2e3,uT=5e3,_T=1e3,GP=1100,Jd=2e3,xT=3e3,WP=4e3,Cc=4500,YP=4600,XP=5e3,qP=6e3,ST=7e3,bT={PROCESSOR:{SERIES_FILTER:BP,AXIS_STATISTICS:VP,FILTER:FP,STATISTIC:uT,STATISTICS:uT},VISUAL:{LAYOUT:_T,PROGRESSIVE_LAYOUT:GP,GLOBAL:Jd,CHART:xT,POST_CHART_LAYOUT:YP,COMPONENT:WP,BRUSH:XP,CHART_ITEM:Cc,ARIA:qP,DECAL:ST}},Qe="__flagInMainProcess",_c="__mainProcessVersion",ft="__pendingUpdate",Hd="__needsUpdateStatus",fT=/^[a-zA-Z0-9_]+$/,Gd="__connectUpdateStatus",cT=0,ZP=1,KP=2;function TT(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return CT(this,r,e)}}function wT(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return CT(this,r,e)}}function CT(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),vt.prototype[e].apply(r,t)}var AT=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(vt),ET=AT.prototype;ET.on=wT("on");ET.off=wT("off");var Aa,Wd,xc,Di,Sc,Yd,Xd,ko,zo,pT,hT,qd,vT,bc,dT,DT,yr,mT,Bo,MT=(function(r){z(e,r);function e(t,i,n){var a=r.call(this,new Db)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=t;var o="canvas",s="auto",l=!1;if(a[_c]=1,0)var u;n.ssr&&g_(function(h){var v=ce(h),d=v.dataIndex;if(d!=null){var m=X();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=a._zr=Lh(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:q(n.useDirtyRect,l),useCoarsePointer:q(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=ll(ee(f.flush,f),17),a._updateTheme(i),a._locale=Kx(n.locale||Sf),a._coordSysMgr=new da;var c=a._api=dT(a);function p(h,v){return h.__prio-v.__prio}return Rn(wc,p),Rn(jd,p),a._scheduler=new zd(a,c,jd,wc),a._messageCenter=new AT,a._initEvents(),a.resize=ee(a.resize,a),f.animation.on("frame",a._onframe,a),pT(f,a),hT(f,a),Ga(a),a}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,i=this._model,n=this._api;if(mT(this),this[ft]){var a=this[ft].silent;this[Qe]=!0,Bo(this);try{Aa(this),Di.update.call(this,null,this[ft].updateParams)}catch(l){throw this[Qe]=!1,this[ft]=null,l}this._zr.flush(),this[Qe]=!1,this[ft]=null,ko.call(this,a),zo.call(this,a)}else if(t.unfinished){var o=zP;do{t.unfinished=!1;var s=Re.getTime();t.performSeriesTasks(i),t.performDataProcessorTasks(i),Yd(this,i),t.performVisualTasks(i),bc(this,this._model,n,"remain",{}),o-=Re.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,n){if(!this[Qe]){if(this._disposed){this.id;return}var a,o,s;if(V(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Qe]=!0,Bo(this),!this._model||i){var l=new DS(this._api),u=this._theme,f=this._model=new qf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},$d);var c={seriesTransition:s,optionChanged:!0};if(n)this[ft]={silent:a,updateParams:c},this[Qe]=!1,this.getZr().wakeUp();else{try{Aa(this),Di.update.call(this,null,c)}catch(p){throw this[ft]=null,this[Qe]=!1,p}this._ssr||this._zr.flush(),this[ft]=null,this[Qe]=!1,ko.call(this,a),zo.call(this,a)}}},e.prototype.setTheme=function(t,i){if(!this[Qe]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[ft]&&(a==null&&(a=this[ft].silent),o=this[ft].updateParams,this[ft]=null),this[Qe]=!0,Bo(this);try{this._updateTheme(t),n.setTheme(this._theme),Aa(this),Di.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Qe]=!1,s}this[Qe]=!1,ko.call(this,a),zo.call(this,a)}}},e.prototype._updateTheme=function(t){U(t)&&(t=IT[t]),t&&(t=j(t),t&&Zf(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ae.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,i=t.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,n=this._model,a=[],o=this;T(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(gT[n]){var l=s,u=s,f=-s,c=-s,p=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();T(ml,function(_,x){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(t)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),p.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,m=Re.createCanvas(),g=Lh(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return T(p,function(_){var x=_.left-l,b=_.top-u;y+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new de({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),T(p,function(_){var x=new bt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i,n){return Sc(this,"convertToPixel",t,i,n)},e.prototype.convertToLayout=function(t,i,n){return Sc(this,"convertToLayout",t,i,n)},e.prototype.convertFromPixel=function(t,i,n){return Sc(this,"convertFromPixel",t,i,n)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var n=this._model,a,o=ku(n,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(t,i){var n=this._model,a=ku(n,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?fc(s,l,i):cc(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(jP,function(n){var a=function(o){var s=t.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Ei(l,function(d){var m=ce(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=N({},m.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},t.trigger(n,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)});var i=this._messageCenter;T(Kd,function(n,a){i.on(a,function(o){t.trigger(a,o)})}),Rb(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&Fh(this.getDom(),tm,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete ml[i.id]},e.prototype.resize=function(t){if(!this[Qe]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=t&&t.silent;this[ft]&&(a==null&&(a=this[ft].silent),n=!0,this[ft]=null),this[Qe]=!0,Bo(this);try{n&&Aa(this),Di.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(o){throw this[Qe]=!1,o}this[Qe]=!1,ko.call(this,a),zo.call(this,a)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(V(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!Qd[t]){var n=Qd[t](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=N({},t);return i.type=Zd[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(V(i)||(i={silent:!!i}),!!Tc[t.type]&&this._model){if(this[Qe]){this._pendingActions.push(t);return}var n=i.silent;Xd.call(this,t,n);var a=i.flush;a?this._zr.flush():a!==!1&&ae.browser.weChat&&this._throttledZrFlush(),ko.call(this,n),zo.call(this,n)}},e.prototype.updateLabelLayout=function(){ar.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){Aa=function(c){Ub(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),Wd(c,!0),Wd(c,!1),p.plan()},Wd=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,m=p?c._componentsMap:c._chartsMap,g=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(S,w){S!=="series"&&x(w)}):h.eachSeries(x);function x(S){var w=S.__requireNewView;S.__requireNewView=!1;var A="_ec_"+S.id+"_"+S.type,C=!w&&m[A];if(!C){var E=Ht(S.type),D=p?it.getClass(E.main,E.sub):yt.getClass(E.sub);C=new D,C.init(h,y),m[A]=C,d.push(C),g.add(C.group)}S.__viewId=C.__id=A,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!p&&v.prepareView(C,S,h,y)}for(var _=0;_<d.length;){var b=d[_];b.__alive?_++:(!p&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),d.splice(_,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},xc=function(c,p,h,v,d){var m=c._model;if(m.setUpdatePayload(h),!v){T([].concat(c._componentsViews).concat(c._chartsViews),x);return}var g=L_(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=X(),T(Pe(y),function(b){var S=Ft(b,null);S!=null&&_.set(S,!0)})),m&&m.eachComponent(g,function(b){var S=_&&_.get(b.id)!=null;if(!S)if(Av(h))if(b instanceof Nt)h.type===nn&&!h.notBlur&&!b.get(["emphasis","disabled"])&&H0(b,h,c._api);else{var w=ef(b.mainType,b.componentIndex,h.name,c._api),A=w.focusSelf,C=w.dispatchers;h.type===nn&&A&&!h.notBlur&&ju(b.mainType,b.componentIndex,c._api),C&&T(C,function(E){h.type===nn?Jn(E):ea(E)})}else nf(h)&&b instanceof Nt&&(Y0(b,h,c._api),Cv(b),yr(c))},c),m&&m.eachComponent(g,function(b){var S=_&&_.get(b.id)!=null;S||x(c[v==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function x(b){b&&b.__alive&&b[p]&&b[p](b.__model,m,c._api,h)}},Di={prepareAndUpdate:function(c){Aa(this),Di.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){Vb(h),h.setUpdatePayload(c),g.restoreData(h,c),g.performSeriesTasks(h),m.create(h,v),ar.trigger("coordsys:aftercreate",h,v),g.performDataProcessorTasks(h,c),Yd(this,h),m.update(h,v),i(h),g.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),qd(this,h,v,c,p),ar.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(g,y){if(g!==qu){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var m=X();h.eachSeries(function(g){var y=p._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,h,v,c);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:m}),bc(p,h,v,c,{},m),ar.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),yt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),qd(this,p,this._api,c,{}),ar.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),yt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=p.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),ar.trigger("afterupdate",h,this._api))},updateLayout:function(c){Di.update.call(this,c)}};function t(c,p,h,v,d){if(c._disposed){c.id;return}for(var m=c._model,g=c._coordSysMgr.getCoordinateSystems(),y,_=ku(m,h),x=0;x<g.length;x++){var b=g[x];if(b[p]&&(y=b[p](m,_,v,d))!=null)return y}}Sc=t,Yd=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Xd=function(c,p){var h=this,v=this.getModel(),d=c.type,m=c.escapeConnect,g=Tc[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Ht(y[0]);this[Qe]=!0,Bo(this);var b=[c],S=!1;c.batch&&(S=!0,b=B(c.batch,function(P){return P=oe(N({},P),c),P.batch=null,P}));var w=[],A,C=[],E=g.nonRefinedEventType,D=nf(c),I=Av(c);if(I&&wv(this._api),T(b,function(P){var F=g.action(P,v,h._api);if(g.refineEvent?C.push(F):A=F,A=A||N({},P),A.type=E,w.push(A),I){var k=Os(c),H=k.queryOptionMap,W=k.mainTypeSpecified,Y=W?H.keys()[0]:"series";xc(h,_,P,Y),yr(h)}else D?(xc(h,_,P,"series"),yr(h)):x&&xc(h,_,P,x.main,x.sub)}),_!=="none"&&!I&&!D&&!x)try{this[ft]?(Aa(this),Di.update.call(this,c),this[ft]=null):Di[_].call(this,c)}catch(P){throw this[Qe]=!1,P}if(S?A={type:E,escapeConnect:m,batch:w}:A=w[0],this[Qe]=!1,!p){var M=void 0;if(g.refineEvent){var L=g.refineEvent(C,c,v,this._api).eventContent;He(V(L)),M=oe({type:g.refinedEventType},L),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var O=this._messageCenter;O.trigger(A.type,A),M&&O.trigger(M.type,M)}},ko=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Xd.call(this,h,c)}},zo=function(c){!c&&this.trigger("updated")},pT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[ft]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},hT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=Ei(v,Gs);d&&(G0(d,h,p._api),yr(p))}).on("mouseout",function(h){var v=h.target,d=Ei(v,Gs);d&&(W0(d,h,p._api),yr(p))}).on("click",function(h){var v=h.target,d=Ei(v,function(y){return ce(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=ce(d);p._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,b=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(y==="series"?h:p).push({zlevel:x,z:b,idx:_.componentIndex,type:y,key:S})}),v){var d=p.concat(h),m,g;Rn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,b=y.key;m!=null&&(x=Math.max(m,x)),b?(x===m&&b!==g&&x++,g=b):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}qd=function(c,p,h,v,d){n(p),vT(c,p,h,v,d),T(c._chartsViews,function(m){m.__alive=!1}),bc(c,p,h,v,d),T(c._chartsViews,function(m){m.__alive||m.remove(p,h)})},vT=function(c,p,h,v,d,m){T(m||c._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,p,h,v),l(y,g),f(y,g)})},bc=function(c,p,h,v,d,m){var g=c._scheduler;d=N(d||{},{updatedSeries:p.getSeries()}),ar.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;g.updatePayload(b,v),u(_,x),m&&m.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Cv(_)}),g.unfinished=y||g.unfinished,ar.trigger("series:layoutlabels",p,h,d),ar.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),ar.trigger("series:afterupdate",p,h,d)},yr=function(c){c[Hd]=!0,c.getZr().wakeUp()},Bo=function(c){c[_c]=(c[_c]+1)%1e6},mT=function(c){c[Hd]&&(c.getZr().storage.traverse(function(p){oa(p)||a(p)}),c[Hd]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===Us&&c.states.emphasis?p.push("emphasis"):c.hoverState===Bs&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(g){g.isGroup||d++});var m=d>q(p.get("hoverLayerThreshold"),Gf.hoverLayerThreshold)&&!ae.node&&!ae.worker;(c._usingTHL||m)&&(p.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==sa&&(x.hoverLayer=m?Hv:Fv)})}}),c._usingTHL=m)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=Xv(c);p.eachRendered(function(v){return qv(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!oa(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(g){if(g.states&&g.states.emphasis){if(oa(g))return;if(g instanceof le&&Z0(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&a(g)}})}dT=function(c){return new((function(p){z(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Jn(v,d),yr(c)},h.prototype.leaveEmphasis=function(v,d){ea(v,d),yr(c)},h.prototype.enterBlur=function(v){V0(v),yr(c)},h.prototype.leaveBlur=function(v){Sv(v),yr(c)},h.prototype.enterSelect=function(v){bv(v),yr(c)},h.prototype.leaveSelect=function(v){Tv(v),yr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[_c]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Ku))(c)},DT=function(c){function p(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[Gd]=v}}T(Zd,function(h,v){c._messageCenter.on(v,function(d){if(gT[c.group]&&c[Gd]!==cT){if(d&&d.escapeConnect)return;var m=c.makeActionFromEvent(d),g=[];T(ml,function(y){y!==c&&y.group===c.group&&g.push(y)}),p(g,cT),T(g,function(y){y[Gd]!==ZP&&y.dispatchAction(m)}),p(g,KP)}})})}})(),e})(vt),em=MT.prototype;em.on=TT("on");em.off=TT("off");em.one=function(r,e,t){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(r,n)}this.on.call(this,r,n,t)};var jP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Tc={},Zd={},Kd={},jd=[],$d=[],wc=[],IT={},Qd={},ml={},gT={},$P=+new Date-0,YY=+new Date-0,tm="_echarts_instance_";function QP(r,e,t){var i=!(t&&t.ssr);if(i){var n=JP(r);if(n)return n}var a=new MT(r,e,t);return a.id="ec_"+$P++,ml[a.id]=a,i&&Fh(r,tm,a.id),DT(a),ar.trigger("afterinit",a),a}function JP(r){return ml[O_(r,tm)]}function LT(r,e){IT[r]=e}function rm(r){fe($d,r)<0&&$d.push(r)}function im(r,e){nm(jd,r,e,HP)}function OT(r){Ac("afterinit",r)}function PT(r){Ac("afterupdate",r)}function Ac(r,e){ar.on(r,e)}function Ea(r,e,t){var i,n,a,o,s;K(e)&&(t=e,e=""),V(r)?(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),a=r.refineEvent):(i=r,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Tc[i]||(He(fT.test(i)&&fT.test(n)),a&&He(n!==i),Tc[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:a},Kd[n]=1,a&&s&&(Kd[u]=1),Zd[u]=i)}function RT(r,e){da.register(r,e)}function NT(r,e){nm(wc,r,e,_T,"layout",!0)}function dn(r,e){nm(wc,r,e,xT,"visual",!0)}var yT=[];function nm(r,e,t,i,n,a){if((K(e)||V(e))&&(t=e,e=i),!(fe(yT,t)>=0)){yT.push(t);var o=zd.wrapStageHandler(t,n);o.__prio=e,o.__raw=t,r.push(o)}}function am(r,e){Qd[r]=e}function kT(r,e,t){var i=zb("registerMap");i&&i(r,e,t)}var zT=qS;dn(Jd,yb);dn(Cc,_b);dn(Cc,xb);dn(Jd,Ib);dn(Cc,Lb);dn(ST,lT);rm(Zf);im(UP,NS);am("default",kd);Ea({type:nn,event:nn,update:nn},Le);Ea({type:Vs,event:Vs,update:Vs},Le);Ea({type:Fs,event:Qu,update:Fs,action:Le,refineEvent:om,publishNonRefinedEvent:!0});Ea({type:$u,event:Qu,update:$u,action:Le,refineEvent:om,publishNonRefinedEvent:!0});Ea({type:Hs,event:Qu,update:Hs,action:Le,refineEvent:om,publishNonRefinedEvent:!0});function om(r,e,t,i){return{eventContent:{selected:X0(t),isFromClick:e.isFromClick||!1}}}LT("default",{});LT("dark",Eb);function gl(r){return r==null?0:r.length||1}function BT(r){return r}var eR=(function(){function r(e,t,i,n,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||BT,this._newKeyGetter=n||BT,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},n=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=gl(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=gl(u),p=gl(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var n=e[i],a=t[n],o=gl(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[n]=null}},r.prototype._initIndexMap=function(e,t,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!t){var l=t[s],u=gl(l);u===0?(t[s]=o,a&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),UT=eR;var tR=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function VT(r,e){var t={},i=t.encode={},n=X(),a=[],o=[],s={};T(r.dimensions,function(p){var h=r.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;sm(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),rR(h.type)&&(a[0]=p),sm(s,v)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}Zu.each(function(m,g){var y=sm(i,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=B(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,t.userOutput=new tR(s,e),t}function sm(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function FT(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function rR(r){return!(r==="ordinal"||r==="time")}var iR=(function(){function r(e){this.otherDims={},e!=null&&N(this,e)}return r})(),Uo=iR;var nR=ne(),aR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},lm=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=um(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return q(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=jf(this.source),i=!fm(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=t?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=aR[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Ec(r){return r instanceof lm}function yl(r){for(var e=X(),t=0;t<(r||[]).length;t++){var i=r[t],n=V(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function um(r){var e=nR(r);return e.dimNameMap||(e.dimNameMap=yl(r.dimensionsDefine))}function fm(r){return r>30}var _l=V,mn=B,oR=typeof Int32Array>"u"?Array:Int32Array,sR="e\0\0",HT=-1,lR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uR=["_approximateExtent"],GT,Dc,xl,Sl,cm,bl,pm,fR=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;Ec(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=U(c)?new Uo({name:c}):c instanceof Uo?c:new Uo(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=X();T(o,function(m){d.set(a[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ue(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var n=this,a;if(e instanceof sl&&(a=e),!a){var o=this.dimensions,s=Lo(e)||Ke(e)?new Qf(e,o.length):e;a=new sl;var l=mn(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=VT(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=t[l],o&&pm(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var n=this._dimInfos[t[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==er&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===et;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&A_(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Ft(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Ft(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)pm(this,f);GT(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){_l(e)?N(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=xl(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},r.prototype.getId=function(e){return Dc(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,n=this._store;return R(e)?n.getValues(mn(e,function(a){return i._getStoreDimIndex(a)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i&&i[t];return n==null||isNaN(n)?HT:n},r.prototype.each=function(e,t,i){"use strict";K(e)&&(i=t,t=e,e=[]);var n=i||this,a=mn(Sl(e),this._getStoreDimIndex,this);this._store.each(a,n?ee(t,n):t)},r.prototype.filterSelf=function(e,t,i){"use strict";K(e)&&(i=t,t=e,e=[]);var n=i||this,a=mn(Sl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ee(t,n):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,i={},n=he(e),a=[];return T(n,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){"use strict";K(e)&&(i=t,t=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},i),n},r.prototype.map=function(e,t,i,n){"use strict";var a=i||n||this,o=mn(Sl(e),this._getStoreDimIndex,this),s=bl(this);return s._store=this._store.map(o,a?ee(t,a):t),s},r.prototype.modify=function(e,t,i,n){var a=this,o=i||n||this,s=mn(Sl(e),this._getStoreDimIndex,this);this._store.modify(s,o?ee(t,o):t)},r.prototype.downSample=function(e,t,i,n){var a=bl(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,i,n),a},r.prototype.minmaxDownSample=function(e,t){var i=bl(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},r.prototype.lttbDownSample=function(e,t){var i=bl(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new De(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new UT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Dc(e,i)},function(i){return Dc(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},_l(e)?N(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],n=i&&i[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[t];return a==null&&(a=this.getVisual(t),R(a)?a=a.slice():_l(a)&&(a=N({},a)),n[t]=a),a},r.prototype.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,_l(t)?N(n,t):n[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){_l(e)?N(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;D0(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(i,n){i&&e&&e.call(t,i,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:mn(this.dimensions,this._getDimInfo,this),this.hostModel)),cm(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];K(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return t.apply(this,[n].concat(eu(arguments)))})},r.internalField=(function(){GT=function(e){var t=e._invertedIndicesMap;T(t,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=t[n]=new oR(o.categories.length);for(var l=0;l<i.length;l++)i[l]=HT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},xl=function(e,t,i){return Ft(e._getCategory(t,i),null)},Dc=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=xl(e,e._idDimIdx,t)),i==null&&(i=sR+t),i},Sl=function(e){return R(e)||(e=e!=null?[e]:[]),e},bl=function(e){var t=new r(e._schema?e._schema:mn(e.dimensions,e._getDimInfo,e),e.hostModel);return cm(t,e),t},cm=function(e,t){T(lR.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,T(uR,function(i){e[i]=j(t[i])}),e._calculationInfo=N({},t._calculationInfo)},pm=function(e,t){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=n[t];if(s==null&&a!=null&&(i[t]=s=xl(e,a,t)),l==null&&o!=null&&(n[t]=l=xl(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}})(),r})(),Mc=fR;function Tl(r,e){Lo(r)||(r=Oo(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],n=X(),a=[],o=cR(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&fm(o),l=i===r.dimensionsDefine,u=l?um(r):yl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=X(f),p=new Md(o),h=0;h<p.length;h++)p[h]=-1;function v(C){var E=p[C];if(E<0){var D=i[C],I=V(D)?D:{name:D},M=new Uo,L=I.name;L!=null&&u.get(L)!=null&&(M.name=M.displayName=L),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var O=a.length;return p[C]=O,M.storeDimIndex=C,a.push(M),M}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(C,E){var D=Pe(C).slice();if(D.length===1&&!U(D[0])&&D[0]<0){c.set(E,!1);return}var I=c.set(E,[]);T(D,function(M,L){var O=U(M)?u.get(M):M;O!=null&&O<o&&(I[L]=O,m(v(O),E,L))})});var d=0;T(t,function(C){var E,D,I,M;if(U(C))E=C,M={};else{M=C,E=M.name;var L=M.ordinalMeta;M.ordinalMeta=null,M=N({},M),M.ordinalMeta=L,D=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var O=c.get(E);if(O!==!1){if(O=Pe(O),!O.length)for(var P=0;P<(D&&D.length||1);P++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&O.push(d++)}T(O,function(F,k){var H=v(F);if(l&&M.type!=null&&(H.type=M.type),m(oe(H,M),E,k),H.name==null&&D){var W=D[k];!V(W)&&(W={name:W}),H.name=H.displayName=W.name,H.defaultTooltip=W.defaultTooltip}I&&oe(H.otherDims,I)})}});function m(C,E,D){Zu.get(E)!=null?C.otherDims[E]=D:(C.coordDim=E,C.coordDimIndex=D,n.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)T(a,function(C){b(C)}),a.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});else for(var S=0;S<o;S++){var w=v(S),A=w.coordDim;A==null&&(w.coordDim=pR(x,n,_),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(Yf(r,S)===rt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return so(a,function(C){return C.name},function(C,E){E>0&&(C.name=C.name+(E-1))}),new lm({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function cR(r,e,t,i){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return T(e,function(a){var o;V(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function pR(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var hR=(function(){function r(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return r})();function WT(r){var e=r.get("coordinateSystem"),t=new hR(e),i=vR[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var vR={cartesian2d:function(r,e,t,i){var n=r.getReferringComponents("xAxis",mt).models[0],a=r.getReferringComponents("yAxis",mt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",a),Vo(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),Vo(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var n=r.getReferringComponents("singleAxis",mt).models[0];e.coordSysDims=["single"],t.set("single",n),Vo(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var n=r.getReferringComponents("polar",mt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Vo(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),Vo(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Vo(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,i){var n=r.getReferringComponents("matrix",mt).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",a),t.set("y",o),i.set("x",a),i.set("y",o)}};function Vo(r){return r.get("type")==="category"}function YT(r,e,t){t=t||{};var i=t.byIndex,n=t.stackedCoordDimension,a,o,s;dR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(T(a,function(x,b){U(x)&&(a[b]=x={name:x}),v(x)||(h=!1)}),T(a,function(x,b){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+r.id,p="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;T(a,function(x){x.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(c,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function dR(r){return!Ec(r.schema)}function Mi(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function XT(r,e){return Mi(r,e)?r.getCalculationInfo("stackResultDimension"):e}function mR(r,e){var t=r.get("coordinateSystem"),i=da.get(t),n;return e&&e.coordSysDims&&(n=B(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=FT(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function gR(r,e,t){var i,n;return t&&T(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function yR(r,e,t){t=t||{};var i=e.getSourceManager(),n,a=!1;r?(a=!0,n=Oo(r)):(n=i.getSource(),a=n.sourceFormat===et);var o=WT(e),s=mR(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?we(mS,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Tl(n,f),p=gR(c.dimensions,t.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=YT(e,{schema:c,store:h}),d=new Mc(c,e);d.setCalculationInfo(v);var m=p!=null&&_R(n)?function(g,y,_,x){return x===p?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,m),d}function _R(r){if(r.sourceFormat===et){var e=xR(r.data||[]);return!R(mi(e))}}function xR(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var gn=yR;var qT=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();$i(qT);var zt=qT;var SR=0,bR=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++SR,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&B(i,TR);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!U(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},r})();function TR(r){return V(r)&&r.value!=null?r.value:r+""}var wl=bR;var Xt=0,Fo=1,wR={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},KT=he(wR),Ho=2,jT=3;function Go(r,e,t){var i;r=r||{};var n=Ue();if(n){var a=n.createBreakScaleMapper(e,t);a.hasBreaks()&&(T(KT,function(o){a[o]&&(r[o]=ee(a[o],a))}),i=a)}return i==null&&CR(r,t),{brk:i,mapper:r}}function Ic(r,e){T(KT,function(t){r[t]=e[t]})}function Lc(r,e){r.freeze=Le}function Ii(r){return r.getExtentUnsafe(Xt,Ho)}function Da(r,e){return r.getExtentUnsafe(Fo,e)||r.getExtentUnsafe(Xt,e)}function $T(r){var e=Da(r,jT);return e[1]-e[0]}function Wo(r){var e=r.getExtentUnsafe(Xt,jT);return e[1]-e[0]}function CR(r,e){var t=r||{},i=[];return t._extents=i,i[Xt]=e?e.slice():gt(),N(t,AR),t}var AR={needTransform:function(){return!1},normalize:function(r){var e=this._extents[Fo]||this._extents[Xt];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[Fo]||this._extents[Xt];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Da(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Xt].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){ZT(this._extents,Xt,r,e)},setExtent2:function(r,e,t){var i=this._extents;i[r]||(i[r]=i[Xt].slice()),ZT(i,r,e,t)},freeze:function(){}};function ZT(r,e,t,i){gi(t,i)&&(r[e][0]=t,r[e][1]=i)}function Oc(r){return Yo(r)||ni(r)}function Yo(r){return r.type==="interval"}function Xo(r){return r.type==="time"}function ni(r){return r.type==="log"}function ct(r){return r.type==="ordinal"}function QT(r){var e=Nu(r),t=ji(10,e),i=Jt(r/t);return i?i===2?i=3:i===3?i=5:i*=2:i=1,ye(i*t,-e)}function Pr(r){return wr(r)+2}function Cl(r,e){return no(r)/no(e)}function Pc(r,e,t){var i=t&&t.lookup;if(i){for(var n=0;n<i.from.length;n++)if(r===i.from[n])return i.to[n]}return ji(e,r)}function Rc(r,e,t){var i=r.slice();if(i[0]===i[1]){var n=t&&t.ctnShp;if(i[0]!==0){var a=Oe(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Cr(i[0])||!Cr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function JT(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function Al(r,e){return r=r||e,Jt(ge(r,1))}function Nc(r,e,t){var i=Ii(r),n=i[0],a=r.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var e1=(function(r){z(e,r);function e(t){var i=r.call(this)||this;i.type="ordinal",i.parse=e.parse,Ic(i,e.decoratedMethods);var n=t.ordinalMeta;n||(n=new wl({})),R(n)&&(n=new wl({categories:B(n,function(o){return V(o)?o.value:o})})),i._ordinalMeta=n;var a=Go(null,null,t.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Lc(i,a.mapper),i}return e.parse=function(t){return t==null?t=NaN:U(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=Jt(t),t},e.prototype.getTicks=function(){var t=[];return Nc(this,0,function(i){t.push(i)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=ze(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var t=Ii(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Jt(this._mapper.scale(t)))},transformIn:function(t,i){return this._mapper.transformIn(this._getTickNumber(t),i)},transformOut:function(t,i){return this.getRawOrdinalNumber(this._mapper.transformOut(t,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,i){return this._mapper.getExtentUnsafe(t,i)},setExtent:function(t,i){return this._mapper.setExtent(t,i)},setExtent2:function(t,i,n){return this._mapper.setExtent2(t,i,n)}},e})(zt);zt.registerClass(e1);var t1=e1;function qo(r,e,t,i){for(var n=r.getTicks({expandToNicedExtent:!0}),a=[],o=r.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=Pr(h);f<e-1;){var d=ye(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var m=Ue();m&&m.pruneTicksByBreak("auto",c,t,function(g){return g},i,o),a.push(c)}}return a}var r1=(function(r){z(e,r);function e(t){var i=r.call(this)||this;i.type="interval",i.parse=e.parse,t=t||{};var n=bf(i,t),a=Go(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return j(this._cfg)},e.prototype.setConfig=function(t){var i=Ii(this);this._cfg=t=j(t),t.niceExtent==null&&(t.niceExtent=i.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Pr(t.interval))},e.prototype.getTicks=function(t){t=t||{};var i=this._cfg,n=i.interval,a=Ii(this),o=i.niceExtent,s=i.intervalPrecision,l=Ue(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:t.expandToNicedExtent?ye(o[0]-n,s):a[0]});for(var h=function(_,x){return Jt((x-_)/n)},v=i.intervalCount,d=o[0],m=0;;m++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>v)break;d=ze(d,o[1]),m===v&&(d=o[1])}if(c.push({value:d}),d=ye(d+n,s),u){var g=u.calcNiceTickMultiple(d,h);g>=0&&(d=ye(d+g*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:t.expandToNicedExtent?ye(y+n,s):a[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(t){return qo(this,t,ca(this),this._cfg.interval)},e.prototype.getLabel=function(t,i){if(t==null)return"";var n=i&&i.precision;n==null?n=wr(t.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=ye(t.value,n,!0);return cd(a)},e.type="interval",e})(zt);zt.registerClass(r1);var Ma=r1;var ER=function(r,e,t,i){for(;t<i;){var n=t+i>>>1;r[n][1]<e?t=n+1:i=n}return t},n1=(function(r){z(e,r);function e(t){var i=r.call(this)||this;i.type="time",i.parse=e.parse,i._locale=t.locale,i._useUTC=t.useUTC,i._interval=0;var n=bf(i,t),a=Go(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(t){return ha(t.value,rd[tS(Eo(this._minLevelUnit))]||rd.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,i,n){return rS(t,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var i=this._interval,n=Ii(this),a=Ue(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return Ue().addBreaksToTicks(l,o.breaks,n),l;l=RR(this._minLevelUnit,this._approxInterval,u,n,Wo(this),o);var f=Yt.length-1,c=0;return T(l,function(p){p.time&&(f=Math.min(f,fe(Yt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ue().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&t.breakTicks!=="none"&&Ue().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(fe(Yt,va(p.vmin,u)),fe(Yt,va(p.vmax,u))),v=0,d=0;d<Yt.length;d++)if(!a1(Yt[d],p.vmin,p.vmax,u)){v=d;break}var m=Math.min(v,f),g=Math.max(m,h);return{level:c,lowerTimeUnit:Yt[g],upperTimeUnit:Yt[m]}}),l},e.prototype.getMinorTicks=function(t){return qo(this,t,ca(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return ue(t)?Math.round(t):+Hr(t)},e.type="time",e})(zt),kc=[["second",Cf],["minute",Af],["hour",Ao],["quarter-day",Ao*6],["half-day",Ao*12],["day",ir*1.2],["half-week",ir*3.5],["week",ir*7],["month",ir*31],["quarter",ir*95],["half-year",td/2],["year",td]];function a1(r,e,t,i){return Ef(new Date(e),r,i).getTime()===Ef(new Date(t),r,i).getTime()}function DR(r,e){return r/=ir,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function MR(r){var e=30*ir;return r/=e,r>6?6:r>3?3:r>2?2:1}function IR(r){return r/=Ao,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function i1(r,e){return r/=e?Af:Cf,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function LR(r){return ge(Gn(r,!0),1)}function OR(r,e,t){var i=Math.max(0,fe(Yt,e)-1);return Ef(new Date(r),Yt[i],t).getTime()}function PR(r,e){var t=new Date(0);t[r](1);var i=t.getTime();t[r](1+e);var n=t.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function RR(r,e,t,i,n,a){var o=3e3,s=Qx,l=0;function u(P,F,k,H,W,Y,$){for(var J=PR(W,P),Q=F,ve=new Date(Q);Q<k&&Q<=i[1]&&($.push({value:Q}),!(l++>o));)if(ve[W](ve[H]()+P),Q=ve.getTime(),a){var xe=a.calcNiceTickMultiple(Q,J);xe>0&&(ve[W](ve[H]()+xe*P),Q=ve.getTime())}$.push({value:Q,notAdd:Q>i[1]})}function f(P,F,k){var H=[],W=!F.length;if(!a1(Eo(P),i[0],i[1],t)){W&&(F=[{value:OR(i[0],P,t)},{value:i[1]}]);for(var Y=0;Y<F.length-1;Y++){var $=F[Y].value,J=F[Y+1].value;if($!==J){var Q=void 0,ve=void 0,xe=void 0,Ze=!1;switch(P){case"year":Q=Math.max(1,Math.round(e/ir/365)),ve=id(t),xe=iS(t);break;case"half-year":case"quarter":case"month":Q=MR(e),ve=Df(t),xe=nd(t);break;case"week":case"half-week":case"day":Q=DR(e,31),ve=Mf(t),xe=ad(t),Ze=!0;break;case"half-day":case"quarter-day":case"hour":Q=IR(e),ve=If(t),xe=od(t);break;case"minute":Q=i1(e,!0),ve=Lf(t),xe=sd(t);break;case"second":Q=i1(e,!1),ve=Of(t),xe=ld(t);break;case"millisecond":Q=LR(e),ve=Pf(t),xe=ud(t);break}J>=i[0]&&$<=i[1]&&u(Q,$,J,ve,xe,Ze,H),P==="year"&&k.length>1&&Y===0&&k.unshift({value:k[0].value-Q})}}for(var Y=0;Y<H.length;Y++)k.push(H[Y])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var m=Eo(s[d]);if(eS(s[d])){f(s[d],c[c.length-1]||[],p);var g=s[d+1]?Eo(s[d+1]):null;if(m!==g){if(p.length){v=h,p.sort(function(P,F){return P.value-F.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var b=n/e;if(h>b*1.5&&v>b/1.5||(c.push(y),h>b||r===s[d]))break}p=[]}}}for(var S=Ve(B(c,function(P){return Ve(P,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(P){return P.length>0}),w=S.length-1,A=[],d=0;d<S.length;++d)for(var C=S[d],E=0;E<C.length;++E){var D=va(C[E].value,t);A.push({value:C[E].value,time:{level:w-d,upperTimeUnit:D,lowerTimeUnit:D}})}so(A,z_,null),A.sort(function(P,F){return P.value-F.value});var I=A[0],M=A[A.length-1],L=va(i[0],t),O=va(i[1],t);return(!I||I.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!M||M.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),A}var o1=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=ir,t[1]+=ir),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-ir}r.setExtent(t[0],t[1]);var n=Al(e.splitNumber,10),a=Wo(r)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=kc.length,u=Math.min(ER(kc,a,0,l),l-1),f=kc[u][1],c=kc[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};zt.registerClass(n1);var s1=n1;var zc=0,Bc=1,NR=2,c1=(function(r){z(e,r);function e(t){var i=r.call(this)||this;i.type="log",i.parse=Ma.parse,i.base=t.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[zc]=n[Bc]=a[zc]=a[Bc]=NaN,Ic(i,e.mapperMethods);var s=Ue(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},NR,u),i.powStub=new Ma({breakParsed:u.original}),i.intervalStub=new Ma({breakParsed:u.transformed}),Lc(i,i.intervalStub),i}return e.prototype.getTicks=function(t){var i=this.base,n=this.powStub,a=Ue(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return B(o.getTicks(t||{}),function(f){var c=f.value,p=Pc(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,ca(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(t){return qo(this,t,ca(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,i){return this.intervalStub.getLabel(t,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Cl(t,this.base))},scale:function(t){return Pc(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,i){return t=Cl(t,this.base),i&&i.depth===Ho?t:this.intervalStub.transformIn(t,i)},transformOut:function(t,i){var n=i?i.depth:null;return l1.depth=n,u1.lookup=this._lookup,Pc(n===Ho?t:this.intervalStub.transformOut(t,l1),this.base,u1)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,i){this.setExtent2(Xt,t,i)},setExtent2:function(t,i,n){if(!(!gi(i,n)||i<=0||n<=0)){var a=f1,o=f1;if(t===Xt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[zc]=i,a[Bc]=n);var l=this.base;this.intervalStub.setExtent2(t,o[zc]=Cl(i,l),o[Bc]=Cl(n,l))}},getFilter:function(){return{g:0}},sanitize:function(t,i){return gi(i[0],i[1])&&je(t)&&t<=0&&(t=i[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,i){return i===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,i)}},e})(zt);zt.registerClass(c1);var l1={},u1={},f1=[],p1=c1;var Uc={value:1,category:1,time:1,log:1};var h1=ne();function v1(r){var e=r.get("type");return(e==null||!Me(Uc,e)&&!zt.getClass(e))&&(e="value"),e}function d1(r,e,t){var i=Ue(),n;switch(i&&(n=hm(r,e,t)),e){case"category":return new t1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:gt()});case"time":return new s1({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new p1({logBase:r.get("logBase"),breakOption:n});case"value":return new Ma({breakOption:n});default:return new(zt.getClass(e)||Ma)({})}}function m1(r,e,t){var i=t?Da(r,null):r.getExtentUnsafe(Xt,null),n=i[0],a=i[1];return gi(n,a)?n===e||a===e?zR:n<e&&a>e?kR:Vc:Vc}var kR=1,zR=2,Vc=3;function g1(r){h1(r).noOnMyZero=!0}function y1(r){return h1(r).noOnMyZero}function El(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=Jx(e);return function(n,a){return r.scale.getFormattedLabel(n,a,t)}}else{if(U(e))return function(n){var a=r.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(K(e)){if(r.type==="category")return function(n,a){return e(Zo(r,n),n.value-r.scale.getExtent()[0],null)};var i=Ue();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Zo(r,n),a,o)}}else return function(n){return r.scale.getLabel(n)}}}function Zo(r,e){var t=r.scale;return ct(t)?t.getLabel(e):e.value}function Fc(r){var e=r.get("interval");return e??"auto"}function _1(r){return r.type==="category"&&Fc(r.getLabelModel())===0}function x1(r,e){var t={};return T(r.mapDimensionsAll(e),function(i){t[XT(r,i)]=!0}),he(t)}function yn(r){return r==="middle"||r==="center"}function Ia(r){return r.getShallow("show")}function hm(r,e,t){var i=r.get("breaks",!0);if(i!=null){if(!Ue())return;if(!t||!BR(e)){if(0)var n;return}return i}}function BR(r){return r!=="category"}function Hc(r,e,t,i,n,a){var o=ni(r),s=o?r.intervalStub:r;if(s.setExtent(i[0],i[1]),o){var l=r.powStub,u={depth:Ho},f=r.transformOut(i[0],u),c=r.transformOut(i[1],u),p=JT(t,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Li(r,e){return ct(r)?r.getRawOrdinalNumber(e.value):e.value}function Gc(r,e){return ct(r)&&!!e.get("boundaryGap")}var b1=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})();var UR=zu(),Wc="|&",Ko=ne(),Yc=-2,T1=-1,VR=ne();function w1(r,e){var t=r.model,i=Ko(Ta(t.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(t.uid)}function C1(r,e){return D1(w1(r,e))}function A1(r,e){var t=[];return E1(r.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&t.push(D1(i))}),t}function E1(r,e){var t=Ko(Ta(r)).keyed;t&&t.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function D1(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function M1(r,e){var t=r.model.ecModel,i=Ko(Ta(t)).axSer;i&&Xc(t,i.get(r.model.uid),e)}function mm(r,e,t){var i=w1(r,e);i&&Xc(r.model.ecModel,i.sers,t)}function Xc(r,e,t){if(e)for(var i=0;i<e.length;i++){var n=e[i];r.isSeriesFiltered(n)||t(n)}}function I1(r,e,t){var i=Ko(Ta(r)).keyed,n=i&&i.get(e);n&&n.each(function(a){t(a.axis)})}function gm(r,e){var t=r.model,i=Ko(Ta(t.ecModel)).keys;i&&T(i.get(t.uid),function(n){if(0)var a;e(n)})}function FR(r){var e=VR(Fb(r)),t=e.keyed||(e.keyed=X());E1(r,function(i,n,a){var o=t.get(n)||t.set(n,X()),s=o.get(a)||o.set(a,{});i.metrics.liPosMinGap&&O1.liPosMinGap(r,i,s)})}function L1(r,e){O1[r]=e}var O1={};function ym(r,e,t){if(r){var i=e.ecModel,n=Ko(Ta(i)),a=r.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=X()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===r,h=dm.get(vm(c,p,t))||dm.get(vm(c,p,null));if(h){var v=n.keyed||(n.keyed=X()),d=n.keys||(n.keys=X()),m=h.key,g=v.get(m)||v.set(m,X()),y=g.get(a);y||(y=g.set(a,{axis:r,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(r),(d.get(a)||d.set(a,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function vm(r,e,t){return r+Wc+q(e,!0)+Wc+(t||"")}function P1(r,e){var t=vm(e.seriesType,e.baseAxis,e.coordSysType);dm.set(t,e),UR(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:FR})})}var dm=X();var HR=ne(),k1=1;var GR=3,z1=(function(){function r(e,t,i,n,a){var o=ct(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=i.slice();(Yo(e)||ni(e)||Xo(e))&&(Gh(f,Dl(e,t.get("dataMin",!0))),Wh(f,Dl(e,t.get("dataMax",!0)))),N_(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=t.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=Dl(e,K(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=t.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=Dl(e,K(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=WR(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Cr(c[0])&&(c[0]=NaN),!Cr(c[1])&&(c[1]=NaN);var g=l||lr(c[0])||lr(c[1])||o&&!s,y=Yo(e),_=y&&t.needIncludeZero&&t.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var b=Dl(e,t.get("startValue",!0)),S=b!=null;!je(b)&&n&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),je(b)&&(S||!y||_)&&(b<c[0]&&!p[0]?(c[0]=b,p[0]=!0):b>c[1]&&!p[1]&&(c[1]=b,p[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:_,tggAxInv:x,ctnShp:a};R1(w,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],a[0]=n[0]=!0),t[1]!=null&&(s[1]=t[1],a[1]=n[1]=!0),R1(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function R1(r,e){var t=r.scale,i=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],i),e[1]=t.sanitize(e[1],i),k_(e))}function Dl(r,e){return e==null?null:lr(e)?NaN:r.parse(e)}function WR(r,e){var t;if(ct(r))t=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),t=R(i)?i:[i,i]}return[N1(t[0]),N1(t[1])]}function N1(r){return Vt(typeof r=="boolean"?0:r,1)||0}function B1(r){var e=HR(r.scale);return e.extent||(e.extent=gt()),e}function U1(r,e){B1(r).dimIdxInCoord=e.get(r.dim)}function V1(r,e){var t=r.scale,i=r.model,n=r.dim;t.rawExtentInfo||YR(t,r,n,i,e)}function YR(r,e,t,i,n){var a=B1(e),o=a.extent,s=!1;M1(e,function(f){if(f.boxCoordinateSystem){var c=Vf(f).coord,p=a.dimIdxInCoord;if(p>=0){if(R(c)){var h=c[p];h!=null&&!R(h)&&Ps(o,r.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=r.getFilter?r.getFilter():null;T(x1(v,t),function(m){R_(o,v.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=qR(r,e,i),u=new z1(r,i,o,s,l);F1(r,u,n),a.extent=null}function XR(r,e){var t=r.scale;F1(t,new z1(t,r.model,e,!1,!1),GR)}function F1(r,e,t){r.rawExtentInfo=e,e.from=t}function H1(r,e){_m.set(r,e)}var _m=X();function qc(r,e,t,i,n){r.rawExtentInfo||XR({scale:r,model:e},n||gt());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;return r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),i&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function qR(r,e,t){var i=Gc(r,t),n=t.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return gm(e,function(o){a=!!_m.get(o)||a}),a}function G1(r,e,t,i){if(t.ctnShp){var n;if(gm(r,function(s){var l=_m.get(s);if(l){var u=l(r,i);u&&(n=n||[0,0],Gh(n,u[0]),Wh(n,u[1]),g1(r))}}),!!n){var a=e.getExtent();if(ct(e))r.onBand||e.setExtent2(Fo,ze(a[0],a[0]+n[0]),ge(a[1],a[1]+n[1]));else{var o=a.slice();t.zoomFixMM[0]||(o[0]=ze(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),t.zoomFixMM[1]||(o[1]=ge(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Fo,o[0],o[1])}}}}function W1(r,e){var t=ni(r),i=t?r.intervalStub:r,n=e.fixMinMax||[],a=t?r.getExtent():null,o=i.getExtent(),s=Rc(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=t?KR(i,e):ZR(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Pr(c)),n[0]||(s[0]=ye(Vr(s[0]/f)*f,u)),n[1]||(s[1]=ye(Ki(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),Hc(r,n,o,s,a,l)}function ZR(r,e){var t=Al(e.splitNumber,5),i=Wo(r),n=e.minInterval,a=e.maxInterval,o=Gn(i/t,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Pr(o),l=r.getExtent(),u=[ye(Ki(l[0]/o)*o,s),ye(Vr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function KR(r,e){var t=Al(e.splitNumber,10),i=r.getExtent(),n=Wo(r),a=ge(Ru(n),1),o=t/n*a;o<=.5&&(a*=10);var s=Pr(a),l=[ye(Ki(i[0]/a)*a,s),ye(Vr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function xm(r){var e=r.scale,t=r.model,i=t.axis,n=t.ecModel;jR(e,t,i,n,null)}function jR(r,e,t,i,n){var a=qc(r,e,i,t,n),o=Yo(r)||Xo(r);$R(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&i&&G1(t,r,a,i)}function $R(r,e){QR[r.type](r,e)}var QR={interval:W1,log:W1,time:o1,ordinal:Le};var Y1=[],JR={registerPreprocessor:rm,registerProcessor:im,registerPostInit:OT,registerPostUpdate:PT,registerUpdateLifecycle:Ac,registerAction:Ea,registerCoordinateSystem:RT,registerLayout:NT,registerVisual:dn,registerTransform:zT,registerLoading:am,registerMap:kT,registerImpl:kb,PRIORITY:bT,ComponentModel:Te,ComponentView:it,SeriesModel:Nt,ChartView:yt,registerComponentModel:function(r){Te.registerClass(r)},registerComponentView:function(r){it.registerClass(r)},registerSeriesModel:function(r){Nt.registerClass(r)},registerChartView:function(r){yt.registerClass(r)},registerCustomSeries:function(r,e){Bb(r,e)},registerSubTypeDefaulter:function(r,e){Te.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){m_(r,e)}};function _t(r){if(R(r)){T(r,function(e){_t(e)});return}fe(Y1,r)>=0||(Y1.push(r),K(r)&&(r={install:r}),r.install(JR))}var eN=ne(),Ml=ne(),qt={estimate:1,determine:2};function jo(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function X1(r,e){var t=r.getLabelModel().get("customValues");if(t){var i=r.scale;return{labels:B(Z1(t,i),function(n,a){return{formattedLabel:El(r)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return r.type==="category"?tN(r,e):iN(r)}function q1(r,e,t){var i=r.scale,n=r.getTickModel().get("customValues");return n?{ticks:Z1(n,i)}:r.type==="category"?rN(r,e):{ticks:i.getTicks(t)}}function Z1(r,e){var t=e.getExtent(),i=[];return T(r,function(n){n=e.parse(n),n>=t[0]&&n<=t[1]&&i.push(n)}),so(i,B_,null),Fr(i),B(i,function(n){return{value:n}})}function tN(r,e){var t=r.getLabelModel(),i=K1(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:i}function K1(r,e,t){var i=aN(r),n=Fc(e),a=t.kind===qt.estimate;if(!a){var o=$1(i,n);if(o)return o}var s,l;K(n)?s=Zc(r,n,!1):(l=n==="auto"?oN(r,t):n,s=Zc(r,l,!1));var u={labels:s,labelCategoryInterval:l};return a?t.out.noPxChangeTryDetermine.push(function(){return Sm(i,n,u),!0}):Sm(i,n,u),u}function rN(r,e){var t=nN(r),i=Fc(e),n=$1(t,i);if(n)return n;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),K(i))a=Zc(r,i,!0);else if(i==="auto"){var s=K1(r,r.getLabelModel(),jo(qt.determine));o=s.labelCategoryInterval,a=B(s.labels,function(l){return l.tick})}else o=i,a=Zc(r,o,!0);return Sm(t,i,{ticks:a,tickCategoryInterval:o})}function iN(r){var e=r.scale.getTicks(),t=El(r);return{labels:B(e,function(i,n){return{formattedLabel:t(i,n),rawLabel:r.scale.getLabel(i),tick:i}})}}var nN=j1("axisTick"),aN=j1("axisLabel");function j1(r){return function(t){return Ml(t)[r]||(Ml(t)[r]={list:[]})}}function $1(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function Sm(r,e,t){return r.list.push({key:e,value:t}),t}function oN(r,e){if(e.kind===qt.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ml(r).autoInterval=t,!0}),t}var i=Ml(r).autoInterval;return i??(Ml(r).autoInterval=r.calculateCategoryInterval(e))}function Q1(r,e){var t=e.kind,i=lN(r),n=El(r),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,m=0;c<=s[1];c+=u){var g=0,y=0,_=Du(n({value:c}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/h,b=m/v;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(x,b)));if(t===qt.estimate)return e.out.noPxChangeTryDetermine.push(ee(sN,null,r,S,l)),S;var w=J1(r,S,l);return w??S}function sN(r,e,t){return J1(r,e,t)==null}function J1(r,e,t){var i=eN(r.model),n=r.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=t,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function lN(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Zc(r,e,t){var i=El(r),n=r.scale,a=[],o=K(e);return Nc(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(t?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var uN=.8;function Zt(r,e){e=e||{};var t={w:NaN,w2:NaN},i=r.scale,n=e.fromStat,a=e.min,o=$T(i);je(o)||(o=NaN);var s=r.getExtent(),l=Oe(s[1]-s[0]);return ct(i)?fN(t,r,o,l):n?cN(t,r,o,l,n):a==null,a!=null&&(t.w=je(t.w)?ge(a,t.w):a),t}function fN(r,e,t,i){var n=e.onBand,a=t+(n?1:0);a===0&&(a=1),r.w=i/a,!n&&t&&i&&(r.w2=r.w*t/i)}function cN(r,e,t,i,n){var a=!1,o=-1/0;T(n.key?[C1(e,n.key)]:A1(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Yc&&(a=!0))}),je(t)&&t>0&&je(o)?(r.w=i/t*o,r.w2=o):a&&(r.w=i*uN,r.w2=r.w*t/i)}var ew=[0,1],pN=(function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this.scale;return e=i.normalize(i.parse(e)),It(e,ew,tw(this),t)},r.prototype.coordToData=function(e,t){var i=It(e,tw(this),ew,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=q1(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=B(i.ticks,function(s){return{coord:this.dataToCoord(Li(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=hN(this,n,a);return B(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(ct(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=B(i,function(a){return B(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||jo(qt.determine),X1(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Zt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||jo(qt.determine),Q1(this,e)},r})();function tw(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],i=t/r.scale.count()/2;e[0]+=i,e[1]-=i}return e}function hN(r,e,t){var i=e.length;if(!r.onBand||t||!i)return!1;var n=Zt(r).w;if(!n)return!1;T(e,function(s){s.coord-=n/2});var a=r.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var rw=pN;var c6=Math.PI*2,p6=Lt.CMD;function iw(r,e,t,i,n,a,o,s){var l=n-r,u=a-e,f=t-r,c=i-e,p=Math.sqrt(f*f+c*c);f/=p,c/=p;var h=l*f+u*c,v=h/p;s&&(v=Math.min(Math.max(v,0),1)),v*=p;var d=o[0]=r+v*f,m=o[1]=e+v*c;return Math.sqrt((d-n)*(d-n)+(m-a)*(m-a))}var _n=new se,Ye=new se,xt=new se,xn=new se,ai=new se;var Kc=[],Bt=new se;function nw(r,e){if(e<=180&&e>0){e=e/180*Math.PI,_n.fromArray(r[0]),Ye.fromArray(r[1]),xt.fromArray(r[2]),se.sub(xn,_n,Ye),se.sub(ai,xt,Ye);var t=xn.len(),i=ai.len();if(!(t<.001||i<.001)){xn.scale(1/t),ai.scale(1/i);var n=xn.dot(ai),a=Math.cos(e);if(a<n){var o=iw(Ye.x,Ye.y,xt.x,xt.y,_n.x,_n.y,Kc,!1);Bt.fromArray(Kc),Bt.scaleAndAdd(ai,o/Math.tan(Math.PI-e));var s=xt.x!==Ye.x?(Bt.x-Ye.x)/(xt.x-Ye.x):(Bt.y-Ye.y)/(xt.y-Ye.y);if(isNaN(s))return;s<0?se.copy(Bt,Ye):s>1&&se.copy(Bt,xt),Bt.toArray(r[1])}}}}function aw(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,_n.fromArray(r[0]),Ye.fromArray(r[1]),xt.fromArray(r[2]),se.sub(xn,Ye,_n),se.sub(ai,xt,Ye);var i=xn.len(),n=ai.len();if(!(i<.001||n<.001)){xn.scale(1/i),ai.scale(1/n);var a=xn.dot(e),o=Math.cos(t);if(a<o){var s=iw(Ye.x,Ye.y,xt.x,xt.y,_n.x,_n.y,Kc,!1);Bt.fromArray(Kc);var l=Math.PI/2,u=Math.acos(ai.dot(e)),f=l+u-t;if(f>=l)se.copy(Bt,xt);else{Bt.scaleAndAdd(ai,s/Math.tan(Math.PI/2-f));var c=xt.x!==Ye.x?(Bt.x-Ye.x)/(xt.x-Ye.x):(Bt.y-Ye.y)/(xt.y-Ye.y);if(isNaN(c))return;c<0?se.copy(Bt,Ye):c>1&&se.copy(Bt,xt)}Bt.toArray(r[1])}}}}function bm(r,e,t,i){var n=t==="normal",a=n?r:r.ensureState(t);a.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function vN(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var n=us(i[0],i[1]),a=us(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*t,s=au([],i[1],i[0],o/n),l=au([],i[1],i[2],o/a),u=au([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function ow(r,e,t){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=n.ignore,l=0;l<ho.length;l++){var u=ho[l],f=e[u],c=u==="normal";if(f){var p=f.get("show"),h=c?s:q(n.states[u]&&n.states[u].ignore,s);if(h||!q(p,o)){var v=c?i:i&&i.states[u];v&&(v.ignore=!0),i&&bm(i,!0,u,f);continue}i||(i=new ia,r.setTextGuideLine(i),!c&&(s||!o)&&bm(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),bm(i,!1,u,f)}}if(i){oe(i.style,t),i.style.fill=null;var d=a.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=vN}}function sw(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<Pt.length;i++){var n=Pt[i];t[n]=r.getModel([n,e])}return t}var lw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],dN=1,jc=2,fw=dN|jc;function Il(r,e,t){t=t||fw,e?r.dirty|=t:r.dirty&=~t}function cw(r,e){return e=e||fw,r.dirty==null||!!(r.dirty&e)}function Rr(r){if(r)return cw(r)&&wm(r,r.label,r),r}function wm(r,e,t){var i=e.getComputedTransform();r.transform=gf(r.transform,i);var n=r.localRect=To(r.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=ua.textMargin);for(var c=0;c<4;c++)Tm[c]=f===ua.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ua.textMargin&&So(n,Tm,!1,!1);var p=r.rect=To(r.rect,n);return i&&p.applyTransform(i),f===ua.minMargin&&So(p,Tm,!1,!1),r.axisAligned=mf(i),(r.label=r.label||{}).ignore=e.ignore,Il(r,!1),Il(r,!0,jc),r}var Tm=[0,0,0,0];function pw(r,e,t){return r.transform=gf(r.transform,t),r.localRect=To(r.localRect,e),r.rect=To(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=mf(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function hw(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var i=r.rect;i&&(i.x+=e.x,i.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function Cm(r,e){for(var t=0;t<lw.length;t++){var i=lw[t];r[i]==null&&(r[i]=e[i])}return Rr(r)}function uw(r){var e=r.obb;return(!e||cw(r,jc))&&(r.obb=e=e||new hf,e.fromBoundingRect(r.localRect,r.transform),Il(r,!1,jc)),e}function vw(r,e,t,i,n){var a=r.length,o=ti[e],s=on[e];if(a<2)return!1;r.sort(function(C,E){return C.rect[o]-E.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=r[p],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0);var d=Math.max(-u,0);c+=d,l=v[o]+v[s]}c>0&&n&&S(-c/a,0,a);var m=r[0],g=r[a-1],y,_;x(),y<0&&w(-y,.8),_<0&&w(_,.8),x(),b(y,_,1),b(_,y,-1),x(),y<0&&A(-y),_<0&&A(_);function x(){y=m.rect[o]-t,_=i-g.rect[o]-g.rect[s]}function b(C,E,D){if(C<0){var I=Math.min(E,-C);if(I>0){S(I*D,0,a);var M=I+C;M<0&&w(-M*D,1)}else w(-C*D,1)}}function S(C,E,D){C!==0&&(f=!0);for(var I=E;I<D;I++){var M=r[I],L=M.rect;L[o]+=C,M.label[o]+=C}}function w(C,E){for(var D=[],I=0,M=1;M<a;M++){var L=r[M-1].rect,O=Math.max(r[M].rect[o]-L[o]-L[s],0);D.push(O),I+=O}if(I){var P=Math.min(Math.abs(C)/I,E);if(C>0)for(var M=0;M<a-1;M++){var F=D[M]*P;S(F,0,M+1)}else for(var M=a-1;M>0;M--){var F=D[M-1]*P;S(-F,M,a)}}}function A(C){var E=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(a-1)),I=0;I<a-1;I++)if(E>0?S(D,0,I+1):S(-D,a-I-1,a),C-=D,C<=0)return}return f}function dw(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<r.length;i++){var n=Rr(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if($c(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(a),o&&t(o)):e.push(n)}}}function $c(r,e,t,i){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,i)?!1:r.axisAligned&&e.axisAligned?!0:uw(r).intersect(uw(e),t,i)}var mN=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(0)var i;return gn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new _e,n=At("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(n),n.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=At(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=G.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(Nt),mw=mN;function $o(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var n=Ai(r,e,t[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<t.length;o++)a.push(Ai(r,e,t[o]));return a.join(" ")}}function Qc(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!R(e))return e+"";for(var i=[],n=0;n<t.length;n++){var a=r.getDimensionIndex(t[n]);a>=0&&i.push(e[a])}return i.join(" ")}var gN=(function(r){z(e,r);function e(t,i,n,a){var o=r.call(this)||this;return o.updateData(t,i,n,a),o}return e.prototype._createSymbol=function(t,i,n,a,o,s){this.removeAll();var l=At(t,-1,-1,2,2,null,s);l.attr({z2:q(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=yN,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Jn(this.childAt(0))},e.prototype.downplay=function(){ea(this.childAt(0))},e.prototype.setZ=function(t,i){var n=this.childAt(0);n.zlevel=t,n.z=i},e.prototype.setDraggable=function(t,i){var n=this.childAt(0);n.draggable=t,n.cursor=!i&&t?"move":n.cursor},e.prototype.updateData=function(t,i,n,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=e.getSymbolZ2(t,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):Be(h,v,s,i),xo(h)}if(this._updateCommon(t,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ut(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,n,a,o){var s=this.childAt(0),l=t.hostModel,u,f,c,p,h,v,d,m,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,m=a.hoverScale,g=a.cursorStyle,v=a.emphasisDisabled),!a||t.hasItemOption){var y=a&&a.itemModel?a.itemModel:t.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=rr(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=hc(t.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(i,"style"),w=S.fill;if(s instanceof bt){var A=s.style;s.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},S))}else s.__isEmptyBrush?s.useStyle(N({},S)):s.useStyle(S),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(i,"liftZ"),E=this._z2;C!=null?E==null&&(this._z2=s.z2,s.z2+=C):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;mr(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:w,defaultOpacity:S.opacity});function I(O){return D?t.getName(O):$o(t,O)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Ar(this,p,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,n){var a=this.childAt(0),o=ce(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&_o(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();_o(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Gb(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e})(_e);function yN(r,e){this.parent.drift(r,e)}var Ll=gN;function Jc(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(t))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function gw(r){return r!=null&&!V(r)&&(r={isIgnore:r}),r||{}}function yw(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:rr(e),cursorStyle:e.get("cursor")}}function _w(r,e,t,i,n,a,o){var s=new r(e,t,i,n);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var _N=(function(){function r(e){this.group=new _e,this._SymbolCtor=e||Ll}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=gw(t);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=yw(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);Jc(e,p,c,t)&&_w(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!Jc(e,v,c,t)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):Be(h,g,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var i=this,n=t.getStore(),a=0,o=n.count();a<o;a++){var s=t.getItemGraphicEl(a),l=i._getSymbolPoint(a);Jc(t,l,a,e)?(s=s||_w(i._SymbolCtor,t,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),t.setItemGraphicEl(a,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=yw(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,n){this._progressiveEls=[],n=gw(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=sa)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(Jc(t,s,o,n)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){Si(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},i.hostModel)}):t.removeAll()},r})(),xw=_N;function ep(r,e,t){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=xN(n,t),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=B(r.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return Mi(e,c[0])&&(p=!0,c[0]=h),Mi(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function xN(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:ue(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function tp(r,e,t,i){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Kt(r,e){return!isFinite(r)||!isFinite(e)}var SN=typeof Float32Array!==rn?Float32Array:void 0,Sw=typeof Float64Array!==rn?Float64Array:void 0;function or(r){return rp({ctor:SN},r).arr}function rp(r,e){var t=r.arr,i=r.ctor;if(e>Ph&&(e=Ph),!t||r.typed&&t.length<e){var n=void 0;if(i)try{n=new i(e),r.typed=!0,t&&n.set(t)}catch{}if(!n&&(n=[],r.typed=!1,t))for(var a=0,o=t.length;a<o;a++)n[a]=t[a];r.arr=n}return r}function bN(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,n){t.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Am(r,e,t,i,n,a,o,s){for(var l=bN(r,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],m=ep(n,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,S=void 0,w=void 0;switch(x.cmd){case"=":S=x.idx*2,w=x.idx1*2;var A=g[S],C=g[S+1],E=y[w],D=y[w+1];(isNaN(A)||isNaN(C))&&(A=E,C=D),u.push(A,C),f.push(E,D),c.push(t[S],t[S+1]),p.push(i[w],i[w+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,M=m.dataDimsForPoint,L=n.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);w=I*2,u.push(L[0],L[1]),f.push(y[w],y[w+1]);var O=tp(m,n,e,I);c.push(O[0],O[1]),p.push(i[w],i[w+1]),d.push(e.getRawIndex(I));break;case"-":b=!1}b&&(h.push(x),v.push(v.length))}v.sort(function(ve,xe){return d[ve]-d[xe]});for(var P=u.length,F=or(P),k=or(P),H=or(P),W=or(P),Y=[],_=0;_<v.length;_++){var $=v[_],J=_*2,Q=$*2;F[J]=u[Q],F[J+1]=u[Q+1],k[J]=f[Q],k[J+1]=f[Q+1],H[J]=c[Q],H[J+1]=c[Q+1],W[J]=p[Q],W[J+1]=p[Q+1],Y[_]=h[$]}return{current:F,next:k,stackedOnCurrent:H,stackedOnNext:W,status:Y}}var Sn=Math.min,bn=Math.max;function Em(r,e,t,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=t,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Kt(g,y)){if(l){d+=a;continue}break}if(d===t)r[a>0?"moveTo":"lineTo"](g,y),c=g,p=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var b=d+a,S=e[b*2],w=e[b*2+1];S===g&&w===y&&m<i;)m++,b+=a,d+=a,S=e[b*2],w=e[b*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)for(;Kt(S,w)&&A<i;)A++,b+=a,S=e[b*2],w=e[b*2+1];var C=.5,E=0,D=0,I=void 0,M=void 0;if(A>=i||Kt(S,w))h=g,v=y;else{E=S-u,D=w-f;var L=g-u,O=S-g,P=y-f,F=w-y,k=void 0,H=void 0;if(s==="x"){k=Math.abs(L),H=Math.abs(O);var W=E>0?1:-1;h=g-W*k*o,v=y,I=g+W*H*o,M=y}else if(s==="y"){k=Math.abs(P),H=Math.abs(F);var Y=D>0?1:-1;h=g,v=y-Y*k*o,I=g,M=y+Y*H*o}else k=Math.sqrt(L*L+P*P),H=Math.sqrt(O*O+F*F),C=H/(H+k),h=g-E*o*(1-C),v=y-D*o*(1-C),I=g+E*o*C,M=y+D*o*C,I=Sn(I,bn(S,g)),M=Sn(M,bn(w,y)),I=bn(I,Sn(S,g)),M=bn(M,Sn(w,y)),E=I-g,D=M-y,h=g-E*k/H,v=y-D*k/H,h=Sn(h,bn(u,g)),v=Sn(v,bn(f,y)),h=bn(h,Sn(u,g)),v=bn(v,Sn(f,y)),E=g-h,D=y-v,I=g+E*H/k,M=y+D*H/k}r.bezierCurveTo(c,p,h,v,g,y),c=I,p=M}else r.lineTo(g,y)}u=g,f=y,d+=a}return m}var bw=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),Tw=(function(r){z(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new bw},e.prototype.buildPath=function(t,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Kt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Kt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Em(t,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=Lt.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(t-s)/(h-s):(t-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[t,x]:[x,t]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],m=a[c++],g=a[c++],y=a[c++];var b=u?kn(s,h,d,g,t,f):kn(l,v,m,y,t,f);if(b>0)for(var S=0;S<b;S++){var w=f[S];if(w<=1&&w>=0){var x=u?Ne(l,v,m,y,w):Ne(s,h,d,g,w);return u?[t,x]:[x,t]}}s=g,l=y;break}}},e})(le);var TN=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(bw),ww=(function(r){z(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new TN},e.prototype.buildPath=function(t,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Kt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Kt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Em(t,n,o,s,s,1,i.smooth,l,i.connectNulls);Em(t,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e})(le);function Dm(r,e,t,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new de({shape:{x:o,y:s,width:l,height:u}});if(e){var p=r.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=K(n)?function(m){n(m,c)}:null;ut(c,{shape:{width:l,height:u,x:o,y:s}},t,null,i,d)}return c}function Mm(r,e,t){var i=r.getArea(),n=ye(i.r0,1),a=ye(i.r,1),o=new Dr({shape:{cx:ye(r.cx,1),cy:ye(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,ut(o,{shape:{endAngle:i.endAngle,r:a}},t)}return o}function Cw(r,e,t,i,n){if(r){if(r.type==="polar")return Mm(r,e,t);if(r.type==="cartesian2d")return Dm(r,e,t,i,n)}else return null;return null}function La(r,e){return r.type===e}function Im(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function Aw(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Ew(r){for(var e=gt(),t=gt(),i=0;i<r.length;){var n=r[i++],a=r[i++];Kt(n,a)||(Ps(e,n),Ps(t,a))}return[e,t]}function Dw(r,e){var t=Ew(r),i=t[0],n=t[1],a=Ew(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function Mw(r){return ue(r)?r:r?.5:0}function wN(r,e,t){if(t.valueDim==null)return[];for(var i=e.count(),n=or(i*2),a=0;a<i;a++){var o=tp(t,r,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function Tn(r,e,t,i,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<r.length;l+=2){var h=e||r;Kt(h[l],h[l+1])||p.push(r[l],r[l+1])}r=p}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function CN(r,e){var t=[],i=r.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=Fy(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){a?t.push(o(a,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),a=l}return t}function AN(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=B(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=CN(u,n==="x"?t.getWidth():t.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,m=p[h-1].coord+v,g=m-d;if(g<.001)return"transparent";T(p,function(_){_.offset=(_.coord-d)/g}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new go(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=m,y}}}function EN(r,e,t){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(n&&DN(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){l.tick.offInterval||(s[Li(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function DN(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Ll.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function MN(r){for(var e=r.length/2;e>0&&Kt(r[e*2-2],r[e*2-1]);e--);return e-1}function Iw(r,e){return[r[e*2],r[e*2+1]]}function IN(r,e,t){for(var i=r.length/2,n=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!Kt(o,r[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Lw(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Pt.length;e++)if(r.get([Pt[e],"endLabel","show"]))return!0;return!1}function Lm(r,e,t,i){if(La(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=Lw(i)?function(h,v){r._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Dm(e,t,i,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return Mm(e,t,i)}function LN(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),n=t.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var ON=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new _e,i=new xw;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=ee(this._changePolyState,this)},e.prototype.render=function(t,i,n){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=ep(a,s,_),b=y&&wN(a,s,x),S=t.get("showSymbol"),w=t.get("connectNulls"),A=S&&!c&&EN(t,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Ae,ke){Ae.__temp&&(o.remove(Ae),C.setItemGraphicEl(ke,null))}),S||h.remove(),o.add(m);var E=c?!1:t.get("step"),D;a&&a.getArea&&t.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=AN(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&E===this._step))S&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(b&&(b=Tn(b,f,a,E,w)),f=Tn(f,null,a,E,w)),v=this._newPolyline(f),y?d=this._newPolygon(f,b):d&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,Lr(I)),m.setClipPath(Lm(this,a,!0,t));else{y&&!d?d=this._newPolygon(f,b):d&&!y&&(m.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(t,a,Lr(I));var M=m.getClipPath();if(M){var L=Lm(this,a,!1,t);ut(M,{shape:L.shape},t)}else m.setClipPath(Lm(this,a,!0,t));S&&h.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),(!Aw(this._stackedOnPoints,b)||!Aw(this._points,f))&&(g?this._doUpdateAnimation(s,b,a,n,E,_,w):(E&&(b&&(b=Tn(b,f,a,E,w)),f=Tn(f,null,a,E,w)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:b})))}var O=t.getModel("emphasis"),P=O.get("focus"),F=O.get("blurScope"),k=O.get("disabled");if(v.useStyle(oe(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),ta(v,t,"lineStyle"),v.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var H=v.getState("emphasis").style;H.lineWidth=+v.style.lineWidth+1}ce(v).seriesIndex=t.seriesIndex,Ar(v,P,F,k);var W=Mw(t.get("smooth")),Y=t.get("smoothMonotone");if(v.setShape({smooth:W,smoothMonotone:Y,connectNulls:w}),d){var $=s.getCalculationInfo("stackedOnSeries"),J=0;d.useStyle(oe(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(J=Mw($.get("smooth"))),d.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:Y,connectNulls:w}),ta(d,t,"areaStyle"),ce(d).seriesIndex=t.seriesIndex,Ar(d,P,F,k)}var Q=this._changePolyState;s.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=E,this._valueOrigin=_;var ve=t.get("triggerEvent"),xe=t.get("triggerLineEvent"),Ze=xe===!0||ve===!0||ve==="line",at=xe===!0||ve===!0||ve==="area";this.packEventData(t,v,Ze),d&&this.packEventData(t,d,at)},e.prototype.packEventData=function(t,i,n){ce(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,i,n,a){var o=t.getData(),s=pr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Kt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=t.get("zlevel")||0,h=t.get("z")||0;u=new Ll(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else yt.prototype.highlight.call(this,t,i,n,a)},e.prototype.downplay=function(t,i,n,a){var o=t.getData(),s=pr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else yt.prototype.downplay.call(this,t,i,n,a)},e.prototype._changePolyState=function(t){var i=this._polygon;xv(this._polyline,t),i&&xv(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new Tw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ww({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=K(c)?c(null):c;t.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,b=i.pointToCoord(m);a?(g=x.startAngle,y=x.endAngle,_=-b[1]/180*Math.PI):(g=x.r0,y=x.r,_=b[0])}else{var S=n;a?(g=S.x,y=S.x+S.width,_=h.x):(g=S.y+S.height,y=S.y,_=h.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var A=K(c)?c(v):f*w+p,C=d.getSymbolPath(),E=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,n){var a=t.getModel("endLabel");if(Lw(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new be({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=MN(l);f>=0&&(mr(s,rr(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?Qc(o,h):$o(o,c)},enableTextSetter:!0},LN(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?d:0)*(y?-1:1),S=(g?0:-d)*(y?-1:1),w=g?"x":"y",A=IN(c,x,w),C=A.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!h){var I=Iw(c,C[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(D=p.getRawValue(C[0]))}else{var I=f.getPointOn(x,w);I&&u.attr({x:I[0]+b,y:I[1]+S});var M=p.getRawValue(C[0]),L=p.getRawValue(C[1]);o&&(D=Hh(n,v,M,L,A.t))}a.lastFrameIndex=C[0]}else{var O=t===1||a.lastFrameIndex>0?C[0]:0,I=Iw(c,O);o&&(D=p.getRawValue(O)),u.attr({x:I[0]+b,y:I[1]+S})}if(o){var P=wo(u);typeof P.setLabelText=="function"&&P.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,p=Am(this._data,t,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,m=p.stackedOnNext;if(o&&(v=Tn(p.stackedOnCurrent,p.current,n,o,l),h=Tn(p.current,null,n,o,l),m=Tn(p.stackedOnNext,p.next,n,o,l),d=Tn(p.next,null,n,o,l)),Dw(h,d)>3e3||f&&Dw(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=h;var g={shape:{points:d}};p.current!==h&&(g.shape.__points=p.next),u.stopAnimation(),Be(u,g,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),Be(f,{shape:{stackedOnPoints:m}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var S=t.getItemGraphicEl(_[x].idx1);S&&y.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,E=y[A].ptIdx*2;C.x=w[E],C.y=w[E+1],C.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(yt),Ow=ON;function Om(r,e){return{seriesType:r,plan:ba(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(n){var s=B(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Mi(i,s[0])&&(s[0]=u),Mi(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&or(d*l),g=[],y=[],_=h.start,x=0;_<h.end;_++){var b=void 0;if(l===1){var S=f.get(c,_);b=n.dataToPoint(S,null,y)}else g[0]=f.get(c,_),g[1]=f.get(p,_),b=n.dataToPoint(g,null,y);o?(m[x++]=b[0],m[x++]=b[1]):v.setItemLayout(_,b.slice())}o&&(v.setLayout("points",m),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var PN={average:function(r){for(var e=0,t=0,i=0;i<r.length;i++)isNaN(r[i])||(e+=r[i],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},RN=function(r){return Math.round(r.length/2)};function Ol(r){return{seriesType:r,reset:function(e,t,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;U(a)?v=PN[a]:K(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,RN))}}}}}function Pm(r){r.registerChartView(Ow),r.registerSeriesModel(mw),r.registerLayout(Om("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Ol("line"))}var NN=(function(r){z(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(rw),Pw=NN;var kN=null;function Oa(){return kN}var Rw="expandAxisBreak";var wn=Math.PI,zN=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],BN=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Cn=ne(),zw=ne(),Nm=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[t]||(n[t]=[]);return a[i]||(a[i]={ready:{}})},r})();function UN(r,e,t,i){var n=t.axis,a=e.ensureRecord(t),o=[],s,l=Bm(r.axisName)&&yn(r.nameLocation);T(i,function(v){var d=Rr(v);if(!(!d||d.label.ignore)){o.push(d);var m=a.transGroup;l&&(m.transform?zr(Pl,m.transform):fi(Pl),d.transform&&Gi(Pl,Pl,d.transform),re.copy(ip,d.localRect),ip.applyTransform(Pl),s?s.union(ip):re.copy(s=new re(0,0,0,0),ip))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new re(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Pl=Mt(),ip=new re(0,0,0,0),km=function(r,e,t,i,n,a){if(yn(r.nameLocation)){var o=a.stOccupiedRect;o&&Bw(pw({},o,a.transGroup.transform),i,n)}else zm(a.labelInfoList,a.dirVec,i,n)};function Bw(r,e,t){var i=new se;$c(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&hw(e,i)}function zm(r,e,t,i){for(var n=se.dot(i,e)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||Bw(s,t,i)}}var Pa=(function(){function r(e,t,i,n){this.group=new _e,this._axisModel=e,this._api=t,this._local={},this._shared=n||new Nm(km),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(e){if(0)var t;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,i=t.getDefaultOption?t.getDefaultOption():{},n=q(e.axisName,t.get("name")),a=t.get("nameMoveOverlap");(a==null||a==="auto")&&(a=q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:q(e.nameDirection,1),tickDirection:q(e.tickDirection,1),labelDirection:q(e.labelDirection,1),labelOffset:q(e.labelOffset,0),silent:q(e.silent,!0),axisName:n,nameLocation:$t(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Bm(n)&&a,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new _e({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new se(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(VN,function(n){e[n]&&FN[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var n=Rh(t-e),a,o;return Es(n)?(o=i>0?"top":"bottom",a="center"):Es(n-wn)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<wn?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),VN=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],FN={axisLine:function(r,e,t,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(ht(c,c,f),ht(p,p,f));var v=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&pa(i.axis.scale))Oa().buildAxisBreakLine(i,n,a,d);else{var m=new Mr(N({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));la(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);U(g)&&(g=[g,g]),(U(y)||ue(y))&&(y=[y,y]);var _=hc(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],b=y[1];T([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var A=At(g[w],-x/2,-b/2,x,b,v.stroke,!0),C=S.r+S.offset,E=h?p:c;A.attr({rotation:S.rotate,x:E[0]+C*Math.cos(r.rotation),y:E[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),n.add(A)}})}}},axisTickLabelEstimate:function(r,e,t,i,n,a,o,s){if(0)var l;var u=kw(e,n,s);u&&Nw(r,e,t,i,n,a,o,qt.estimate)},axisTickLabelDetermine:function(r,e,t,i,n,a,o,s){if(0)var l;var u=kw(e,n,s);u&&Nw(r,e,t,i,n,a,o,qt.determine);var f=YN(r,n,a,i);WN(r,e.labelLayoutList,f),XN(r,n,a,i,r.tickDirection)},axisName:function(r,e,t,i,n,a,o,s){var l=t.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(Bm(f)){var c=r.nameLocation,p=r.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new se(0,0),y=new se(0,0);c==="start"?(g.x=d[0]-m*v,y.x=-m):c==="end"?(g.x=d[1]+m*v,y.x=m):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+p*v,y.y=p);var _=Mt();y.transform(Ya(_,_,r.rotation));var x=i.get("nameRotate");x!=null&&(x=x*wn/180);var b,S;yn(c)?b=Pa.innerTextLayout(r.rotation,x??r.rotation,p):(b=HN(r.rotation,c,x||0,d),S=r.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=h.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,E=Bi(r.raw.nameTruncateMaxWidth,A.maxWidth,S),D=s.nameMarginLevel||0,I=new be({x:g.x,y:g.y,rotation:b.rotation,silent:Pa.isLabelSilent(i),style:tt(h,{text:f,font:w,overflow:"truncate",width:E,ellipsis:C,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||b.textAlign,verticalAlign:h.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(bo({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var M=Pa.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,ce(I).eventData=M}a.add(I),I.updateTransform(),e.nameEl=I;var L=l.nameLayout=Rr({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:yn(c)?zN[D]:BN[D]});if(l.nameLocation=c,n.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&L){var O=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,L,y,O)}}}};function Nw(r,e,t,i,n,a,o,s){Vw(e)||qN(r,e,n,s,i,o);var l=e.labelLayoutList;ZN(r,i,l,a),$N(i,r.rotation,l);var u=r.optionHideOverlap;GN(i,l,u),u&&dw(Ve(l,function(f){return f&&!f.label.ignore})),UN(r,t,i,l)}function HN(r,e,t,i){var n=Rh(t-r),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return Es(n-wn/2)?(o=l?"bottom":"top",a="center"):Es(n-wn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<wn*1.5&&n>wn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function GN(r,e,t){var i=r.axis,n=r.get(["axisLabel","customValues"]);if(_1(i))return;function a(u,f,c){var p=Rr(e[f]),h=Rr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!t&&n)return;var d=Cn(p.label).labelInfo.tick;if(Xo(v)&&d.notNice||ct(v)&&d.offInterval){Qo(p.label);return}}if(u===!1||p.suggestIgnore){Qo(p.label);return}if(h.suggestIgnore){Qo(h.label);return}var m=.1;if(!t){var g=[0,0,0,0];p=Cm({marginForce:g},p),h=Cm({marginForce:g},h)}$c(p,h,null,{touchThreshold:m})&&Qo(u?h.label:p.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function WN(r,e,t){r.showMinorTicks||T(e,function(i){if(i&&i.label.ignore)for(var n=0;n<t.length;n++){var a=t[n],o=zw(a),s=Cn(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Qo(a);return}}})}function Qo(r){r&&(r.ignore=!0)}function Uw(r,e,t,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ht(o,o,e),ht(s,s,e));var f=new Mr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});la(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f);var c=zw(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return a}function YN(r,e,t,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=n.getTicksCoords(),f=Uw(u,t.transform,l,oe(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function XN(r,e,t,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=oe(l.getLineStyle(),oe(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=Uw(s[c],t.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function kw(r,e,t){if(Vw(r)){var i=r.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(t.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(r.labelGroup),Rm(r,null,null,null))}return!0}function qN(r,e,t,i,n,a){var o=n.axis,s=Bi(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new _e;t.add(l);var u=jo(i);if(!s||o.scale.isBlank()){Rm(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(Bi(r.raw.labelRotate,f.get("rotate"))||0)*wn/180,h=Pa.innerTextLayout(r.rotation,p,r.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],m=n.get("triggerEvent"),g=1/0,y=-1/0;T(c,function(x,b){var S,w=x.tick,A=x.formattedLabel,C=x.rawLabel,E=f,D=Li(o.scale,w);if(v&&v[D]){var I=v[D];V(I)&&I.textStyle&&(E=new De(I.textStyle,f,n.ecModel))}var M=E.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=E.getShallow("align",!0)||h.textAlign,O=q(E.getShallow("alignMinLabel",!0),L),P=q(E.getShallow("alignMaxLabel",!0),L),F=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||h.textVerticalAlign,k=q(E.getShallow("verticalAlignMinLabel",!0),F),H=q(E.getShallow("verticalAlignMaxLabel",!0),F),W=10+(((S=w.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,W),y=Math.max(y,W);var Y=new be({x:0,y:0,rotation:0,silent:Pa.isLabelSilent(n),z2:W,style:tt(E,{text:A,align:b===0?O:b===c.length-1?P:L,verticalAlign:b===0?k:b===c.length-1?H:F,fill:K(M)?M(o.type==="category"?C:o.type==="value"?D+"":D,b):M})});Y.anid="label_"+D;var $=Cn(Y);if($.labelInfo=x,$.layoutRotation=h.rotation,bo({el:Y,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return Y.isTruncated},value:C,tickIndex:b}}),m){var J=Pa.makeAxisEventDataBase(n);J.targetType="axisLabel",J.value=C,J.tickIndex=b;var Q=x.tick.break;if(Q){var ve=Q.parsedBreak;J.break={start:ve.vmin,end:ve.vmax}}o.type==="category"&&(J.dataIndex=D),ce(Y).eventData=J,Q&&jN(n,a,Y,Q)}d.push(Y),l.add(Y)});var _=B(d,function(x){return{label:x,priority:Cn(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Rm(e,_,l,u)}function Vw(r){return!!r.labelLayoutList}function Rm(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function ZN(r,e,t,i){var n=e.get(["axisLabel","margin"]);T(t,function(a,o){var s=Rr(a);if(s){var l=s.label,u=Cn(l);s.suggestIgnore=l.ignore,l.ignore=!1,eo(Oi,KN);var f=e.axis;Oi.x=f.dataToCoord(Li(f.scale,u.labelInfo.tick)),Oi.y=r.labelOffset+r.labelDirection*n,Oi.rotation=u.layoutRotation,i.add(Oi),Oi.updateTransform(),i.remove(Oi),Oi.decomposeTransform(),eo(l,Oi),l.markRedraw(),Il(s,!0),Rr(s)}})}var Oi=new de,KN=new de;function Bm(r){return!!r}function jN(r,e,t,i){t.on("click",function(n){var a={type:Rw,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(a)})}function $N(r,e,t){var i=Ue();if(i){var n=i.retrieveAxisBreakPairs(t,function(o){return o&&Cn(o.label).labelInfo.tick.break},!0),a=r.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&T(n,function(o){Oa().adjustBreakLabelPair(r.axis.inverse,e,[Rr(t[o[0]]),Rr(t[o[1]])])})}}var np=Pa;function Rl(r,e,t){t=t||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Bi(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function Fw(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Hw(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,mt).models[0];e[i]=a}),e}function Gw(r,e,t,i,n,a){for(var o=Rl(r,t),s=!1,l=!1,u=0;u<e.length;u++)Oc(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new np(t,i,o,n)}function Ww(r,e,t){var i=Rl(e,t);if(0)var n;r.updateCfg(i)}function Yw(){L1("liPosMinGap",JN)}function JN(r,e,t){var i=X(),n=t.serUids,a=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=Jf(f);function p(_){Xc(r,e.sers,function(x){var b=x.getRawData(),S=b.getDimensionIndex(b.mapDimension(s.dim));S>=0&&_(S,x,b.getStore())})}var h=0;if(p(function(_,x,b){i.set(x.uid,1),(!n||!n.hasKey(x.uid))&&(o=!0),h+=b.count()}),(!n||n.keys().length!==i.keys().length)&&(o=!0),!o&&a!=null){e.liPosMinGap=a;return}rp(Ra,h);var v=0;p(function(_,x,b){for(var S=0,w=b.count();S<w;++S){var A=b.get(_,S);isFinite(A)&&(!f||ec(c,A))&&(u&&(A=l.transformIn(A,null)),Ra.arr[v++]=A)}});var d=Ra.typed?Ra.arr.subarray(0,v):(Ra.arr.length=v,Ra.arr);Ra.typed?d.sort():Fr(d);for(var m=1/0,g=1;g<v;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}t.liPosMinGap=e.liPosMinGap=je(m)?m:v>0?Yc:T1,t.serUids=i}var Ra=rp({ctor:Sw},50);function Xw(r){return function(e,t){var i=Zt(e,{fromStat:{key:r}});if(je(i.w2))return[-i.w2/2,i.w2/2]}}function Nl(r,e){return r+Wc+e}function qw(r){return Yw(),{liPosMinGap:!ct(r.scale)}}var Pi="bar";function Zw(r,e,t,i){P1(r,{key:e,seriesType:t,coordSysType:i,getMetrics:qw})}function Kw(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Um={left:0,right:0,top:0,bottom:0},kl=["25%","25%"],_r="cartesian2d",e2=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var n=ii(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&nr(t.outerBounds,n)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&nr(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Um,outerBoundsContain:"all",outerBoundsClampWidth:kl[0],outerBoundsClampHeight:kl[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},e})(Te),jw=e2;var t2=zu(),r2="__ec_stack_";function $w(r){return r.get("stack")||r2+r.seriesIndex}function i2(r,e){var t=n2(r,e);return t.columnMap=a2(t),t}function n2(r,e){var t=Nl(e,_r),i=[],n=Zt(r,{fromStat:{key:t},min:1});return mm(r,t,function(a){i.push({barWidth:Ee(a.get("barWidth"),n.w),barMaxWidth:Ee(a.get("barMaxWidth"),n.w),barMinWidth:Ee(a.get("barMinWidth")||(eC(a)?.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:$w(a)})}),{bandWidthResult:n,seriesInfo:i}}function a2(r){var e=r.bandWidthResult.w,t=e,i=0,n,a,o=[],s={};T(r.seriesInfo,function(d,m){m||(a=d.defaultBarGap||0);var g=d.stackId;Me(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=ze(t,_),t-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var b=d.barMinWidth;b&&(y.minWidth=b);var S=d.barGap;S!=null&&(a=S);var w=d.barCategoryGap;w!=null&&(n=w)}),n==null&&(n=ge(35-o.length*4,15)+"%");var l=Ee(n,e),u=Ee(a,1),f=(t-l)/(i+(i-1)*u);f=ge(f,0),T(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=ze(_,g)),y&&(_=ge(_,y)),m.width=_,t-=_+u*_,i--}else{var _=f;g&&g<_&&(_=ze(g,t)),y&&y>_&&(_=y),_!==f&&(m.width=_,t-=_+u*_,i--)}}),f=(t-l)/(i+(i-1)*u),f=ge(f,0);var c=0,p;T(o,function(d){var m=s[d];m.width||(m.width=f),p=m,c+=m.width*(1+u)}),p&&(c-=p.width*u);var h={},v=-c/2;return T(o,function(d){var m=s[d];h[d]=h[d]||{bandWidth:e,offset:v,width:m.width},v+=m.width*(1+u)}),h}function Qw(r){return{seriesType:r,overallReset:function(e){var t=Nl(r,_r);I1(e,t,function(i){var n=i2(i,r);mm(i,t,function(a){var o=n.columnMap[$w(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Jw(r){return{seriesType:r,plan:ba(),reset:function(e){if(Fw(e)){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),c=Mi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(Kw(a))),v=eC(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,x){for(var b=_.count,S=v&&or(b*3),w=v&&l&&or(b*3),A=v&&or(b),C=i.master.getRect(),E=p?C.width:C.height,D,I=x.getStore(),M=0;(D=_.next())!=null;){var L=I.get(c?m:o,D),O=I.get(s,D),P=h,F=void 0;c&&(F=+L-I.get(o,D));var k=void 0,H=void 0,W=void 0,Y=void 0;if(p){var $=i.dataToPoint([L,O]);c&&(P=i.dataToPoint([F,O])[0]),k=P,H=$[1]+y,W=$[0]-P,Y=g,Oe(W)<d&&(W=(W<0?-1:1)*d)}else{var $=i.dataToPoint([O,L]);c&&(P=i.dataToPoint([O,F])[1]),k=$[0]+y,H=P,W=g,Y=$[1]-P,Oe(Y)<d&&(Y=(Y<=0?-1:1)*d)}v?(S[M]=k,S[M+1]=H,S[M+2]=p?W:Y,w&&(w[M]=p?C.x:k,w[M+1]=p?H:C.y,w[M+2]=E),A[D]=D):x.setItemLayout(D,{x:k,y:H,width:W,height:Y}),M+=3}v&&x.setLayout({largePoints:S,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:p})}}}}}}function eC(r){return r.pipelineContext&&r.pipelineContext.large}function o2(r){return Xw(Nl(r,_r))}function tC(r){t2(r,function(){function e(t){var i=Nl(t,_r);Zw(r,i,t,_r),H1(i,o2(t))}e("bar"),e("pictorialBar")})}var rC=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return gn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(n)T(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),d=p.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,b=0;b<v.length;b++){var S=v[b].coord,w=b===v.length-1?v[b-1].tickValue+x:v[b].tickValue;if(w===m){_=S;break}else if(w<m)y=S;else if(y!=null&&w>m){_=(S+y)/2;break}b===1&&(x=w-v[0].tickValue)}_==null&&(y?y&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Nt);Nt.registerClass(rC);var Vm=rC;var s2=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return gn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,i){var n=Uu(this,t,i);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,i,n){return n.rect(i.getItemLayout(t))},e.type="series."+Pi,e.dependencies=["grid","polar"],e.defaultOption=un(Vm.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:G.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Vm),iC=s2;var l2=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),u2=(function(r){z(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new l2},e.prototype.buildPath=function(t,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,c=i.endAngle,p=i.clockwise,h=Math.PI*2,v=p?c-f<h:f-c<h;v||(f=c-(p?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(c),y=Math.sin(c);v?(t.moveTo(d*o+n,m*o+a),t.arc(d*u+n,m*u+a,l,-Math.PI+f,f,!p)):t.moveTo(d*s+n,m*s+a),t.arc(n,a,s,f,c,!p),t.arc(g*u+n,y*u+a,l,c-Math.PI*2,c-Math.PI,!p),o!==0&&t.arc(n,a,o,c,f,p)},e})(le),Fm=u2;function nC(r,e){e=e||{};var t=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Hn(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,p=u.r,h=u.r0,v=(p+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=t?Math.abs(p-h)/2:0,_=Math.cos,x=Math.sin,b=f+p*_(d),S=c+p*x(d),w="left",A="top";switch(s){case"startArc":b=f+(h-l)*_(g),S=c+(h-l)*x(g),w="center",A="top";break;case"insideStartArc":b=f+(h+l)*_(g),S=c+(h+l)*x(g),w="center",A="bottom";break;case"startAngle":b=f+v*_(d)+ap(d,l+y,!1),S=c+v*x(d)+op(d,l+y,!1),w="right",A="middle";break;case"insideStartAngle":b=f+v*_(d)+ap(d,-l+y,!1),S=c+v*x(d)+op(d,-l+y,!1),w="left",A="middle";break;case"middle":b=f+v*_(g),S=c+v*x(g),w="center",A="middle";break;case"endArc":b=f+(p+l)*_(g),S=c+(p+l)*x(g),w="center",A="bottom";break;case"insideEndArc":b=f+(p-l)*_(g),S=c+(p-l)*x(g),w="center",A="top";break;case"endAngle":b=f+v*_(m)+ap(m,l+y,!0),S=c+v*x(m)+op(m,l+y,!0),w="left",A="middle";break;case"insideEndAngle":b=f+v*_(m)+ap(m,-l+y,!0),S=c+v*x(m)+op(m,-l+y,!0),w="right",A="middle";break;default:return Hn(i,n,a)}return i=i||{},i.x=b,i.y=S,i.align=w,i.verticalAlign=A,i}}function aC(r,e,t,i){if(ue(i)){r.setTextConfig({rotation:i});return}else if(R(e)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function ap(r,e,t){return e*Math.sin(r)*(t?-1:1)}function op(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Na(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;R(i)||(i=[i,i,i,i]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(i,function(a){return Vt(a,n)})}}var Hm=Math.max,Gm=Math.min,f2=(function(r){z(e,r);function e(){var t=r.call(this)||this;return t.type=Pi,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,n,a){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,n):this._renderNormal(t,i,n,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Si(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,n,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var p=t.isAnimationEnabled()?t:null,h=c2(t,u);h&&this._enableRealtimeSort(h,s,n);var v=t.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],b=this._backgroundEls,S=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function A(D){var I=sp[u.type](s,D);if(!I)return null;var M=y2(u,c,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[D]=M,M}s.diff(l).add(function(D){var I=s.getItemModel(D),M=sp[u.type](s,D,I);if(M&&(g&&A(D),!(!s.hasValue(D)||!fC[u.type](M)))){var L=!1;v&&(L=oC[u.type](d,M));var O=sC[u.type](t,s,D,M,c,p,f.model,!1,m);h&&(O.forceLabelAnimation=!0),cC(O,s,D,I,M,t,c,u.type==="polar"),S?O.attr({shape:M}):h?lC(h,p,O,M,D,c,!1,!1):ut(O,{shape:M},t,D),s.setItemGraphicEl(D,O),o.add(O),O.ignore=L}}).update(function(D,I){var M=s.getItemModel(D),L=sp[u.type](s,D,M);if(L){if(g){var O=void 0;b.length===0?O=A(I):(O=b[I],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),x[D]=O);var P=sp[u.type](s,D),F=mC(c,P,u);Be(O,{shape:F},p,D)}var k=l.getItemGraphicEl(I);if(!s.hasValue(D)||!fC[u.type](L)){o.remove(k);return}var H=!1;v&&(H=oC[u.type](d,L),H&&o.remove(k));var W=k&&(k.type==="sector"&&m||k.type==="sausage"&&!m);if(W&&(k&&an(k,t,I),k=null),k?xo(k):k=sC[u.type](t,s,D,L,c,p,f.model,!0,m),h&&(k.forceLabelAnimation=!0),w){var Y=k.getTextContent();if(Y){var $=wo(Y);$.prevValue!=null&&($.prevValue=$.value)}}else cC(k,s,D,M,L,t,c,u.type==="polar");S?k.attr({shape:L}):h?lC(h,p,k,L,D,c,!0,w):Be(k,{shape:L},t,D,null),s.setItemGraphicEl(D,k),k.ignore=H,o.add(k)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&an(I,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new _e);C.removeAll();for(var E=0;E<x.length;++E)C.add(x[E]);o.add(C),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(t,i,n){this._clear(),hC(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),hC(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Cw(t.coordinateSystem,!1,t),n=this.group;i?n.setClipPath(i):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,n){var a=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,n){var a=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:B(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,n){for(var a=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,n,a){if(this._isOrderChangedWithinSameData(t,i,n)){var o=this._dataSort(t,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,n){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){an(a,t,ce(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Pi,e})(yt),oC={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,a=r.y+r.height,o=Hm(e.x,r.x),s=Gm(e.x+e.width,n),l=Hm(e.y,r.y),u=Gm(e.y+e.height,a),f=s<o,c=u<l;return e.x=f&&o>n?s:o,e.y=c&&l>a?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var n=Gm(e.r,r.r),a=Hm(e.r0,r.r0);e.r=n,e.r0=a;var o=n-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},sC={cartesian2d:function(r,e,t,i,n,a,o,s,l){var u=new de({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,e,t,i,n,a,o,s,l){var u=!n&&l?Fm:Dr,f=new u({shape:i,z2:1});f.name="item";var c=dC(n);if(f.calculateTextPosition=nC(c,{isRoundCap:u===Fm}),a){var p=f.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?Be:ut)(f,{shape:v},a)}return f}};function c2(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function lC(r,e,t,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Be:ut)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Be:ut)(t,{shape:u},f,n)}function uC(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var p2=["x","y","width","height"],h2=["cx","cy","r","startAngle","endAngle"],fC={cartesian2d:function(r){return!uC(r,p2)},polar:function(r){return!uC(r,h2)}},sp={cartesian2d:function(r,e,t){var i=r.getItemLayout(e);if(!i)return null;var n=t?d2(t,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function v2(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function dC(r){return(function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}})(r)}function cC(r,e,t,i,n,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,c=Na(i.getModel("itemStyle"),f,!0);N(f,c),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var p=i.getShallow("cursor");p&&r.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?_2(n,a.coordinateSystem):x2(n,a.coordinateSystem),v=rr(i);mr(r,v,{labelFetcher:a,labelDataIndex:t,defaultText:$o(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,aC(r,m==="outside"?h:m,dC(o),i.get(["label","rotate"]))}Vx(d,v,a.getRawValue(t),function(y){return Qc(e,y)});var g=i.getModel(["emphasis"]);Ar(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),ta(r,i),v2(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function d2(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}var m2=(function(){function r(){}return r})(),pC=(function(r){z(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new m2},e.prototype.buildPath=function(t,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(le);function hC(r,e,t,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=i?Bu(r):0;if(u){var c=new pC({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var p=new pC({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,ce(p).seriesIndex=r.seriesIndex,r.get("silent")||(p.on("mousedown",vC),p.on("mousemove",vC)),t&&t.push(p)}var vC=ll(function(r){var e=this,t=g2(e,r.offsetX,r.offsetY);ce(e).dataIndex=t>=0?t:null},30,!1);function g2(r,e,t){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=a.length/3;f<c;f++){var p=f*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function mC(r,e,t){if(La(t,"cartesian2d")){var i=e,n=t.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=t.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function y2(r,e,t){var i=r.type==="polar"?Dr:de;return new i({shape:mC(e,t,r),silent:!0,z2:0})}function _2(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function x2(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var gC=f2;function Wm(r){r.registerChartView(gC),r.registerSeriesModel(iC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Qw(Pi)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Jw(Pi)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Ol(Pi)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),tC(r)}function Ym(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=e.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function Xm(r,e,t){e=R(e)&&{coordDimensions:e}||N({encodeDefine:r.getEncode()},e);var i=r.getSource(),n=Tl(i,e).dimensions,a=new Mc(n,r);return a.initData(i,t),a}var S2=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r})(),yC=S2;var Nr="pie",b2=ne(),_C=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yC(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Xm(this,{coordDimensions:["value"],encodeDefaulter:we(gS,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),n=b2(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=S_(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Ls(t,"labelLine",["show"]);var i=t.labelLine,n=t.emphasis.labelLine;i.show=i.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+Nr,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},e})(Nt);oS({fullType:_C.type,getCoord2:function(r){return r.getShallow("center")}});var xC=_C;var T2=Math.PI/180;function SC(r,e,t,i,n,a,o,s,l,u){if(r.length<2)return;function f(d){for(var m=d.rB,g=m*m,y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-t),b=i+_.len,S=b*b,w=Math.sqrt(Math.abs((1-x*x/g)*S)),A=e+(w+_.len2)*n,C=A-_.label.x,E=_.targetTextWidth-C*n;TC(_,E,!0),_.label.x=A}}function c(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var _=d[y],x=_.label.y>t?g:m,b=Math.abs(_.label.y-t);if(b>=x.maxY){var S=_.label.x-e-_.len2*n,w=i+_.len,A=Math.abs(S)<w?Math.sqrt(b*b/(1-S*S/w/w)):w;x.rB=A,x.maxY=b}x.list.push(_)}f(m),f(g)}for(var p=r.length,h=0;h<p;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var v=r[h].label.x-u;r[h].linePoints[1][0]+=v,r[h].label.x=u}vw(r,1,l,l+o)&&c(r)}function w2(r,e,t,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<r.length;p++){var h=r[p].label;qm(r[p])||(h.x<e?(f=Math.min(f,h.x),l.push(r[p])):(c=Math.max(c,h.x),u.push(r[p])))}for(var p=0;p<r.length;p++){var v=r[p];if(!qm(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,m=void 0;v.labelAlignTo==="edge"?h.x<e?m=d[2][0]-v.labelDistance-o-v.edgeDistance:m=o+n-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?m=f-o-v.bleedMargin:m=o+n-c-v.bleedMargin:h.x<e?m=h.x-o-v.bleedMargin:m=o+n-h.x-v.bleedMargin,v.targetTextWidth=m,TC(v,m,!1)}}SC(u,e,t,i,1,n,a,o,s,c),SC(l,e,t,i,-1,n,a,o,s,f);for(var p=0;p<r.length;p++){var v=r[p];if(!qm(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:_,b=v.rect.width+x,S=d[1][0]-d[2][0];g?h.x<e?d[2][0]=o+v.edgeDistance+b+v.labelDistance:d[2][0]=o+n-v.edgeDistance-b-v.labelDistance:(h.x<e?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+S),d[1][1]=d[2][1]=h.y}}}function TC(r,e,t){if(r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<f?p:t?p>r.unconstrainedWidth?null:p:null;i.setStyle("width",h)}wC(a,i)}}}function wC(r,e){bC.rect=r,wm(bC,e,C2)}var C2={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},bC={};function qm(r){return r.position==="center"}function Zm(r){var e=r.getData(),t=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*T2,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,p=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var w in S.states)if(S.states[w].ignore===!1)return!0;return!1}e.each(function(S){var w=e.getItemGraphicEl(S),A=w.shape,C=w.getTextContent(),E=w.getTextGuideLine(),D=e.getItemModel(S),I=D.getModel("label"),M=I.get("position")||D.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),O=I.get("alignTo"),P=Ee(I.get("edgeDistance"),u),F=I.get("bleedMargin");F==null&&(F=Math.min(u,p)>200?10:2);var k=D.getModel("labelLine"),H=k.get("length");H=Ee(H,u);var W=k.get("length2");if(W=Ee(W,u),Math.abs(A.endAngle-A.startAngle)<o){T(C.states,h),C.ignore=!0,E&&(T(E.states,h),E.ignore=!0);return}if(v(C)){var Y=(A.startAngle+A.endAngle)/2,$=Math.cos(Y),J=Math.sin(Y),Q,ve,xe,Ze;i=A.cx,n=A.cy;var at=M==="inside"||M==="inner";if(M==="center")Q=A.cx,ve=A.cy,Ze="center";else{var Ae=(at?(A.r+A.r0)/2*$:A.r*$)+i,ke=(at?(A.r+A.r0)/2*J:A.r*J)+n;if(Q=Ae+$*3,ve=ke+J*3,!at){var pe=Ae+$*(H+l-A.r),Se=ke+J*(H+l-A.r),kr=pe+($<0?-1:1)*W,ot=Se;O==="edge"?Q=$<0?f+P:f+u-P:Q=kr+($<0?-L:L),ve=ot,xe=[[Ae,ke],[pe,Se],[kr,ot]]}Ze=at?"center":O==="edge"?$>0?"right":"left":$>0?"left":"right"}var Ni=Math.PI,si=0,En=I.get("rotate");if(ue(En))si=En*(Ni/180);else if(M==="center")si=0;else if(En==="radial"||En===!0){var IE=$<0?-Y+Ni:-Y;si=IE}else if(En==="tangential"||En==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var Ua=Math.atan2($,J);Ua<0&&(Ua=Ni*2+Ua);var LE=J>0;LE&&En!=="tangential-noflip"&&(Ua=Ni+Ua),si=Ua-Ni}if(a=!!si,C.x=Q,C.y=ve,C.rotation=si,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:Ze});var kp=C.states.select;kp&&(kp.x+=C.x,kp.y+=C.y)}else{var Np=new re(0,0,0,0);wC(Np,C),t.push({label:C,labelLine:E,position:M,len:H,len2:W,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new se($,J),linePoints:xe,textAlign:Ze,labelDistance:L,labelAlignTo:O,edgeDistance:P,bleedMargin:F,rect:Np,unconstrainedWidth:Np.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!a&&r.get("avoidLabelOverlap")&&w2(t,i,n,l,u,p,f,c);for(var d=0;d<t.length;d++){var m=t[d],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(T(g.states,h),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var b=m.linePoints;_||!b?(T(y.states,h),y.ignore=!0):(nw(b,m.minTurnAngle),aw(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new se(b[0][0],b[0][1])})}}}var CC=Math.PI*2,lp=Math.PI/180,AC=U_(Nr,A2);function A2(r,e){r.eachSeriesByType(Nr,function(t){var i=t.getData(),n=i.mapDimension("value"),a=fS(t,e),o=a.cx,s=a.cy,l=a.r,u=a.r0,f=a.viewRect,c=-t.get("startAngle")*lp,p=t.get("endAngle"),h=t.get("padAngle")*lp;p=p==="auto"?c-CC:-p*lp;var v=t.get("minAngle")*lp,d=v+h,m=0;i.each(n,function(P){!isNaN(P)&&m++});var g=i.getSum(n),y=Math.PI/(g||m)*2,_=t.get("clockwise"),x=t.get("roseType"),b=t.get("stillShowZeroSum"),S=i.getDataExtent(n);S[0]=0;var w=_?1:-1,A=[c,p],C=w*h/2;fv(A,!_),c=A[0],p=A[1];var E=Km(t);E.startAngle=c,E.endAngle=p,E.clockwise=_,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(p-c),I=D,M=0,L=c;if(i.setLayout({viewRect:f,r:l}),i.each(n,function(P,F){var k;if(isNaN(P)){i.setItemLayout(F,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?k=g===0&&b?y:P*y:k=D/m,k<d?(k=d,I-=d):M+=P;var H=L+w*k,W=0,Y=0;h>k?(W=L+w*k/2,Y=W):(W=L+C,Y=H-C),i.setItemLayout(F,{angle:k,startAngle:W,endAngle:Y,clockwise:_,cx:o,cy:s,r0:u,r:x?It(P,S,[u,l]):l}),L=H}),I<CC&&m)if(I<=.001){var O=D/m;i.each(n,function(P,F){if(!isNaN(P)){var k=i.getItemLayout(F);k.angle=O;var H=0,W=0;O<h?(H=c+w*(F+1/2)*O,W=H):(H=c+w*F*O+C,W=c+w*(F+1)*O-C),k.startAngle=H,k.endAngle=W}})}else y=I/M,L=c,i.each(n,function(P,F){if(!isNaN(P)){var k=i.getItemLayout(F),H=k.angle===d?d:P*y,W=0,Y=0;H<h?(W=L+w*H/2,Y=W):(W=L+C,Y=L+w*H-C),k.startAngle=W,k.endAngle=Y,L+=w*H}})})}var Km=ne();var E2=(function(r){z(e,r);function e(t,i,n){var a=r.call(this)||this;a.z2=2;var o=new be;return a.setTextContent(o),a.updateData(t,i,n,!0),a}return e.prototype.updateData=function(t,i,n,a){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),c=N(Na(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(a){o.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(ut(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):p==="scale"?(o.shape.r=f.r0,ut(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),ut(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Be(o,{shape:{endAngle:f.endAngle}},s,i))}else xo(o),Be(o,{shape:c},s,i);o.useStyle(t.getItemVisual(i,"style")),ta(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Na(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:d,y:m,shape:Na(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Na(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&N(y.ensureState("select"),{x:d,y:m}),N(_.ensureState("select"),{x:d,y:m}),Ar(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;mr(a,rr(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||i.getName(n)});var c=a.getTextContent();a.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ia,this.setTextGuideLine(h)),ow(this,sw(o),{stroke:u,opacity:$t(s.get(["lineStyle","opacity"]),f,1)})}},e})(Dr),D2=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Nr,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,n,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var p=Km(t),h=new Dr({shape:j(p)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var d=new E2(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var m=s.getItemGraphicEl(d);m.updateData(o,v,u),m.off("click"),l.add(m),o.setItemGraphicEl(v,m)}).remove(function(v){var d=s.getItemGraphicEl(v);an(d,t,v)}).execute(),Zm(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=Nr,e})(yt),EC=D2;function jm(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(ue(o)&&!isNaN(o)&&o<0)})}}}function $m(r){r.registerChartView(EC),r.registerSeriesModel(xC),Pb(Nr,r.registerAction),r.registerLayout(AC),r.registerProcessor(Ym(Nr)),r.registerProcessor(jm(Nr))}var up=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",mt).models[0]},e.type="cartesian2dAxis",e})(Te);Dt(up,b1);var DC={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:"auto",onZeroAxisIndex:null,lineStyle:{color:G.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},M2=me({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},DC),Qm=me({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},DC),I2=me({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Qm),L2=oe({logBase:10},Qm),MC={category:M2,value:Qm,time:I2,log:L2};function fp(r,e,t,i){T(Uc,function(n,a){var o=me(me({},MC[a],!0),i,!0),s=(function(l){z(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=fn(this),h=p?ii(f):{},v=c.getTheme();me(f,v.get(a+"Axis")),me(f,this.getDefaultOption()),f.type=IC(f),p&&nr(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=wl.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=Oa();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",IC)}function IC(r){return r.type||(r.data?"category":"value")}var O2=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ve(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),LC=O2;var zl=["x","y"];function OC(r){return(r.type==="interval"||r.type==="time")&&!pa(r)}var P2=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=_r,t.dimensions=zl,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!OC(t)||!OC(i))){var n=Da(t,null),a=Da(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=zr([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var n=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new re(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,n){n=n||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ht(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(t,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(t[0]),u=a.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i,n){if(n=n||[],this._invTransform)return ht(n,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(t[0]),i),n[1]=o.coordToData(o.toLocalCoord(t[1]),i),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(n[0],n[1])-o+t;return new re(a,o,s,l)},e})(LC),PC=P2;function RC(r,e){var t=r.scale,i=r.model,n=qc(t,i,i.ecModel,r,null),a=ni(t),o=ni(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Oe(u[0].value-u[1].value),m=Oe(u[1].value-u[2].value);p=h=0,d===m?v=2:(v=1,d<m?p=d/m:h=m/d)}else{var g=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/g)%1,h=(1-(f[c].value-u[c].value)/g)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],b=t.getExtent(),S=s.getExtent(),w=Rc(S,x),A,C,E,D,I,M;function L($){for(var J=50,Q=0;Q<J&&!$();Q++)E=a?E*ge(l,2):QT(E),D=Pr(E)}function O(){A=ye(M-E*p,D)}function P(){C=ye(I+E*h,D)}function F(){M=p?ye(A+E*p,D):A}function k(){I=h?ye(C-E*h,D):C}if(x[0]&&x[1]){A=w[0],C=w[1],E=(C-A)/(v+p+h);var H=r.getExtent(),W=Oe(H[1]-H[0]);D=x_([C,A],W,.5/v),F(),k(),je(D)&&(E=ye(E,D))}else{var Y=w[1]-w[0];E=a?ge(Ru(Y),1):Gn(Y/v,Nh),D=Pr(E),x[0]?(A=w[0],L(function(){if(F(),I=ye(M+E*v,D),P(),C>=w[1])return!0})):x[1]?(C=w[1],L(function(){if(k(),M=ye(I-E*v,D),O(),A<=w[0])return!0})):L(function(){M=ye(Ki(w[0]/E)*E,D),I=ye(Vr(w[1]/E)*E,D);var $=Jt((I-M)/E);if($<=v){var J=v-$,Q=void 0,ve=n.incl0||a;if(ve&&w[0]===0)Q=[0,J];else if(ve&&w[1]===0)Q=[J,0];else{var xe=Vr(J/2);Q=J%2===0?[xe,xe]:A+C<w[0]+w[1]?[xe,xe+1]:[xe+1,xe]}if(M=ye(M-E*Q[0],D),I=ye(I+E*Q[1],D),O(),P(),A<=w[0]&&C>=w[1])return!0}})}Hc(t,x,S,[A,C],b,{interval:E,intervalCount:v,intervalPrecision:D,niceExtent:[M,I]})}var NC=[[3,1],[0,2]],R2=(function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zl,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;T(this._axesList,function(o){V1(o,k1);var s=o.scale;ct(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=he(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):xm(f)}T(l,function(c){k2(c,c.__alignTo)?xm(c):RC(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};T(i.x,function(o){kC(i,"y",o,a)}),T(i.y,function(o){kC(i,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var n=wi(e,t),a=this._rect=Rt(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Jm(o,a),!i){var u=B2(a,s,o,l,t),f=void 0;if(l)VC?(VC(this._axesList,a),Jm(o,a)):f=FC(a.clone(),"axisLabel",null,a,o,u,n);else{var c=U2(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=FC(p,h,v,a,o,u,n))}HC(a,o,qt.determine,null,f,n),T(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}V(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===t)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",mt).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",mt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,fe(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(p,h){var v="x"+c+"y"+h,d=new PC(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),BC(s.x),BC(s.y);function u(f){return function(c,p){if(N2(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=v1(c),d=new Pw(f,d1(c,v,!0),[0,0],v,h);d.onBand=Gc(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return T(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);fe(t,a)<0&&t.push(a),fe(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(n,a){var o=new r(n,e,t);o.name="grid_"+a,o.resize(n,t,!0),n.coordinateSystem=o,i.push(o),T(o._axesList,function(s){U1(s,r.dimIdxMap)})}),e.eachSeries(function(n){var a,o;lS({targetModel:n,coordSysType:_r,coordSysProvider:s});function s(){var l=Hw(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&(ym(a,n,_r),ym(o,n,_r))},this),i},r.dimensions=zl,r.dimIdxMap=yl(zl),r})();function N2(r,e){return r.getCoordSysModel()===e}function kC(r,e,t,i){t.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)zC(s,n[l])&&(a=n[l]);else for(var u in n)if(Me(n,u)&&zC(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function zC(r,e){if(!e)return!1;var t=e.scale,i=m1(t,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==Vc;return n&&r==="auto"&&y1(e)&&(n=!1),n}function BC(r){for(var e=he(r),t,i=[],n=e.length-1;n>=0;n--){var a=r[+e[n]];Oc(a.scale)&&hm(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):t=a)}t||(t=i.pop()),t&&T(i,function(o){o.__alignTo=t})}function k2(r,e){return pa(r.scale)||pa(e.scale)||e.scale.getTicks().length<2}function z2(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return i-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function Jm(r,e){T(r.x,function(t){return UC(t,e.x,e.width)}),T(r.y,function(t){return UC(t,e.y,e.height)})}function UC(r,e,t){var i=[0,t],n=r.inverse?1:0;r.setExtent(i[n],i[1-n]),z2(r,e)}var VC;function FC(r,e,t,i,n,a,o){HC(i,n,qt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=Jl(s,function(p){return p>0})==null;return So(i,s,!0,!0,t),Jm(n,i),l;function u(p){T(n[ti[p]],function(h){if(Ia(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=h.scale.normalize(Li(h.scale,Cn(g.label).labelInfo.tick));y=p===1?1-y:y,f(g.rect,p,y),f(g.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=yn(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=r[ti[h]]-p[ti[h]],m=p[on[h]]+p[ti[h]]-(r[on[h]]+r[ti[h]]);d=c(d,1-v),m=c(m,v);var g=NC[h][0],y=NC[h][1];s[g]=ge(s[g],d),s[y]=ge(s[y],m)}function c(p,h){return p>0&&!lr(h)&&h>1e-4&&(p/=h),p}}function B2(r,e,t,i,n){var a=new Nm(V2);return T(t,function(o){return T(o,function(s){if(Ia(s.model)){var l=!i;s.axisBuilder=Gw(r,e,s.model,n,a,l)}})}),a}function HC(r,e,t,i,n,a){var o=t===qt.determine;T(e,function(u){return T(u,function(f){Ia(f.model)&&(Ww(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ti[1-u]]=r[on[u]]<=a.refContainer[on[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(c){Ia(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function U2(r,e,t){var i,n=r.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=Rt(r.get("outerBounds",!0)||Um,t.refContainer));var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"||fe(["all","axisLabel"],a)<0?o="all":o=a;var s=[Pu(q(r.get("outerBoundsClampWidth",!0),kl[0]),e.width),Pu(q(r.get("outerBoundsClampHeight",!0),kl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var V2=function(r,e,t,i,n,a){var o=t.axis.dim==="x"?"y":"x";km(r,e,t,i,n,a),yn(r.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&zm(s.labelInfoList,s.dirVec,i,n)})},GC=R2;function WC(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return F2(t,r,e),t.seriesInvolved&&G2(t,r),t}function F2(r,e,t){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Jo(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(T(s.getAxes(),we(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&T(v.baseAxes,we(d,h?"cross":!0,p)),h&&T(v.otherAxes,we(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!m&&!tg(_))){g==null&&(g=_.get("triggerTooltip")),_=m?H2(y,c,n,e,m,g):_;var b=_.get("snap"),S=_.get("triggerEmphasis"),w=Jo(y.model),A=g||b||y.type==="category",C=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:A,snap:b,useHandle:tg(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||A;var E=W2(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=a[E].mapper,C.linkGroup=D}}}})}function H2(r,e,t,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(p){l[p]=j(o.get(p))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&oe(u,c.textStyle)}}return r.model.getModel("axisPointer",new De(l,t,i))}function G2(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[Jo(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function W2(r,e){for(var t=e.model,i=e.dim,n=0;n<r.length;n++){var a=r[n]||{};if(eg(a[i+"AxisId"],t.id)||eg(a[i+"AxisIndex"],t.componentIndex)||eg(a[i+"AxisName"],t.name))return n}}function eg(r,e){return r==="all"||R(r)&&fe(r,e)>=0||r===e}function YC(r){var e=cp(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,n=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=tg(t);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function cp(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Jo(r)]}function XC(r){var e=cp(r);return e&&e.axisPointerModel}function tg(r){return!!r.get(["handle","show"])}function Jo(r){return r.type+"||"+r.id}var qC={},Y2=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.axisPointerClass&&YC(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,i,n,a){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=XC(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){qC[t]=i},e.getAxisPointerClass=function(t){return t&&qC[t]},e.type="axis",e})(it),pp=Y2;var ig=ne();function ZC(r,e,t,i){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=ig(r).splitAreaColors,p=X(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=R(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,b=void 0,S=void 0;n.isHorizontal()?(_=m,x=l.y,b=y-_,S=l.height,m=_+b):(_=l.x,x=m,b=l.width,S=y-x,m=x+S);var w=u[v-1].tickValue;w!=null&&p.set(w,h),e.add(new de({anid:w!=null?"area_"+w:null,shape:{x:_,y:x,width:b,height:S},style:oe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}ig(r).splitAreaColors=p}}}function KC(r){ig(r).splitAreaColors=null}var X2=["splitArea","splitLine","minorSplitLine","breakArea"],jC=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _e,this.group.add(this._axisGroup),!!Ia(t)){this._axisGroup.add(t.axis.axisBuilder.group),T(X2,function(l){t.get([l,"show"])&&q2[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Yv(o,this._axisGroup,t),r.prototype.render.call(this,t,i,n,a)}},e.prototype.remove=function(){KC(this)},e.type="cartesianAxis",e})(pp),q2={splitLine:function(r,e,t,i,n){var a=t.axis;if(!a.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=R(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,m[0]=_,m[1]=c.y+c.height):(d[0]=c.x,d[1]=_,m[0]=c.x+c.width,m[1]=_);var b=h++%l.length,S=new Mr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:oe({stroke:l[b]},g),silent:!0});la(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(r,e,t,i,n){var a=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var m=a.toGlobalCoord(f[v][d].coord);u?(c[0]=m,c[1]=l.y,p[0]=m,p[1]=l.y+l.height):(c[0]=l.x,c[1]=m,p[0]=l.x+l.width,p[1]=m);var g=new Mr({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});la(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,i,n){ZC(r,e,t,i)},breakArea:function(r,e,t,i,n){var a=Oa(),o=t.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),n)}},ng=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(jC);var $C=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ng.type,t}return e.type="yAxis",e})(jC);var Z2=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new de({shape:t.coordinateSystem.getRect(),style:oe({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(it),QC={offset:0};function JC(r){r.registerComponentView(Z2),r.registerComponentModel(jw),r.registerCoordinateSystem("cartesian2d",GC),fp(r,"x",up,QC),fp(r,"y",up,QC),r.registerComponentView(ng),r.registerComponentView($C),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Vl=T,K2=V,dp=-1,lg=(function(){function r(e){var t=e.mappingMethod,i=e.type,n=this.option=j(e);this.type=i,this.mappingMethod=t,this._normalizeData=Q2[t];var a=r.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(ag(n),j2(n)):t==="category"?n.categories?$2(n):ag(n,!0):(He(t!=="linear"||n.dataExtent),ag(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return ee(this._normalizeData,this)},r.listVisualTypes=function(){return he(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){V(e)?T(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var n,a=R(e)?[]:V(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);n?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},i;return e&&Vl(r.visualHandlers,function(n,a){e.hasOwnProperty(a)&&(t[a]=e[a],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(R(e))e=e.slice();else if(K2(e)){var t=[];Vl(e,function(i,n){t.push(n)}),e=t}else return[];return e.sort(function(i,n){return n==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var n,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||U(l)&&l===e+"")return o;i&&p(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(vp(c[1],e,f[1]))return o}else if(f[1]===1/0){if(vp(c[0],f[0],e))return o}else if(vp(c[0],f[0],e)&&vp(c[1],e,f[1]))return o;i&&p(f[0],o),i&&p(f[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:n;function p(h,v){var d=Math.abs(h-e);d<a&&(a=d,n=v)}},r.visualHandlers={color:{applyVisual:Bl("color"),getColorMapper:function(){var e=this.option;return ee(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),Ul.call(this,t)}:function(t,i,n){var a=!!n;return!i&&(t=this._normalizeData(t)),n=xu(t,e.parsedVisual,n),a?n:cr(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return cr(xu(e,this.option.parsedVisual),"rgba")},category:Ul,piecewise:function(e,t){var i=sg.call(this,t);return i==null&&(i=cr(xu(e,this.option.parsedVisual),"rgba")),i},fixed:ka}},colorHue:hp(function(e,t){return pi(e,t)}),colorSaturation:hp(function(e,t){return pi(e,null,t)}),colorLightness:hp(function(e,t){return pi(e,null,null,t)}),colorAlpha:hp(function(e,t){return Hy(e,t)}),decal:{applyVisual:Bl("decal"),_normalizedToVisual:{linear:null,category:Ul,piecewise:null,fixed:null}},opacity:{applyVisual:Bl("opacity"),_normalizedToVisual:og([0,1])},liftZ:{applyVisual:Bl("liftZ"),_normalizedToVisual:{linear:ka,category:ka,piecewise:ka,fixed:ka}},symbol:{applyVisual:function(e,t,i){var n=this.mapValueToVisual(e);i("symbol",n)},_normalizedToVisual:{linear:eA,category:Ul,piecewise:function(e,t){var i=sg.call(this,t);return i==null&&(i=eA.call(this,e)),i},fixed:ka}},symbolSize:{applyVisual:Bl("symbolSize"),_normalizedToVisual:og([0,1])}},r})();function j2(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,i){t.originIndex=i,t.visual!=null&&(r.hasSpecialVisual=!0)})}function $2(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(Vl(e,function(o,s){t[o]=s}),!R(i)){var n=[];V(i)?Vl(i,function(o,s){var l=t[s];n[l??dp]=o}):n[dp]=i,i=tA(r,n)}for(var a=e.length-1;a>=0;a--)i[a]==null&&(delete t[e[a]],e.pop())}function ag(r,e){var t=r.visual,i=[];V(t)?Vl(t,function(a){i.push(a)}):t!=null&&i.push(t);var n={color:1,symbol:1};!e&&i.length===1&&!n.hasOwnProperty(r.type)&&(i[1]=i[0]),tA(r,i)}function hp(r){return{applyVisual:function(e,t,i){var n=this.mapValueToVisual(e);i("color",r(t("color"),n))},_normalizedToVisual:og([0,1])}}function eA(r){var e=this.option.visual;return e[Math.round(It(r,[0,1],[0,e.length-1],!0))]||{}}function Bl(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function Ul(r){var e=this.option.visual;return e[this.option.loop&&r!==dp?r%e.length:r]}function ka(){return this.option.visual[0]}function og(r){return{linear:function(e){return It(e,r,this.option.visual,!0)},category:Ul,piecewise:function(e,t){var i=sg.call(this,t);return i==null&&(i=It(e,r,this.option.visual,!0)),i},fixed:ka}}function sg(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=lg.findPieceIndex(r,t),n=t[i];if(n&&n.visual)return n.visual[this.type]}}function tA(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=B(e,function(t){var i=St(t);return i||[0,0,0,1]})),e}var Q2={linear:function(r){return It(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=lg.findPieceIndex(r,e,!0);if(t!=null)return It(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??dp},fixed:Le};function vp(r,e,t){return r?e<=t:e<t}var nt=lg;function fg(r,e,t,i,n,a){r=r||0;var o=di(t[1],-t[0]);if(n!=null&&(n=es(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i==="all"){var s=Math.abs(di(e[1],-e[0]));s=es(s,[0,o]),n=a=es(s,[n,a]),i=0}e[0]=es(e[0],t),e[1]=es(e[1],t);var l=ug(e,i);e[i]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]=di(f[0],u):f[1]=di(f[1],-u),e[i]=es(e[i],f);var c;return c=ug(e,i),n!=null&&(c.sign!==l.sign||c.span<n)&&(e[1-i]=di(e[i],l.sign*n)),c=ug(e,i),a!=null&&c.span>a&&(e[1-i]=di(e[i],c.sign*a)),e}function ug(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function es(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var J2=256,ek=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Re.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,n,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,p=c.getContext("2d"),h=e.length;c.width=t,c.height=i;for(var v=0;v<h;++v){var d=e[v],m=d[0],g=d[1],y=d[2],_=n(y);p.globalAlpha=_,p.drawImage(s,m-f,g-f)}if(!c.width||!c.height)return c;for(var x=p.getImageData(0,0,c.width,c.height),b=x.data,S=0,w=b.length,A=this.minOpacity,C=this.maxOpacity,E=C-A;S<w;){var _=b[S+3]/256,D=Math.floor(_*(J2-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*E+A),b[S++]=I[D],b[S++]=I[D+1],b[S++]=I[D+2],b[S++]=I[D+3]*_*256}else S+=4}return p.putImageData(x,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Re.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var n=e.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor=G.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,n=i[t]||(i[t]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,a),n[o++]=a[0],n[o++]=a[1],n[o++]=a[2],n[o++]=a[3];return n},r})(),rA=ek;function tk(r,e,t){var i=r[1]-r[0];e=B(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var n=e.length,a=0;return function(o){var s;for(s=a;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===n)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<n&&t[s]}}function rk(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(i){return i>=e[0]&&i<=e[1]}}var ik=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,n,0,t.getData().count()):Im(o)&&this._renderOnGeo(o,t,a,n)},e.prototype.incrementalPrepareRender=function(t,i,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,n,a){var o=i.coordinateSystem;o&&(Im(o)?this.render(i,n,a):(this._progressiveEls=[],this._renderOnGridLike(i,a,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Si(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,i,n,a,o){var s=t.coordinateSystem,l=La(s,"cartesian2d"),u=La(s,"matrix"),f,c,p,h;if(l){var v=s.getAxis("x"),d=s.getAxis("y");f=Zt(v).w+.5,c=Zt(d).w+.5,p=v.scale.getExtent(),h=d.scale.getExtent()}for(var m=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),S=rr(t),w=t.getModel("emphasis"),A=w.get("focus"),C=w.get("blurScope"),E=w.get("disabled"),D=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=n;I<a;I++){var M=void 0,L=g.getItemVisual(I,"style");if(l){var O=g.get(D[0],I),P=g.get(D[1],I);if(isNaN(g.get(D[2],I))||isNaN(O)||isNaN(P)||O<p[0]||O>p[1]||P<h[0]||P>h[1])continue;var F=s.dataToPoint([O,P]);M=new de({shape:{x:F[0]-f/2,y:F[1]-c/2,width:f,height:c},style:L})}else if(u){var k=s.dataToLayout([g.get(D[0],I),g.get(D[1],I)]).rect;if(lr(k.x))continue;M=new de({z2:1,shape:k,style:L})}else{if(isNaN(g.get(D[1],I)))continue;var H=s.dataToLayout([g.get(D[0],I)]),k=H.contentRect||H.rect;if(lr(k.x)||lr(k.y))continue;M=new de({z2:1,shape:k,style:L})}if(g.hasItemOption){var W=g.getItemModel(I),Y=W.getModel("emphasis");y=Y.getModel("itemStyle").getItemStyle(),_=W.getModel(["blur","itemStyle"]).getItemStyle(),x=W.getModel(["select","itemStyle"]).getItemStyle(),b=W.get(["itemStyle","borderRadius"]),A=Y.get("focus"),C=Y.get("blurScope"),E=Y.get("disabled"),S=rr(W)}M.shape.r=b;var $=t.getRawValue(I),J="-";$&&$[2]!=null&&(J=$[2]+""),mr(M,S,{labelFetcher:t,labelDataIndex:I,defaultOpacity:L.opacity,defaultText:J}),M.ensureState("emphasis").style=y,M.ensureState("blur").style=_,M.ensureState("select").style=x,Ar(M,A,C,E),M.incremental=Bu(t,o),o&&(M.states.emphasis.hoverLayer=sa),m.add(M),g.setItemGraphicEl(I,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,i,n,a){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new rA;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),c=t.getRoamTransform();f.applyTransform(c);var p=Math.max(f.x,0),h=Math.max(f.y,0),v=Math.min(f.width+f.x,a.getWidth()),d=Math.min(f.height+f.y,a.getHeight()),m=v-p,g=d-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(w,A,C){var E=t.dataToPoint([w,A]);return E[0]-=p,E[1]-=h,E.push(C),E}),x=n.getExtent(),b=n.type==="visualMap.continuous"?rk(x,n.option.range):tk(x,n.getPieceList(),n.option.selected);u.update(_,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var S=new bt({style:{width:m,height:g,x:p,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e})(yt),iA=ik;var nk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return gn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=da.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:G.color.primary}}},e})(Nt),nA=nk;function cg(r){r.registerChartView(iA),r.registerSeriesModel(nA)}var za=ne(),aA=j,pg=ee,ak=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,n){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new _e,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var p=we(oA,t,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}lA(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),n=e.axis,a=n.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Zt(n).w>s)return!0;if(o){var l=cp(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,n,a){},r.prototype.createPointerEl=function(e,t,i,n){var a=t.pointer;if(a){var o=za(e).pointerEl=new Ge[a.type](aA(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,n){if(t.label){var a=za(e).labelEl=new be(aA(t.label));e.add(a),sA(a,n)}},r.prototype.updatePointerEl=function(e,t,i){var n=za(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,n){var a=za(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{x:t.label.x,y:t.label.y}),sA(a,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Qs(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hi(u.event)},onmousedown:pg(this._onHandleDragMove,this,0,0),drift:pg(this._onHandleDragMove,this),ondragend:pg(this._onHandleDragEnd,this)}),i.add(n)),lA(n,t,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");R(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,sc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){oA(this._axisPointerModel,!t&&this._moveAnimation,this._handle,hg(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(hg(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(hg(n)),za(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ul(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r})();function oA(r,e,t,i){uA(za(t).lastProp,i)||(za(t).lastProp=i,e?Be(t,i,r):(t.stopAnimation(),t.attr(i)))}function uA(r,e){if(V(r)&&V(e)){var t=!0;return T(e,function(i,n){t=t&&uA(r[n],i)}),!!t}else return r===e}function sA(r,e){r[e.get(["label","show"])?"show":"hide"]()}function hg(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function lA(r,e,t){var i=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=t)})}var fA=ak;function cA(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function ok(r,e,t,i,n){var a=t.get("value"),o=vg(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ri(s.get("padding")||0),u=s.getFont(),f=Du(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),sk(c,p,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:tt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function sk(r,e,t,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function vg(r,e,t,i,n){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Zo(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),U(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function dg(r,e,t){var i=Mt();return Ya(i,i,t.rotation),cs(i,i,t.position),sn([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function pA(r,e,t,i,n,a){var o=np.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),ok(e,i,n,a,{position:dg(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function hA(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function vA(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function dA(r,e,t){return Zt(r,{fromStat:{sers:B(e,function(i){return t.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function mA(r,e,t){return[ge(ze(e[0],e[1]),r-t/2),ze(r+t/2,ge(e[0],e[1]))]}var lk=(function(r){z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=yA(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=cA(a),v=uk[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=Rl(l.getRect(),n);pA(i,t,d,n,a,o)},e.prototype.getHandleTransform=function(t,i,n){var a=Rl(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=dg(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=yA(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=i[f],c[f]=ze(l[1],c[f]),c[f]=ge(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(fA);function yA(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var uk={line:function(r,e,t,i){var n=hA([e,i[0]],[e,i[1]],_A(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,i,n,a){var o=dA(r,n,a),s=i[1]-i[0],l=mA(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:vA([u,i[0]],[f-u,s],_A(r))}}};function _A(r){return r.dim==="x"?0:1}var xA=lk;var fk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:G.color.accent40,throttle:40}},e})(Te),SA=fk;var Ri=ne(),ck=T;function mp(r,e,t){if(!ae.node){var i=e.getZr();Ri(i).records||(Ri(i).records={}),pk(i,e);var n=Ri(i).records[r]||(Ri(i).records[r]={});n.handler=t}}function pk(r,e){if(Ri(r).initialized)return;Ri(r).initialized=!0,t("click",we(mg,"click")),t("mousemove",we(mg,"mousemove")),t("mousewheel",we(mg,"mousewheel")),t("globalout",vk);function t(i,n){r.on(i,function(a){var o=dk(e);ck(Ri(r).records,function(s){s&&n(s,a,o.dispatchAction)}),hk(o.pendings,e)})}}function hk(r,e){var t=r.showTip.length,i=r.hideTip.length,n;t?n=r.showTip[t-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function vk(r,e,t){r.handler("leave",null,t)}function mg(r,e,t,i){e.handler(r,t,i)}function dk(r){var e={showTip:[],hideTip:[]},t=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Fl(r,e){if(!ae.node){var t=e.getZr(),i=(Ri(t).records||{})[r];i&&(Ri(t).records[r]=null)}}var mk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=i.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";mp("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){Fl("axisPointer",i)},e.prototype.dispose=function(t,i){Fl("axisPointer",i)},e.type="axisPointer",e})(it),TA=mk;function Hl(r,e){var t=[],i=r.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=pr(a,r);if(o==null||o<0||R(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(a.getValues(B(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var wA=ne();function gg(r,e,t){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||ee(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){gp(n)&&(n=Hl({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=gp(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||gp(n),p={},h={},v={list:[],map:{}},d={showPointer:we(yk,h),showTooltip:we(_k,v)};T(s.coordSysMap,function(g,y){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[y],function(x,b){var S=x.axis,w=Tk(u,x);if(!c&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=S.pointToData(n)),A!=null&&CA(x,A,d,!1,p)}})});var m={};return T(f,function(g,y){var _=g.linkGroup;_&&!h[y]&&T(_.axesInfo,function(x,b){var S=h[b];if(x!==g&&S){var w=S.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,AA(x),AA(g)))),m[g.key]=w}})}),T(m,function(g,y){CA(f[y],g,d,!0,p)}),xk(h,f,p),Sk(v,n,r,o),bk(f,o,t),p}}function CA(r,e,t,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=gk(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&N(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function gk(r,e){var t=e.axis,i=t.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],r,t.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(je(c)){var v=r-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),T(p,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function yk(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function _k(r,e,t,i){var n=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Jo(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function xk(r,e,t){var i=t.axesInfo=[];T(e,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Sk(r,e,t,i){if(gp(e)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function bk(r,e,t){var i=t.getZr(),n="axisPointerLastHighlights",a=wA(i)[n]||{},o=wA(i)[n]={};T(r,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&T(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}T(a,function(f,c){!o[c]&&l.push(u(f))}),T(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Tk(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function AA(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function gp(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function yp(r){pp.registerAxisPointerClass("CartesianAxisPointer",xA),r.registerComponentModel(SA),r.registerComponentView(TA),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!R(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=WC(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gg)}function yg(r){_t(JC),_t(yp)}function EA(r,e){var t=ri(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new de({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var wk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},e})(Te),DA=wk;function _p(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function MA(r){if(ae.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var _g=MA(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),IA=MA(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function xg(r,e){if(!r)return e;e=Rf(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function LA(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var Ck=xg(IA,"transition"),Sg=xg(_g,"transform"),Ak="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ae.transform3dSupported?"will-change:transform;":"");function Ek(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Dk(r,e,t){if(!U(t)||t==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");e=Lr(e);var a=Ek(t),o=Math.max(Math.round(n)*1.5,6),s="",l=Sg+":",u;fe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function Mk(r,e,t){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return t&&(n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+i,a+=(a.length?",":"")+(ae.transformSupported?""+Sg+n:",left"+n+",top"+n)),Ck+":"+a}function OA(r,e,t){var i=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!ae.transformSupported)return t?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=ae.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return t?"top:0;left:0;"+Sg+":"+o+";":[["top",0],["left",0],[_g,o]]}function Ik(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont());var n=q(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Lk(r,e,t,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),p=rc(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push(Mk(a,t,i)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(v){var d="border-"+v,m=Rf(d),g=r.get(m);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(Ik(c)),p!=null&&n.push("padding:"+ri(p).join("px ")+"px"),n.join(";")+";"}function PA(r,e,t,i,n){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&ny(r,o,t,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Ok=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ae.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=t.appendTo,o=a&&(U(a)?document.querySelector(a):Va(a)?a:K(a)&&a(e.getDom()));PA(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Ut(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=LA(t,"position"),n=t.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=Ak+Lk(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+OA(a[0],a[1],!0)+("border-color:"+Lr(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(U(a)&&i.get("trigger")==="item"&&!_p(i)&&(s=Dk(i,n,a)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",R(e)||(e=[e]);for(var l=0;l<e.length;l++)Va(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var i=this._styleCoord;if(PA(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var n=this.el.style,a=OA(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",ae.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;ay(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var i=t.parentNode;i&&i.removeChild(t)}this.el=this._container=null},r})(),RA=Ok;var Pk=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),kA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,n,a){var o=this;V(e)&&st(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new be({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:rc(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=NA(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var n=this._styleCoord;kA(n,this._zr,e,t),e=n[0],t=n[1];var a=i.style,o=An(a.borderWidth||0),s=NA(a);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function An(r){return Math.max(0,r)}function NA(r){var e=An(r.shadowBlur||0),t=An(r.shadowOffsetX||0),i=An(r.shadowOffsetY||0);return{left:An(e-t),right:An(e+t),top:An(e-i),bottom:An(e+i)}}function kA(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var zA=Pk;var Rk=new de({shape:{x:-1,y:-1,width:2,height:2}}),Nk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(ae.node||!i.getDom())){var n=t.getComponent("tooltip"),a=this._renderMode=P_(n.get("renderMode"));this._tooltipContent=a==="richText"?new zA(i):new RA(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,i,n){if(!(ae.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?sc(this,"_updatePosition",50,"fixRate"):ul(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");mp("itemTooltip",this._api,ee(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,n=this._api,a=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,n,a){if(!(a.from===this.uid||ae.node||!n.getDom())){var o=BA(a,n);this._ticket="";var s=a.dataByCoordSys,l=Uk(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Rk;f.x=a.x,f.y=a.y,f.update(),ce(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,n,a))return;var c=Hl(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(BA(a,n))},e.prototype._manuallyAxisShowTip=function(t,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Gl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,i){var n=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=ce(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Ei(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ce(f).dataIndex!=null?l=f:ce(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var n=t.get("showDelay");i=ee(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(t,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Gl([i.tooltipOption],a),l=this._renderMode,u=[],f=Sa("section",{blocks:[],noHeader:!0}),c=[],p=new ic;T(t,function(y){T(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,S=x.axis,w=S.scale.parse(b);if(!(!x||b==null)){var A=vg(b,S,n,_.seriesDataIndices,_.valueLabelOpt),C=Sa("section",{header:A,noHeader:!pt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),T(_.seriesDataIndices,function(E){var D=n.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,M=D.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Zo(x.axis,{value:w}),M.axisValueLabel=A,M.marker=p.makeTooltipMarker("item",Lr(M.color),l);var L=Ad(D.formatTooltip(I,!0,null)),O=L.frag;if(O){var P=Gl([D],a).get("valueFormatter");C.blocks.push(P?N({valueFormatter:P},O):O)}L.text&&c.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=Od(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var m=l==="richText"?`
15
+
16
+ `:"<br/>",g=c.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(t,i,n){var a=this._ecModel,o=ce(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=t.positionDefault,d=Gl([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,c),y=new ic;g.marker=y.makeTooltipMarker("item",Lr(g.color),h);var _=Ad(u.formatTooltip(f,!1,c)),x=d.get("order"),b=d.get("valueFormatter"),S=_.frag,w=S?Od(b?N({valueFormatter:b},S):S,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,g,A,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,n){var a=this._renderMode==="html",o=ce(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=j(l),l.content=dt(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=t.positionDefault,v=Gl(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),m=Math.random()+"",g=new ic;this._showOrMove(v,function(){var y=j(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,m,t.offsetX,t.offsetY,t.position,i,g)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,n,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=v.color;if(p)if(U(p)){var m=t.ecModel.get("useUTC"),g=R(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=p,y&&(h=ha(g.axisValue,h,m)),h=kf(h,n,!0)}else if(K(p)){var _=ee(function(x,b){x===this._ticket&&(c.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,t,d,l),c.show(t,d),this._updatePosition(t,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(t,i,n,a,o){if(n==="axis"||R(i))return{color:a||o};if(!R(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var c=o.getSize(),p=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),K(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),R(i))n=Ee(i[0],u),a=Ee(i[1],f);else if(V(i)){var d=i;d.width=c[0],d.height=c[1];var m=Rt(d,{width:u,height:f});n=m.x,a=m.y,p=null,h=null}else if(U(i)&&l){var g=Bk(i,v,c,t.get("borderWidth"));n=g[0],a=g[1]}else{var g=kk(n,a,o,u,f,p?null:20,h?null:20);n=g[0],a=g[1]}if(p&&(n-=UA(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=UA(h)?c[1]/2:h==="bottom"?c[1]:0),_p(t)){var g=zk(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===t.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===m.length,o&&T(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&T(p.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){ae.node||!i.getDom()||(ul(this,"_updatePosition"),this._tooltipContent.dispose(),Fl("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(it);function Gl(r,e,t){var i=e.ecModel,n;t?(n=new De(t,i,i),n=new De(e.option,n,i)):n=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof De&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new De(o,n,i)))}return n}function BA(r,e){return r.dispatchAction||ee(e.dispatchAction,e)}function kk(r,e,t,i,n,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function zk(r,e,t,i,n){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function Bk(r,e,t,i){var n=t[0],a=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function UA(r){return r==="center"||r==="middle"}function Uk(r,e,t){var i=Os(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Wr(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ce(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var VA=Nk;function bg(r){_t(yp),r.registerComponentModel(DA),r.registerComponentView(VA),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Le),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Le)}var FA=T;function HA(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Tg(r,e,t){var i={};return FA(e,function(a){var o=i[a]=n();FA(r[a],function(s,l){if(nt.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new nt(u),l==="opacity"&&(u=j(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new nt(u))}})}),i;function n(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function GA(r,e,t){var i;T(t,function(n){e.hasOwnProperty(n)&&HA(e[n])&&(i=!0)}),i&&T(t,function(n){e.hasOwnProperty(n)&&HA(e[n])?r[n]=j(e[n]):delete r[n]})}function WA(r,e,t,i){var n={};return T(r,function(a){var o=nt.prepareVisualTypes(e[a]);n[a]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(b){return fc(s,c,b)}function f(b,S){Ob(s,c,b,S)}for(var c,p=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var v=i!=null?p.get(l,c):c,d=t(v),m=e[d],g=n[d],y=0,_=g.length;y<_;y++){var x=g[y];m[x]&&m[x].applyVisual(v,u,f)}}}}}var Vk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},e})(Te),Fk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new be({style:tt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),p=t.get("subtext"),h=new be({style:tt(s,{text:p,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){pd(v,"_"+t.get("target"))}),d&&h.on("click",function(){pd(d,"_"+t.get("subtarget"))}),ce(f).eventData=ce(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),p&&a.add(h);var g=a.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=wi(t,n),x=Rt(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),g=a.getBoundingRect();var S=x.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var A=new de({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(A)}},e.type="title",e})(it);function wg(r){r.registerComponentModel(Vk),r.registerComponentView(Fk)}var Hk=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Gk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,n=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),R(i)&&T(i,function(a,o){U(a)&&(a={type:a}),i[o]=me(a,Hk(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<t.length;n++){var a=t[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&oo(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=X(),s=B(a,function(l){return(U(l)||ue(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new De(l,this,this.ecModel))},this);this._data=Ve(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;T(a,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;T(t,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;T(t,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&fe(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Te),Wl=Gk;var ts=we,Cg=T,xp=_e,Wk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new xp),this.group.add(this._selectorGroup=new xp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,n,l,s,u);var f=wi(t,n).refContainer,c=t.getBoxLayoutParams(),p=t.get("padding"),h=Rt(c,f,p),v=this.layoutInner(t,o,h,a,l,u),d=Rt(oe({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=EA(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this.getContentGroup(),f=X(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Cg(i.getData(),function(v,d){var m=this,g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
17
+ `)){var y=new xp;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),b=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),w=x.getVisual("style"),A=this._createItem(_,g,d,v,i,t,b,w,S,c,a);A.on("click",ts(XA,g,null,a,h)).on("mouseover",ts(Ag,_.name,null,a,h)).on("mouseout",ts(Eg,_.name,null,a,h)),n.ssr&&A.eachChild(function(C){var E=ce(C);E.seriesIndex=_.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),p&&A.eachChild(function(C){m.packEventData(C,i,_,d,g)}),f.set(g,!0)}else n.eachRawSeries(function(C){var E=this;if(!f.get(g)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(g))return;var I=D.indexOfName(g),M=D.getItemVisual(I,"style"),L=D.getItemVisual(I,"legendIcon"),O=St(M.fill);O&&O[3]===0&&(O[3]=.2,M=N(N({},M),{fill:cr(O,"rgba")}));var P=this._createItem(C,g,d,v,i,t,{},M,L,c,a);P.on("click",ts(XA,null,g,a,h)).on("mouseover",ts(Ag,null,g,a,h)).on("mouseout",ts(Eg,null,g,a,h)),n.ssr&&P.eachChild(function(F){var k=ce(F);k.seriesIndex=C.seriesIndex,k.dataIndex=d,k.ssrType="legend"}),p&&P.eachChild(function(F){E.packEventData(F,i,C,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(t,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};ce(t).eventData=s},e.prototype._createSelector=function(t,i,n,a,o){var s=this.getSelectorGroup();Cg(t,function(u){var f=u.type,c=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);mr(c,{normal:p,emphasis:h},{defaultText:u.title}),tf(c)})},e.prototype._createItem=function(t,i,n,a,o,s,l,u,f,c,p){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=Yk(f,a,l,u,h,m,p),b=new xp,S=a.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(Xk({itemWidth:v,itemHeight:d,icon:f,iconRotate:w,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?v+5:-5,C=s,E=o.get("formatter"),D=i;U(E)&&E?D=E.replace("{name}",i??""):K(E)&&(D=E(i));var I=m?S.getTextColor():a.get("inactiveColor");b.add(new be({style:tt(S,{text:D,x:A,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var M=new de({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&bo({el:M,componentModel:o,itemName:i,itemTooltipOption:L.option}),b.add(M),b.eachChild(function(O){O.silent=!0}),M.silent=!c,this.getContentGroup().add(b),tf(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ti(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ti("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:c[d]+=p[m]+v,h[1-d]+=f[g]/2-p[g]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[m]=f[m]+v+p[m],_[g]=Math.max(f[g],p[g]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(it);function Yk(r,e,t,i,n,a,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Cg(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:dl(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:t).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Xk(r){var e=r.icon||"roundRect",t=At(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=G.color.neutral00,t.style.lineWidth=2),t}function XA(r,e,t,i){Eg(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Ag(r,e,t,i)}function Ag(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function Eg(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var Sp=Wk;function Yl(r,e,t){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){i?s[r]():s[r](e.name),qA(s,n),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),qA(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function qA(r,e){var t=e||{};return T(r.getData(),function(i){var n=i.get("name");if(!(n===`
18
+ `||n==="")){var a=r.isSelected(n);Me(t,n)?t[n]=t[n]&&a:t[n]=a}}),t}function ZA(r){r.registerAction("legendToggleSelect","legendselectchanged",we(Yl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",we(Yl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",we(Yl,"inverseSelect")),r.registerAction("legendSelect","legendselected",we(Yl,"select")),r.registerAction("legendUnSelect","legendunselected",we(Yl,"unSelect"))}var KA=lo(qk);function qk(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function bp(r){r.registerComponentModel(Wl),r.registerComponentView(Sp),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,KA),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ZA(r)}var Zk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,n){var a=ii(t);r.prototype.init.call(this,t,i,n),jA(this,t,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),jA(this,this.option,t)},e.type="legend.scroll",e.defaultOption=un(Wl.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),e})(Wl);function jA(r,e,t){var i=r.getOrient(),n=[1,1];n[i.index]=0,nr(e,t,{type:"box",ignoreSize:!!n})}var $A=Zk;var QA=_e,Dg=["width","height"],Mg=["x","y"],Kk=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new QA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new QA)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=R(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new be({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=Qs(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:ee(u._pageGo,u,g,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Dg[u],c=Mg[u],p=Dg[1-u],h=Mg[1-u];o&&Ti("horizontal",l,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=j(n);o&&(g[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(t,a,g,u,f,p,h,c);if(o){if(s==="end")m[u]+=y[f]+v;else{var _=d[f]+v;m[u]-=_,y[c]-=_}y[f]+=d[f]+v,m[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Ti(t.get("orient"),f,t.get("itemGap"),a?n.width:null,a?null:n.height),Ti("horizontal",p,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],m=[-h.x,-h.y];i||(m[a]=f[u]);var g=[0,0],y=[-v.x,-v.y],_=q(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var x=t.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:g[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(m),c.setPosition(g),p.setPosition(y);var b={x:0,y:0};if(b[o]=d?n[o]:h[o],b[s]=Math.max(h[s],v[s]),b[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var S={x:0,y:0};S[o]=Math.max(n[o]-v[o]-_,0),S[s]=b[s],c.setClipPath(new de({shape:S})),c.__rectSize=S[o]}else p.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Be(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,i,n){var a=this._getPageInfo(i)[t];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=Dg[o],l=Mg[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=p;++m)_=x(f[m]),(!_&&y.e>g.s+a||_&&!b(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!b(y,_.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=_;return v;function x(S){if(S){var w=S.getBoundingRect(),A=w[l]+S[l];return{s:A,e:A+w[s],i:S.__legendDataIndex}}}function b(S,w){return S.e>=w&&S.s<=w+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(i=s)}),i??a},e.type="legend.scroll",e})(Sp),JA=Kk;function Ig(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function eE(r){_t(bp),r.registerComponentModel($A),r.registerComponentView(JA),Ig(r)}function Lg(r){_t(bp),_t(eE)}var jk={get:function(r,e,t){var i=j(($k[r]||{})[e]);return t&&R(i)?i[i.length-1]:i}},$k={color:{active:["#006edd","#e0ffff"],inactive:[G.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Tp=jk;var tE=nt.mapVisual,Qk=nt.eachVisual,Jk=R,Og=T,ez=Fr,tz=It,rz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,i){var n=this.option;!i&&GA(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=ee(t,this),this.controllerVisuals=Tg(this.option.controller,i,t),this.targetVisuals=Tg(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,i=this.option.seriesTargets;if(i){var n=[];return Og(i,function(l){if(l.seriesIndex!=null)n.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&n.push(u.componentIndex)}}),n}var a=this.option.seriesId,o=this.option.seriesIndex;o==null&&a==null&&(o="all");var s=Wr(this.ecModel,"series",{index:o,id:a},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return B(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,i){T(this.getTargetSeriesIndices(),function(n){var a=this.ecModel.getSeriesByIndex(n);a&&t.call(i,a)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(n){n===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,n){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;n=n||["<",">"],R(t)&&(t=t.slice(),u=!0);var f=i?t:u?[c(t[0]),c(t[1])]:c(t);if(U(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=ez([t.min,t.max]);this._dataExtent=i},e.prototype.getDimension=function(t){var i=this,n=this.option.seriesTargets;if(n){var a=Jl(n,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===i.ecModel.getSeriesByIndex(t).id});if(a)return a.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var i=t.hostModel.seriesIndex,n=this.getDimension(i);if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,o=a.length-1;o>=0;o--){var s=a[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),o=i.controller||(i.controller={});me(a,n),me(o,n);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(c){Jk(i.color)&&!c.inRange&&(c.inRange={color:i.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,p,h){var v=c[p],d=c[h];v&&!d&&(d=c[h]={},Og(v,function(m,g){if(nt.isValidType(g)){var y=Tp.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(c){var p=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";Og(this.stateList,function(g){var y=this.itemSize,_=c[g];_||(_=c[g]={color:s?v:[v]}),_.symbol==null&&(_.symbol=p&&j(p)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&j(h)||(s?y[0]:[y[0],y[0]])),_.symbol=tE(_.symbol,function(S){return S==="none"?m:S});var x=_.symbolSize;if(x!=null){var b=-1/0;Qk(x,function(S){S>b&&(b=S)}),_.symbolSize=tE(x,function(S){return tz(S,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:G.color.transparent,borderColor:G.color.borderTint,contentColor:G.color.theme[0],inactiveColor:G.color.disabled,borderWidth:0,padding:G.size.m,textGap:10,precision:0,textStyle:{color:G.color.secondary}},e})(Te),rs=rz;var rE=[20,140],iz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=rE[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=rE[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):R(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=Fr((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,n=this.getExtent(),a=q(this.option.unboundedRange,!0);return(a&&i[0]<=n[0]||i[0]<=t)&&(a&&i[1]>=n[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(n){var a=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),i.push({seriesId:n.id,dataIndex:a})},this),i},e.prototype.getVisualMeta=function(t){var i=iE(this,"outOfRange",this.getExtent()),n=iE(this,"inRange",this.option.range.slice()),a=[];function o(h,v){a.push({value:h,color:t(h,v)})}for(var s=0,l=0,u=n.length,f=i.length;l<f&&(!n.length||i[l]<=n[0]);l++)i[l]<n[s]&&o(i[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&a.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<f;l++)(!n.length||n[n.length-1]<i[l])&&(c&&(a.length&&o(a[a.length-1].value,"outOfRange"),c=0),o(i[l],"outOfRange"));var p=a.length;return{stops:a,outerColors:[p?a[0].color:"transparent",p?a[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=un(rs.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:G.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:G.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:G.color.shadow}}),e})(rs);function iE(r,e,t){if(t[0]===t[1])return t.slice();for(var i=200,n=(t[1]-t[0])/i,a=t[0],o=[],s=0;s<=i&&a<t[1];s++)o.push(a),a+=n;return o.push(t[1]),o}var nE=iz;var nz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,n,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,n,a)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,n=ri(i.get("padding")||0),a=t.getBoundingRect();t.add(new de({z2:-1,silent:!0,shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[3]+n[1],height:a.height+n[0]+n[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,n){n=n||{};var a=n.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,v){s[h]=v}var c=o.controllerVisuals[a||o.getValueState(t)],p=nt.prepareVisualTypes(c);return T(p,function(h){var v=c[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=c.__alphaForOpacity),nt.dependsOn(h,i)&&v&&v.applyVisual(t,u,f)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,n=this.api,a=wi(i,n).refContainer;cS(t,i.getBoxLayoutParams(),a)},e.prototype.doRender=function(t,i,n,a){},e.type="visualMap",e})(it),wp=nz;var aE=[["left","right","width"],["top","bottom","height"]];function Cp(r,e,t){var i=r.option,n=i.align;if(n!=null&&n!=="auto")return n;for(var a={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=aE[o],l=[0,null,10],u={},f=0;f<3;f++)u[aE[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:i[s[f]];var c=[["x","width",3],["y","height",0]][o],p=Rt(u,a,i.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+p[c[1]]*.5<a[c[1]]*.5?0:1]}function is(r,e){return T(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var oi=It,az=T,sE=Math.min,Pg=Math.max,oz=12,sz=6,lz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){r.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=ee(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ee(this._hideIndicator,this)},e.prototype.doRender=function(t,i,n,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var n=t.get("text");this._renderEndsText(i,n,0),this._renderEndsText(i,n,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,n){if(i){var a=i[1-n];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new be({style:tt(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(p==="horizontal"?"middle":c),align:h.get("align")||(p==="horizontal"?c:"center"),text:a})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,n=this._shapes,a=i.itemSize,o=this._orient,s=this._useHandle,l=Cp(i,this.api,a),u=n.mainGroup=this._createBarGroup(l),f=new _e;u.add(f),f.add(n.outOfRange=lE()),f.add(n.inRange=lE(null,s?fE(this._orient):null,ee(this._dragHandle,this,"all",!1),ee(this._dragHandle,this,"all",!0))),f.setClipPath(new de({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var c=i.textStyleModel.getTextRect("\u56FD"),p=Pg(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(i,u,0,a,p,o),this._createHandle(i,u,1,a,p,o)),this._createIndicator(i,u,a,p,o),t.add(u)},e.prototype._createHandle=function(t,i,n,a,o,s){var l=ee(this._dragHandle,this,n,!1),u=ee(this._dragHandle,this,n,!0),f=Vt(t.get("handleSize"),a[0]),c=At(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),p=fE(this._orient);c.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Hi(g.event)}}),c.x=a[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),rf(c,!0),i.add(c);var h=this.visualMapModel.textStyleModel,v=new be({cursor:p,draggable:!0,drift:l,onmousemove:function(g){Hi(g.event)},ondragend:u,style:tt(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var d=[f,0],m=this._shapes;m.handleThumbs[n]=c,m.handleLabelPoints[n]=d,m.handleLabels[n]=v},e.prototype._createIndicator=function(t,i,n,a,o){var s=Vt(t.get("indicatorSize"),n[0]),l=At(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof bt){var f=l.style;l.useStyle(N({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var c=this.visualMapModel.textStyleModel,p=new be({silent:!0,invisible:!0,style:tt(c,{x:0,y:0,text:""})});this.group.add(p);var h=[(o==="horizontal"?a/2:sz)+n[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=p,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,n,a){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([n,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():uE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),n=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[oi(i[0],n,a,!0),oi(i[1],n,a,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var n=this.visualMapModel,a=this._handleEnds,o=[0,n.itemSize[1]];fg(i,a,o,t,0);var s=n.getExtent();this._dataInterval=[oi(a[0],o,s,!0),oi(a[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,n=i.getExtent(),a=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,n,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new go(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var n=100,a=[],o=(t[1]-t[0])/n;a.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",i),offset:s/n})}return a.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),a},e.prototype._createBarPoints=function(t,i){var n=this.visualMapModel.itemSize;return[[n[0]-i[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,n=this.visualMapModel.get("inverse");return new _e(i==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var n=this._shapes,a=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",n.mainGroup);az([0,1],function(c){var p=o[c];p.setStyle("fill",i.handlesColor[c]),p.y=t[c];var h=oi(t[c],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=v/l[0],p.x=l[0]-v/2;var d=sn(n.handleLabelPoints[c],$s(p,this.group));if(this._orient==="horizontal"){var m=f==="left"||f==="top"?(l[0]-v)/2:(l[0]-v)/-2;d[1]+=m}s[c].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,n,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",p),v=this.getControllerVisual(t,"symbolSize"),d=oi(t,s,u,!0),m=l[0]-v/2,g={x:c.x,y:c.y};c.y=d,c.x=m;var y=sn(f.indicatorLabelPoint,$s(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",f.mainGroup),b=this._orient,S=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(i),verticalAlign:S?x:"middle",align:S?"center":x});var w={x:m,y:d,style:{fill:h}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,C),_.animateTo(A,C)}else c.attr(w),_.attr(A);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var D=0;D<E.length;D++)this.api.enterBlur(E[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,a=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);a[1]=sE(Pg(0,a[1]),n[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var n=this.visualMapModel,a=n.itemSize;if(n.option.hoverLink){var o=[0,a[1]],s=n.getExtent();t=sE(Pg(o[0],t),o[1]);var l=uz(n,s,o),u=[t-l,t+l],f=oi(t,o,s,!0),c=[oi(u[0],o,s,!0),oi(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var p=this._hoverLinkDataIndices,h=[];(i||uE(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var v=I_(p,h);this._dispatchHighDown("downplay",is(v[0],n)),this._dispatchHighDown("highlight",is(v[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(Ei(t.target,function(l){var u=ce(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var n=this.ecModel.getSeriesByIndex(i.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(n)){var o=n.getData(i.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var n=0;n<i.length;n++)this.api.leaveBlur(i[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",is(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,n,a){var o=$s(i,a?null:this.group);return R(t)?sn(t,o,n):Wv(t,o,n)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(wp);function lE(r,e,t,i){return new Zs({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){Hi(n.event)},ondragend:i})}function uz(r,e,t){var i=oz/2,n=r.get("hoverLinkDataSize");return n&&(i=oi(n,e,t,!0)/2),i}function uE(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function fE(r){return r==="vertical"?"ns-resize":"ew-resize"}var cE=lz;var pE={type:"selectDataRange",event:"dataRangeSelected",update:"update"},hE=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})};var vE=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(i){var n=r.pipelineContext;!i.isTargetSeries(r)||n&&n.large||t.push(WA(i.stateList,i.targetVisuals,ee(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),i=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var a=n.getVisualMeta(ee(fz,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(a.dimension=o,i.push(a))}}),r.getData().setVisual("visualMeta",i)}}];function fz(r,e,t,i){for(var n=e.targetVisuals[i],a=nt.prepareVisualTypes(n),o={color:cc(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,c,p)}return o.color;function c(h){return o[h]}function p(h,v){o[h]=v}}var dE=T;function Rg(r){var e=r&&r.visualMap;R(e)||(e=e?[e]:[]),dE(e,function(t){if(t){ns(t,"splitList")&&!ns(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;if(i&&R(i)&&dE(i,function(a){V(a)&&(ns(a,"start")&&!ns(a,"min")&&(a.min=a.start),ns(a,"end")&&!ns(a,"max")&&(a.max=a.end))}),0)var n}})}function ns(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var mE=!1;function Xl(r){mE||(mE=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(pE,hE),T(vE,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Rg))}function gE(r){r.registerComponentModel(nE),r.registerComponentView(cE),Xl(r)}var cz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],pz[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var a=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=j(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=B(this._pieceList,function(l){return l=j(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},n=nt.listVisualTypes(),a=this.isCategory();T(t.pieces,function(s){T(n,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),T(i,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=Tp.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var n=this.option,a=this._pieceList,o=(i?n:t).selected||{};if(n.selected=o,T(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;T(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=j(t)},e.prototype.getValueState=function(t){var i=nt.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],n=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=nt.findPieceIndex(l,n);f===t&&o.push(u)},this),i.push({seriesId:a.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var n=t.interval||[];i=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],n=["",""],a=this;function o(f,c){var p=a.getRepresentValue({interval:f});c||(c=a.getValueState(p));var h=t(p,c);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:i.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:i,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=un(rs.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(rs),pz={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var a=(i[1]-i[0])/n;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<n;s+=a,o++){var l=o===n-1?i[1]:s+a;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),kh(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;T(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),yE(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,i){V(t)||(t={value:t});var n={text:"",index:i};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=t[p[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=nt.retrieveVisuals(t),r.push(n)},this),yE(e,r),kh(r),T(r,function(t){var i=t.close,n=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function yE(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var _E=cz;var hz=(function(r){z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,n=i.get("textGap"),a=i.textStyleModel,o=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,f=Bi(i.get("showLabel",!0),!u),c=!i.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),T(l.viewPieceList,function(p){var h=p.piece,v=new _e;v.onclick=ee(this._onItemClick,this,h),this._enableHoverLink(v,p.indexInModelPieceList);var d=i.getRepresentValue(h);if(this._createItemSymbol(v,d,[0,0,s[0],s[1]],c),f){var m=this.visualMapModel.getValueState(d),g=a.get("align")||o;v.add(new be({style:tt(a,{x:g==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:a.get("verticalAlign")||"middle",align:g,opacity:q(a.get("opacity"),m==="outOfRange"?.5:1)}),silent:c}))}t.add(v)},this),u&&this._renderEndsText(t,u[1],s,f,o),Ti(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var n=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:is(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return Cp(t,this.api,t.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,i,n,a,o){if(i){var s=new _e,l=this.visualMapModel.textStyleModel;s.add(new be({style:tt(l,{x:a?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:a?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=B(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},e.prototype._createItemSymbol=function(t,i,n,a){var o=At(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var i=this.visualMapModel,n=i.option,a=n.selectedMode;if(a){var o=j(n.selected),s=i.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(wp),xE=hz;function SE(r){r.registerComponentModel(_E),r.registerComponentView(xE),Xl(r)}function Ng(r){_t(gE),_t(SE)}function bE(r,e,t){var i=Re.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*t,i.height=a*t,i}function Ap(r){return!r.__cursors.get(kv)}function TE(r){var e=r.__cursors.get(kv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var vz=(function(r){ie(e,r);function e(t,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=yo,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Un,typeof t=="string"?o=bE(t,i,n):V(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(tu(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=TE(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=bE("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new re(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var b=new re(0,0,0,0);b.copy(x),o.push(b)}else{for(var S=!1,w=1/0,A=0,C=0;C<o.length;++C){var E=o[C];if(E.intersect(x)){var D=new re(0,0,0,0);D.copy(E),D.union(x),o[C]=D,S=!0;break}else if(l){u.copy(x),u.union(E);var I=x.width*x.height,M=E.width*E.height,L=u.width*u.height,O=L-I-M;O<w&&(w=O,A=C)}}if(l&&(o[A].union(x),S=!0),!S){var b=new re(0,0,0,0);b.copy(x),o.push(b)}l||(l=o.length>=s)}}for(var c=TE(this),p=c.startIdx;p<c.endIdx;++p){var h=t[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),d=h.__isRendered&&(h.__dirty&Xe||!v)?h.getPrevPaintRect():null;d&&f(d);var m=v&&(h.__dirty&Xe||!h.__isRendered)?h.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,p=g.startIdx;p<g.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),a.width=t*n,a.height=i*n,s&&(s.width=t*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var _=void 0;if(zi(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||hl(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else Kg(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=gc(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,m,g,y),o.restore())}!n||u?v(0,0,s,l):n.length&&T(n,function(d){v(d.x*c,d.y*c,d.width*c,d.height*c)})},e})(vt),kg=vz;var wE=1e5,Ba=314159,zg=void 0,dz=1,Bg=2;function mz(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function gz(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function CE(r,e,t,i){var n=new kg(r,e,e.dpr);return n.zlevel=t,n.zlevel2=i,n.__builtin__=!0,AE(n),n}function AE(r){r.__cursorStack=[],r.__cursors=X()}function yz(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function _z(r,e){var t=r.__cursors,i=+e;return t.get(i)||(r.__cursorStack.push(i),t.set(i,yz({key:i})))}function Ep(r,e){for(var t=r.__cursorStack,i=0;i<t.length;i++)e(r.__cursors.get(t[i]))}function Ug(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Et(r,e,t){for(var i=r.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=r.layers[a][o];(!t||(!(t&ql)||s.__builtin__)&&(!(t&Vg)||!s.__builtin__)&&(!(t&EE)||s!==r.hoverlayer))&&e(s,a,o,n)}}var ql=1,Vg=2,EE=4,Dp=ql|EE,xz=(function(){function r(e,t,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||Un,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(tu(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=CE(l,this,Ba,yo);c.initContext(),this._insertLayer(c,Ba,yo,!0),this._domRoot=e}else{this._width=vl(e,0,i),this._height=vl(e,1,i);var s=this._domRoot=gz(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!V(e)?t={paintAll:!!e}:t=e||{};var i=q(t.refresh,!0),n=q(t.refreshHover,!1);if(n&&(this._hoverLayerDirty=Bg),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Et(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},Vg),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=zg,i!==zg&&(!t&&i===Bg&&(t=this._i.hoverlayer=this._ensureLayer(wE)),!!t)){t.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=t.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),vn(a,l,n),u&&(l.style=f)}}a&&(Ca(a,n),a.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(wE)},r.prototype.paintOne=function(e,t){yc(e,t)},r.prototype._paintList=function(e,t,i){if(this._redrawId===i){var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),n)Et(this._i,function(o){o.afterBrush&&o.afterBrush()},Dp),this._paintHoverList(e);else{var a=this;gs(function(){a._paintList(e,t,i)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Ba).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),Et(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,t,i)},ql)},r.prototype._doPaintList=function(e,t){var i=this,n=!0;return Et(this._i,function(a){var o=!1;if(Ep(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!Ap(a)?a.createRepaintRects(e,t,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}Ep(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},Dp),ae.wxa&&Et(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},r.prototype._paintPerCursor=function(e,t,i,n,a){var o=e.ctx;if(n)if(!n.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,i,null,a),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Ap(e),u=l&&Re.getTime(),f=t.drawIdx,c=t.notClearIdx,p=c>=0?Math.min(c,f):f;p<t.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=Bg),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&(vn(s,h,o),h.setPrevPaintRect(v))}else vn(s,h,o);if(l){var d=Re.getTime()-u;if(d>15){p++;break}}}}Ca(s,o),t.drawIdx=Math.max(p,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,i){t=t||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Ba,t=0);var a=Ug(this._i,e)[t];return a||(a=CE("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&me(a,this._layerConfig[e],!0),(i||n&&e!==Ba)&&(a.virtual=!0),this._insertLayer(a,e,t,!1),a.initContext()),a},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][i])&&mz(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<t||s[c].zl===t&&s[c].zl2<i);)c++;if(c>0&&(u=Ug(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:t,zl2:i}),Ug(a,t)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return Et(this._i,function(i,n){e.call(t,i,n)})},r.prototype.eachBuiltinLayer=function(e,t){return Et(this._i,function(i,n){e.call(t,i,n)},ql)},r.prototype.eachOtherLayer=function(e,t){return Et(this._i,function(i,n){e.call(t,i,n)},Vg)},r.prototype.getLayers=function(){var e={};return Et(this._i,function(t,i,n){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}Et(i._i,function(m){m.__dirty=!1,Ep(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},Dp);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,v=Tx):v=u?bx:yo,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),l=null,!s.__builtin__)){Fa("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=_z(s,h),!l.used))if(l.used=!0,!t&&l.first===a.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Xe&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Et(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var b=x.endIdxNew;(Ap(m)?b<x.drawIdx:b!==x.endIdx||!b||e[b-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=b?e[b-1].id:NaN}}m.__dirty&&(Ep(m,function(S){S.drawIdx=S.startIdx}),i._hoverLayerDirty===zg&&(i._hoverLayerDirty=dz))},Dp)},r.prototype.clear=function(){return Et(this._i,function(e){e.clear(),AE(e)},ql),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Et(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?me(i[e],t,!0):i[e]=t,Et(this._i,function(n,a){me(n,i[a],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,i=this._i.layers,n=t.length-1;n>=0;n--){var a=t[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(t.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),t!=null&&(n.height=t),e=vl(a,0,n),t=vl(a,1,n),i.style.display="",(this._width!==e||t!==this._height)&&(i.style.width=e+"px",i.style.height=t+"px",Et(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Ba).resize(e,t)}return this},r.prototype.clearLayer=function(e){T(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Ba][0].dom;var t=new kg("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,a=t.dom.height;Et(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];vn(i,f,o)}Ca(i,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),DE=xz;function Fg(r){r.registerPainter("canvas",DE)}var Sz=new Set(["rich","link","sublink","target","subtarget","linkTarget","image","extraCssText","className","appendTo","appendToBody","renderMode"]),bz=new Set(["formatter","content"]),as=Object.freeze({depth:12,entries:2e3}),Tz=new Set(["__proto__","prototype","constructor"]),Zl=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)&&(Object.getPrototypeOf(r)===Object.prototype||Object.getPrototypeOf(r)===null);function nte(r){if(r==null)return{options:null,problems:[]};if(!Zl(r))return{options:null,problems:["chartOptions: not a plain object"]};let e=[],t=0,i=(n,a,o)=>{if(typeof n=="string"&&/^\s*image:\/\//i.test(n)){e.push(`${a}: an image address, not allowed`);return}if(n===null||typeof n=="string"||typeof n=="boolean")return n;if(typeof n=="number"){if(Number.isFinite(n))return n;e.push(`${a}: not a finite number`);return}if(Array.isArray(n)||Zl(n)){if(o>=as.depth){e.push(`${a}: nested deeper than ${as.depth} levels`);return}if(Array.isArray(n)){let l=[];for(let u=0;u<n.length;u++){if(++t>as.entries){e.push(`${a}: more than ${as.entries} entries in all`);break}let f=i(n[u],`${a}[${u}]`,o+1);l.push(f===void 0?null:f)}return l}let s={};for(let l of Object.keys(n)){if(Tz.has(l)){e.push(`${a}.${l}: not allowed`);continue}if(Sz.has(l)){e.push(`${a}.${l}: markup, an address or the tooltip's element, not allowed`);continue}if(bz.has(l)&&typeof n[l]=="string"){e.push(`${a}.${l}: a text template (written as markup), not allowed`);continue}if(++t>as.entries){e.push(`${a}: more than ${as.entries} entries in all`);break}let u=i(n[l],`${a}.${l}`,o+1);u!==void 0&&(s[l]=u)}return s}e.push(`${a}: ${typeof n=="function"?"a function":typeof n=="object"?"not plain JSON":`a ${typeof n}`}, not allowed`)};return{options:i(r,"chartOptions",0),problems:e}}function Hg(r,e){if(e===void 0)return r;if(Array.isArray(r)){if(Array.isArray(e)){let t=Math.max(r.length,e.length);return Array.from({length:t},(i,n)=>n<e.length?Hg(r[n],e[n]):r[n])}return Zl(e)?r.map(t=>Hg(t,e)):e}if(Zl(r)&&Zl(e)){let t=r,i=e,n={...t};for(let a of Object.keys(i))n[a]=Hg(t[a],i[a]);return n}return e}function wz(r,{valueFormatter:e=a=>String(a??""),xNames:t=[],yNames:i=[],categoryNames:n=[]}={}){let a=s=>typeof s.color=="string"?s.color:null,o=s=>s==null?"":String(s);if(Array.isArray(r)){let s=r[0];return{title:s?o(n[s.dataIndex]??s.axisValueLabel??s.name):"",lines:r.map(l=>({color:a(l),name:o(l.seriesName),value:e(l.value)}))}}if(r&&r.seriesType==="heatmap"&&Array.isArray(r.value)){let[s,l,u]=r.value;return{title:o(r.seriesName),lines:[{color:a(r),name:[i[l],t[s]].filter(f=>f!==void 0).map(o).join(", "),value:e(u)}]}}return{title:o(r?.seriesName),lines:r?[{color:a(r),name:o(r.name),value:e(r.value)}]:[]}}function Cz(r,e){return t=>{let{title:i,lines:n}=wz(t,e),a=r.createElement("div");if(i){let o=r.createElement("div");o.textContent=i,o.style.fontWeight="600",o.style.marginBottom="2px",a.append(o)}for(let o of n){let s=r.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.gap="8px";let l=r.createElement("span");l.style.display="inline-block",l.style.width="10px",l.style.height="10px",l.style.borderRadius="50%",l.style.flex="none",o.color&&(l.style.backgroundColor=o.color);let u=r.createElement("span");u.textContent=o.name,u.style.flex="1";let f=r.createElement("span");f.textContent=o.value,f.style.fontWeight="600",f.style.marginLeft="12px",s.append(l,u,f),a.append(s)}return a}}function Az(r){return Math.round(Math.min(24,Math.max(0,r)*.05))}var Ez=480,ME=32,Dz=r=>String(r).length*7;function Mz(r,e,t){let i=Math.max(0,Math.min(e.width,e.height))/2,n=s=>typeof s=="number"?s:/%$/.test(String(s))?parseFloat(String(s))/100*i:parseFloat(String(s))||0,a=n(r[0]);if(a<=0)return!0;let o=n(r[1])-a;return t.every(s=>Dz(s)+6<=o)}var Iz=120,Lp={x:80,y:120},Op=16,Lz=4;function Oz(r,e,t=12){if(r.length===0)return{rotate:0};let i=Math.max(0,e-Lp.x)/r.length;return Math.max(...r.map(a=>String(a).length))*t*.55<=i?{rotate:0}:{rotate:45,width:Iz,overflow:"truncate"}}function Pz(r,e,t,i,n,a=12){let o=Math.max(0,t-Lp.x)/Math.max(1,r),s=Math.max(0,i-Lp.y)/Math.max(1,e),l=n.reduce((u,f)=>Math.max(u,String(f).length),0)*a*.55;return o>=l+2*Lz&&s>=Op}function Rz(r,e){let t=Math.max(0,e-Lp.y)/Math.max(1,r);return t>=Op?0:Math.ceil(Op/Math.max(t,.1))-1}var Pp=120,Rp={x:80,y:60};function Nz(r,{width:e,height:t,horizontal:i=!1,mode:n="auto",fontSize:a=12}){let o=Math.max(1,r.length),s={width:Pp,overflow:"truncate"},l=(p,h)=>Math.max(1,Math.ceil(h/Math.max(p,.1))),u=(p,h)=>({rotate:p,interval:h-1,every:h,...s});if(i){let p=Math.max(0,t-Rp.y)/o;return u(0,n==="all"?1:l(p,a+1))}let f=Math.max(0,e-Rp.x)/o,c=Math.min(Pp,Math.max(0,...r.map(p=>String(p).length))*a*.55);return n==="nth"?u(0,l(f,c+8)):c+8<=f?u(0,1):u(45,n==="all"?1:l(f,Op))}var Mp=Object.freeze({along:56,across:28,width:420,height:260});function kz(r,e,{width:t,height:i,horizontal:n=!1}){if(t<Mp.width||i<Mp.height)return!1;let a=Math.max(1,r);return(n?Math.max(0,i-Rp.y)/a:Math.max(0,t-Rp.x)/a)*Math.max(1,e)>=(n?Mp.across:Mp.along)}var Ip=(r,e)=>Object.fromEntries(Object.entries(r).filter(([t])=>!e.includes(t)));function ate(r,e,t=480,i=void 0,n=800,a={}){let o=S=>Array.isArray(S)?S[0]:S,s=S=>e.getPropertyValue(S).trim();r.legend?.orient==="vertical"&&typeof r.legend.right=="number"&&n<Ez&&(r={...r,legend:{...Ip(r.legend,["orient","right","top"]),bottom:0},series:(r.series||[]).map(S=>S.type==="pie"?{...Ip(S,["right"]),bottom:(typeof S.bottom=="number"?S.bottom:0)+ME}:S),...r.grid?{grid:{...Ip(r.grid,["right"]),bottom:ME+8}}:{}});let f=s("--pk-surface")||void 0,c={...r.tooltip,backgroundColor:s("--pk-surface-raised")||f,borderColor:s("--pk-border")||void 0,textStyle:{color:s("--pk-text")||void 0,fontFamily:e.getPropertyValue("font-family")||void 0},extraCssText:`box-shadow: ${s("--pk-shadow")||"none"}; border-radius: 8px;`,...i?{formatter:Cz(i,{valueFormatter:r.tooltip?.valueFormatter,xNames:o(r.xAxis)?.data,yNames:o(r.yAxis)?.data,categoryNames:a.categoryNames})}:{}},p=(r.series||[]).map(S=>{if(S.type==="bar"){let A=o(r.yAxis)?.type==="category"?[0,4,4,0]:[4,4,0,0];return{...S,barMaxWidth:48,itemStyle:{borderRadius:S.stack?0:A,borderColor:S.stack?f:void 0,borderWidth:S.stack?1:0},emphasis:{focus:"series"}}}if(S.type==="line")return{...S,lineStyle:{width:2},symbolSize:7,smooth:!!S.smooth,areaStyle:S.areaStyle?{opacity:.18}:void 0,emphasis:{focus:"series"}};if(S.type==="pie"){let w=Az(t),A=(typeof S.top=="number"?S.top:0)+w,C=(typeof S.bottom=="number"?S.bottom:0)+w,E=S.label,D=S.labelLine;if(E?.position==="inside"&&E.show!==!1&&Array.isArray(S.radius)){let I={width:n-(typeof S.right=="number"?S.right:0),height:t-A-C},M=(S.data||[]).reduce((O,P)=>O+(typeof P.value=="number"?P.value:0),0),L=typeof E.formatter=="function"?(S.data||[]).map(O=>E.formatter({name:O.name,value:O.value,percent:M?O.value/M*100:0})):[];Mz(S.radius,I,L)||(E=Ip(E,["position"]),D={show:!0})}return{...S,top:A,bottom:C,labelLine:D,itemStyle:{borderColor:f,borderWidth:2,borderRadius:4},label:{...E,color:E?.position==="inside"?void 0:s("--pk-text")||void 0}}}if(S.type==="heatmap"){let w=typeof S.label?.formatter=="function"?S.data.map(C=>S.label.formatter({value:C})):[],A=Pz(r.xAxis?.data?.length??1,r.yAxis?.data?.length??1,n,t,w);return{...S,itemStyle:{borderColor:f,borderWidth:2,borderRadius:3},label:{...S.label,show:!!S.label?.show&&A,color:s("--pk-text")||void 0}}}return S}),h=r.legend?{...r.legend,icon:"roundRect",itemWidth:12,itemHeight:12,textStyle:{...r.legend.textStyle,color:s("--pk-text")||void 0}}:void 0,v=r.grid?{left:12,right:24,bottom:r.visualMap?64:12,containLabel:!0,...r.grid}:void 0,d=p.some(S=>S.type==="heatmap")&&r.xAxis?.axisLabel,m=d?{...r.xAxis,axisLabel:{...r.xAxis.axisLabel,...Oz(r.xAxis.data??[],n)}}:r.xAxis,g=d&&r.yAxis?{...r.yAxis,axisLabel:{...r.yAxis.axisLabel,interval:Rz(r.yAxis.data?.length??0,t)}}:r.yAxis,y=r.title?{title:{...r.title,textStyle:{...r.title.textStyle,width:Math.max(40,n-32),overflow:"truncate"}}}:{},_={xAxis:m,yAxis:g},x=1,b=!d&&p.some(S=>S.type==="bar"||S.type==="line")?o(r.yAxis)?.type==="category"?"yAxis":o(r.xAxis)?.type==="category"?"xAxis":null:null;if(b){let S=Array.isArray(_[b])?_[b]:[_[b]],w=S[1]?.groups?S[1]:null;w&&w.groupsAuto&&!kz(S[0].data?.length??0,w.groupSize??1,{width:n,height:t,horizontal:b==="yAxis"})&&(S=[{...S[0],data:a.categoryNames??S[0].data}]);let A=S[0].data??[],C=Nz(A,{width:n,height:t,horizontal:b==="yAxis",mode:a.axisLabels});x=C.every;let E=Math.min(Pp,Math.max(0,...A.map(P=>String(P).length))*12*.55),D=b==="yAxis"?Math.round(E)+16:C.rotate?Math.round(E*.71)+14:24,I={...S[0],axisLabel:{...S[0].axisLabel,rotate:C.rotate,interval:C.interval,width:C.width,overflow:C.overflow}},M=(b==="yAxis"?Math.max(0,t-60):Math.max(0,n-80))/Math.max(1,A.length),L=b==="yAxis"?Pp:Math.max(24,Math.round(M*(S[1]?.groupSize??1))-8),O=S.slice(1).map(P=>P.groups?{...P,offset:D,axisTick:{...P.axisTick,length:D},axisLabel:{...P.axisLabel,width:L,overflow:"truncate"}}:P);_={..._,[b]:O.length?[I,...O]:I}}return{...r,...y,tooltip:c,series:p,..._.xAxis?{xAxis:_.xAxis}:{},..._.yAxis?{yAxis:_.yAxis}:{},...h?{legend:h}:{},...v?{grid:v}:{},animationDuration:e.getPropertyValue("--pk-duration").trim()==="0ms"?0:400,axisEvery:x}}_t([Wm,Pm,$m,cg,yg,bg,Lg,wg,Ng,Fg]);export{nte as cleanChartOptions,ate as decorate,QP as init,Hg as mergeChartOptions};