jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
530 KiB

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var sl=function(e,t){return sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},sl(e,t)};function N(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var S_=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),x_=function(){function e(){this.browser=new S_,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 e}(),jr=new x_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(jr.wxa=!0,jr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?jr.worker=!0:typeof navigator>"u"?(jr.node=!0,jr.svgSupported=!0):w_(navigator.userAgent,jr);function w_(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const j=jr;var wf=12,b_="sans-serif",pn=wf+"px "+b_,T_=20,C_=100,M_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function D_(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-T_)/C_;t[n]=a}return t}var A_=D_(M_),er={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=er.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||pn),e.measureText(r);r=r||"",n=n||pn;var i=/^([0-9]*?)px$/.exec(n),o=+(i&&i[1])||wf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=A_[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function L_(e){for(var t in er)e[t]&&(er[t]=e[t])}var Ap=rr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Lp=rr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ea=Object.prototype.toString,us=Array.prototype,I_=us.forEach,P_=us.filter,bf=us.slice,R_=us.map,Oh=function(){}.constructor,Mi=Oh?Oh.prototype:null,Tf="__proto__",E_=2311;function Cf(){return E_++}function ls(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=ea.call(e);if(r==="[object Array]"){if(!$n(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=rt(e[n])}}else if(Lp[r]){if(!$n(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!Ap[r]&&!$n(e)&&!Za(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Tf&&(t[o]=rt(e[o]))}return t}function at(e,t,r){if(!W(t)||!W(e))return r?rt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Tf){var a=e[n],i=t[n];W(i)&&W(a)&&!B(i)&&!B(a)&&!Za(i)&&!Za(a)&&!ul(i)&&!ul(a)&&!$n(i)&&!$n(a)?at(a,i,r):(r||!(n in e))&&(e[n]=rt(t[n]))}return e}function O_(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=at(r,e[n],t);return r}function O(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Tf&&(e[r]=t[r]);return e}function Q(e,t,r){for(var n=ct(t),a=0;a<n.length;a++){var i=n[a];(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}var k_=er.createCanvas;function it(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Ip(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Le(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else Q(e,t,r)}function Bt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function M(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===I_)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function G(e,t,r){if(!e)return[];if(!t)return fs(e);if(e.map&&e.map===R_)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function rr(e,t,r,n){if(!!(e&&t)){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function wt(e,t,r){if(!e)return[];if(!t)return fs(e);if(e.filter&&e.filter===P_)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function B_(e,t,r){if(!!(e&&t)){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function ct(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function N_(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(bf.call(arguments)))}}var vt=Mi&&q(Mi.bind)?Mi.call.bind(Mi.bind):N_;function _t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(bf.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):ea.call(e)==="[object Array]"}function q(e){return typeof e=="function"}function z(e){return typeof e=="string"}function Ro(e){return ea.call(e)==="[object String]"}function ft(e){return typeof e=="number"}function W(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function ul(e){return!!Ap[ea.call(e)]}function jt(e){return!!Lp[ea.call(e)]}function Za(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function di(e){return e.colorStops!=null}function Pp(e){return e.image!=null}function Rp(e){return ea.call(e)==="[object RegExp]"}function Ka(e){return e!==e}function Jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function K(e,t){return e!=null?e:t}function Yn(e,t,r){return e!=null?e:t!=null?t:r}function fs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return bf.apply(e,t)}function Mf(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ae(e,t){if(!e)throw new Error(t)}function be(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ep="__ec_primitive__";function Qa(e){e[Ep]=!0}function $n(e){return e[Ep]}var Op=function(){function e(t){this.data={};var r=B(t);this.data={};var n=this;t instanceof e?t.each(a):t&&M(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},e.prototype.set=function(t,r){return this.data[t]=r},e.prototype.each=function(t,r){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(r,this.data[n],n)},e.prototype.keys=function(){return ct(this.data)},e.prototype.removeKey=function(t){delete this.data[t]},e}();function $(e){return new Op(e)}function kp(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function pi(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&O(r,t),r}function Df(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ve(e,t){return e.hasOwnProperty(t)}function Gt(){}var Fa=180/Math.PI;const HI=Object.freeze(Object.defineProperty({__proto__:null,guid:Cf,logError:ls,clone:rt,merge:at,mergeAll:O_,extend:O,defaults:Q,createCanvas:k_,indexOf:it,inherits:Ip,mixin:Le,isArrayLike:Bt,each:M,map:G,reduce:rr,filter:wt,find:B_,keys:ct,bind:vt,curry:_t,isArray:B,isFunction:q,isString:z,isStringSafe:Ro,isNumber:ft,isObject:W,isBuiltInObject:ul,isTypedArray:jt,isDom:Za,isGradientObject:di,isImagePatternObject:Pp,isRegExp:Rp,eqNaN:Ka,retrieve:Jn,retrieve2:K,retrieve3:Yn,slice:fs,normalizeCssArray:Mf,assert:Ae,trim:be,setAsPrimitive:Qa,isPrimitive:$n,HashMap:Op,createHashMap:$,concatArray:kp,createObject:pi,disableUserSelect:Df,hasOwn:Ve,noop:Gt,RADIAN_TO_DEGREE:Fa},Symbol.toStringTag,{value:"Module"}));function Sn(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function F_(e,t){return e[0]=t[0],e[1]=t[1],e}function Bp(e){return[e[0],e[1]]}function z_(e,t,r){return e[0]=t,e[1]=r,e}function ll(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function G_(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Np(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Af(e){return Math.sqrt(Lf(e))}var H_=Af;function Lf(e){return e[0]*e[0]+e[1]*e[1]}var V_=Lf;function W_(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function U_(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Y_(e,t){return e[0]*t[0]+e[1]*t[1]}function go(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Fp(e,t){var r=Af(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Eo(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Oo=Eo;function zp(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var un=zp;function $_(e,t){return e[0]=-t[0],e[1]=-t[1],e}function za(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Ht(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function pr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function gr(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const VI=Object.freeze(Object.defineProperty({__proto__:null,create:Sn,copy:F_,clone:Bp,set:z_,add:ll,scaleAndAdd:G_,sub:Np,len:Af,length:H_,lenSquare:Lf,lengthSquare:V_,mul:W_,div:U_,dot:Y_,scale:go,normalize:Fp,distance:Eo,dist:Oo,distanceSquare:zp,distSquare:un,negate:$_,lerp:za,applyTransform:Ht,min:pr,max:gr},Symbol.toStringTag,{value:"Module"}));var Tn=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),X_=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Tn(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new Tn(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Tn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Tn(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Tn(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Tn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const q_=X_;var Z_=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var u={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,f=i[t][l];return f&&f.callAtLast?i[t].splice(l,0,u):i[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,u=0;u<s;u++){var l=a[u];if(!(i&&i.filter&&l.query!=null&&!i.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],u=a.length,l=0;l<u;l++){var f=a[l];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}();const $e=Z_;var K_=Math.log(2);function fl(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~a)/K_);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&a||(h+=(v%2?-1:1)*e[r][c]*fl(e,t-1,f,l,a|d,i),v++)}return i[o]=h,h}function kh(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=fl(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*fl(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(u,l,f){var h=l*i[6]+f*i[7]+1;u[0]=(l*i[0]+f*i[1]+i[2])/h,u[1]=(l*i[3]+f*i[4]+i[5])/h}}}var Bh="___zrEVENTSAVED",Ns=[];function Q_(e,t,r,n,a){return hl(Ns,t,n,a,!0)&&hl(e,r,Ns[0],Ns[1])}function hl(e,t,r,n,a){if(t.getBoundingClientRect&&j.domSupported&&!Gp(t)){var i=t[Bh]||(t[Bh]={}),o=J_(t,i),s=j_(o,i,a);if(s)return s(e,r,n),!0}return!1}function J_(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,u=i%2,l=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",a[l]+":0",n[1-u]+":auto",a[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function j_(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&i&&c===i[h]&&v===i[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&a?a:(t.srcCoords=o,t[n]=r?kh(s,o):kh(o,s))}function Gp(e){return e.nodeName.toUpperCase()==="CANVAS"}var t1=/([&<>"'])/g,e1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function re(e){return e==null?"":(e+"").replace(t1,function(t,r){return e1[r]})}var r1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Fs=[],n1=j.browser.firefox&&+j.browser.version.split(".")[0]<39;function vl(e,t,r,n){return r=r||{},n?Nh(e,t,r):n1&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Nh(e,t,r),r}function Nh(e,t,r){if(j.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(Gp(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(hl(Fs,e,n,a)){r.zrX=Fs[0],r.zrY=Fs[1];return}}r.zrX=r.zrY=0}function If(e){return e||window.event}function le(e,t,r){if(t=If(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&vl(e,o,t,r)}else{vl(e,t,t,r);var i=a1(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&r1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function a1(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function i1(e,t,r,n){e.addEventListener(t,r,n)}function o1(e,t,r,n){e.removeEventListener(t,r,n)}var Hp=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function WI(e){return e.which===2||e.which===3}var s1=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(!!a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var u=a[o],l=vl(n,u,{});i.points.push([l.zrX,l.zrY]),i.touches.push(u)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in zs)if(zs.hasOwnProperty(r)){var n=zs[r](this._track,t);if(n)return n}},e}();function Fh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function u1(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var zs={pinch:function(e,t){var r=e.length;if(!!r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Fh(n)/Fh(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=u1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function gn(){return[1,0,0,1,0,0]}function gi(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Pf(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function xr(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=u,e}function ko(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function hs(e,t,r){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],u=t[5],l=Math.sin(r),f=Math.cos(r);return e[0]=n*f+o*l,e[1]=-n*l+o*f,e[2]=a*f+s*l,e[3]=-a*l+f*s,e[4]=f*i+l*u,e[5]=f*u-l*i,e}function Vp(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function ra(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],u=r*o-i*n;return u?(u=1/u,e[0]=o*u,e[1]=-i*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*a)*u,e[5]=(i*a-r*s)*u,e):null}function l1(e){var t=gn();return Pf(t,e),t}const UI=Object.freeze(Object.defineProperty({__proto__:null,create:gn,identity:gi,copy:Pf,mul:xr,translate:ko,rotate:hs,scale:Vp,invert:ra,clone:l1},Symbol.toStringTag,{value:"Module"}));var f1=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}();const V=f1;var Di=Math.min,Ai=Math.max,Pr=new V,Rr=new V,Er=new V,Or=new V,fa=new V,ha=new V,h1=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=Di(t.x,this.x),n=Di(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ai(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ai(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=gn();return ko(i,i,[-r.x,-r.y]),Vp(i,i,[n,a]),ko(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(i<u||l<a||s<f||h<o);if(r){var v=1/0,d=0,g=Math.abs(i-u),p=Math.abs(l-a),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),S=Math.min(y,m);i<u||l<a?_>d&&(d=_,g<p?V.set(ha,-g,0):V.set(ha,p,0)):_<v&&(v=_,g<p?V.set(fa,g,0):V.set(fa,-p,0)),s<f||h<o?S>d&&(d=S,y<m?V.set(ha,0,-y):V.set(ha,0,m)):_<v&&(v=_,y<m?V.set(fa,0,y):V.set(fa,0,-m))}return r&&V.copy(r,c?fa:ha),c},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Pr.x=Er.x=r.x,Pr.y=Or.y=r.y,Rr.x=Or.x=r.x+r.width,Rr.y=Er.y=r.y+r.height,Pr.transform(n),Or.transform(n),Rr.transform(n),Er.transform(n),t.x=Di(Pr.x,Rr.x,Er.x,Or.x),t.y=Di(Pr.y,Rr.y,Er.y,Or.y);var u=Ai(Pr.x,Rr.x,Er.x,Or.x),l=Ai(Pr.y,Rr.y,Er.y,Or.y);t.width=u-t.x,t.height=l-t.y},e}();const tt=h1;var Wp="silent";function v1(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:c1}}function c1(){Hp(this.event)}var d1=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}($e),va=function(){function e(t,r){this.x=t,this.y=r}return e}(),p1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Gs=new tt(0,0,0,0),Up=function(e){N(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new va(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new d1,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new q_(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(p1,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=Yp(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=i?new va(n,a):this.findHover(n,a),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new va(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=v1(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new va(r,n);if(zh(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new tt(r-l,n-l,u,u),h=i.length-1;h>=0;h--){var c=i[h];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Gs.copy(c.getBoundingRect()),c.transform&&Gs.applyTransform(c.transform),Gs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var y=0;y<g;y+=d){var m=r+p*Math.cos(y),_=n+p*Math.sin(y);if(zh(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new s1);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new va;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}($e);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Up.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=Yp(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Oo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function g1(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?Wp:!0}return!1}function zh(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=g1(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Wp)){t.target=o;break}}}function Yp(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const y1=Up;var $p=32,ca=7;function m1(e){for(var t=0;e>=$p;)t|=e&1,e>>=1;return e+t}function Gh(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;_1(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function _1(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Hh(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,a(i,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=i}}function Hs(e,t,r,n,a,i){var o=0,s=0,u=1;if(i(e,t[r+a])>0){for(s=n-a;u<s&&i(e,t[r+a+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}else{for(s=a+1;u<s&&i(e,t[r+a-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}for(o++;o<u;){var f=o+(u-o>>>1);i(e,t[r+f])>0?o=f+1:u=f}return u}function Vs(e,t,r,n,a,i){var o=0,s=0,u=1;if(i(e,t[r+a])<0){for(s=a+1;u<s&&i(e,t[r+a-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=a-u,u=a-l}else{for(s=n-a;u<s&&i(e,t[r+a+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=a,u+=a}for(o++;o<u;){var f=o+(u-o>>>1);i(e,t[r+f])<0?u=f:o=f+1}return u}function S1(e,t){var r=ca,n,a,i=0;e.length;var o=[];n=[],a=[];function s(v,d){n[i]=v,a[i]=d,i+=1}function u(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function l(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=a[v],p=n[v+1],y=a[v+1];a[v]=g+y,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var m=Vs(e[p],e,d,g,0,t);d+=m,g-=m,g!==0&&(y=Hs(e[d+g-1],e,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=e[v+y];var m=0,_=g,S=v;if(e[S++]=e[_++],--p===0){for(y=0;y<d;y++)e[S+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)e[S+y]=e[_+y];e[S+p]=o[m];return}for(var w=r,x,b,T;;){x=0,b=0,T=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],b++,x=0,--p===0){T=!0;break}}else if(e[S++]=o[m++],x++,b=0,--d===1){T=!0;break}while((x|b)<w);if(T)break;do{if(x=Vs(e[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)e[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(e[S++]=e[_++],--p===0){T=!0;break}if(b=Hs(o[m],e,_,p,0,t),b!==0){for(y=0;y<b;y++)e[S+y]=e[_+y];if(S+=b,_+=b,p-=b,p===0){T=!0;break}}if(e[S++]=o[m++],--d===1){T=!0;break}w--}while(x>=ca||b>=ca);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(y=0;y<p;y++)e[S+y]=e[_+y];e[S+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[S+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=e[g+y];var m=v+d-1,_=p-1,S=g+p-1,w=0,x=0;if(e[S--]=e[m--],--d===0){for(w=S-(p-1),y=0;y<p;y++)e[w+y]=o[y];return}if(p===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)e[x+y]=e[w+y];e[S]=o[_];return}for(var b=r;;){var T=0,C=0,A=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],T++,C=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],C++,T=0,--p===1){A=!0;break}while((T|C)<b);if(A)break;do{if(T=d-Vs(o[_],e,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,x=S+1,w=m+1,y=T-1;y>=0;y--)e[x+y]=e[w+y];if(d===0){A=!0;break}}if(e[S--]=o[_--],--p===1){A=!0;break}if(C=p-Hs(e[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,x=S+1,w=_+1,y=0;y<C;y++)e[x+y]=o[w+y];if(p<=1){A=!0;break}}if(e[S--]=e[m--],--d===0){A=!0;break}b--}while(T>=ca||C>=ca);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)e[x+y]=e[w+y];e[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),y=0;y<p;y++)e[w+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function yo(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<$p){i=Gh(e,r,n,t),Hh(e,r,n,r+i,t);return}var o=S1(e,t),s=m1(a);do{if(i=Gh(e,r,n,t),i<s){var u=a;u>s&&(u=s),Hh(e,r,r+u,r+i,t),i=u}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var ne=1,Pa=2,Gn=4,Vh=!1;function Ws(){Vh||(Vh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var x1=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wh}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,yo(n,Wh)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=ne),this._updateAndAddDisplayable(l,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ws(),f.z=0),isNaN(f.z2)&&(Ws(),f.z2=0),isNaN(f.zlevel)&&(Ws(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=it(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const w1=x1;var Xp;Xp=j.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const cl=Xp;var mo={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-mo.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?mo.bounceIn(e*2)*.5:mo.bounceOut(e*2-1)*.5+.5}};const qp=mo;var Li=Math.pow,wr=Math.sqrt,Bo=1e-8,Zp=1e-4,Uh=wr(3),Ii=1/3,Ne=Sn(),ve=Sn(),Xn=Sn();function yr(e){return e>-Bo&&e<Bo}function Kp(e){return e>Bo||e<-Bo}function At(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function Yh(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function Qp(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-a,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(yr(f)&&yr(h))if(yr(s))i[0]=0;else{var d=-u/s;d>=0&&d<=1&&(i[v++]=d)}else{var g=h*h-4*f*c;if(yr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y)}else if(g>0){var m=wr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Li(-_,Ii):_=Li(_,Ii),S<0?S=-Li(-S,Ii):S=Li(S,Ii);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*wr(f*f*f)),x=Math.acos(w)/3,b=wr(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Uh*Math.sin(x)))/(3*o),C=(-s+b*(T-Uh*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y),C>=0&&C<=1&&(i[v++]=C)}}return v}function Jp(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(yr(o)){if(Kp(i)){var l=-s/i;l>=0&&l<=1&&(a[u++]=l)}}else{var f=i*i-4*o*s;if(yr(f))a[0]=-i/(2*o);else if(f>0){var h=wr(f),l=(-i+h)/(2*o),c=(-i-h)/(2*o);l>=0&&l<=1&&(a[u++]=l),c>=0&&c<=1&&(a[u++]=c)}}return u}function Tr(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,u=(n-r)*a+r,l=(s-o)*a+o,f=(u-s)*a+s,h=(f-l)*a+l;i[0]=e,i[1]=o,i[2]=l,i[3]=h,i[4]=h,i[5]=f,i[6]=u,i[7]=n}function jp(e,t,r,n,a,i,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;Ne[0]=u,Ne[1]=l;for(var m=0;m<1;m+=.05)ve[0]=At(e,r,a,o,m),ve[1]=At(t,n,i,s,m),p=un(Ne,ve),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<Zp);_++)d=h-c,g=h+c,ve[0]=At(e,r,a,o,d),ve[1]=At(t,n,i,s,d),p=un(ve,Ne),d>=0&&p<v?(h=d,v=p):(Xn[0]=At(e,r,a,o,g),Xn[1]=At(t,n,i,s,g),y=un(Xn,Ne),g<=1&&y<v?(h=g,v=y):c*=.5);return f&&(f[0]=At(e,r,a,o,h),f[1]=At(t,n,i,s,h)),wr(v)}function b1(e,t,r,n,a,i,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,g=At(e,r,a,o,d),p=At(t,n,i,s,d),y=g-l,m=p-f;h+=Math.sqrt(y*y+m*m),l=g,f=p}return h}function Et(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function $h(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function T1(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(yr(i)){if(Kp(o)){var l=-s/o;l>=0&&l<=1&&(a[u++]=l)}}else{var f=o*o-4*i*s;if(yr(f)){var l=-o/(2*i);l>=0&&l<=1&&(a[u++]=l)}else if(f>0){var h=wr(f),l=(-o+h)/(2*i),c=(-o-h)/(2*i);l>=0&&l<=1&&(a[u++]=l),c>=0&&c<=1&&(a[u++]=c)}}return u}function tg(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function No(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function eg(e,t,r,n,a,i,o,s,u){var l,f=.005,h=1/0;Ne[0]=o,Ne[1]=s;for(var c=0;c<1;c+=.05){ve[0]=Et(e,r,a,c),ve[1]=Et(t,n,i,c);var v=un(Ne,ve);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Zp);d++){var g=l-f,p=l+f;ve[0]=Et(e,r,a,g),ve[1]=Et(t,n,i,g);var v=un(ve,Ne);if(g>=0&&v<h)l=g,h=v;else{Xn[0]=Et(e,r,a,p),Xn[1]=Et(t,n,i,p);var y=un(Xn,Ne);p<=1&&y<h?(l=p,h=y):f*=.5}}return u&&(u[0]=Et(e,r,a,l),u[1]=Et(t,n,i,l)),wr(h)}function C1(e,t,r,n,a,i,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Et(e,r,a,c),d=Et(t,n,i,c),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var M1=/cubic-bezier\(([0-9,\.e ]+)\)/;function rg(e){var t=e&&M1.exec(e);if(t){var r=t[1].split(","),n=+be(r[0]),a=+be(r[1]),i=+be(r[2]),o=+be(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Qp(0,n,i,1,u,s)&&At(0,a,o,1,s[0])}}}var D1=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Gt,this.ondestroy=t.ondestroy||Gt,this.onrestart=t.onrestart||Gt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var u=a%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:qp[t]||rg(t)},e}();const A1=D1;var ng=function(){function e(t){this.value=t}return e}(),L1=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new ng(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),I1=function(){function e(t){this._list=new L1,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete a[u.key],i=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new ng(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const yi=I1;var Xh={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 Me(e){return e=Math.round(e),e<0?0:e>255?255:e}function P1(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ja(e){return e<0?0:e>1?1:e}function Us(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Me(parseFloat(t)/100*255):Me(parseInt(t,10))}function ln(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ja(parseFloat(t)/100):Ja(parseFloat(t))}function Ys(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function mr(e,t,r){return e+(t-e)*r}function ue(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function dl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ag=new yi(20),Pi=null;function Cn(e,t){Pi&&dl(Pi,t),Pi=ag.put(e,Pi||t.slice())}function Qt(e,t){if(!!e){t=t||[];var r=ag.get(e);if(r)return dl(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Xh)return dl(t,Xh[n]),Cn(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){ue(t,0,0,0,1);return}return ue(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Cn(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){ue(t,0,0,0,1);return}return ue(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Cn(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ue(t,+l[0],+l[1],+l[2],1):ue(t,0,0,0,1);f=ln(l.pop());case"rgb":if(l.length>=3)return ue(t,Us(l[0]),Us(l[1]),Us(l[2]),l.length===3?f:ln(l[3])),Cn(e,t),t;ue(t,0,0,0,1);return;case"hsla":if(l.length!==4){ue(t,0,0,0,1);return}return l[3]=ln(l[3]),pl(l,t),Cn(e,t),t;case"hsl":if(l.length!==3){ue(t,0,0,0,1);return}return pl(l,t),Cn(e,t),t;default:return}}ue(t,0,0,0,1)}}function pl(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=ln(e[1]),a=ln(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],ue(t,Me(Ys(o,i,r+1/3)*255),Me(Ys(o,i,r)*255),Me(Ys(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function R1(e){if(!!e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(i+a):l=o/(2-i-a);var f=((i-t)/6+o/2)/o,h=((i-r)/6+o/2)/o,c=((i-n)/6+o/2)/o;t===i?u=c-h:r===i?u=1/3+f-c:n===i&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function gl(e,t){var r=Qt(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ir(r,r.length===4?"rgba":"rgb")}}function E1(e){var t=Qt(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function ig(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],u=n-a;return r[0]=Me(mr(o[0],s[0],u)),r[1]=Me(mr(o[1],s[1],u)),r[2]=Me(mr(o[2],s[2],u)),r[3]=Ja(mr(o[3],s[3],u)),r}}var O1=ig;function og(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Qt(t[a]),s=Qt(t[i]),u=n-a,l=Ir([Me(mr(o[0],s[0],u)),Me(mr(o[1],s[1],u)),Me(mr(o[2],s[2],u)),Ja(mr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}var k1=og;function B1(e,t,r,n){var a=Qt(e);if(e)return a=R1(a),t!=null&&(a[0]=P1(t)),r!=null&&(a[1]=ln(r)),n!=null&&(a[2]=ln(n)),Ir(pl(a),"rgba")}function N1(e,t){var r=Qt(e);if(r&&t!=null)return r[3]=Ja(t),Ir(r,"rgba")}function Ir(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function ja(e,t){var r=Qt(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function F1(){return Ir([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const YI=Object.freeze(Object.defineProperty({__proto__:null,parse:Qt,lift:gl,toHex:E1,fastLerp:ig,fastMapToColor:O1,lerp:og,mapToColor:k1,modifyHSL:B1,modifyAlpha:N1,stringify:Ir,lum:ja,random:F1},Symbol.toStringTag,{value:"Module"}));var Fo=Math.round;function $I(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Qt(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t==null?1:t}}var qh=1e-4;function XI(e){return e<qh&&e>-qh}function Ri(e){return Fo(e*1e3)/1e3}function Zh(e){return Fo(e*1e4)/1e4}function qI(e){return"matrix("+Ri(e[0])+","+Ri(e[1])+","+Ri(e[2])+","+Ri(e[3])+","+Zh(e[4])+","+Zh(e[5])+")"}var ZI={left:"start",right:"end",center:"middle",middle:"middle"};function KI(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function QI(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function JI(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function z1(e){return e&&!!e.image}function G1(e){return e&&!!e.svgElement}function jI(e){return z1(e)||G1(e)}function H1(e){return e.type==="linear"}function V1(e){return e.type==="radial"}function tP(e){return e&&(e.type==="linear"||e.type==="radial")}function eP(e){return"url(#"+e+")"}function rP(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function nP(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Fa,a=K(e.scaleX,1),i=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),n&&u.push("rotate("+n+")"),(a!==1||i!==1)&&u.push("scale("+a+","+i+")"),(o||s)&&u.push("skew("+Fo(o*Fa)+"deg, "+Fo(s*Fa)+"deg)"),u.join(" ")}var aP=function(){return j.hasGlobalWindow&&q(window.btoa)?function(e){return window.btoa(unescape(e))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),yl=Array.prototype.slice;function Qe(e,t,r){return(t-e)*r+e}function $s(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Qe(t[i],r[i],n);return e}function W1(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Qe(t[o][s],r[o][s],n)}return e}function Ei(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function Kh(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function U1(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Y1(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var u=i;u<o;u++)n.push(r===1?a[u]:yl.call(a[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=a[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=a[u][f])}}function _o(e){if(Bt(e)){var t=e.length;if(Bt(e[0])){for(var r=[],n=0;n<t;n++)r.push(yl.call(e[n]));return r}return yl.call(e)}return e}function So(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function $1(e){return Bt(e&&e[0])?2:1}var Oi=0,xo=1,sg=2,Ra=3,ml=4,_l=5,Qh=6;function Jh(e){return e===ml||e===_l}function ki(e){return e===xo||e===sg}var da=[0,0,0,0],X1=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Qh,u=r;if(Bt(r)){var l=$1(r);s=l,(l===1&&!ft(r[0])||l===2&&!ft(r[0][0]))&&(o=!0)}else if(ft(r)&&!Ka(r))s=Oi;else if(z(r))if(!isNaN(+r))s=Oi;else{var f=Qt(r);f&&(u=f,s=Ra)}else if(di(r)){var h=O({},u);h.colorStops=G(r.colorStops,function(v){return{offset:v.offset,color:Qt(v.color)}}),H1(r)?s=ml:V1(r)&&(s=_l),u=h}i===0?this.valType=s:(s!==this.valType||s===Qh)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=q(n)?n:qp[n]||rg(n)),a.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,u=ki(a),l=Jh(a),f=0;f<i;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==i-1?Y1(c,v,a):l&&U1(c.colorStops,v.colorStops))}if(!s&&a!==_l&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===Oi?n[f].additiveValue=n[f].value-d:a===Ra?n[f].additiveValue=Ei([],n[f].value,d,-1):ki(a)&&(n[f].additiveValue=a===xo?Ei([],n[f].value,d,-1):Kh([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=i===Ra,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,y=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?da:t[u];if((ki(i)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(ki(i))i===xo?$s(m,v[a],d[a],y):W1(m,v[a],d[a],y);else if(Jh(i)){var _=v[a],S=d[a],w=i===ml;t[u]={type:w?"linear":"radial",x:Qe(_.x,S.x,y),y:Qe(_.y,S.y,y),colorStops:G(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:Qe(b.offset,C.offset,y),color:So($s([],b.color,C.color,y))}}),global:S.global},w?(t[u].x2=Qe(_.x2,S.x2,y),t[u].y2=Qe(_.y2,S.y2,y)):t[u].r=Qe(_.r,S.r,y)}else if(l)$s(m,v[a],d[a],y),n||(t[u]=So(m));else{var x=Qe(v[a],d[a],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Oi?t[n]=t[n]+a:r===Ra?(Qt(t[n],da),Ei(da,da,a,1),t[n]=So(da)):r===xo?Ei(t[n],t[n],a,1):r===sg&&Kh(t[n],t[n],a,1)},e}(),q1=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){ls("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,ct(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],u=i[s];if(!u){u=i[s]=new X1(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Ra&&l&&(l=So(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,_o(l),a),this._trackKeys.push(s)}u.addKeyframe(t,_o(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(a,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new A1({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var y=r._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(!!this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return G(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(!!t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[i]=_o(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||ct(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(!!i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const Rf=q1;function Vn(){return new Date().getTime()}var Z1=function(e){N(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(!!r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Vn()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(cl(n),!r._paused&&r.update())}cl(n)},t.prototype.start=function(){this._running||(this._time=Vn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Vn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Vn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new Rf(r,n.loop);return this.addAnimator(a),a},t}($e);const K1=Z1;var Q1=300,Xs=j.domSupported,qs=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),jh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tv=!1;function Sl(e){var t=e.pointerType;return t==="pen"||t==="touch"}function J1(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Zs(e){e&&(e.zrByTouch=!0)}function j1(e,t){return le(e.dom,new tS(e,t),!0)}function ug(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var tS=function(){function e(t,r){this.stopPropagation=Gt,this.stopImmediatePropagation=Gt,this.preventDefault=Gt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Se={mousedown:function(e){e=le(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=le(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=le(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=le(this.dom,e);var t=e.toElement||e.relatedTarget;ug(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){tv=!0,e=le(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){tv||(e=le(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=le(this.dom,e),Zs(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Se.mousemove.call(this,e),Se.mousedown.call(this,e)},touchmove:function(e){e=le(this.dom,e),Zs(e),this.handler.processGesture(e,"change"),Se.mousemove.call(this,e)},touchend:function(e){e=le(this.dom,e),Zs(e),this.handler.processGesture(e,"end"),Se.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Q1&&Se.click.call(this,e)},pointerdown:function(e){Se.mousedown.call(this,e)},pointermove:function(e){Sl(e)||Se.mousemove.call(this,e)},pointerup:function(e){Se.mouseup.call(this,e)},pointerout:function(e){Sl(e)||Se.mouseout.call(this,e)}};M(["click","dblclick","contextmenu"],function(e){Se[e]=function(t){t=le(this.dom,t),this.trigger(e,t)}});var xl={pointermove:function(e){Sl(e)||xl.mousemove.call(this,e)},pointerup:function(e){xl.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function eS(e,t){var r=t.domHandlers;j.pointerEventsSupported?M(qs.pointer,function(n){wo(t,n,function(a){r[n].call(e,a)})}):(j.touchEventsSupported&&M(qs.touch,function(n){wo(t,n,function(a){r[n].call(e,a),J1(t)})}),M(qs.mouse,function(n){wo(t,n,function(a){a=If(a),t.touching||r[n].call(e,a)})}))}function rS(e,t){j.pointerEventsSupported?M(jh.pointer,r):j.touchEventsSupported||M(jh.mouse,r);function r(n){function a(i){i=If(i),ug(e,i.target)||(i=j1(e,i),t.domHandlers[n].call(e,i))}wo(t,n,a,{capture:!0})}}function wo(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,i1(e.domTarget,t,r,n)}function Ks(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&o1(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var ev=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),nS=function(e){N(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new ev(r,Se),Xs&&(a._globalHandlerScope=new ev(document,xl)),eS(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Ks(this._localHandlerScope),Xs&&Ks(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Xs&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?rS(this,n):Ks(n)}},t}($e);const aS=nS;var lg=1;j.hasGlobalWindow&&(lg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zo=lg,wl=.4,bl="#333",Tl="#ccc",iS="#eee",rv=gi,nv=5e-5;function kr(e){return e>nv||e<-nv}var Br=[],Mn=[],Qs=gn(),Js=Math.abs,oS=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return kr(this.rotation)||kr(this.x)||kr(this.y)||kr(this.scaleX-1)||kr(this.scaleY-1)||kr(this.skewX)||kr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&rv(n);return}n=n||gn(),r?this.getLocalTransform(n):rv(n),t&&(r?xr(n,t,n):Pf(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Br);var n=Br[0]<0?-1:1,a=Br[1]<0?-1:1,i=((Br[0]-n)*r+n)/Br[0]||0,o=((Br[1]-a)*r+a)/Br[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||gn(),ra(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(xr(Mn,t.invTransform,r),r=Mn);var n=this.originX,a=this.originY;(n||a)&&(Qs[4]=n,Qs[5]=a,xr(Mn,r,Qs),Mn[4]-=n,Mn[5]-=a,r=Mn),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Ht(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Ht(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Js(t[0]-1)>1e-10&&Js(t[3]-1)>1e-10?Math.sqrt(Js(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){sS(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||u){var d=n+s,g=a+u;r[4]=-d*i-c*g*o,r[5]=-g*o-v*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=v*i,r[2]=c*o,l&&hs(r,r,l),r[4]+=n+f,r[5]+=a+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ti=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function sS(e,t){for(var r=0;r<ti.length;r++){var n=ti[r];e[n]=t[n]}}const mi=oS;var av={};function ae(e,t){t=t||pn;var r=av[t];r||(r=av[t]=new yi(500));var n=r.get(e);return n==null&&(n=er.measureText(e,t).width,r.put(e,n)),n}function iv(e,t,r,n){var a=ae(e,t),i=Of(t),o=Ea(0,a,r),s=Hn(0,i,n),u=new tt(o,s,a,i);return u}function Ef(e,t,r,n){var a=((e||"")+"").split(`
`),i=a.length;if(i===1)return iv(a[0],t,r,n);for(var o=new tt(0,0,0,0),s=0;s<a.length;s++){var u=iv(a[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function Ea(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Hn(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Of(e){return ae("\u56FD",e)}function Cr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Go(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=Cr(n[0],r.width),l+=Cr(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=a,l+=s,f="right",h="middle";break;case"right":u+=a+o,l+=s,h="middle";break;case"top":u+=o/2,l-=a,f="center",h="bottom";break;case"bottom":u+=o/2,l+=i+a,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=a,l+=s,h="middle";break;case"insideRight":u+=o-a,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=a,f="center";break;case"insideBottom":u+=o/2,l+=i-a,f="center",h="bottom";break;case"insideTopLeft":u+=a,l+=a;break;case"insideTopRight":u+=o-a,l+=a,f="right";break;case"insideBottomLeft":u+=a,l+=i-a,h="bottom";break;case"insideBottomRight":u+=o-a,l+=i-a,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var js="__zr_normal__",tu=ti.concat(["ignore"]),uS=rr(ti,function(e,t){return e[t]=!0,e},{ignore:!1}),Dn={},lS=new tt(0,0,0,0),kf=function(){function e(t){this.id=Cf(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,u=!1;i.parent=a?this:null;var l=!1;if(i.copyTransform(r),n.position!=null){var f=lS;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Dn,n,f):Go(Dn,n,f),i.x=Dn.x,i.y=Dn.y,o=Dn.align,s=Dn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Cr(h[0],f.width),v=Cr(h[1],f.height)),l=!0,i.originX=-i.x+c+(a?0:f.x),i.originY=-i.y+v+(a?0:f.y)}}n.rotation!=null&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=ne,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Tl:bl},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Qt(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Ir(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},O(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(W(t))for(var n=t,a=ct(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==js)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,tu)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(js,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===js,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,u=this.stateTransition;if(!(it(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){ls("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ne),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var u=0;u<o;u++)if(t[u]!==i[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&a.push(f)}var h=a[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ne)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=it(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=it(a,t),o=it(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];O(r,i),i.textConfig&&(n=n||{},O(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=O({},a?this.textConfig:n.textConfig),O(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<tu.length;f++){var h=tu[f],c=i&&uS[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new mi,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ne;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new Rf(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=it(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){eu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){eu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=eu(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ne;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var u=this[a]=[];s(this,u)}return this[a]},set:function(u){this[i]=u[0],this[o]=u[1],this[a]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[i]},set:function(f){u[i]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Le(kf,$e);Le(kf,mi);function eu(e,t,r,n,a){r=r||{};var i=[];fg(e,"",e,t,r,n,i,a);var o=i.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),i.length>0&&r.during&&i[0].during(function(d,g){r.during(g)});for(var c=0;c<i.length;c++){var v=i[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return i}function ru(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function fS(e){return Bt(e[0])}function hS(e,t,r){if(Bt(t[r]))if(Bt(e[r])||(e[r]=[]),jt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),ru(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(fS(a))for(var s=a[0].length,u=0;u<o;u++)i[u]?ru(i[u],a[u],s):i[u]=Array.prototype.slice.call(a[u]);else ru(i,a,o);i.length=a.length}else e[r]=t[r]}function vS(e,t){return e===t||Bt(e)&&Bt(t)&&cS(e,t)}function cS(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function fg(e,t,r,n,a,i,o,s){for(var u=ct(n),l=a.duration,f=a.delay,h=a.additive,c=a.setToFinal,v=!W(i),d=e.animators,g=[],p=0;p<u.length;p++){var y=u[p],m=n[y];if(m!=null&&r[y]!=null&&(v||i[y]))if(W(m)&&!Bt(m)&&!di(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}fg(e,y,r[y],m,a,i&&i[y],o,s)}else g.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var x=w.stopTracks(g);if(x){var b=it(d,w);d.splice(b,1)}}}if(a.force||(g=wt(g,function(D){return!vS(n[D],r[D])}),_=g.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];C[y]=r[y],c?T[y]=n[y]:r[y]=n[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=g[S];A[y]=_o(r[y]),hS(r,n,y)}}var w=new Rf(r,!1,!1,h?wt(d,function(L){return L.targetName===t}):null);w.targetName=t,a.scope&&(w.scope=a.scope),c&&T&&w.whenWithKeys(0,T,g),A&&w.whenWithKeys(0,A,g),w.whenWithKeys(l==null?500:l,s?C:n,g).delay(f||0),e.addAnimator(w,t),o.push(w)}}const hg=kf;var vg=function(e){N(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=it(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=it(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new tt(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var u=a[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(i);f?(tt.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t}(hg);vg.prototype.type="group";const de=vg;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var bo={},rn={};function dS(e){delete rn[e]}function pS(e){if(!e)return!1;if(typeof e=="string")return ja(e,1)<wl;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=ja(t[a].color,1);return r/=n,r<wl}return!1}var gS=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new w1,o=n.renderer||"canvas";bo[o]||(o=ct(bo)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new bo[o](r,i,n,t),u=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var l=!j.node&&!j.worker&&!u?new aS(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?j.touchEventsSupported:!!f,c=44,v;h&&(v=K(n.pointerSize,c)),this.handler=new y1(i,s,l,s.root,v),this.animation=new K1({stage:{update:u?null:function(){return a._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=pS(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=Vn();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Vn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof de&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,dS(this.id)},e}();function Cl(e,t){var r=new gS(Cf(),e,t);return rn[r.id]=r,r}function yS(e){e.dispose()}function mS(){for(var e in rn)rn.hasOwnProperty(e)&&rn[e].dispose();rn={}}function _S(e){return rn[e]}function cg(e,t){bo[e]=t}var SS="5.4.0";const iP=Object.freeze(Object.defineProperty({__proto__:null,init:Cl,dispose:yS,disposeAll:mS,getInstance:_S,registerPainter:cg,version:SS},Symbol.toStringTag,{value:"Module"}));var ov=1e-4,dg=20;function xS(e){return e.replace(/^\s+|\s+$/g,"")}function Ml(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],u=i-a,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/u*l+o}function st(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return z(e)?xS(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Tt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),dg),e=(+e).toFixed(t),r?e:+e}function oP(e){return e.sort(function(t,r){return t-r}),e}function je(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return wS(e)}function wS(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function bS(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function sP(e,t,r){if(!e[t])return 0;var n=pg(e,r);return n[t]||0}function pg(e,t){var r=rr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=G(e,function(v){return(isNaN(v)?0:v)/r*n*100}),i=n*100,o=G(a,function(v){return Math.floor(v)}),s=rr(o,function(v,d){return v+d},0),u=G(a,function(v,d){return v-o[d]});s<i;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return G(o,function(v){return v/n})}function TS(e,t){var r=Math.max(je(e),je(t)),n=e+t;return r>dg?n:Tt(n,r)}var uP=9007199254740991;function gg(e){var t=Math.PI*2;return(e%t+t)%t}function Ho(e){return e>-ov&&e<ov}var CS=/^(?:(\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 We(e){if(e instanceof Date)return e;if(z(e)){var t=CS.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function MS(e){return Math.pow(10,Bf(e))}function Bf(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function yg(e,t){var r=Bf(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function lP(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function fP(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Mr(e){var t=parseFloat(e);return t==e&&(t!==0||!z(e)||e.indexOf("x")<=0)?t:NaN}function DS(e){return!isNaN(Mr(e))}function mg(){return Math.round(Math.random()*9)}function _g(e,t){return t===0?e:_g(t,e%t)}function sv(e,t){return e==null?t:t==null?e:e*t/_g(e,t)}var AS="[ECharts] ",uv={},LS=typeof console<"u"&&console.warn&&console.log;function IS(e,t,r){if(LS){if(r){if(uv[t])return;uv[t]=!0}console[e](AS+t)}}function hP(e,t){IS("warn",e,t)}function et(e){throw new Error(e)}function lv(e,t,r){return(t-e)*r+e}var Sg="series\0",xg="\0_ec_\0";function gt(e){return e instanceof Array?e:e==null?[]:[e]}function Dl(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var fv=["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 _i(e){return W(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function PS(e){return W(e)&&!(e instanceof Array)}function RS(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=$();M(t,function(u,l){if(!W(u)){t[l]=null;return}});var s=ES(e,o,r);return(n||a)&&OS(s,e,o,t),n&&kS(s,t),n||a?BS(s,t,a):i&&NS(s,t),FS(s),s}function ES(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||ei(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function OS(e,t,r,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Ga(a.id),s=r.get(o);if(s!=null){var u=e[s];Ae(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=a,u.existing=t[s],n[i]=null}}})}function kS(e,t){M(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!ei(r)&&!ei(i)&&wg("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function BS(e,t,r){M(t,function(n){if(!!n){for(var a,i=0;(a=e[i])&&(a.newOption||ei(a.existing)||a.existing&&n.id!=null&&!wg("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function NS(e,t){M(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function FS(e){var t=$();M(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),M(e,function(r){var n=r.newOption;Ae(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(!!W(i)){if(o.name=i.name!=null?Ga(i.name):a?a.name:Sg+n,a)o.id=Ga(a.id);else if(i.id!=null)o.id=Ga(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function wg(e,t,r){var n=De(t[e],null),a=De(r[e],null);return n!=null&&a!=null&&n===a}function Ga(e){return De(e,"")}function De(e,t){return e==null?t:z(e)?e:ft(e)||Ro(e)?e+"":t}function Nf(e){var t=e.name;return!!(t&&t.indexOf(Sg))}function ei(e){return e&&e.id!=null&&Ga(e.id).indexOf(xg)===0}function vP(e){return xg+e}function zS(e,t,r){M(e,function(n){var a=n.newOption;W(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=GS(t,a,n.existing,r))})}function GS(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function cP(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=De(o[l].seriesId,null);if(h==null)return;for(var c=gt(o[l].dataIndex),v=u&&u[h],d=0,g=c.length;d<g;d++){var p=c[d];v&&v[p]?v[p]=null:(s[h]||(s[h]={}))[p]=1}}}function i(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=i(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function Si(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?G(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?G(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function yt(){var e="__ec_inner_"+HS++;return function(t){return t[e]||(t[e]={})}}var HS=mg();function nu(e,t,r){var n=Ff(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!a&&u&&i.set(u,{}),i.each(function(l,f){var h=xi(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Ff(e,t){var r;if(z(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=$(),i={},o=!1;return M(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){i[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Te={useDefault:!0,enableAll:!1,enableNone:!1},dP={useDefault:!1,enableAll:!0,enableNone:!0};function xi(e,t,r,n){n=n||Te;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}return a==="none"||a===!1?(Ae(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ae(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function bg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function VS(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function WS(e){return e==="auto"?j.domSupported?"html":"richText":e||"html"}function pP(e,t){var r=$(),n=[];return M(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function US(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(ft(n)){var o=lv(r||0,n,a);return Tt(o,i?Math.max(je(r||0),je(n)):t)}else{if(z(n))return a<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(a<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=lv(v,d,a);s[h]=Tt(o,i?Math.max(je(v),je(d)):t)}}return s}}var YS=".",Nr="___EC__COMPONENT__CONTAINER___",Tg="___EC__EXTENDED_CLASS___";function ze(e){var t={main:"",sub:""};if(e){var r=e.split(YS);t.main=r[0]||"",t.sub=r[1]||""}return t}function $S(e){Ae(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function XS(e){return!!(e&&e[Tg])}function zf(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return qS(n)?a=function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Ip(a,this)),O(a.prototype,r),a[Tg]=!0,a.extend=this.extend,a.superCall=QS,a.superApply=JS,a.superClass=n,a}}function qS(e){return q(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Cg(e,t){e.extend=t.extend}var ZS=Math.round(Math.random()*10);function KS(e){var t=["__\0is_clz",ZS++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function QS(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function JS(e,t,r){return this.superClass.prototype[t].apply(e,r)}function vs(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){$S(a),n.prototype.type=a;var i=ze(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Nr){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Nr]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=ze(n),i=[],o=t[a.main];return o&&o[Nr]?M(o,function(s,u){u!==Nr&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=ze(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return M(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=ze(n),i=t[a.main];return i&&i[Nr]};function r(n){var a=t[n.main];return(!a||!a[Nr])&&(a=t[n.main]={},a[Nr]=!0),a}}function ri(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(a&&it(a,u)>=0||i&&it(i,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var jS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],tx=ri(jS),ex=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return tx(this,t,r)},e}(),Al=new yi(50);function rx(e){if(typeof e=="string"){var t=Al.get(e);return t&&t.image}else return e}function Mg(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=Al.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!cs(t)&&i.pending.push(o)):(t=er.loadImage(e,hv,hv),t.__zrImageSrc=e,Al.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function hv(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function cs(e){return e&&e.width&&e.height}var au=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nx(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
`);a=Dg(t,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=Ag(i[o],a);return i.join(`
`)}function Dg(e,t,r,n){n=n||{};var a=O({},n);a.font=t,r=K(r,"..."),a.maxIterations=K(n.maxIterations,2);var i=a.minChar=K(n.minChar,0);a.cnCharWidth=ae("\u56FD",t);var o=a.ascCharWidth=ae("a",t);a.placeholder=K(n.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<i&&s>=o;u++)s-=o;var l=ae(r,t);return l>s&&(r="",l=0),s=e-l,a.ellipsis=r,a.ellipsisWidth=l,a.contentWidth=s,a.containerWidth=e,a}function Ag(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=ae(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?ax(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=ae(e,n)}return e===""&&(e=t.placeholder),e}function ax(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function ix(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=Of(a),s=K(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(r==="break"||r==="breakAll")?h=e?Lg(e,t.font,f,r==="breakAll",0).lines:[]:h=e?e.split(`
`):[];var c=h.length*s,v=K(t.height,c);if(c>v&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(e&&i&&f!=null)for(var g=Dg(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=Ag(h[p],g);for(var y=v,m=0,p=0;p<h.length;p++)m=Math.max(ae(h[p],a),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),u&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var ox=function(){function e(){}return e}(),vv=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),sx=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function ux(e,t){var r=new sx;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=au.lastIndex=0,u;(u=au.exec(e))!=null;){var l=u.index;l>s&&iu(r,e.substring(s,l),t,o),iu(r,u[2],t,o,u[1]),s=au.lastIndex}s<e.length&&iu(r,e.substring(s,e.length),t,o);var f=[],h=0,c=0,v=t.padding,d=i==="truncate",g=t.lineOverflow==="truncate";function p(k,F,H){k.width=F,k.lineHeight=H,h+=H,c=Math.max(c,F)}t:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],_=0,S=0,w=0;w<m.tokens.length;w++){var x=m.tokens[w],b=x.styleName&&t.rich[x.styleName]||{},T=x.textPadding=b.padding,C=T?T[1]+T[3]:0,A=x.font=b.font||t.font;x.contentHeight=Of(A);var D=K(b.height,x.contentHeight);if(x.innerHeight=D,T&&(D+=T[0]+T[2]),x.height=D,x.lineHeight=Yn(b.lineHeight,t.lineHeight,D),x.align=b&&b.align||t.align,x.verticalAlign=b&&b.verticalAlign||"middle",g&&a!=null&&h+x.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),p(m,S,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break t}var L=b.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=ae(x.text,A);else{if(I){var P=b.backgroundColor,R=P&&P.image;R&&(R=rx(R),cs(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=d&&n!=null?n-S:null;E!=null&&E<x.width?!I||E<C?(x.text="",x.width=x.contentWidth=0):(x.text=nx(x.text,E-C,A,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=ae(x.text,A)):x.contentWidth=ae(x.text,A)}x.width+=C,S+=x.width,b&&(_=Math.max(_,x.lineHeight))}p(m,S,_)}r.outerWidth=r.width=K(n,c),r.outerHeight=r.height=K(a,h),r.contentHeight=h,r.contentWidth=c,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],U=x.percentWidth;x.width=parseInt(U,10)/100*r.width}return r}function iu(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Cr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),l=!0),n.accumWidth=d}else{var g=Lg(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var y=f[p],m=new ox;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:ae(y,u),!p&&!l){var _=(s[s.length-1]||(s[0]=new vv)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new vv([m]))}}function lx(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var fx=rr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hx(e){return lx(e)?!!fx[e]:!0}function Lg(e,t,r,n,a){for(var i=[],o=[],s="",u="",l=0,f=0,h=0;h<e.length;h++){var c=e.charAt(h);if(c===`
`){u&&(s+=u,f+=l),i.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=ae(c,t),d=n?!1:!hx(c);if(i.length?f+v>r:a+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),i.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),i.push(s),o.push(f),s=c,f=v)):d?(i.push(u),o.push(l),u=c,l=v):(i.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!i.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var Ll="__zr_style_"+Math.round(Math.random()*10),fn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ds={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fn[Ll]=!0;var cv=["z","z2","invisible"],vx=["invisible"],cx=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=ct(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&dx(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,u=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new tt(0,0,0,0)),n?tt.applyTransform(r,a,n):r.copy(a),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new tt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:O(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Pa,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Pa)},t.prototype.styleUpdated=function(){this.__dirty&=~Pa},t.prototype.createStyle=function(r){return pi(fn,r)},t.prototype.useStyle=function(r){r[Ll]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Ll]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,cv)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var u=!(n&&i),l;if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(l,n.style)):u&&(l=a.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=ct(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=ct(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var g=this.__inHover?vx:cv,c=0;c<g.length;c++){var v=g[c];n&&n[v]!=null?this[v]=n[v]:u&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return O(r,n),r},t.prototype.getAnimationStyleProps=function(){return ds},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ne|Pa}(),t}(hg),ou=new tt(0,0,0,0),su=new tt(0,0,0,0);function dx(e,t,r){return ou.copy(e.getBoundingRect()),e.transform&&ou.applyTransform(e.transform),su.width=t,su.height=r,!ou.intersect(su)}const na=cx;var qt=Math.min,Zt=Math.max,uu=Math.sin,lu=Math.cos,Fr=Math.PI*2,Bi=Sn(),Ni=Sn(),Fi=Sn();function Ig(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],u=1;u<e.length;u++)n=e[u],a=qt(a,n[0]),i=Zt(i,n[0]),o=qt(o,n[1]),s=Zt(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function dv(e,t,r,n,a,i){a[0]=qt(e,r),a[1]=qt(t,n),i[0]=Zt(e,r),i[1]=Zt(t,n)}var pv=[],gv=[];function px(e,t,r,n,a,i,o,s,u,l){var f=Jp,h=At,c=f(e,r,a,o,pv);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,a,o,pv[v]);u[0]=qt(d,u[0]),l[0]=Zt(d,l[0])}c=f(t,n,i,s,gv);for(var v=0;v<c;v++){var g=h(t,n,i,s,gv[v]);u[1]=qt(g,u[1]),l[1]=Zt(g,l[1])}u[0]=qt(e,u[0]),l[0]=Zt(e,l[0]),u[0]=qt(o,u[0]),l[0]=Zt(o,l[0]),u[1]=qt(t,u[1]),l[1]=Zt(t,l[1]),u[1]=qt(s,u[1]),l[1]=Zt(s,l[1])}function gx(e,t,r,n,a,i,o,s){var u=tg,l=Et,f=Zt(qt(u(e,r,a),1),0),h=Zt(qt(u(t,n,i),1),0),c=l(e,r,a,f),v=l(t,n,i,h);o[0]=qt(e,a,c),o[1]=qt(t,i,v),s[0]=Zt(e,a,c),s[1]=Zt(t,i,v)}function yx(e,t,r,n,a,i,o,s,u){var l=pr,f=gr,h=Math.abs(a-i);if(h%Fr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(Bi[0]=lu(a)*r+e,Bi[1]=uu(a)*n+t,Ni[0]=lu(i)*r+e,Ni[1]=uu(i)*n+t,l(s,Bi,Ni),f(u,Bi,Ni),a=a%Fr,a<0&&(a=a+Fr),i=i%Fr,i<0&&(i=i+Fr),a>i&&!o?i+=Fr:a<i&&o&&(a+=Fr),o){var c=i;i=a,a=c}for(var v=0;v<i;v+=Math.PI/2)v>a&&(Fi[0]=lu(v)*r+e,Fi[1]=uu(v)*n+t,l(s,Fi,s),f(u,Fi,u))}var ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zr=[],Gr=[],Re=[],sr=[],Ee=[],Oe=[],fu=Math.min,hu=Math.max,Hr=Math.cos,Vr=Math.sin,Ze=Math.abs,Il=Math.PI,vr=Il*2,vu=typeof Float32Array<"u",pa=[];function cu(e){var t=Math.round(e/Il*1e8)/1e8;return t%2*Il}function mx(e,t){var r=cu(e[0]);r<0&&(r+=vr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=vr?a=r+vr:t&&r-a>=vr?a=r-vr:!t&&r>a?a=r+(vr-cu(r-a)):t&&r<a&&(a=r-(vr-cu(a-r))),e[0]=r,e[1]=a}var _x=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Ze(n/zo/t)||0,this._uy=Ze(n/zo/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(ot.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Ze(t-this._xi),a=Ze(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ot.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(ot.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(ot.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),pa[0]=a,pa[1]=i,mx(pa,o),a=pa[0],i=pa[1];var s=i-a;return this.addData(ot.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Hr(i)*n+t,this._yi=Vr(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(ot.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ot.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&vu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();vu&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,u,l){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,vu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Re[0]=Re[1]=Ee[0]=Ee[1]=Number.MAX_VALUE,sr[0]=sr[1]=Oe[0]=Oe[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],a=r,i=n),s){case ot.M:r=a=t[o++],n=i=t[o++],Ee[0]=a,Ee[1]=i,Oe[0]=a,Oe[1]=i;break;case ot.L:dv(r,n,t[o],t[o+1],Ee,Oe),r=t[o++],n=t[o++];break;case ot.C:px(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ee,Oe),r=t[o++],n=t[o++];break;case ot.Q:gx(r,n,t[o++],t[o++],t[o],t[o+1],Ee,Oe),r=t[o++],n=t[o++];break;case ot.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];u&&(a=Hr(v)*h+l,i=Vr(v)*c+f),yx(l,f,h,c,v,d,g,Ee,Oe),r=Hr(d)*h+l,n=Vr(d)*c+f;break;case ot.R:a=r=t[o++],i=n=t[o++];var p=t[o++],y=t[o++];dv(a,i,a+p,i+y,Ee,Oe);break;case ot.Z:r=a,n=i;break}pr(Re,Re,Ee),gr(sr,sr,Oe)}return o===0&&(Re[0]=Re[1]=sr[0]=sr[1]=0),new tt(Re[0],Re[1],sr[0]-Re[0],sr[1]-Re[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(i=t[c],o=t[c+1],s=i,u=o);var g=-1;switch(v){case ot.M:i=s=t[c++],o=u=t[c++];break;case ot.L:{var p=t[c++],y=t[c++],m=p-i,_=y-o;(Ze(m)>n||Ze(_)>a||c===r-1)&&(g=Math.sqrt(m*m+_*_),i=p,o=y);break}case ot.C:{var S=t[c++],w=t[c++],p=t[c++],y=t[c++],x=t[c++],b=t[c++];g=b1(i,o,S,w,p,y,x,b,10),i=x,o=b;break}case ot.Q:{var S=t[c++],w=t[c++],p=t[c++],y=t[c++];g=C1(i,o,S,w,p,y,10),i=p,o=y;break}case ot.A:var T=t[c++],C=t[c++],A=t[c++],D=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,t[c++],d&&(s=Hr(L)*A+T,u=Vr(L)*D+C),g=hu(A,D)*fu(vr,Math.abs(I)),i=Hr(P)*A+T,o=Vr(P)*D+C;break;case ot.R:{s=i=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case ot.Z:{var m=s-i,_=u-o;g=Math.sqrt(m*m+_*_),i=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,g,p=0,y=0,m,_=0,S,w;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=r*g,!m))return;t:for(var x=0;x<o;){var b=n[x++],T=x===1;switch(T&&(l=n[x],f=n[x+1],s=l,u=f),b!==ot.L&&_>0&&(t.lineTo(S,w),_=0),b){case ot.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case ot.L:{h=n[x++],c=n[x++];var C=Ze(h-l),A=Ze(c-f);if(C>a||A>i){if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}p+=D}t.lineTo(h,c),l=h,f=c,_=0}else{var I=C*C+A*A;I>_&&(S=h,w=c,_=I)}break}case ot.C:{var P=n[x++],R=n[x++],E=n[x++],U=n[x++],k=n[x++],F=n[x++];if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;Tr(l,P,E,k,L,zr),Tr(f,R,U,F,L,Gr),t.bezierCurveTo(zr[1],Gr[1],zr[2],Gr[2],zr[3],Gr[3]);break t}p+=D}t.bezierCurveTo(P,R,E,U,k,F),l=k,f=F;break}case ot.Q:{var P=n[x++],R=n[x++],E=n[x++],U=n[x++];if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;No(l,P,E,L,zr),No(f,R,U,L,Gr),t.quadraticCurveTo(zr[1],Gr[1],zr[2],Gr[2]);break t}p+=D}t.quadraticCurveTo(P,R,E,U),l=E,f=U;break}case ot.A:var H=n[x++],Z=n[x++],X=n[x++],ht=n[x++],St=n[x++],Lt=n[x++],ie=n[x++],Ut=!n[x++],It=X>ht?X:ht,bt=Ze(X-ht)>.001,pt=St+Lt,Y=!1;if(v){var D=d[y++];p+D>m&&(pt=St+Lt*(m-p)/D,Y=!0),p+=D}if(bt&&t.ellipse?t.ellipse(H,Z,X,ht,ie,St,pt,Ut):t.arc(H,Z,It,St,pt,Ut),Y)break t;T&&(s=Hr(St)*X+H,u=Vr(St)*ht+Z),l=Hr(pt)*X+H,f=Vr(pt)*ht+Z;break;case ot.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var J=n[x++],Pe=n[x++];if(v){var D=d[y++];if(p+D>m){var Mt=m-p;t.moveTo(h,c),t.lineTo(h+fu(Mt,J),c),Mt-=J,Mt>0&&t.lineTo(h+J,c+fu(Mt,Pe)),Mt-=Pe,Mt>0&&t.lineTo(h+hu(J-Mt,0),c+Pe),Mt-=J,Mt>0&&t.lineTo(h,c+hu(Pe-Mt,0));break t}p+=D}t.rect(h,c,J,Pe);break;case ot.Z:if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}p+=D}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=ot,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Dr=_x;function An(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var f=u*i-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function Sx(e,t,r,n,a,i,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>i+h&&f>s+h||f<t-h&&f<n-h&&f<i-h&&f<s-h||l>e+h&&l>r+h&&l>a+h&&l>o+h||l<e-h&&l<r-h&&l<a-h&&l<o-h)return!1;var c=jp(e,t,r,n,a,i,o,s,l,f,null);return c<=h/2}function xx(e,t,r,n,a,i,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>i+l||u<t-l&&u<n-l&&u<i-l||s>e+l&&s>r+l&&s>a+l||s<e-l&&s<r-l&&s<a-l)return!1;var f=eg(e,t,r,n,a,i,s,u,null);return f<=l/2}var yv=Math.PI*2;function _r(e){return e%=yv,e<0&&(e+=yv),e}var ga=Math.PI*2;function bx(e,t,r,n,a,i,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-a)%ga<1e-4)return!0;if(i){var h=n;n=_r(a),a=_r(h)}else n=_r(n),a=_r(a);n>a&&(a+=ga);var c=Math.atan2(u,s);return c<0&&(c+=ga),c>=n&&c<=a||c+ga>=n&&c+ga<=a}function Je(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===a?1/0:u>a?s:0}var ur=Dr.CMD,Wr=Math.PI*2,Tx=1e-4;function Cx(e,t){return Math.abs(e-t)<Tx}var Ft=[-1,-1,-1],he=[-1,-1];function Mx(){var e=he[0];he[0]=he[1],he[1]=e}function Dx(e,t,r,n,a,i,o,s,u,l){if(l>t&&l>n&&l>i&&l>s||l<t&&l<n&&l<i&&l<s)return 0;var f=Qp(t,n,i,s,l,Ft);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Ft[g],y=p===0||p===1?.5:1,m=At(e,r,a,o,p);m<u||(c<0&&(c=Jp(t,n,i,s,he),he[1]<he[0]&&c>1&&Mx(),v=At(t,n,i,s,he[0]),c>1&&(d=At(t,n,i,s,he[1]))),c===2?p<he[0]?h+=v<t?y:-y:p<he[1]?h+=d<v?y:-y:h+=s<d?y:-y:p<he[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function Ax(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var u=T1(t,n,i,s,Ft);if(u===0)return 0;var l=tg(t,n,i);if(l>=0&&l<=1){for(var f=0,h=Et(t,n,i,l),c=0;c<u;c++){var v=Ft[c]===0||Ft[c]===1?.5:1,d=Et(e,r,a,Ft[c]);d<o||(Ft[c]<l?f+=h<t?v:-v:f+=i<h?v:-v)}return f}else{var v=Ft[0]===0||Ft[0]===1?.5:1,d=Et(e,r,a,Ft[0]);return d<o?0:i<t?v:-v}}function Lx(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ft[0]=-u,Ft[1]=u;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=Wr-1e-4){n=0,a=Wr;var f=i?1:-1;return o>=Ft[0]+e&&o<=Ft[1]+e?f:0}if(n>a){var h=n;n=a,a=h}n<0&&(n+=Wr,a+=Wr);for(var c=0,v=0;v<2;v++){var d=Ft[v];if(d+e>o){var g=Math.atan2(s,d),f=i?1:-1;g<0&&(g=Wr+g),(g>=n&&g<=a||g+Wr>=n&&g+Wr<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Pg(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var g=i[d++],p=d===1;switch(g===ur.M&&d>1&&(r||(s+=Je(u,l,f,h,n,a))),p&&(u=i[d],l=i[d+1],f=u,h=l),g){case ur.M:f=i[d++],h=i[d++],u=f,l=h;break;case ur.L:if(r){if(An(u,l,i[d],i[d+1],t,n,a))return!0}else s+=Je(u,l,i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case ur.C:if(r){if(Sx(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Dx(u,l,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case ur.Q:if(r){if(xx(u,l,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Ax(u,l,i[d++],i[d++],i[d],i[d+1],n,a)||0;u=i[d++],l=i[d++];break;case ur.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);c=Math.cos(w)*_+y,v=Math.sin(w)*S+m,p?(f=c,h=v):s+=Je(u,l,c,v,n,a);var T=(n-y)*S/_+y;if(r){if(bx(y,m,S,w,w+x,b,t,T,a))return!0}else s+=Lx(y,m,S,w,w+x,b,T,a);u=Math.cos(w+x)*_+y,l=Math.sin(w+x)*S+m;break;case ur.R:f=u=i[d++],h=l=i[d++];var C=i[d++],A=i[d++];if(c=f+C,v=h+A,r){if(An(f,h,c,h,t,n,a)||An(c,h,c,v,t,n,a)||An(c,v,f,v,t,n,a)||An(f,v,f,h,t,n,a))return!0}else s+=Je(c,h,c,v,n,a),s+=Je(f,v,f,h,n,a);break;case ur.Z:if(r){if(An(u,l,f,h,t,n,a))return!0}else s+=Je(u,l,f,h,n,a);u=f,l=h;break}}return!r&&!Cx(l,h)&&(s+=Je(u,l,f,h,n,a)||0),s!==0}function Ix(e,t,r){return Pg(e,0,!1,t,r)}function Px(e,t,r,n){return Pg(e,t,!0,r,n)}var Rg=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fn),Rx={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ds.style)},du=ti.concat(["invisible","culling","z","z2","zlevel","parent"]),Ex=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(u){r.buildPath(u,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<du.length;++s)a[du[s]]=this[du[s]];a.__dirty|=ne}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=ct(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(z(r)){var n=ja(r,0);return n>.5?bl:n>.2?iS:Tl}else if(r)return Tl}return bl},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(z(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=ja(r,0)<wl;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Gn},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Dr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Gn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),Px(s,u/l,r,n)))return!0}if(this.hasFill())return Ix(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Gn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:O(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Gn)},t.prototype.createStyle=function(r){return pi(Rg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var u=!(n&&i),l;if(n&&n.shape?o?i?l=n.shape:(l=O({},a.shape),O(l,n.shape)):(l=O({},i?this.shape:a.shape),O(l,n.shape)):u&&(l=a.shape),l)if(o){this.shape=O({},this.shape);for(var f={},h=ct(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Rx},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){N(o,i);function o(s){var u=i.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return rt(r.style)},o.prototype.getDefaultShape=function(){return rt(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ne|Pa|Gn}(),t}(na);const nt=Ex;var Ox=Q({strokeFirst:!0,font:pn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rg),Eg=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return pi(Ox,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=Ef(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(na);Eg.prototype.type="tspan";const Pl=Eg;var kx=Q({x:0,y:0},fn),Bx={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ds.style)};function Nx(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Og=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return pi(kx,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=Nx(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Bx},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new tt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(na);Og.prototype.type="image";const aa=Og;function Fx(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,u,l,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>a&&(h=s+u,s*=a/h,u*=a/h),l+f>a&&(h=l+f,l*=a/h,f*=a/h),u+l>i&&(h=u+l,u*=i/h,l*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),e.moveTo(r+s,n),e.lineTo(r+a-u,n),u!==0&&e.arc(r+a-u,n+u,u,-Math.PI/2,0),e.lineTo(r+a,n+i-l),l!==0&&e.arc(r+a-l,n+i-l,l,0,Math.PI/2),e.lineTo(r+f,n+i),f!==0&&e.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Wn=Math.round;function kg(e,t,r){if(!!t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(Wn(n*2)===Wn(a*2)&&(e.x1=e.x2=nn(n,s,!0)),Wn(i*2)===Wn(o*2)&&(e.y1=e.y2=nn(i,s,!0))),e}}function Bg(e,t,r){if(!!t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=nn(n,s,!0),e.y=nn(a,s,!0),e.width=Math.max(nn(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(nn(a+o,s,!1)-e.y,o===0?0:1)),e}}function nn(e,t,r){if(!t)return e;var n=Wn(e*2);return(n+Wn(t))%2===0?n/2:(n+(r?1:-1))/2}var zx=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Gx={},Ng=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zx},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=Bg(Gx,n,this.style);a=u.x,i=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Fx(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(nt);Ng.prototype.type="rect";const Ct=Ng;var mv={fill:"#000"},_v=2,Hx={style:Q({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},ds.style)},Fg=function(e){N(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=mv,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,$x(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new tt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(a);l?(r.copy(u),r.applyTransform(l),i=i||r.clone(),i.union(r)):(i=i||u.clone(),i.union(u))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||mv},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return O(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=ct(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},O(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Hx},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||pn,a=r.padding,i=Mv(r),o=ix(i,r),s=pu(r),u=!!r.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,g=r.x||0,p=r.y||0,y=r.align||d.align||"left",m=r.verticalAlign||d.verticalAlign||"top",_=g,S=Hn(p,o.contentHeight,m);if(s||a){var w=Ea(g,f,y),x=Hn(p,l,m);s&&this._renderBackground(r,r,w,x,f,l)}S+=v/2,a&&(_=Cv(g,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var b=0,T=!1,C=Tv("fill"in r?r.fill:(T=!0,d.fill)),A=bv("stroke"in r?r.stroke:!u&&(!d.autoStroke||T)?(b=_v,d.stroke):null),D=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(Pl),E=R.createStyle();R.useStyle(E),E.text=c[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=A,E.fill=C,A&&(E.lineWidth=r.lineWidth||b,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,xv(E,r),S+=v,L&&R.setBoundingRect(new tt(Ea(E.x,r.width,E.textAlign),Hn(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Mv(r),a=ux(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,u=r.padding,l=r.x||0,f=r.y||0,h=this._defaultStyle,c=r.align||h.align,v=r.verticalAlign||h.verticalAlign,d=Ea(l,o,c),g=Hn(f,s,v),p=d,y=g;u&&(p+=u[3],y+=u[0]);var m=p+i;pu(r)&&this._renderBackground(r,r,d,g,o,s);for(var _=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var w=a.lines[S],x=w.tokens,b=x.length,T=w.lineHeight,C=w.width,A=0,D=p,L=m,I=b-1,P=void 0;A<b&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,r,T,y,D,"left",_),C-=P.width,D+=P.width,A++;for(;I>=0&&(P=x[I],P.align==="right");)this._placeToken(P,r,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(i-(D-p)-(m-L)-C)/2;A<=I;)P=x[A],this._placeToken(P,r,T,y,D+P.width/2,"center",_),D+=P.width,A++;y+=T}},t.prototype._placeToken=function(r,n,a,i,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=i+a/2;f==="top"?h=i+r.height/2:f==="bottom"&&(h=i+a-r.height/2);var c=!r.isLineHolder&&pu(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Cv(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(Pl),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=Tv("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=bv("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=_v,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||pn,p.opacity=Yn(l.opacity,n.opacity,1),xv(p,l),w&&(p.lineWidth=Yn(l.lineWidth,n.lineWidth,_),p.lineDash=K(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S);var b=r.contentWidth,T=r.contentHeight;g.setBoundingRect(new tt(Ea(p.x,b,p.textAlign),Hn(p.y,T,p.textBaseline),b,T))},t.prototype._renderBackground=function(r,n,a,i,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,g,p;if(c||r.lineHeight||l&&f){g=this._getOrCreateChild(Ct),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=K(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(aa),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=a,_.y=i,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=K(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Yn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return Yx(r)&&(n=[r.fontStyle,r.fontWeight,Ux(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&be(n)||r.textFont||r.font},t}(na),Vx={left:!0,right:1,center:1},Wx={top:1,bottom:1,middle:1},Sv=["fontStyle","fontWeight","fontSize","fontFamily"];function Ux(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?wf+"px":e+"px"}function xv(e,t){for(var r=0;r<Sv.length;r++){var n=Sv[r],a=t[n];a!=null&&(e[n]=a)}}function Yx(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function $x(e){return wv(e),M(e.rich,wv),e}function wv(e){if(e){e.font=Fg.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Vx[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Wx[r]?r:"top";var n=e.padding;n&&(e.padding=Mf(e.padding))}}function bv(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Tv(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Cv(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Mv(e){var t=e.text;return t!=null&&(t+=""),t}function pu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Vt=Fg;var lt=yt(),Xx=function(e,t,r,n){if(n){var a=lt(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,n.type==="group"&&n.traverse(function(i){var o=lt(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Dv=1,Av={},zg=yt(),Gf=yt(),Hf=0,ps=1,gs=2,Ue=["emphasis","blur","select"],Vo=["normal","emphasis","blur","select"],qx=10,Zx=9,hn="highlight",To="downplay",Ha="select",Co="unselect",Va="toggleSelect";function Ln(e){return e!=null&&e!=="none"}var Lv=new yi(100);function Iv(e){if(z(e)){var t=Lv.get(e);return t||(t=gl(e,-.1),Lv.put(e,t)),t}else if(di(e)){var r=O({},e);return r.colorStops=G(e.colorStops,function(n){return{offset:n.offset,color:gl(n.color,-.1)}}),r}return e}function ys(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Gg(e){ys(e,"emphasis",gs)}function Hg(e){e.hoverState===gs&&ys(e,"normal",Hf)}function Vf(e){ys(e,"blur",ps)}function Vg(e){e.hoverState===ps&&ys(e,"normal",Hf)}function Kx(e){e.selected=!0}function Qx(e){e.selected=!1}function Pv(e,t,r){t(e,r)}function ar(e,t,r){Pv(e,t,r),e.isGroup&&e.traverse(function(n){Pv(n,t,r)})}function gP(e,t){switch(t){case"emphasis":e.hoverState=gs;break;case"normal":e.hoverState=Hf;break;case"blur":e.hoverState=ps;break;case"select":e.selected=!0}}function Jx(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],u=a[s];i[s]=u==null?n&&n[s]:u}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(i,t)}return i}function jx(e,t,r,n){var a=r&&it(r,"select")>=0,i=!1;if(e instanceof nt){var o=zg(e),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(Ln(s)||Ln(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=O({},n),l=O({},l),l.fill=s):!Ln(l.fill)&&Ln(s)?(i=!0,n=O({},n),l=O({},l),l.fill=Iv(s)):!Ln(l.stroke)&&Ln(u)&&(i||(n=O({},n),l=O({},l)),l.stroke=Iv(u)),n.style=l}}if(n&&n.z2==null){i||(n=O({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f!=null?f:qx)}return n}function tw(e,t,r){if(r&&r.z2==null){r=O({},r);var n=e.z2SelectLift;r.z2=e.z2+(n!=null?n:Zx)}return r}function ew(e,t,r){var n=it(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:Jx(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=O({},r),o=O({opacity:n?a:i.opacity*.1},o),r.style=o),r}function gu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return jx(this,e,t,r);if(e==="blur")return ew(this,e,r);if(e==="select")return tw(this,e,r)}return r}function rw(e){e.stateProxy=gu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=gu),r&&(r.stateProxy=gu)}function Rv(e,t){!$g(e,t)&&!e.__highByOuter&&ar(e,Gg)}function Ev(e,t){!$g(e,t)&&!e.__highByOuter&&ar(e,Hg)}function Rl(e,t){e.__highByOuter|=1<<(t||0),ar(e,Gg)}function El(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ar(e,Hg)}function nw(e){ar(e,Vf)}function Wg(e){ar(e,Vg)}function Ug(e){ar(e,Kx)}function Yg(e){ar(e,Qx)}function $g(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Xg(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=Gf(i),s=a==="series",u=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Vg(l)}),s&&r.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function Ol(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Wg(c)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];a.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){Vf(p)}),Bt(t))i(l.getData(),t);else if(W(t))for(var d=ct(t),g=0;g<d.length;g++)i(l.getData(d[g]),t[d[g]]);u.push(l),Gf(l).isBlured=!0}}),a.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,a)}})}}function kl(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(!!n){Gf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Vf(i)})}}}function aw(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!!a){var i=Si(a,t);i=(B(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),u=0;!o&&u<s;)o=a.getItemGraphicEl(u++);if(o){var l=lt(o);Ol(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&Ol(n,f,h,r)}}}function Wf(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(lt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function iw(e,t,r){var n=lt(e),a=Wf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&kl(n.componentMainType,n.componentIndex,r),M(i,function(s){return Rv(s,t)})):(Ol(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&kl(n.componentMainType,n.componentIndex,r),Rv(e,t))}function ow(e,t,r){Xg(r);var n=lt(e),a=Wf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?M(a,function(i){return Ev(i,t)}):Ev(e,t)}function sw(e,t,r){if(!!Fl(t)){var n=t.dataType,a=e.getData(n),i=Si(a,t);B(i)||(i=[i]),e[t.type===Va?"toggleSelect":t.type===Ha?"select":"unselect"](i,n)}}function Ov(e){var t=e.getAllData();M(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?Ug(i):Yg(i)})})}function uw(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();M(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Bl(e,t,r){Kg(e,!0),ar(e,rw),fw(e,t,r)}function lw(e){Kg(e,!1)}function qg(e,t,r,n){n?lw(e):Bl(e,t,r)}function fw(e,t,r){var n=lt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var kv=["emphasis","blur","select"],hw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zg(e,t,r,n){r=r||"itemStyle";for(var a=0;a<kv.length;a++){var i=kv[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[hw[r]]()}}function Kg(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Nl(e){return!!(e&&e.__highDownDispatcher)}function yP(e,t,r){var n=lt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function vw(e){var t=Av[e];return t==null&&Dv<=32&&(t=Av[e]=Dv++),t}function Fl(e){var t=e.type;return t===Ha||t===Co||t===Va}function Bv(e){var t=e.type;return t===hn||t===To}function cw(e){var t=zg(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var In=Dr.CMD,dw=[[],[],[]],Nv=Math.sqrt,pw=Math.atan2;function Qg(e,t){if(!!t){var r=e.data,n=e.len(),a,i,o,s,u,l,f=In.M,h=In.C,c=In.L,v=In.R,d=In.A,g=In.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case c:i=1;break;case h:i=3;break;case g:i=2;break;case d:var p=t[4],y=t[5],m=Nv(t[0]*t[0]+t[1]*t[1]),_=Nv(t[2]*t[2]+t[3]*t[3]),S=pw(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],Ht(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],Ht(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<i;u++){var w=dw[u];w[0]=r[o++],w[1]=r[o++],Ht(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var yu=Math.sqrt,zi=Math.sin,Gi=Math.cos,ya=Math.PI;function Fv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function zl(e,t){return(e[0]*t[0]+e[1]*t[1])/(Fv(e)*Fv(t))}function zv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(zl(e,t))}function Gv(e,t,r,n,a,i,o,s,u,l,f){var h=u*(ya/180),c=Gi(h)*(e-r)/2+zi(h)*(t-n)/2,v=-1*zi(h)*(e-r)/2+Gi(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=yu(d),s*=yu(d));var g=(a===i?-1:1)*yu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(e+r)/2+Gi(h)*p-zi(h)*y,_=(t+n)/2+zi(h)*p+Gi(h)*y,S=zv([1,0],[(c-p)/o,(v-y)/s]),w=[(c-p)/o,(v-y)/s],x=[(-1*c-p)/o,(-1*v-y)/s],b=zv(w,x);if(zl(w,x)<=-1&&(b=ya),zl(w,x)>=1&&(b=0),b<0){var T=Math.round(b/ya*1e6)/1e6;b=ya*2+T%2*ya}f.addData(l,m,_,o,s,S,b,h,i)}var gw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mw(e){var t=new Dr;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Dr.CMD,u=e.match(gw);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(yw)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=r,C=n,A=void 0,D=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,t.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,t.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,t.addData(c,r,n),a=r,i=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,t.addData(c,r,n),a=r,i=n,h="L";break;case"h":r+=v[p++],c=s.L,t.addData(c,r,n);break;case"H":r=v[p++],c=s.L,t.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,r,n);break;case"V":n=v[p++],c=s.L,t.addData(c,r,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":y=r,m=n,A=t.len(),D=t.data,o===s.C&&(y+=r-D[A-4],m+=n-D[A-3]),c=s.C,T=v[p++],C=v[p++],r=v[p++],n=v[p++],t.addData(c,y,m,T,C,r,n);break;case"s":y=r,m=n,A=t.len(),D=t.data,o===s.C&&(y+=r-D[A-4],m+=n-D[A-3]),c=s.C,T=r+v[p++],C=n+v[p++],r+=v[p++],n+=v[p++],t.addData(c,y,m,T,C,r,n);break;case"Q":T=v[p++],C=v[p++],r=v[p++],n=v[p++],c=s.Q,t.addData(c,T,C,r,n);break;case"q":T=v[p++]+r,C=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,T,C,r,n);break;case"T":y=r,m=n,A=t.len(),D=t.data,o===s.Q&&(y+=r-D[A-4],m+=n-D[A-3]),r=v[p++],n=v[p++],c=s.Q,t.addData(c,y,m,r,n);break;case"t":y=r,m=n,A=t.len(),D=t.data,o===s.Q&&(y+=r-D[A-4],m+=n-D[A-3]),r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,y,m,r,n);break;case"A":_=v[p++],S=v[p++],w=v[p++],x=v[p++],b=v[p++],T=r,C=n,r=v[p++],n=v[p++],c=s.A,Gv(T,C,r,n,x,b,_,S,w,c,t);break;case"a":_=v[p++],S=v[p++],w=v[p++],x=v[p++],b=v[p++],T=r,C=n,r+=v[p++],n+=v[p++],c=s.A,Gv(T,C,r,n,x,b,_,S,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=a,n=i),o=c}return t.toStatic(),t}var Jg=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(nt);function jg(e){return e.setData!=null}function ty(e,t){var r=mw(e),n=O({},t);return n.buildPath=function(a){if(jg(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){Qg(r,a),this.dirtyShape()},n}function _w(e,t){return new Jg(ty(e,t))}function Sw(e,t){var r=ty(e,t),n=function(a){N(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(Jg);return n}function xw(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new nt(t);return o.createPathProxy(),o.buildPath=function(s){if(jg(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function Uf(e,t){t=t||{};var r=new nt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?Qg(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var ww=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),ey=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ww},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(nt);ey.prototype.type="circle";const Yf=ey;var bw=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),ry=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new bw},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*a,f=u*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-l,o-u,i,o-u),r.bezierCurveTo(i+l,o-u,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+l,o+u,i,o+u),r.bezierCurveTo(i-l,o+u,i-s,o+f,i-s,o),r.closePath()},t}(nt);ry.prototype.type="ellipse";const ny=ry;var ay=Math.PI,mu=ay*2,Ur=Math.sin,Pn=Math.cos,Tw=Math.acos,Pt=Math.atan2,Hv=Math.abs,Wa=Math.sqrt,Oa=Math.max,ke=Math.min,_e=1e-4;function Cw(e,t,r,n,a,i,o,s){var u=r-e,l=n-t,f=o-a,h=s-i,c=h*u-f*l;if(!(c*c<_e))return c=(f*(t-i)-h*(e-a))/c,[e+c*u,t+c*l]}function Hi(e,t,r,n,a,i,o){var s=e-r,u=t-n,l=(o?i:-i)/Wa(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,g=n+h,p=(c+d)/2,y=(v+g)/2,m=d-c,_=g-v,S=m*m+_*_,w=a-i,x=c*g-d*v,b=(_<0?-1:1)*Wa(Oa(0,w*w*S-x*x)),T=(x*_-m*b)/S,C=(-x*m-_*b)/S,A=(x*_+m*b)/S,D=(-x*m+_*b)/S,L=T-p,I=C-y,P=A-p,R=D-y;return L*L+I*I>P*P+R*R&&(T=A,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(a/w-1),y1:C*(a/w-1)}}function Mw(e){var t;if(B(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Dw(e,t){var r,n=Oa(t.r,0),a=Oa(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Hv(l-u),d=v>mu&&v%mu;if(d>_e&&(v=d),!(n>_e))e.moveTo(f,h);else if(v>mu-_e)e.moveTo(f+n*Pn(u),h+n*Ur(u)),e.arc(f,h,n,u,l,!c),a>_e&&(e.moveTo(f+a*Pn(l),h+a*Ur(l)),e.arc(f,h,a,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,C=void 0,A=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=n*Pn(u),E=n*Ur(u),U=a*Pn(l),k=a*Ur(l),F=v>_e;if(F){var H=t.cornerRadius;H&&(r=Mw(H),g=r[0],p=r[1],y=r[2],m=r[3]);var Z=Hv(n-a)/2;if(_=ke(Z,y),S=ke(Z,m),w=ke(Z,g),x=ke(Z,p),C=b=Oa(_,S),A=T=Oa(w,x),(b>_e||T>_e)&&(D=n*Pn(l),L=n*Ur(l),I=a*Pn(u),P=a*Ur(u),v<ay)){var X=Cw(R,E,I,P,D,L,U,k);if(X){var ht=R-X[0],St=E-X[1],Lt=D-X[0],ie=L-X[1],Ut=1/Ur(Tw((ht*Lt+St*ie)/(Wa(ht*ht+St*St)*Wa(Lt*Lt+ie*ie)))/2),It=Wa(X[0]*X[0]+X[1]*X[1]);C=ke(b,(n-It)/(Ut+1)),A=ke(T,(a-It)/(Ut-1))}}}if(!F)e.moveTo(f+R,h+E);else if(C>_e){var bt=ke(y,C),pt=ke(m,C),Y=Hi(I,P,R,E,n,bt,c),J=Hi(D,L,U,k,n,pt,c);e.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),C<b&&bt===pt?e.arc(f+Y.cx,h+Y.cy,C,Pt(Y.y0,Y.x0),Pt(J.y0,J.x0),!c):(bt>0&&e.arc(f+Y.cx,h+Y.cy,bt,Pt(Y.y0,Y.x0),Pt(Y.y1,Y.x1),!c),e.arc(f,h,n,Pt(Y.cy+Y.y1,Y.cx+Y.x1),Pt(J.cy+J.y1,J.cx+J.x1),!c),pt>0&&e.arc(f+J.cx,h+J.cy,pt,Pt(J.y1,J.x1),Pt(J.y0,J.x0),!c))}else e.moveTo(f+R,h+E),e.arc(f,h,n,u,l,!c);if(!(a>_e)||!F)e.lineTo(f+U,h+k);else if(A>_e){var bt=ke(g,A),pt=ke(p,A),Y=Hi(U,k,D,L,a,-pt,c),J=Hi(R,E,I,P,a,-bt,c);e.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),A<T&&bt===pt?e.arc(f+Y.cx,h+Y.cy,A,Pt(Y.y0,Y.x0),Pt(J.y0,J.x0),!c):(pt>0&&e.arc(f+Y.cx,h+Y.cy,pt,Pt(Y.y0,Y.x0),Pt(Y.y1,Y.x1),!c),e.arc(f,h,a,Pt(Y.cy+Y.y1,Y.cx+Y.x1),Pt(J.cy+J.y1,J.cx+J.x1),c),bt>0&&e.arc(f+J.cx,h+J.cy,bt,Pt(J.y1,J.x1),Pt(J.y0,J.x0),!c))}else e.lineTo(f+U,h+k),e.arc(f,h,a,l,u,c)}e.closePath()}}}var Aw=function(){function e(){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 e}(),iy=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Aw},t.prototype.buildPath=function(r,n){Dw(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(nt);iy.prototype.type="sector";const nr=iy;var Lw=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),oy=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Lw},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(nt);oy.prototype.type="ring";const sy=oy;function Iw(e,t,r,n){var a=[],i=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)pr(f,f,e[c]),gr(h,h,e[c]);pr(f,f,n[0]),gr(h,h,n[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){a.push(Bp(e[c]));continue}else u=e[c-1],l=e[c+1];Np(i,l,u),go(i,i,t);var g=Eo(d,u),p=Eo(d,l),y=g+p;y!==0&&(g/=y,p/=y),go(o,i,-g),go(s,i,p);var m=ll([],d,o),_=ll([],d,s);n&&(gr(m,m,f),pr(m,m,h),gr(_,_,f),pr(_,_,h)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}function uy(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=Iw(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var u=i[s*2],l=i[s*2+1],f=a[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var Pw=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),ly=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Pw},t.prototype.buildPath=function(r,n){uy(r,n,!0)},t}(nt);ly.prototype.type="polygon";const $f=ly;var Rw=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),fy=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Rw},t.prototype.buildPath=function(r,n){uy(r,n,!1)},t}(nt);fy.prototype.type="polyline";const ms=fy;var Ew={},Ow=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),hy=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ow},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var u=kg(Ew,n,this.style);a=u.x1,i=u.y1,o=u.x2,s=u.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(a,i),l<1&&(o=a*(1-l)+o*l,s=i*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(nt);hy.prototype.type="line";const yn=hy;var Yt=[],kw=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Vv(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?Yh:At)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Yh:At)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?$h:Et)(e.x1,e.cpx1,e.x2,t),(r?$h:Et)(e.y1,e.cpy1,e.y2,t)]}var vy=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kw},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(a,i),f==null||h==null?(c<1&&(No(a,u,o,c,Yt),u=Yt[1],o=Yt[2],No(i,l,s,c,Yt),l=Yt[1],s=Yt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Tr(a,u,f,o,c,Yt),u=Yt[1],f=Yt[2],o=Yt[3],Tr(i,l,h,s,c,Yt),l=Yt[1],h=Yt[2],s=Yt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Vv(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Vv(this.shape,r,!0);return Fp(n,n)},t}(nt);vy.prototype.type="bezier-curve";const cy=vy;var Bw=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),dy=function(e){N(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Bw},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+a,h*o+i),r.arc(a,i,o,s,u,!l)},t}(nt);dy.prototype.type="arc";const Xf=dy;var Nw=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),nt.prototype.getBoundingRect.call(this)},t}(nt);const Fw=Nw;var zw=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const py=zw;var Gw=function(e){N(t,e);function t(r,n,a,i,o,s){var u=e.call(this,o)||this;return u.x=r==null?0:r,u.y=n==null?0:n,u.x2=a==null?1:a,u.y2=i==null?0:i,u.type="linear",u.global=s||!1,u}return t}(py);const Hw=Gw;var Vw=function(e){N(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r==null?.5:r,s.y=n==null?.5:n,s.r=a==null?.5:a,s.type="radial",s.global=o||!1,s}return t}(py);const Ww=Vw;var Yr=[0,0],$r=[0,0],Vi=new V,Wi=new V,Uw=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new V;for(var n=0;n<2;n++)this._axes[n]=new V;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,u=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,u),n[3].set(i,u),r)for(var l=0;l<4;l++)n[l].transform(r);V.sub(a[0],n[1],n[0]),V.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var l=0;l<2;l++)this._origin[l]=a[l].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return Vi.set(1/0,1/0),Wi.set(0,0),!this._intersectCheckOneSide(this,t,Vi,Wi,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Vi,Wi,a,-1)&&(n=!1,a)||a||V.copy(r,n?Vi:Wi),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,Yr),this._getProjMinMaxOnAxis(u,r._corners,$r),Yr[1]<$r[0]||Yr[0]>$r[1]){if(s=!1,i)return s;var f=Math.abs($r[0]-Yr[1]),h=Math.abs(Yr[0]-$r[1]);Math.min(f,h)>a.len()&&(f<h?V.scale(a,l,-f*o):V.scale(a,l,h*o))}else if(n){var f=Math.abs($r[0]-Yr[1]),h=Math.abs(Yr[0]-$r[1]);Math.min(f,h)<n.len()&&(f<h?V.scale(n,l,f*o):V.scale(n,l,-h*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(a)+i[t];s=Math.min(f,s),u=Math.max(f,u)}n[0]=s,n[1]=u},e}();const Wo=Uw;var Yw=[],$w=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new tt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(Yw)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(na);const Xw=$w;var gy=yt();function _s(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=K(n.duration,200),f=K(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(l=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),q(h)&&(h=h(r,a)),q(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function qf(e,t,r,n,a,i,o){var s=!1,u;q(a)?(o=i,i=a,a=null):W(a)&&(i=a.cb,o=a.during,s=a.isFrom,u=a.removeOpt,a=a.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=_s(e,n,a,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:i,force:!!i||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function te(e,t,r,n,a,i){qf("update",e,t,r,n,a,i)}function Jt(e,t,r,n,a,i){qf("enter",e,t,r,n,a,i)}function qn(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function yy(e,t,r,n,a,i){qn(e)||qf("leave",e,t,r,n,a,i)}function Wv(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),yy(e,{style:{opacity:0}},t,r,n)}function Uo(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||Wv(a,t,r,n)}):Wv(e,t,r,n)}function my(e){gy(e).oldStyle=e.style}function qw(e){return gy(e).oldStyle}var Yo=Math.max,$o=Math.min,Gl={};function Zw(e){return nt.extend(e)}var Kw=Sw;function Qw(e,t){return Kw(e,t)}function Ie(e,t){Gl[e]=t}function Jw(e){if(Gl.hasOwnProperty(e))return Gl[e]}function Zf(e,t,r,n){var a=_w(e,t);return r&&(n==="center"&&(r=Sy(r,a.getBoundingRect())),xy(a,r)),a}function _y(e,t,r){var n=new aa({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(Sy(t,i))}}});return n}function Sy(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var jw=xw;function xy(e,t){if(!!e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function ni(e,t){return kg(e,e,{lineWidth:t}),e}function tb(e){return Bg(e.shape,e.shape,e.style),e}var eb=nn;function rb(e,t){for(var r=gi([]);e&&e!==t;)xr(r,e.getLocalTransform(),r),e=e.parent;return r}function Kf(e,t,r){return t&&!Bt(t)&&(t=mi.getLocalTransform(t)),r&&(t=ra([],t)),Ht([],e,t)}function nb(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=Kf(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Uv(e){return!e.isGroup}function ab(e){return e.shape!=null}function wy(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Uv(u)&&u.anid&&(s[u.anid]=u)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ab(o)&&(s.shape=O({},o.shape)),s}var i=n(e);t.traverse(function(o){if(Uv(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),te(o,u,r,lt(o).dataIndex)}}})}function ib(e,t){return G(e,function(r){var n=r[0];n=Yo(n,t.x),n=$o(n,t.x+t.width);var a=r[1];return a=Yo(a,t.y),a=$o(a,t.y+t.height),[n,a]})}function ob(e,t){var r=Yo(e.x,t.x),n=$o(e.x+e.width,t.x+t.width),a=Yo(e.y,t.y),i=$o(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Qf(e,t,r){var n=O({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Q(a,r),new aa(n)):Zf(e.replace("path://",""),n,r,"center")}function sb(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(by(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function by(e,t,r,n,a,i,o,s){var u=r-e,l=n-t,f=o-a,h=s-i,c=_u(f,h,u,l);if(ub(c))return!1;var v=e-a,d=t-i,g=_u(v,d,u,l)/c;if(g<0||g>1)return!1;var p=_u(v,d,f,h)/c;return!(p<0||p>1)}function _u(e,t,r,n){return e*n-r*t}function ub(e){return e<=1e-6&&e>=-1e-6}function Jf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=z(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=e.formatterParamsExtra;u&&M(ct(u),function(f){Ve(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=lt(e.el);l.componentMainType=i,l.componentIndex=o,l.tooltipConfig={name:n,option:Q({content:n,formatterParams:s},a)}}function Yv(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function jf(e,t){if(e)if(B(e))for(var r=0;r<e.length;r++)Yv(e[r],t);else Yv(e,t)}Ie("circle",Yf);Ie("ellipse",ny);Ie("sector",nr);Ie("ring",sy);Ie("polygon",$f);Ie("polyline",ms);Ie("rect",Ct);Ie("line",yn);Ie("bezierCurve",cy);Ie("arc",Xf);const lb=Object.freeze(Object.defineProperty({__proto__:null,updateProps:te,initProps:Jt,removeElement:yy,removeElementWithFadeOut:Uo,isElementRemoved:qn,extendShape:Zw,extendPath:Qw,registerShape:Ie,getShapeClass:Jw,makePath:Zf,makeImage:_y,mergePath:jw,resizePath:xy,subPixelOptimizeLine:ni,subPixelOptimizeRect:tb,subPixelOptimize:eb,getTransform:rb,applyTransform:Kf,transformDirection:nb,groupTransition:wy,clipPointsByRect:ib,clipRectByRect:ob,createIcon:Qf,linePolygonIntersect:sb,lineLineIntersect:by,setTooltipConfig:Jf,traverseElements:jf,Group:de,Image:aa,Text:Vt,Circle:Yf,Ellipse:ny,Sector:nr,Ring:sy,Polygon:$f,Polyline:ms,Rect:Ct,Line:yn,BezierCurve:cy,Arc:Xf,IncrementalDisplayable:Xw,CompoundPath:Fw,LinearGradient:Hw,RadialGradient:Ww,BoundingRect:tt,OrientedBoundingRect:Wo,Point:V,Path:nt},Symbol.toStringTag,{value:"Module"}));var Ss={};function Ty(e,t){for(var r=0;r<Ue.length;r++){var n=Ue[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Hl(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=q(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var u={normal:s},l=0;l<Ue.length;l++){var f=Ue[l],h=t[f];u[f]=K(n?n.getFormattedLabel(a,f,null,i,h&&h.get("formatter")):null,s)}return u}function th(e,t,r,n){r=r||Ss;for(var a=e instanceof Vt,i=!1,o=0;o<Vo.length;o++){var s=t[Vo[o]];if(s&&s.getShallow("show")){i=!0;break}}var u=a?e:e.getTextContent();if(i){a||(u||(u=new Vt,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=Hl(r,t),f=t.normal,h=!!f.getShallow("show"),c=Ar(f,n&&n.normal,r,!1,!a);c.text=l.normal,a||e.setTextConfig($v(f,r,!1));for(var o=0;o<Ue.length;o++){var v=Ue[o],s=t[v];if(s){var d=u.ensureState(v),g=!!K(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=Ar(s,n&&n[v],r,!0,!a),d.style.text=l[v],!a){var p=e.ensureState(v);p.textConfig=$v(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(wi(u).setLabelText=function(y){var m=Hl(r,t,y);Ty(u,m)})}else u&&(u.ignore=!0);e.dirty()}function Cy(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Ue.length;n++){var a=Ue[n];r[a]=e.getModel([a,t])}return r}function Ar(e,t,r,n,a){var i={};return fb(i,e,r,n,a),t&&O(i,t),i}function $v(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=K(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function fb(e,t,r,n,a){r=r||Ss;var i=t.ecModel,o=i&&i.option.textStyle,s=hb(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);Kv(u[l]={},f,o,r,n,a,!1,!0)}}u&&(e.rich=u);var h=t.get("overflow");h&&(e.overflow=h);var c=t.get("minMargin");c!=null&&(e.margin=c),Kv(e,t,o,r,n,a,!0,!1)}function hb(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Ss).rich;if(r){t=t||{};for(var n=ct(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var Xv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],qv=["align","lineHeight","width","height","tag","verticalAlign"],Zv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Kv(e,t,r,n,a,i,o,s){r=!a&&r||Ss;var u=n&&n.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=K(t.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),i||(l=l||r.color,f=f||r.textBorderColor),l!=null&&(e.fill=l),f!=null&&(e.stroke=f);var c=K(t.getShallow("textBorderWidth"),r.textBorderWidth);c!=null&&(e.lineWidth=c);var v=K(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=K(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!a&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(e.opacity=h),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<Xv.length;g++){var p=Xv[g],y=K(t.getShallow(p),r[p]);y!=null&&(e[p]=y)}for(var g=0;g<qv.length;g++){var p=qv[g],y=t.getShallow(p);y!=null&&(e[p]=y)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var g=0;g<Zv.length;g++){var p=Zv[g],y=t.getShallow(p);y!=null&&(e[p]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function vb(e,t){var r=t&&t.getModel("textStyle");return be([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var wi=yt();function cb(e,t,r,n){if(!!e){var a=wi(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function db(e,t,r,n,a){var i=wi(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=K(i.interpolatedValue,i.prevValue),u=i.value;function l(f){var h=US(r,i.precision,s,u,f);i.interpolatedValue=f===1?null:h;var c=Hl({labelDataIndex:t,labelFetcher:a,defaultText:o?o(h):h+""},i.statesModels,h);Ty(e,c)}e.percent=0,(i.prevValue==null?Jt:te)(e,{percent:1},n,t,null,l)}var pb=["textStyle","color"],Su=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],xu=new Vt,gb=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(pb):null)},e.prototype.getFont=function(){return vb({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Su.length;n++)r[Su[n]]=this.getShallow(Su[n]);return xu.useStyle(r),xu.update(),xu.getBoundingRect()},e}();const yb=gb;var My=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mb=ri(My),_b=function(){function e(){}return e.prototype.getLineStyle=function(t){return mb(this,t)},e}(),Dy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Sb=ri(Dy),xb=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Sb(this,t,r)},e}(),xn=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){at(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!j.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(!!t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();zf(xn);KS(xn);Le(xn,_b);Le(xn,xb);Le(xn,ex);Le(xn,yb);const kt=xn;var wb=Math.round(Math.random()*10);function xs(e){return[e||"",wb++].join("_")}function bb(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=ze(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=ze(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function Tb(e,t){e.topologicalTravel=function(i,o,s,u){if(!i.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(M(i,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),M(d.successor,g?y:p)}M(c,function(){var m="";throw new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,p(m)}};function r(i){var o={},s=[];return M(i,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=a(f,i);l.entryCount=h.length,l.entryCount===0&&s.push(u),M(h,function(c){it(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);it(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return M(i,function(u){it(o,u)>=0&&s.push(u)}),s}}function Ay(e,t){return at(at({},e,!0),t,!0)}const Cb={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"}},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:". "}}}},Mb={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"}},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 Xo="ZH",eh="EN",ai=eh,Mo={},rh={},Ly=j.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Xo)>-1?Xo:ai}():ai;function Iy(e,t){e=e.toUpperCase(),rh[e]=new kt(t),Mo[e]=t}function Db(e){if(z(e)){var t=Mo[e.toUpperCase()]||{};return e===Xo||e===eh?rt(t):at(rt(t),rt(Mo[ai]),!1)}else return at(rt(e),rt(Mo[ai]),!1)}function Ab(e){return rh[e]}function Lb(){return rh[ai]}Iy(eh,Cb);Iy(Xo,Mb);var nh=1e3,ah=nh*60,Ua=ah*60,ce=Ua*24,Qv=ce*365,ka={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ui="{yyyy}-{MM}-{dd}",Jv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ui,hour:Ui+" "+ka.hour,minute:Ui+" "+ka.minute,second:Ui+" "+ka.second,millisecond:ka.none},wu=["year","month","day","hour","minute","second","millisecond"],Py=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xt(e,t){return e+="","0000".substr(0,t-e.length)+e}function Zn(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Ib(e){return e===Zn(e)}function Pb(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ws(e,t,r,n){var a=We(e),i=a[ih(r)](),o=a[Kn(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[bs(r)](),l=a["get"+(r?"UTC":"")+"Day"](),f=a[ii(r)](),h=(f-1)%12+1,c=a[Ts(r)](),v=a[Cs(r)](),d=a[Ms(r)](),g=n instanceof kt?n:Ab(n||Ly)||Lb(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Xt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Xt(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Xt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Xt(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Xt(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Xt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Xt(d,3)).replace(/{S}/g,d+"")}function Rb(e,t,r,n,a){var i=null;if(z(r))i=r;else if(q(r))i=r(e.value,t,{level:e.level});else{var o=O({},ka);if(e.level>0)for(var s=0;s<wu.length;++s)o[wu[s]]="{primary|"+o[wu[s]]+"}";var u=r?r.inherit===!1?r:Q(r,o):o,l=Ry(e.value,a);if(u[l])i=u[l];else if(u.inherit){for(var f=Py.indexOf(l),s=f-1;s>=0;--s)if(u[l]){i=u[l];break}i=i||o.none}if(B(i)){var h=e.level==null?0:e.level>=0?e.level:i.length+e.level;h=Math.min(h,i.length-1),i=i[h]}}return ws(new Date(e.value),i,a,n)}function Ry(e,t){var r=We(e),n=r[Kn(t)]()+1,a=r[bs(t)](),i=r[ii(t)](),o=r[Ts(t)](),s=r[Cs(t)](),u=r[Ms(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&i===0,v=c&&a===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function jv(e,t,r){var n=ft(e)?We(e):e;switch(t=t||Ry(e,r),t){case"year":return n[ih(r)]();case"half-year":return n[Kn(r)]()>=6?1:0;case"quarter":return Math.floor((n[Kn(r)]()+1)/4);case"month":return n[Kn(r)]();case"day":return n[bs(r)]();case"half-day":return n[ii(r)]()/24;case"hour":return n[ii(r)]();case"minute":return n[Ts(r)]();case"second":return n[Cs(r)]();case"millisecond":return n[Ms(r)]()}}function ih(e){return e?"getUTCFullYear":"getFullYear"}function Kn(e){return e?"getUTCMonth":"getMonth"}function bs(e){return e?"getUTCDate":"getDate"}function ii(e){return e?"getUTCHours":"getHours"}function Ts(e){return e?"getUTCMinutes":"getMinutes"}function Cs(e){return e?"getUTCSeconds":"getSeconds"}function Ms(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Eb(e){return e?"setUTCFullYear":"setFullYear"}function Ey(e){return e?"setUTCMonth":"setMonth"}function Oy(e){return e?"setUTCDate":"setDate"}function ky(e){return e?"setUTCHours":"setHours"}function By(e){return e?"setUTCMinutes":"setMinutes"}function Ny(e){return e?"setUTCSeconds":"setSeconds"}function Fy(e){return e?"setUTCMilliseconds":"setMilliseconds"}function zy(e){if(!DS(e))return z(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Gy(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var bi=Mf;function Vl(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&be(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?We(e):e;if(isNaN(+u)){if(s)return"-"}else return ws(u,n,r)}if(t==="ordinal")return Ro(e)?a(e):ft(e)&&i(e)?e+"":"-";var l=Mr(e);return i(l)?zy(l):Ro(e)?a(e):typeof e=="boolean"?e+"":"-"}var tc=["a","b","c","d","e","f","g"],bu=function(e,t){return"{"+e+(t==null?"":t)+"}"};function Hy(e,t,r){B(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=tc[i];e=e.replace(bu(o),bu(o,0))}for(var s=0;s<n;s++)for(var u=0;u<a.length;u++){var l=t[s][a[u]];e=e.replace(bu(tc[u],s),r?re(l):l)}return e}function mP(e,t,r){return M(t,function(n,a){e=e.replace("{"+a+"}",r?re(n):n)}),e}function Ob(e,t){var r=z(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+re(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+re(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function _P(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
yyyy`);var n=We(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),u=n[a+"Hours"](),l=n[a+"Minutes"](),f=n[a+"Seconds"](),h=n[a+"Milliseconds"]();return e=e.replace("MM",Xt(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Xt(i%100+"",2)).replace("dd",Xt(s,2)).replace("d",s).replace("hh",Xt(u,2)).replace("h",u).replace("mm",Xt(l,2)).replace("m",l).replace("ss",Xt(f,2)).replace("s",f).replace("SSS",Xt(h,3)),e}function SP(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function oi(e,t){return t=t||"transparent",z(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ec(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Do=M,kb=["left","right","top","bottom","width","height"],an=[["width","left","right"],["height","top","bottom"]];function oh(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=i+g,v>n||u.newline?(i=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>a||u.newline?(i+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),e==="horizontal"?i=v+r:o=d+r)})}var Qn=oh;_t(oh,"vertical");_t(oh,"horizontal");function xP(e,t,r){var n=t.width,a=t.height,i=st(e.left,n),o=st(e.top,a),s=st(e.right,n),u=st(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=a),r=bi(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(u-o-r[0]-r[2],0)}}function Lr(e,t,r){r=bi(r||0);var n=t.width,a=t.height,i=st(e.left,n),o=st(e.top,a),s=st(e.right,n),u=st(e.bottom,a),l=st(e.width,n),f=st(e.height,a),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-i),isNaN(f)&&(f=a-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/a?l=n*.8:f=a*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(i)&&(i=n-s-l-c),isNaN(o)&&(o=a-u-f-h),e.left||e.right){case"center":i=n/2-l/2-r[3];break;case"right":i=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-h;break}i=i||0,o=o||0,isNaN(l)&&(l=n-c-i-(s||0)),isNaN(f)&&(f=a-h-o-(u||0));var d=new tt(i+r[3],o+r[0],l,f);return d.margin=r,d}function Bb(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new tt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=Lr(Q({width:l.width,height:l.height},t),r,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(i.x=c,i.y=v):(i.x+=c,i.y+=v),i===e&&e.markRedraw(),!0}function wP(e,t){return e[an[t][0]]!=null||e[an[t][1]]!=null&&e[an[t][2]]!=null}function si(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function jn(e,t,r){var n=r&&r.ignoreSize;!B(n)&&(n=[n,n]);var a=o(an[0],0),i=o(an[1],1);l(an[0],e,a),l(an[1],e,i);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Do(f,function(_){d[_]=e[_]}),Do(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(e,m)){c[m]=e[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){Do(f,function(v){h[v]=c[v]})}}function Ds(e){return Nb({},e)}function Nb(e,t){return t&&e&&Do(kb,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Fb=yt(),ia=function(e){N(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=xs("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=si(this),i=a?Ds(r):{},o=n.getTheme();at(r,o.get(this.mainType)),at(r,this.getDefaultOption()),a&&jn(r,i,a)},t.prototype.mergeOption=function(r,n){at(this.option,r,!0);var a=si(this);a&&jn(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!XS(r))return r.defaultOption;var n=Fb(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},u=a.length-1;u>=0;u--)s=at(s,a[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return xi(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(kt);Cg(ia,kt);vs(ia);bb(ia);Tb(ia,zb);function zb(e){var t=[];return M(ia.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=G(t,function(r){return ze(r).main}),e!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}const dt=ia;var Vy="";typeof navigator<"u"&&(Vy=navigator.platform||"");var Rn="rgba(0, 0, 0, 0.2)";const Gb={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Rn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Rn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Rn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Rn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Rn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Rn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Vy.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 Wy=$(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),pe="original",Wt="arrayRows",ge="objectRows",Xe="keyedColumns",br="typedArray",Uy="unknown",He="column",oa="row",Dt={Must:1,Might:2,Not:3},Yy=yt();function Hb(e){Yy(e).datasetMap=$()}function Vb(e,t,r){var n={},a=sh(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,u=Yy(s).datasetMap,l=a.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),M(e,function(g,p){var y=W(g)?g:e[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(e,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(i,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Wb(e,t,r){var n={},a=sh(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===ge||i===Xe)&&M(o,function(f,h){(W(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var g=Xy(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Dt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Dt.Not)&&(f.n=v),y(f)&&c[f.n]!==Dt.Not)return f;p||(g===Dt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(u){n.value=[u.v];var l=s!=null?s:u.n;n.itemName=[l],n.seriesName=[l]}return n}function sh(e){var t=e.get("data",!0);if(!t)return xi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Te).models[0]}function Ub(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:xi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Te).models}function $y(e,t){return Xy(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Xy(e,t,r,n,a,i){var o,s=5;if(jt(e))return Dt.Not;var u,l;if(n){var f=n[i];W(f)?(u=f.name,l=f.type):z(f)&&(u=f)}if(l!=null)return l==="ordinal"?Dt.Must:Dt.Not;if(t===Wt){var h=e;if(r===oa){for(var c=h[i],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[a+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[a+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===ge){var g=e;if(!u)return Dt.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[u]))!=null)return o}}else if(t===Xe){var y=e;if(!u)return Dt.Not;var c=y[u];if(!c||jt(c))return Dt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===pe)for(var m=e,v=0;v<m.length&&v<s;v++){var p=m[v],_=_i(p);if(!B(_))return Dt.Not;if((o=S(_[i]))!=null)return o}function S(w){var x=z(w);if(w!=null&&isFinite(w)&&w!=="")return x?Dt.Might:Dt.Not;if(x&&w!=="-")return Dt.Must}return Dt.Not}var Wl=$();function bP(e,t){Ae(Wl.get(e)==null&&t),Wl.set(e,t)}function Yb(e,t,r){var n=Wl.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var rc=yt(),$b=yt(),uh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=gt(this.get("color",!0)),i=this.get("colorLayer",!0);return qy(this,rc,a,i,t,r,n)},e.prototype.clearColorPalette=function(){qb(this,rc)},e}();function TP(e,t,r,n){var a=gt(e.get(["aria","decal","decals"]));return qy(e,$b,a,null,t,r,n)}function Xb(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function qy(e,t,r,n,a,i,o){i=i||e;var s=t(i),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var f=o==null||!n?r:Xb(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return a&&(l[a]=h),s.paletteIdx=(u+1)%f.length,h}}function qb(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Yi,ma,nc,ac="\0_ec_inner",Zb=1,Zy=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new kt(i),this._locale=new kt(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=sc(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,sc(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?nc(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=i.getMediaOption(this);u.length&&M(u,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=$(),l=n&&n.replaceMergeMainTypeMap;Hb(this),M(r,function(h,c){h!=null&&(dt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):a[c]=a[c]==null?rt(h):at(a[c],h,!0))}),l&&l.each(function(h,c){dt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),dt.topologicalTravel(s,dt.getAllClassMainTypes(),f,this);function f(h){var c=Yb(this,h,gt(r[h])),v=i.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=RS(v,c,d);zS(g,h,dt),a[h]=null,i.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;M(g,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=dt.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var A=O({componentIndex:w},S.keyInfo);x=new C(b,this,this,A),O(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),y.push(x),m++):(p.push(void 0),y.push(void 0))},this),a[h]=p,i.set(h,y),o.set(h,m),h==="series"&&Yi(this)}this._seriesIndices||Yi(this)},t.prototype.getOption=function(){var r=rt(this.option);return M(r,function(n,a){if(dt.hasClass(a)){for(var i=gt(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!ei(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[ac],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return a!=null?(u=[],M(gt(a),function(l){s[l]&&u.push(s[l])})):i!=null?u=ic("id",i,s):o!=null?u=ic("name",o,s):u=wt(s,function(l){return!!l}),oc(u,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):wt(this._componentsMap.get(a),function(l){return!!l});return u(oc(o,r));function s(l){var f=a+"Index",h=a+"Id",c=a+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:a,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?wt(l,r.filter):l}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(q(r)){var o=n,s=r;i.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=z(r)?i.get(r):W(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=De(r,null);return wt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return wt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return wt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){ma(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){ma(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return M(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return ma(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){ma(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=$(a)},t.prototype.restoreData=function(r){Yi(this);var n=this._componentsMap,a=[];n.each(function(i,o){dt.hasClass(o)&&a.push(o)}),dt.topologicalTravel(a,dt.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!Kb(o,r))&&o.restoreData()})})},t.internalField=function(){Yi=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=$(n)},ma=function(r){},nc=function(r,n){r.option={},r.option[ac]=Zb,r._componentsMap=$({series:[]}),r._componentsCount=$();var a=n.aria;W(a)&&a.enabled==null&&(a.enabled=!0),Qb(n,r._theme.option),at(n,Gb,!1),r._mergeOption(n,null)}}(),t}(kt);function Kb(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function Qb(e,t){var r=e.color&&!e.colorLayer;M(t,function(n,a){a==="colorLayer"&&r||dt.hasClass(a)||(typeof n=="object"?e[a]=e[a]?at(e[a],n,!1):rt(n):e[a]==null&&(e[a]=n))})}function ic(e,t,r){if(B(t)){var n=$();return M(t,function(i){if(i!=null){var o=De(i,null);o!=null&&n.set(i,!0)}}),wt(r,function(i){return i&&n.get(i[e])})}else{var a=De(t,null);return wt(r,function(i){return i&&a!=null&&i[e]===a})}}function oc(e,t){return t.hasOwnProperty("subType")?wt(e,function(r){return r&&r.subType===t.subType}):e}function sc(e){var t=$();return e&&M(gt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Le(Zy,uh);const Ky=Zy;var Jb=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jb=function(){function e(t){M(Jb,function(r){this[r]=vt(t[r],t)},this)}return e}();const Qy=jb;var Tu={},tT=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];M(Tu,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){M(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Tu[t]=r},e.get=function(t){return Tu[t]},e}();const As=tT;var eT=/^(min|max)?(.+)$/,rT=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(M(gt(t.series),function(o){o&&o.data&&jt(o.data)&&Qa(o.data)}),M(gt(t.dataset),function(o){o&&o.source&&jt(o.source)&&Qa(o.source)})),t=rt(t);var a=this._optionBackup,i=nT(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=rt(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var u=0,l=a.length;u<l;u++)aT(a[u].query,r,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!oT(o,this._currentMediaIndices)&&(s=G(o,function(f){return rt(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},e}();function nT(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||f)&&(e.options=e.media=null),i=e),f&&B(l)&&M(l,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),c(i),M(u,function(v){return c(v)}),M(n,function(v){return c(v.option)});function c(v){M(t,function(d){d(v,r)})}return{baseOption:i,timelineOptions:u||[],mediaDefault:a,mediaList:n}}function aT(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return M(e,function(i,o){var s=o.match(eT);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();iT(n[l],i,u)||(a=!1)}}),a}function iT(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function oT(e,t){return e.join(",")===t.join(",")}const sT=rT;var ye=M,ui=W,uc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cu(e){var t=e&&e.itemStyle;if(!!t)for(var r=0,n=uc.length;r<n;r++){var a=uc[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?at(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?at(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Ot(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Q(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Ba(e){Ot(e,"itemStyle"),Ot(e,"lineStyle"),Ot(e,"areaStyle"),Ot(e,"label"),Ot(e,"labelLine"),Ot(e,"upperLabel"),Ot(e,"edgeLabel")}function xt(e,t){var r=ui(e)&&e[t],n=ui(r)&&r.textStyle;if(n)for(var a=0,i=fv.length;a<i;a++){var o=fv[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function fe(e){e&&(Ba(e),xt(e,"label"),e.emphasis&&xt(e.emphasis,"label"))}function uT(e){if(!!ui(e)){Cu(e),Ba(e),xt(e,"label"),xt(e,"upperLabel"),xt(e,"edgeLabel"),e.emphasis&&(xt(e.emphasis,"label"),xt(e.emphasis,"upperLabel"),xt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Cu(t),fe(t));var r=e.markLine;r&&(Cu(r),fe(r));var n=e.markArea;n&&fe(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!jt(i))for(var o=0;o<i.length;o++)fe(i[o]);M(e.categories,function(l){Ba(l)})}if(a&&!jt(a))for(var o=0;o<a.length;o++)fe(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)fe(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)B(u[o])?(fe(u[o][0]),fe(u[o][1])):fe(u[o]);e.type==="gauge"?(xt(e,"axisLabel"),xt(e,"title"),xt(e,"detail")):e.type==="treemap"?(Ot(e.breadcrumb,"itemStyle"),M(e.levels,function(l){Ba(l)})):e.type==="tree"&&Ba(e.leaves)}}function Ke(e){return B(e)?e:e?[e]:[]}function lc(e){return(B(e)?e[0]:e)||{}}function lT(e,t){ye(Ke(e.series),function(n){ui(n)&&uT(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ye(r,function(n){ye(Ke(e[n]),function(a){a&&(xt(a,"axisLabel"),xt(a.axisPointer,"label"))})}),ye(Ke(e.parallel),function(n){var a=n&&n.parallelAxisDefault;xt(a,"axisLabel"),xt(a&&a.axisPointer,"label")}),ye(Ke(e.calendar),function(n){Ot(n,"itemStyle"),xt(n,"dayLabel"),xt(n,"monthLabel"),xt(n,"yearLabel")}),ye(Ke(e.radar),function(n){xt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),ye(Ke(e.geo),function(n){ui(n)&&(fe(n),ye(Ke(n.regions),function(a){fe(a)}))}),ye(Ke(e.timeline),function(n){fe(n),Ot(n,"label"),Ot(n,"itemStyle"),Ot(n,"controlStyle",!0);var a=n.data;B(a)&&M(a,function(i){W(i)&&(Ot(i,"label"),Ot(i,"itemStyle"))})}),ye(Ke(e.toolbox),function(n){Ot(n,"iconStyle"),ye(n.feature,function(a){Ot(a,"iconStyle")})}),xt(lc(e.axisPointer),"label"),xt(lc(e.tooltip).axisPointer,"label")}function fT(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function hT(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function fc(e){e&&M(vT,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var vT=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],cT=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Mu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _a(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Mu.length;r++){var n=Mu[r][1],a=Mu[r][0];t[n]!=null&&(t[a]=t[n])}}function hc(e){!e||e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function vc(e){!e||e.downplay&&!e.blur&&(e.blur=e.downplay)}function dT(e){!e||e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Jy(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Jy(e[r].children,t)}function jy(e,t){lT(e,t),e.series=gt(e.series),M(e.series,function(r){if(!!W(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),hc(r.label);var a=r.data;if(a&&!jt(a))for(var i=0;i<a.length;i++)hc(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=fT(r,"pointer.color");o!=null&&hT(r,"itemStyle.color",o)}else if(n==="bar"){_a(r),_a(r.backgroundStyle),_a(r.emphasis);var a=r.data;if(a&&!jt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(_a(a[i]),_a(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),vc(r),Jy(r.data,vc)}else n==="graph"||n==="sankey"?dT(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Q(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),fc(r)}}),e.dataRange&&(e.visualMap=e.dataRange),M(cT,function(r){var n=e[r];n&&(B(n)||(n=[n]),M(n,function(a){fc(a)}))})}function pT(e){var t=$();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(gT)}function gT(e){M(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return a;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,p=r-1;p>=0;p--){var y=e[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=TS(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Ls=function(){function e(t){this.data=t.data||(t.sourceFormat===Xe?{}:[]),this.sourceFormat=t.sourceFormat||Uy,this.seriesLayoutBy=t.seriesLayoutBy||He,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&$y(this,n)===Dt.Must&&(a.type="ordinal")}}return e}();function lh(e){return e instanceof Ls}function Ul(e,t,r){r=r||t0(e);var n=t.seriesLayoutBy,a=mT(e,r,n,t.sourceHeader,t.dimensions),i=new Ls({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:rt(t)});return i}function fh(e){return new Ls({data:e,sourceFormat:jt(e)?br:pe})}function yT(e){return new Ls({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function t0(e){var t=Uy;if(jt(e))t=br;else if(B(e)){e.length===0&&(t=Wt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(B(a)){t=Wt;break}else if(W(a)){t=ge;break}}}}else if(W(e)){for(var i in e)if(Ve(e,i)&&Bt(e[i])){t=Xe;break}}return t}function mT(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:cc(a),startIndex:o,dimensionsDetectedCount:i};if(t===Wt){var s=e;n==="auto"||n==null?dc(function(l){l!=null&&l!=="-"&&(z(l)?o==null&&(o=1):o=0)},r,s,10):o=ft(n)?n:n?1:0,!a&&o===1&&(a=[],dc(function(l,f){a[f]=l!=null?l+"":""},r,s,1/0)),i=a?a.length:r===oa?s.length:s[0]?s[0].length:null}else if(t===ge)a||(a=_T(e));else if(t===Xe)a||(a=[],M(e,function(l,f){a.push(f)}));else if(t===pe){var u=_i(e[0]);i=B(u)&&u.length||1}return{startIndex:o,dimensionsDefine:cc(a),dimensionsDetectedCount:i}}function _T(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return M(r,function(a,i){n.push(i)}),n}}function cc(e){if(!!e){var t=$();return G(e,function(r,n){r=W(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function dc(e,t,r,n){if(t===oa)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function e0(e){var t=e.sourceFormat;return t===ge||t===Xe}var Xr,qr,Zr,pc,gc,r0=function(){function e(t,r){var n=lh(t)?t:fh(t);this._source=n;var a=this._data=n.data;n.sourceFormat===br&&(this._offset=0,this._dimSize=r,this._data=a),gc(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;gc=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=pc[hh(l,f)];if(O(o,v),l===br)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=n0(l,f);o.getItem=vt(d,null,s,h,c);var g=a0(l,f);o.count=vt(g,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,y=u[c],m=0;m<p;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};pc=(t={},t[Wt+"_"+He]={pure:!0,appendData:i},t[Wt+"_"+oa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ge]={pure:!0,appendData:i},t[Xe]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[pe]={appendData:i},t[br]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),yc=function(e,t,r,n){return e[n]},ST=(Xr={},Xr[Wt+"_"+He]=function(e,t,r,n){return e[n+t]},Xr[Wt+"_"+oa]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var u=o[s];i[s]=u?u[n]:null}return i},Xr[ge]=yc,Xr[Xe]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,u=e[s];i[o]=u?u[n]:null}return i},Xr[pe]=yc,Xr);function n0(e,t){var r=ST[hh(e,t)];return r}var mc=function(e,t,r){return e.length},xT=(qr={},qr[Wt+"_"+He]=function(e,t,r){return Math.max(0,e.length-t)},qr[Wt+"_"+oa]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},qr[ge]=mc,qr[Xe]=function(e,t,r){var n=r[0].name,a=e[n];return a?a.length:0},qr[pe]=mc,qr);function a0(e,t){var r=xT[hh(e,t)];return r}var Du=function(e,t,r){return e[t]},wT=(Zr={},Zr[Wt]=Du,Zr[ge]=function(e,t,r){return e[r]},Zr[Xe]=Du,Zr[pe]=function(e,t,r){var n=_i(e);return n instanceof Array?n[t]:n},Zr[br]=Du,Zr);function i0(e){var t=wT[e];return t}function hh(e,t){return e===Wt?e+"_"+t:e}function ta(e,t,r){if(!!e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return i0(i)(n,o,s)}else{var u=n;return i===pe&&(u=_i(n)),u}}}}var bT=/\{@(.+?)\}/g,TT=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),a!=null&&B(u.value)&&(u.value=u.value[a]),!i){var l=s.getItemModel(t);i=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(q(i))return u.status=r,u.dimensionIndex=a,i(u);if(z(i)){var f=Hy(i,u);return f.replace(bT,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=ta(s,t,d);if(o&&B(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return ta(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function _c(e){var t,r;return W(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ya(e){return new CT(e)}var CT=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var g=this._progress;if(B(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){Sc.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Sc.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),B(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Sc=function(){var e,t,r,n,a,i={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var u=t%a*r+Math.ceil(t/a),l=t>=e?null:u<n?u:t;return t++,l}}();function Ao(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ft(e)&&e!=null&&e!=="-"&&(e=+We(e)),e==null||e===""?NaN:+e)}var MT=$({number:function(e){return parseFloat(e)},time:function(e){return+We(e)},trim:function(e){return z(e)?be(e):e}});function o0(e){return MT.get(e)}var s0={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},DT=function(){function e(t,r){if(!ft(r)){var n="";et(n)}this._opFn=s0[t],this._rvalFloat=Mr(r)}return e.prototype.evaluate=function(t){return ft(t)?this._opFn(t,this._rvalFloat):this._opFn(Mr(t),this._rvalFloat)},e}(),u0=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ft(t)?t:Mr(t),a=ft(r)?r:Mr(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=z(t),u=z(r);s&&(n=u?t:0),u&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),AT=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Mr(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Mr(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function LT(e,t){return e==="eq"||e==="ne"?new AT(e==="eq",t):Ve(s0,e)?new DT(e,t):null}var IT=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ao(t,r)},e}();function PT(e,t){var r=new IT,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==He&&et(o);var s=[],u={},l=e.dimensionsDefine;if(l)M(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";Ve(u,y)&&et(_),u[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=n0(a,He);t.__isBuiltIn&&(r.getRawDataItem=function(g){return h(n,i,s,g)},r.getRawData=vt(RT,null,e)),r.cloneRawData=vt(ET,null,e);var c=a0(a,He);r.count=vt(c,null,n,i,s);var v=i0(a);r.retrieveValue=function(g,p){var y=h(n,i,s,g);return d(y,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return v(g,p,y.name)}};return r.getDimensionInfo=vt(OT,null,s,u),r.cloneAllDimensionInfo=vt(kT,null,s),r}function RT(e){var t=e.sourceFormat;if(!vh(t)){var r="";et(r)}return e.data}function ET(e){var t=e.sourceFormat,r=e.data;if(!vh(t)){var n="";et(n)}if(t===Wt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===ge){for(var a=[],i=0,o=r.length;i<o;i++)a.push(O({},r[i]));return a}}function OT(e,t,r){if(r!=null){if(ft(r)||!isNaN(r)&&!Ve(t,r))return e[r];if(Ve(t,r))return t[r]}}function kT(e){return rt(e)}var l0=$();function BT(e){e=rt(e);var t=e.type,r="";t||et(r);var n=t.split(":");n.length!==2&&et(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,l0.set(t,e)}function NT(e,t,r){var n=gt(e),a=n.length,i="";a||et(i);for(var o=0,s=a;o<s;o++){var u=n[o];t=FT(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function FT(e,t,r,n){var a="";t.length||et(a),W(e)||et(a);var i=e.type,o=l0.get(i);o||et(a);var s=G(t,function(l){return PT(l,o)}),u=gt(o.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));return G(u,function(l,f){var h="";W(l)||et(h),l.data||et(h);var c=t0(l.data);vh(c)||et(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var g=d.startIndex;g&&(l.data=d.data.slice(0,g).concat(l.data)),v={seriesLayoutBy:He,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:He,sourceHeader:0,dimensions:l.dimensions};return Ul(l.data,v,null)})}function vh(e){return e===Wt||e===ge}var Is="undefined",zT=typeof Uint32Array===Is?Array:Uint32Array,GT=typeof Uint16Array===Is?Array:Uint16Array,f0=typeof Int32Array===Is?Array:Int32Array,xc=typeof Float64Array===Is?Array:Float64Array,h0={float:xc,int:f0,ordinal:Array,number:Array,time:xc},Au;function Sa(e){return e>65535?zT:GT}function En(){return[1/0,-1/0]}function HT(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wc(e,t,r,n,a){var i=h0[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new i(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new i(n)}var VT=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Au[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],e0(a),this._dimensions=G(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new h0[r||"float"](this._rawCount),this._rawExtent[i]=En(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=En());for(var u=i[t],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<i;l++){var f=a[l];wc(n,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<i;d++){var f=a[d],g=Au.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=G(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=En()),wc(i,f,h.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,u);else for(var c=[],v=t;v<r;v++){c=a.getItem(v,c);for(var d=0;d<s;d++){var g=i[d],p=this._dimValueGetter(c,l[d],v,d);g[v]=p;var y=u[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=r-i[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Sa(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Sa(n._rawCount),o=new i(a),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<a;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var g=h[f][d];v=r(g,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<a&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=ct(t),i=a.length;if(!i)return this;var o=r.count(),s=Sa(r._rawCount),u=new s(o),l=0,f=a[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(i===1){for(var p=v[a[0]],y=0;y<n;y++){var m=p[y];(m>=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(i===2){for(var p=v[a[0]],_=v[a[1]],S=t[a[1]][0],w=t[a[1]][1],y=0;y<n;y++){var m=p[y],x=_[y];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(u[l++]=g),g++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var b=r.getRawIndex(y),m=v[a[0]][b];(m>=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=r.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=v[A][b];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(u[l++]=r.getRawIndex(y))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=En();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=a[r[v]][c];u[o]=h;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],y=l[g],m=a[g];m&&(m[c]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Sa(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),p=Math.min(d+u*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var S=this.getRawIndex(_),w=i[S];isNaN(w)||(m+=w)}m/=p-g;var x=d,b=Math.min(d+u,o),T=d-1,C=i[l];f=-1,c=x;for(var A=-1,D=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=i[S];if(isNaN(w)){D++,A<0&&(A=S);continue}h=Math.abs((T-y)*(w-C)-(T-_)*(m-C)),h>f&&(f=h,c=S)}D>0&&D<b-x&&(v[s++]=Math.min(A,c),c=Math.max(A,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=i._rawExtent[t]=En(),c=new(Sa(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var g=0;g<u;g++){var p=this.getRawIndex(d+g);s[g]=l[p]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));l[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return i._count=v,i._indices=c,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(!!this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var u=0,l=[];u<n;u++)l[u]=a[t[u]][s];l[u]=i,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=En();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<a;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&rr(t,function(s,u){return s[u]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?HT(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return Ao(r[i],this._dimensions[i])}Au={arrayRows:t,objectRows:function(r,n,a,i){return Ao(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Ao(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}();const Yl=VT;var v0=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if($i(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),u=jt(s)?br:pe,i=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=K(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=K(h.sourceHeader,c.sourceHeader),g=K(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;a=p?[Ul(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[Ul(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Tc(i)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(a||0),h="";a!=null&&!f&&Tc(h),s.push(f),u.push(l._getVersionSign())}),n?o=NT(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[yT(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];$i(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new Yl,s.initData(new r0(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if($i(t)){var r=sh(t);return r?[r.getSourceManager()]:[]}else return G(Ub(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if($i(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function bc(e){var t=e.option.transform;t&&Qa(e.option.transform)}function $i(e){return e.mainType==="series"}function Tc(e){throw new Error(e)}var c0="line-height:1";function d0(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+re(n+"")+"px;color:"+re(r)+";font-weight:"+re(a+""),valueStyle:"font-size:"+re(o+"")+"px;color:"+re(i)+";font-weight:"+re(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var WT=[0,10,20,30],UT=["",`
`,`
`,`
`];function li(e,t){return t.type=e,t}function $l(e){return e.type==="section"}function p0(e){return $l(e)?YT:$T}function g0(e){if($l(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return M(e.blocks,function(a){var i=g0(a);i>=t&&(t=i+ +(n&&(!i||$l(a)&&!a.noHeader)))}),t}return 0}function YT(e,t,r,n){var a=t.noHeader,i=XT(g0(t)),o=[],s=t.blocks||[];Ae(!s||B(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ve(l,u)){var f=new u0(l[u],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(d,g){var p=t.valueFormatter,y=p0(d)(p?O(O({},e),{valueFormatter:p}):e,d,g>0?i.html:0,n);y!=null&&o.push(y)});var h=e.renderMode==="richText"?o.join(i.richText):Xl(o.join(""),a?r:i.html);if(a)return h;var c=Vl(t.header,"ordinal",e.useUTC),v=d0(n,e.renderMode).nameStyle;return e.renderMode==="richText"?y0(e,c,v)+i.richText+h:Xl('<div style="'+v+";"+c0+';">'+re(c)+"</div>"+h,r)}function $T(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=B(S)?S:[S],G(S,function(w,x){return Vl(w,B(v)?v[x]:v,l)})};if(!(i&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":Vl(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),g=!s||!i,p=!s&&i,y=d0(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":h)+(i?"":y0(e,c,m))+(o?"":KT(e,d,g,p,_)):Xl((s?"":h)+(i?"":qT(c,!s,m))+(o?"":ZT(d,g,p,_)),r)}}function Cc(e,t,r,n,a,i){if(!!e){var o=p0(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function XT(e){return{html:WT[e],richText:UT[e]}}function Xl(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+c0+';">'+e+r+"</div>"}function qT(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+re(e)+"</span>"}function ZT(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=B(e)?e:[e],'<span style="'+i+";"+n+'">'+G(e,function(o){return re(o)}).join("&nbsp;&nbsp;")+"</span>"}function y0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function KT(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(" "):t,i)}function QT(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return oi(n)}function m0(e,t){var r=e.get("padding");return r!=null?r:t==="richText"?[8,10]:10}var Lu=function(){function e(){this.richTextStyles={},this._nextStyleNameId=mg()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=Ob({color:r,type:t,renderMode:n,markerId:a});return z(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};B(r)?M(r,function(i){return O(n,i)}):O(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function JT(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),u=B(s),l=QT(t,r),f,h,c,v;if(o>1||u&&!o){var d=jT(s,t,r,i,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=f=ta(a,r,i[0]),h=g.type}else v=f=u?s[0]:s;var p=Nf(t),y=p&&t.name||"",m=a.getName(r),_=n?y:m;return li("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[li("nameValue",{markerType:"item",markerColor:l,name:_,noName:!be(_),value:f,valueType:h})].concat(c||[])})}function jT(e,t,r,n,a){var i=t.getData(),o=rr(e,function(h,c,v){var d=i.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(h){f(ta(i,r,h),h)}):M(e,f);function f(h,c){var v=i.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(li("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var lr=yt();function Xi(e,t){return e.getName(t)||e.getId(t)}var Lo="__universalTransitionEnabled",Ps=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ya({count:eC,reset:rC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=lr(this).sourceManager=new v0(this);i.prepareSource();var o=this.getInitialData(r,a);Dc(o,this),this.dataTask.context.data=o,lr(this).dataBeforeProcessed=o,Mc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=si(this),i=a?Ds(r):{},o=this.subType;dt.hasClass(o)&&(o+="Series"),at(r,n.getTheme().get(this.subType)),at(r,this.getDefaultOption()),Dl(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&jn(r,i,a)},t.prototype.mergeOption=function(r,n){r=at(this.option,r,!0),this.fillDataTextStyle(r.data);var a=si(this);a&&jn(this.option,r,a);var i=lr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Dc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,lr(this).dataBeforeProcessed=o,Mc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!jt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Dl(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=ql(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return lr(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=ql(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}lr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return $(r)},t.prototype.getSourceManager=function(){return lr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return lr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return JT({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(j.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=uh.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(!!a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=Xi(o,u);a[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=ct(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Xi(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Lo])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){W(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=Xi(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=Xi(r,v);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(i={},i[c]=r.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return dt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(dt);Le(Ps,TT);Le(Ps,uh);Cg(Ps,dt);function Mc(e){var t=e.name;Nf(e)||(e.name=tC(e)||t)}function tC(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return M(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function eC(e){return e.model.getRawData().count()}function rC(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),nC}function nC(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dc(e,t){M(kp(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,_t(aC,t))})}function aC(e,t){var r=ql(e);return r&&r.setOutputEnd((t||this).count()),t}function ql(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const mn=Ps;var ch=function(){function e(){this.group=new de,this.uid=xs("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();zf(ch);vs(ch);const Ye=ch;function _0(){var e=yt();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var S0=yt(),iC=_0(),dh=function(){function e(){this.group=new de,this.uid=xs("viewChart"),this.renderTask=Ya({plan:oC,reset:sC}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);!i||Lc(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);!i||Lc(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){jf(this.group,t)},e.markUpdateMethod=function(t,r){S0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ac(e,t,r){e&&Nl(e)&&(t==="emphasis"?Rl:El)(e,r)}function Lc(e,t,r){var n=Si(e,t),a=t&&t.highlightKey!=null?vw(t.highlightKey):null;n!=null?M(gt(n),function(i){Ac(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){Ac(i,r,a)})}zf(dh);vs(dh);function oC(e){return iC(e.model)}function sC(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&S0(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,a),uC[u]}var uC={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const vn=dh;var qo="\0__throttleOriginMethod",Ic="\0__throttleRate",Pc="\0__throttleType";function ph(e,t,r){var n,a=0,i=0,o=null,s,u,l,f;t=t||0;function h(){i=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var g=f||t,p=f||r;f=null,s=n-(p?a:i)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),a=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function x0(e,t,r,n){var a=e[t];if(!!a){var i=a[qo]||a,o=a[Pc],s=a[Ic];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=ph(i,r,n==="debounce"),a[qo]=i,a[Pc]=n,a[Ic]=r}return a}}function Zl(e,t){var r=e[t];r&&r[qo]&&(r.clear&&r.clear(),e[t]=r[qo])}var Rc=yt(),Ec={itemStyle:ri(Dy,!0),lineStyle:ri(My,!0)},lC={lineStyle:"stroke",itemStyle:"fill"};function w0(e,t){var r=e.visualStyleMapper||Ec[t];return r||(console.warn("Unkown style type '"+t+"'."),Ec.itemStyle)}function b0(e,t){var r=e.visualDrawType||lC[t];return r||(console.warn("Unkown style type '"+t+"'."),"fill")}var fC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=w0(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=b0(e,n),l=o[u],f=q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),p=O({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},xa=new kt,hC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=w0(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){xa.option=u[n];var l=a(xa),f=o.ensureUniqueItemVisual(s,"style");O(f,l),xa.option.decal&&(o.setItemVisual(s,"decal",xa.option.decal),xa.option.decal.dirty=!0),i in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vC={performRawSeries:!0,overallReset:function(e){var t=$();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Rc(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=Rc(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=b0(r,s);i.each(function(l){var f=i.getRawIndex(l);a[f]=l}),n.each(function(l){var f=a[l],h=i.getItemVisual(f,"colorFromPalette");if(h){var c=i.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},qi=Math.PI;function cC(e,t){t=t||{},Q(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new de,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new Vt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Ct({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new Xf({shape:{startAngle:-qi/2,endAngle:-qi/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:qi*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:qi*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),i.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var dC=function(){function e(t,r,n,a){this._stageTaskMap=$(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=$();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ae(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;M(t,function(u,l){if(!(a.visualType&&a.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(a,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,a.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(i=!0)}else h&&h.each(function(p,y){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=$(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,a).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Ya({plan:_C,reset:SC,count:wC}));v.context={model:h,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||Ya({reset:pC});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=$(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Ae(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,a).each(d):(h=!1,M(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,Ya({reset:gC,onDirty:mC})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,i._pipe(g,y)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return q(t)&&(t={overallReset:t,seriesType:bC(t)}),t.uid=xs("stageHandler"),r&&(t.visualType=r),t},e}();function pC(e){e.overallReset(e.ecModel,e.api,e.payload)}function gC(e){return e.overallProgress&&yC}function yC(){this.agent.dirty(),this.getDownstream().dirty()}function mC(){this.agent&&this.agent.dirty()}function _C(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function SC(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=gt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?G(t,function(r,n){return T0(n)}):xC}var xC=T0(0);function T0(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function wC(e){return e.data.count()}function bC(e){Zo=null;try{e(fi,C0)}catch{}return Zo}var fi={},C0={},Zo;M0(fi,Ky);M0(C0,Qy);fi.eachSeriesByType=fi.eachRawSeriesByType=function(e){Zo=e};fi.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Zo=e.subType)};function M0(e,t){for(var r in t.prototype)e[r]=Gt}const D0=dC;var Oc=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const TC={color:Oc,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Oc]};var Nt="#B9B8CE",kc="#100C2A",Zi=function(){return{axisLine:{lineStyle:{color:Nt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Bc=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],A0={darkMode:!0,color:Bc,backgroundColor:kc,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Nt}},textStyle:{color:Nt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Nt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Nt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Nt}},timeline:{lineStyle:{color:Nt},label:{color:Nt},controlStyle:{color:Nt,borderColor:Nt}},calendar:{itemStyle:{color:kc},dayLabel:{color:Nt},monthLabel:{color:Nt},yearLabel:{color:Nt}},timeAxis:Zi(),logAxis:Zi(),valueAxis:Zi(),categoryAxis:Zi(),line:{symbol:"circle"},graph:{color:Bc},gauge:{title:{color:Nt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Nt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};A0.categoryAxis.splitLine.show=!1;const CC=A0;var MC=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(z(t)){var i=ze(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(a[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,i,"name")&&f(l,i,"dataIndex")&&f(l,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Kl=["symbol","symbolSize","symbolRotate","symbolOffset"],Nc=Kl.concat(["symbolKeepAspect"]),DC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<Kl.length;o++){var s=Kl[o],u=e.get(s);q(u)?(i=!0,a[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(O({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=ct(a);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),g=0;g<l.length;g++){var p=l[g];h.setItemVisual(c,p,a[p](v,d))}}return{dataEach:i?f:null}}},AC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<Nc.length;s++){var u=Nc[s],l=o.getShallow(u,!0);l!=null&&a.setItemVisual(i,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function LC(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function IC(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function CP(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function PC(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}M([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=O({},a),o.dispatchAction(O(a,{type:n[1],seriesIndex:r(i,a)}))})})}function On(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=a.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=Si(h,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:B(c)?h.getName(c[0]):h.getName(c),selected:z(u)?u:O({},u)})}})}function RC(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(On("map","selectchanged",t,a,n),On("pie","selectchanged",t,a,n)):n.fromAction==="select"?(On("map","selected",t,a,n),On("pie","selected",t,a,n)):n.fromAction==="unselect"&&(On("map","unselected",t,a,n),On("pie","unselected",t,a,n))})}function Na(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var EC=Math.round(Math.random()*9),OC=typeof Object.defineProperty=="function",kC=function(){function e(){this._id="__ec_inner_"+EC++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return OC?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const BC=kC;var NC=nt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),FC=nt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),zC=nt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),u=n-i+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),GC=nt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),HC={line:yn,rect:Ct,roundRect:Ct,square:Ct,circle:Yf,diamond:FC,pin:zC,arrow:GC,triangle:NC},VC={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Ql={};M(HC,function(e,t){Ql[t]=new e});var WC=nt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Go(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Ql[n];a||(n="rect",a=Ql[n]),VC[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function UC(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function gh(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=_y(e.slice(8),new tt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?u=Zf(e.slice(7),{},new tt(t,r,n,a),o?"center":"cover"):u=new WC({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),u.__isEmptyBrush=s,u.setColor=UC,i&&u.setColor(i),u}function MP(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function YC(e,t){if(e!=null)return B(e)||(e=[e,e]),[st(e[0],t[0])||0,st(K(e[1],e[0]),t[1])||0]}function on(e){return isFinite(e)}function $C(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=on(n)?n:0,a=on(a)?a:1,i=on(i)?i:0,o=on(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function XC(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,u=u*i),o=on(o)?o:.5,s=on(s)?s:.5,u=u>=0&&on(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function Jl(e,t,r){for(var n=t.type==="radial"?XC(e,t,r):$C(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function qC(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Ki(e){return parseInt(e,10)}function Qi(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Ki(s[n])||Ki(e.style[n]))-(Ki(s[i])||0)-(Ki(s[o])||0)|0}function ZC(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ft(e)?[e]:B(e)?e:null}function L0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&ZC(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=G(r,function(i){return i/a}),n/=a)}return[r,n]}var KC=new Dr(!0);function Ko(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Fc(e){return typeof e=="string"&&e!=="none"}function Qo(e){var t=e.fill;return t!=null&&t!=="none"}function zc(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Gc(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function jl(e,t,r){var n=Mg(t.image,t.__image,r);if(cs(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Fa),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function QC(e,t,r,n){var a,i=Ko(r),o=Qo(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||KC,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,g=i&&!!v.colorStops,p=o&&!!c.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||g)&&(x=t.getBoundingRect()),d&&(m=h?Jl(e,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?Jl(e,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?jl(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?jl(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?e.fillStyle=m:p&&(S?e.fillStyle=S:o=!1),g?e.strokeStyle=_:y&&(w?e.strokeStyle=w:i=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;e.setLineDash&&r.lineDash&&(a=L0(t),T=a[0],C=a[1]);var A=!0;(l||h&Gn)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,u?s:1),T&&(e.setLineDash(T),e.lineDashOffset=C),n||(r.strokeFirst?(i&&Gc(e,r),o&&zc(e,r)):(o&&zc(e,r),i&&Gc(e,r))),T&&e.setLineDash([])}function JC(e,t,r){var n=t.__image=Mg(r.image,t.__image,t,t.onload);if(!(!n||!cs(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function jC(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||pn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=L0(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Ko(r)&&e.strokeText(a,r.x,r.y),Qo(r)&&e.fillText(a,r.x,r.y)):(Qo(r)&&e.fillText(a,r.x,r.y),Ko(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var Hc=["shadowBlur","shadowOffsetX","shadowOffsetY"],Vc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function I0(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Kt(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?fn.opacity:o}(n||t.blend!==r.blend)&&(i||(Kt(e,a),i=!0),e.globalCompositeOperation=t.blend||fn.blend);for(var s=0;s<Hc.length;s++){var u=Hc[s];(n||t[u]!==r[u])&&(i||(Kt(e,a),i=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(Kt(e,a),i=!0),e.shadowColor=t.shadowColor||fn.shadowColor),i}function Wc(e,t,r,n,a){var i=hi(t,a.inHover),o=n?null:r&&hi(r,a.inHover)||{};if(i===o)return!1;var s=I0(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Kt(e,a),s=!0),Fc(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Kt(e,a),s=!0),Fc(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Kt(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var u=i.lineWidth,l=u/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Kt(e,a),s=!0),e.lineWidth=l)}for(var f=0;f<Vc.length;f++){var h=Vc[f],c=h[0];(n||i[c]!==o[c])&&(s||(Kt(e,a),s=!0),e[c]=i[c]||h[1])}return s}function tM(e,t,r,n,a){return I0(e,hi(t,a.inHover),r&&hi(r,a.inHover),n,a)}function P0(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function eM(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),P0(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function rM(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Uc=1,Yc=2,$c=3,Xc=4;function nM(e){var t=Qo(e),r=Ko(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Kt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function hi(e,t){return t&&e.__hoverStyle||e.style}function R0(e,t){sn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function sn(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~ne,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||qC(i,o))&&(o&&o.length&&(Kt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Kt(e,r),e.save(),eM(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof nt&&t.autoBatch&&nM(t.style);s||rM(a,l.transform)?(Kt(e,r),P0(e,t)):f||Kt(e,r);var h=hi(t,r.inHover);t instanceof nt?(r.lastDrawType!==Uc&&(u=!0,r.lastDrawType=Uc),Wc(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),QC(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Pl?(r.lastDrawType!==$c&&(u=!0,r.lastDrawType=$c),Wc(e,t,l,u,r),jC(e,t,h)):t instanceof aa?(r.lastDrawType!==Yc&&(u=!0,r.lastDrawType=Yc),tM(e,t,l,u,r),JC(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==Xc&&(u=!0,r.lastDrawType=Xc),aM(e,t,r)),f&&n&&Kt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function aM(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),sn(e,u,i,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}for(var l=0,f=a.length;l<f;l++){var u=a[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),sn(e,u,i,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),i.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Iu=new BC,qc=new yi(100),Zc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function tf(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&Iu.delete(e);var i=Iu.get(e);if(i)return i;var o=Q(e,{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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,Iu.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<Zc.length;++c){var v=o[Zc[c]];if(v!=null&&!B(v)&&!z(v)&&!ft(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(a?"-svg":"");var g=qc.get(d);g&&(a?l.svgElement=g:l.image=g)}var p=O0(o.dashArrayX),y=iM(o.dashArrayY),m=E0(o.symbol),_=oM(p),S=k0(y),w=!a&&er.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;w&&(w.width=b.width*r,w.height=b.height*r,T=w.getContext("2d")),A(),h&&qc.put(d,w||x),l.image=w,l.svgElement=x,l.svgWidth=b.width,l.svgHeight=b.height;function C(){for(var D=1,L=0,I=_.length;L<I;++L)D=sv(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=sv(P,m[L].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,R=0,E=0;I<b.height;){if(P%2===0){for(var U=R/2%m.length,k=0,F=0,H=0;k<b.width*2;){for(var Z=0,L=0;L<p[E].length;++L)Z+=p[E][L];if(Z<=0)break;if(F%2===0){var X=(1-o.symbolSize)*.5,ht=k+p[E][F]*X,St=I+y[P]*X,Lt=p[E][F]*o.symbolSize,ie=y[P]*o.symbolSize,Ut=H/2%m[U].length;It(ht,St,Lt,ie,m[U][Ut])}k+=p[E][F],++H,++F,F===p[E].length&&(F=0)}++E,E===p.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function It(bt,pt,Y,J,Pe){var Mt=a?1:r,or=gh(Pe,bt*Mt,pt*Mt,Y*Mt,J*Mt,o.color,o.symbolKeepAspect);if(a){var qe=n.painter.renderOneToVNode(or);qe&&x.children.push(qe)}else R0(T,or)}}}}function E0(e){if(!e||e.length===0)return[["rect"]];if(z(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!z(e[r])){t=!1;break}if(t)return E0([e]);for(var n=[],r=0;r<e.length;++r)z(e[r])?n.push([e[r]]):n.push(e[r]);return n}function O0(e){if(!e||e.length===0)return[[0,0]];if(ft(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ft(e[n])){r=!1;break}if(r)return O0([e]);for(var a=[],n=0;n<e.length;++n)if(ft(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=G(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function iM(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ft(e)){var t=Math.ceil(e);return[t,t]}var r=G(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function oM(e){return G(e,function(t){return k0(t)})}function k0(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function sM(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=tf(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=tf(a,t)}}})}var uM=new $e;const xe=uM;var B0={};function lM(e,t){B0[e]=t}function N0(e){return B0[e]}var fM=typeof window<"u",DP="5.4.0",AP={zrender:"5.4.0"},hM=1,vM=800,cM=900,dM=1e3,pM=2e3,gM=5e3,F0=1e3,yM=1100,yh=2e3,z0=3e3,mM=4e3,Rs=4500,_M=4600,SM=5e3,xM=6e3,G0=7e3,wM={PROCESSOR:{FILTER:dM,SERIES_FILTER:vM,STATISTIC:gM},VISUAL:{LAYOUT:F0,PROGRESSIVE_LAYOUT:yM,GLOBAL:yh,CHART:z0,POST_CHART_LAYOUT:_M,COMPONENT:mM,BRUSH:SM,CHART_ITEM:Rs,ARIA:xM,DECAL:G0}},Rt="__flagInMainProcess",$t="__pendingUpdate",Pu="__needsUpdateStatus",Kc=/^[a-zA-Z0-9_]+$/,Ru="__connectUpdateStatus",Qc=0,bM=1,TM=2;function H0(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return W0(this,e,t)}}function V0(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return W0(this,e,t)}}function W0(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),$e.prototype[t].apply(e,r)}var U0=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}($e),Y0=U0.prototype;Y0.on=V0("on");Y0.off=V0("off");var kn,Eu,Ji,fr,Ou,ku,Bu,wa,ba,Jc,jc,Nu,td,ji,ed,$0,oe,rd,Jo=function(e){N(t,e);function t(r,n,a){var i=e.call(this,new MC)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},z(n)&&(n=X0[n]),i._dom=r;var o="canvas",s="auto",u=!1,l=i._zr=Cl(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:K(a.useDirtyRect,u),useCoarsePointer:K(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=ph(vt(l.flush,l),17),n=rt(n),n&&jy(n,!0),i._theme=n,i._locale=Db(a.locale||Ly),i._coordSysMgr=new As;var f=i._api=ed(i);function h(c,v){return c.__prio-v.__prio}return yo(ts,h),yo(ef,h),i._scheduler=new D0(i,f,ef,ts),i._messageCenter=new U0,i._initEvents(),i.resize=vt(i.resize,i),l.animation.on("frame",i._onframe,i),Jc(l,i),jc(l,i),Qa(i),i}return t.prototype._onframe=function(){if(!this._disposed){rd(this);var r=this._scheduler;if(this[$t]){var n=this[$t].silent;this[Rt]=!0;try{kn(this),fr.update.call(this,null,this[$t].updateParams)}catch(u){throw this[Rt]=!1,this[$t]=null,u}this._zr.flush(),this[Rt]=!1,this[$t]=null,wa.call(this,n),ba.call(this,n)}else if(r.unfinished){var a=hM,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),ku(this,i),r.performVisualTasks(i),ji(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[Rt]){if(this._disposed){this.id;return}var i,o,s;if(W(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Rt]=!0,!this._model||n){var u=new sT(this._api),l=this._theme,f=this._model=new Ky;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},rf);var h={seriesTransition:s,optionChanged:!0};if(a)this[$t]={silent:i,updateParams:h},this[Rt]=!1,this.getZr().wakeUp();else{try{kn(this),fr.update.call(this,null,h)}catch(c){throw this[$t]=null,this[Rt]=!1,c}this._ssr||this._zr.flush(),this[$t]=null,this[Rt]=!1,wa.call(this,i),ba.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fM&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!j.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;M(n,function(u){a.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(i,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(es[a]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();M(cn,function(_,S){if(_.group===a){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(r)),x=_.getDom().getBoundingClientRect();u=i(x.left,u),l=i(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=er.createCanvas(),y=Cl(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return M(c,function(_){var S=_.left-u,w=_.top-l;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ct({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),M(c,function(_){var S=new aa({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Ou(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Ou(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=nu(a,r);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(i=i||h.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=nu(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return u!=null?LC(s,u,n):IC(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;M(CM,function(n){var a=function(i){var o=r.getModel(),s=i.target,u,l=n==="globalout";if(l?u={}:s&&Na(s,function(d){var g=lt(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType)||{},!0}else if(g.eventData)return u=O({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=i,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),M($a,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),M(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),RC(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&bg(this.getDom(),_h,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete cn[n.id]},t.prototype.resize=function(r){if(!this[Rt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[$t]&&(i==null&&(i=this[$t].silent),a=!0,this[$t]=null),this[Rt]=!0;try{a&&kn(this),fr.update.call(this,{type:"resize",animation:O({duration:0},r&&r.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,wa.call(this,i),ba.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(W(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!nf[r]){var a=nf[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=O({},r);return n.type=$a[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(W(n)||(n={silent:!!n}),!!jo[r.type]&&!!this._model){if(this[Rt]){this._pendingActions.push(r);return}var a=n.silent;Bu.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&j.browser.weChat&&this._throttledZrFlush(),wa.call(this,a),ba.call(this,a)}},t.prototype.updateLabelLayout=function(){xe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){kn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Eu(h,!0),Eu(h,!1),c.plan()},Eu=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(x,b){x!=="series"&&S(b)}):v.eachSeries(S);function S(x){var b=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!b&&p[T];if(!C){var A=ze(x.type),D=c?Ye.getClass(A.main,A.sub):vn.getClass(A.sub);C=new D,C.init(v,m),p[T]=C,g.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&d.prepareView(C,x,v,m)}for(var _=0;_<g.length;){var w=g[_];w.__alive?_++:(!c&&w.renderTask.dispose(),y.remove(w.group),w.dispose(v,m),g.splice(_,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Ji=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){M([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=$(),M(gt(_),function(x){var b=De(x,null);b!=null&&S.set(b,!0)})),p&&p.eachComponent(m,function(x){var b=S&&S.get(x.id)!==null;if(!b)if(Bv(v))if(x instanceof mn)v.type===hn&&!v.notBlur&&!x.get(["emphasis","disabled"])&&aw(x,v,h._api);else{var T=Wf(x.mainType,x.componentIndex,v.name,h._api),C=T.focusSelf,A=T.dispatchers;v.type===hn&&C&&!v.notBlur&&kl(x.mainType,x.componentIndex,h._api),A&&M(A,function(D){v.type===hn?Rl(D):El(D)})}else Fl(v)&&x instanceof mn&&(sw(x,v,h._api),Ov(x),oe(h))},h),p&&p.eachComponent(m,function(x){var b=S&&S.get(x.id)!==null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[c]&&x[c](x.__model,p,h._api,v)}},fr={prepareAndUpdate:function(h){kn(this),fr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(!!v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),p.create(v,d),y.performDataProcessorTasks(v,h),ku(this,v),p.update(v,d),r(v),y.performVisualTasks(v,h),Nu(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),xe.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var p=$();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),r(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),ji(this,v,d,h,{},p),xe.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;!c||(c.setUpdatePayload(h),vn.markUpdateMethod(h,"updateView"),r(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Nu(this,c,this._api,h,{}),xe.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;!v||(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),vn.markUpdateMethod(h,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=c.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),xe.trigger("afterupdate",v,this._api))},updateLayout:function(h){fr.update.call(this,h)}},Ou=function(h,c,v,d){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,m=nu(g,v),_=0;_<p.length;_++){var S=p[_];if(S[c]&&(y=S[c](g,m,d))!=null)return y}},ku=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Bu=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,y=jo[g],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&ze(_[0]);this[Rt]=!0;var x=[h],b=!1;h.batch&&(b=!0,x=G(h.batch,function(P){return P=Q(O({},P),h),P.batch=null,P}));var T=[],C,A=Fl(h),D=Bv(h);if(D&&Xg(this._api),M(x,function(P){if(C=y.action(P,v._model,v._api),C=C||O({},P),C.type=m.event||C.type,T.push(C),D){var R=Ff(h),E=R.queryOptionMap,U=R.mainTypeSpecified,k=U?E.keys()[0]:"series";Ji(v,S,P,k),oe(v)}else A?(Ji(v,S,P,"series"),oe(v)):w&&Ji(v,S,P,w.main,w.sub)}),S!=="none"&&!D&&!A&&!w)try{this[$t]?(kn(this),fr.update.call(this,h),this[$t]=null):fr[S].call(this,h)}catch(P){throw this[Rt]=!1,P}if(b?C={type:m.event||g,escapeConnect:p,batch:T}:C=T[0],this[Rt]=!1,!c){var L=this._messageCenter;if(L.trigger(C.type,C),A){var I={type:"selectchanged",escapeConnect:p,selected:uw(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},wa=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Bu.call(this,v,h)}},ba=function(h){!h&&this.trigger("updated")},Jc=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[$t]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},jc=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Na(d,Nl);g&&(iw(g,v,c._api),oe(c))}).on("mouseout",function(v){var d=v.target,g=Na(d,Nl);g&&(ow(g,v,c._api),oe(c))}).on("click",function(v){var d=v.target,g=Na(d,function(m){return lt(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=lt(g);c._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),d){var g=c.concat(v),p,y;yo(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(g,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;p!=null&&(S=Math.max(p,S)),w?(S===p&&w!==y&&S++,y=w):y&&(S===p&&S++,y=""),p=S,_.setZLevel(S)})}}Nu=function(h,c,v,d,g){n(c),td(h,c,v,d,g),M(h._chartsViews,function(p){p.__alive=!1}),ji(h,c,v,d,g),M(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},td=function(h,c,v,d,g,p){M(p||h._componentsViews,function(y){var m=y.__model;l(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},ji=function(h,c,v,d,g,p){var y=h._scheduler;g=O(g||{},{updatedSeries:c.getSeries()}),xe.trigger("series:beforeupdate",c,v,g);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,d),l(_,S),p&&p.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),Ov(_)}),y.unfinished=m||y.unfinished,xe.trigger("series:layoutlabels",c,v,g),xe.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(h,c),xe.trigger("series:afterupdate",c,v,g)},oe=function(h){h[Pu]=!0,h.getZr().wakeUp()},rd=function(h){!h[Pu]||(h.getZr().storage.traverse(function(c){qn(c)||a(c)}),h[Pu]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===gs&&h.states.emphasis?c.push("emphasis"):h.hoverState===ps&&h.states.blur&&c.push("blur"),h.useStates(c)}function i(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!j.node&&!j.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(u(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(g&&(g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var S=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(S&&S.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!qn(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qn(y))return;if(y instanceof nt&&cw(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&a(y)}})}ed=function(h){return new(function(c){N(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){Rl(d,g),oe(h)},v.prototype.leaveEmphasis=function(d,g){El(d,g),oe(h)},v.prototype.enterBlur=function(d){nw(d),oe(h)},v.prototype.leaveBlur=function(d){Wg(d),oe(h)},v.prototype.enterSelect=function(d){Ug(d),oe(h)},v.prototype.leaveSelect=function(d){Yg(d),oe(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Qy))(h)},$0=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[Ru]=d}}M($a,function(v,d){h._messageCenter.on(d,function(g){if(es[h.group]&&h[Ru]!==Qc){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),y=[];M(cn,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Qc),M(y,function(m){m[Ru]!==bM&&m.dispatchAction(p)}),c(y,TM)}})})}}(),t}($e),mh=Jo.prototype;mh.on=H0("on");mh.off=H0("off");mh.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var CM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var jo={},$a={},ef=[],rf=[],ts=[],X0={},nf={},cn={},es={},MM=+new Date-0,DM=+new Date-0,_h="_echarts_instance_";function LP(e,t,r){var n=!(r&&r.ssr);if(n){var a=q0(e);if(a)return a}var i=new Jo(e,t,r);return i.id="ec_"+MM++,cn[i.id]=i,n&&bg(e,_h,i.id),$0(i),xe.trigger("afterinit",i),i}function IP(e){if(B(e)){var t=e;e=null,M(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+DM++,M(t,function(r){r.group=e})}return es[e]=!0,e}function AM(e){es[e]=!1}var PP=AM;function RP(e){z(e)?e=cn[e]:e instanceof Jo||(e=q0(e)),e instanceof Jo&&!e.isDisposed()&&e.dispose()}function q0(e){return cn[VS(e,_h)]}function EP(e){return cn[e]}function Z0(e,t){X0[e]=t}function K0(e){it(rf,e)<0&&rf.push(e)}function Q0(e,t){xh(ef,e,t,pM)}function LM(e){Sh("afterinit",e)}function IM(e){Sh("afterupdate",e)}function Sh(e,t){xe.on(e,t)}function sa(e,t,r){q(t)&&(r=t,t="");var n=W(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!$a[t]&&(Ae(Kc.test(n)&&Kc.test(t)),jo[n]||(jo[n]={action:r,actionInfo:e}),$a[t]=n)}function PM(e,t){As.register(e,t)}function OP(e){var t=As.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function RM(e,t){xh(ts,e,t,F0,"layout")}function wn(e,t){xh(ts,e,t,z0,"visual")}var nd=[];function xh(e,t,r,n,a){if((q(t)||W(t))&&(r=t,t=n),!(it(nd,r)>=0)){nd.push(r);var i=D0.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function J0(e,t){nf[e]=t}function kP(e){L_({createCanvas:e})}function EM(e,t,r){var n=N0("registerMap");n&&n(e,t,r)}function BP(e){var t=N0("getMap");return t&&t(e)}var OM=BT;wn(yh,fC);wn(Rs,hC);wn(Rs,vC);wn(yh,DC);wn(Rs,AC);wn(G0,sM);K0(jy);Q0(cM,pT);J0("default",cC);sa({type:hn,event:hn,update:hn},Gt);sa({type:To,event:To,update:To},Gt);sa({type:Ha,event:Ha,update:Ha},Gt);sa({type:Co,event:Co,update:Co},Gt);sa({type:Va,event:Va,update:Va},Gt);Z0("light",TC);Z0("dark",CC);var NP={};function Ta(e){return e==null?0:e.length||1}function ad(e){return e}var kM=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||ad,this._newKeyGetter=a||ad,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],u=n[s],l=Ta(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var u=i[s],l=n[u],f=a[u],h=Ta(l),c=Ta(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),a[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),a[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),a[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),a[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Ta(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var u=r[s],l=Ta(u);l===0?(r[s]=o,i&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e}();const af=kM;var BM=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function NM(e,t){var r={},n=r.encode={},a=$(),i=[],o=[],s={};M(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;Fu(n,d)[g]=c,v.isExtraCoord||(a.set(d,1),zM(v.type)&&(i[0]=c),Fu(s,d)[g]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Wy.each(function(p,y){var m=Fu(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var u=[],l={};a.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=G(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(i=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new BM(s,t),r}function Fu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function FM(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function zM(e){return!(e==="ordinal"||e==="time")}var GM=function(){function e(t){this.otherDims={},t!=null&&O(this,t)}return e}();const Io=GM;var HM=yt(),VM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},j0=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=rm(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return K(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=e0(this.source),n=!nm(t),a="",i=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}i.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(a+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=VM[l]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function tm(e){return e instanceof j0}function em(e){for(var t=$(),r=0;r<(e||[]).length;r++){var n=e[r],a=W(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function rm(e){var t=HM(e);return t.dimNameMap||(t.dimNameMap=em(e.dimensionsDefine))}function nm(e){return e>30}var Ca=W,hr=G,WM=typeof Int32Array>"u"?Array:Int32Array,UM="e\0\0",id=-1,YM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],$M=["_approximateExtent"],od,to,Ma,Da,zu,eo,Gu,XM=function(){function e(t,r){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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;tm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=z(h)?new Io({name:h}):h instanceof Io?h:new Io(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),i[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),a&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=$();M(o,function(p){g.set(i[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ft(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof Yl&&(i=t),!i){var o=this.dimensions,s=lh(t)||Bt(t)?new r0(t,o.length):t;i=new Yl;var u=hr(o,function(l){return{type:a._dimInfos[l].type,property:l}});i.initData(s,u,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=NM(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var u=s-a;this._nameList[s]=r[u],o&&Gu(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==br&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,u=s===pe;if(u&&!a.pure)for(var l=[],f=t;f<r;f++){var h=a.getItem(f,l);if(!this.hasItemOption&&PS(h)&&(this.hasItemOption=!0),h){var c=h.name;i[f]==null&&c!=null&&(i[f]=De(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=De(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Gu(this,f);od(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Ca(t)?O(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ma(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return to(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return B(t)?a.getValues(hr(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n[r];return a==null||isNaN(a)?id:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){q(t)&&(n=r,r=t,t=[]);var a=n||this,i=hr(Da(t),this._getStoreDimIndex,this);this._store.each(i,a?vt(r,a):r)},e.prototype.filterSelf=function(t,r,n){q(t)&&(n=r,r=t,t=[]);var a=n||this,i=hr(Da(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?vt(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=ct(t);return M(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){q(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=hr(Da(t),this._getStoreDimIndex,this),s=eo(this);return s._store=this._store.map(o,i?vt(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=hr(Da(t),this._getStoreDimIndex,this);this._store.modify(o,i?vt(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=eo(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=eo(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new kt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new af(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return to(t,n)},function(n){return to(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Ca(t)?O(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a==null?this.getVisual(r):a},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),B(i)?i=i.slice():Ca(i)&&(i=O({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Ca(r)?O(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ca(t)?O(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;Xx(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){M(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:hr(this.dimensions,this._getDimInfo,this),this.hostModel)),zu(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];!q(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(fs(arguments)))})},e.internalField=function(){od=function(t){var r=t._invertedIndicesMap;M(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new WM(o.categories.length);for(var u=0;u<n.length;u++)n[u]=id;for(var u=0;u<s.count();u++)n[s.get(i.storeDimIndex,u)]=u}})},Ma=function(t,r,n){return De(t._getCategory(r,n),null)},to=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ma(t,t._idDimIdx,r)),n==null&&(n=UM+r),n},Da=function(t){return B(t)||(t=t!=null?[t]:[]),t},eo=function(t){var r=new e(t._schema?t._schema:hr(t.dimensions,t._getDimInfo,t),t.hostModel);return zu(r,t),r},zu=function(t,r){M(YM.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,M($M,function(n){t[n]=rt(r[n])}),t._calculationInfo=O({},r._calculationInfo)},Gu=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=a[r];if(s==null&&i!=null&&(n[r]=s=Ma(t,i,r)),u==null&&o!=null&&(a[r]=u=Ma(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),a[r]=u}}}(),e}();const am=XM;function FP(e,t){return wh(e,t).dimensions}function wh(e,t){lh(e)||(e=fh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=$(),i=[],o=ZM(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&nm(o),u=n===e.dimensionsDefine,l=u?rm(e):em(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=$(f),c=new f0(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var A=c[C];if(A<0){var D=n[C],L=W(D)?D:{name:D},I=new Io,P=L.name;P!=null&&l.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return c[C]=R,I.storeDimIndex=C,i.push(I),I}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,A){var D=gt(C).slice();if(D.length===1&&!z(D[0])&&D[0]<0){h.set(A,!1);return}var L=h.set(A,[]);M(D,function(I,P){var R=z(I)?l.get(I):I;R!=null&&R<o&&(L[P]=R,p(d(R),A,P))})});var g=0;M(r,function(C){var A,D,L,I;if(z(C))A=C,I={};else{I=C,A=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=O({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(A);if(R!==!1){if(R=gt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&R.push(g++)}M(R,function(U,k){var F=d(U);if(u&&I.type!=null&&(F.type=I.type),p(Q(F,I),A,k),F.name==null&&D){var H=D[k];!W(H)&&(H={name:H}),F.name=F.displayName=H.name,F.defaultTooltip=H.defaultTooltip}L&&Q(F.otherDims,L)})}});function p(C,A,D){Wy.get(A)!=null?C.otherDims[A]=D:(C.coordDim=A,C.coordDimIndex=D,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)M(i,function(C){w(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var b=d(x),T=b.coordDim;T==null&&(b.coordDim=KM(S,a,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&($y(e,x)===Dt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return qM(i),new j0({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function qM(e){for(var t=$(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function ZM(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return M(t,function(i){var o;W(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function KM(e,t,r){var n=t.data;if(r||n.hasOwnProperty(e)){for(var a=0;n.hasOwnProperty(e+a);)a++;e+=a}return t.set(e,!0),e}var QM=function(){function e(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return e}();function JM(e){var t=e.get("coordinateSystem"),r=new QM(t),n=jM[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var jM={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",Te).models[0],i=e.getReferringComponents("yAxis",Te).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Bn(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Bn(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",Te).models[0];t.coordSysDims=["single"],r.set("single",a),Bn(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",Te).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Bn(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Bn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,u){var l=a.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Bn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Bn(e){return e.get("type")==="category"}function tD(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;eD(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(M(i,function(m,_){z(m)&&(i[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;M(i,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(i.push(p),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function eD(e){return!tm(e.schema)}function im(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function rD(e,t){return im(e,t)?e.getCalculationInfo("stackResultDimension"):t}function nD(e,t){var r=e.get("coordinateSystem"),n=As.get(r),a;return t&&t.coordSysDims&&(a=G(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var u=s.get("type");o.type=FM(u)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function aD(e,t,r){var n,a;return r&&M(e,function(i,o){var s=i.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),i.ordinalMeta=u.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function om(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=fh(e)):(a=n.getSource(),i=a.sourceFormat===pe);var o=JM(t),s=nD(t,o),u=r.useEncodeDefaulter,l=q(u)?u:u?_t(Vb,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},h=wh(a,f),c=aD(h.dimensions,r.createInvertedIndices,o),v=i?null:n.getSharedDataStore(h),d=tD(t,{schema:h,store:v}),g=new am(h,t);g.setCalculationInfo(d);var p=c!=null&&iD(a)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,p),g}function iD(e){if(e.sourceFormat===pe){var t=oD(e.data||[]);return!B(_i(t))}}function oD(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var sm=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();vs(sm);const ir=sm;var sD=0,uD=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++sD}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&G(n,lD);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!z(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},e}();function lD(e){return W(e)&&e.value!=null?e.value:e+""}const of=uD;function sf(e){return e.type==="interval"||e.type==="log"}function fD(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=yg(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=um(o),u=a.niceTickExtent=[Tt(Math.ceil(e[0]/o)*o,s),Tt(Math.floor(e[1]/o)*o,s)];return hD(u,e),a}function Hu(e){var t=Math.pow(10,Bf(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Tt(r*t)}function um(e){return je(e)+2}function sd(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function hD(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),sd(e,0,t),sd(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Es(e,t){return e>=t[0]&&e<=t[1]}function Os(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ks(e,t){return e*(t[1]-t[0])+t[0]}var lm=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new of({})),B(a)&&(a=new of({categories:G(a,function(i){return W(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:z(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Es(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Os(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(ks(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];a[o]=l,i[l]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ir);ir.registerClass(lm);const fm=lm;var Kr=Tt,hm=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Es(r,this._extent)},t.prototype.normalize=function(r){return Os(r,this._extent)},t.prototype.scale=function(r){return ks(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=um(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;a[0]<i[0]&&(r?s.push({value:Kr(i[0]-n,o)}):s.push({value:a[0]}));for(var l=i[0];l<=i[1]&&(s.push({value:l}),l=Kr(l+n,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(r?s.push({value:Kr(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],u=n[o-1],l=0,f=[],h=s.value-u.value,c=h/r;l<r-1;){var v=Kr(u.value+(l+1)*c);v>i[0]&&v<i[1]&&f.push(v),l++}a.push(f)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=je(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Kr(r.value,a,!0);return zy(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(!!isFinite(o)){o<0&&(o=-o,i.reverse());var s=fD(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Kr(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Kr(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(ir);ir.registerClass(hm);const Ti=hm;var vm=typeof Float32Array<"u",vD=vm?Float32Array:Array;function Vu(e){return B(e)?vm?new Float32Array(e):e:new vD(e)}var uf="__ec_stack_";function bh(e){return e.get("stack")||uf+e.seriesIndex}function Th(e){return e.dim+e.index}function zP(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(Q({bandWidth:a,axisKey:n,stackId:uf+i},e));for(var o=pm(t),s=[],i=0;i<e.count;i++){var u=o[n][uf+i];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function cm(e,t){var r=[];return t.eachSeriesByType(e,function(n){gm(n)&&r.push(n)}),r}function cD(e){var t={};M(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(v,g);t[c]?t[c].push(y):t[c]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(u,l){return u-l});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function dm(e){var t=cD(e),r=[];return M(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var u=i.dim+"_"+i.index,l=t[u],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=st(n.get("barWidth"),s),g=st(n.get("barMaxWidth"),s),p=st(n.get("barMinWidth")||(ym(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:Th(i),stackId:bh(n)})}),pm(r)}function pm(e){var t={};M(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[i]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return M(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=ct(i).length;s=Math.max(35-u*4,15)+"%"}var l=st(s,o),f=st(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;M(i,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;M(i,function(y,m){r[a][m]=r[a][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),r}function dD(e,t,r){if(e&&t){var n=e[Th(t)];return n!=null&&r!=null?n[bh(r)]:n}}function pD(e,t){var r=cm(e,t),n=dm(r);M(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),u=bh(a),l=n[Th(s)][u],f=l.offset,h=l.width;i.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function gD(e){return{seriesType:e,plan:_0(),reset:function(t){if(!!gm(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),u=t.get("showBackground",!0),l=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),h=im(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),v=yD(a,i),d=ym(t),g=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&Vu(w*3),b=d&&u&&Vu(w*3),T=d&&Vu(w),C=n.master.getRect(),A=c?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(h?p:o,D),R=L.get(s,D),E=v,U=void 0;h&&(U=+P-L.get(o,D));var k=void 0,F=void 0,H=void 0,Z=void 0;if(c){var X=n.dataToPoint([P,R]);if(h){var ht=n.dataToPoint([U,R]);E=ht[0]}k=E,F=X[1]+m,H=X[0]-E,Z=y,Math.abs(H)<g&&(H=(H<0?-1:1)*g)}else{var X=n.dataToPoint([R,P]);if(h){var ht=n.dataToPoint([R,U]);E=ht[1]}k=X[0]+m,F=E,H=y,Z=X[1]-E,Math.abs(Z)<g&&(Z=(Z<=0?-1:1)*g)}d?(x[I]=k,x[I+1]=F,x[I+2]=c?H:Z,b&&(b[I]=c?C.x:k,b[I+1]=c?F:C.y,b[I+2]=A),T[D]=D):S.setItemLayout(D,{x:k,y:F,width:H,height:Z}),I+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function gm(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function ym(e){return e.pipelineContext&&e.pipelineContext.large}function yD(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var mD=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},mm=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return ws(r.value,Jv[Pb(Zn(this._minLevelUnit))]||Jv.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Rb(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=CD(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=ce,n[1]+=ce),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-ce}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=ro.length,u=Math.min(mD(ro,this._approxInterval,0,s),s-1);this._interval=ro[u][1],this._minLevelUnit=ro[Math.max(u-1,0)][0]},t.prototype.parse=function(r){return ft(r)?r:+We(r)},t.prototype.contain=function(r){return Es(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Os(this.parse(r),this._extent)},t.prototype.scale=function(r){return ks(r,this._extent)},t.type="time",t}(Ti),ro=[["second",nh],["minute",ah],["hour",Ua],["quarter-day",Ua*6],["half-day",Ua*12],["day",ce*1.2],["half-week",ce*3.5],["week",ce*7],["month",ce*31],["quarter",ce*95],["half-year",Qv/2],["year",Qv]];function _D(e,t,r,n){var a=We(t),i=We(r),o=function(d){return jv(a,d,n)===jv(i,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function SD(e,t){return e/=ce,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xD(e){var t=30*ce;return e/=t,e>6?6:e>3?3:e>2?2:1}function wD(e){return e/=Ua,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ud(e,t){return e/=t?ah:nh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function bD(e){return yg(e,!0)}function TD(e,t,r){var n=new Date(e);switch(Zn(t)){case"year":case"month":n[Ey(r)](0);case"day":n[Oy(r)](1);case"hour":n[ky(r)](0);case"minute":n[By(r)](0);case"second":n[Ny(r)](0),n[Fy(r)](0)}return n.getTime()}function CD(e,t,r,n){var a=1e4,i=Py,o=0;function s(A,D,L,I,P,R,E){for(var U=new Date(D),k=D,F=U[I]();k<L&&k<=n[1];)E.push({value:k}),F+=A,U[P](F),k=U.getTime();E.push({value:k,notAdd:!0})}function u(A,D,L){var I=[],P=!D.length;if(!_D(Zn(A),n[0],n[1],r)){P&&(D=[{value:TD(new Date(n[0]),A,r)},{value:n[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,U=D[R+1].value;if(E!==U){var k=void 0,F=void 0,H=void 0,Z=!1;switch(A){case"year":k=Math.max(1,Math.round(t/ce/365)),F=ih(r),H=Eb(r);break;case"half-year":case"quarter":case"month":k=xD(t),F=Kn(r),H=Ey(r);break;case"week":case"half-week":case"day":k=SD(t),F=bs(r),H=Oy(r),Z=!0;break;case"half-day":case"quarter-day":case"hour":k=wD(t),F=ii(r),H=ky(r);break;case"minute":k=ud(t,!0),F=Ts(r),H=By(r);break;case"second":k=ud(t,!1),F=Cs(r),H=Ny(r);break;case"millisecond":k=bD(t),F=Ms(r),H=Fy(r);break}s(k,E,U,F,H,Z,I),A==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-k})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var l=[],f=[],h=0,c=0,v=0;v<i.length&&o++<a;++v){var d=Zn(i[v]);if(!!Ib(i[v])){u(i[v],l[l.length-1]||[],f);var g=i[v+1]?Zn(i[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(A,D){return A.value-D.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||e===i[v]))break}f=[]}}}for(var S=wt(G(l,function(A){return wt(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],x=S.length-1,v=0;v<S.length;++v)for(var b=S[v],T=0;T<b.length;++T)w.push({value:b[T].value,level:x-v});w.sort(function(A,D){return A.value-D.value});for(var C=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&C.push(w[v]);return C}ir.registerClass(mm);const MD=mm;var ld=ir.prototype,Xa=Ti.prototype,DD=Tt,AD=Math.floor,LD=Math.ceil,no=Math.pow,me=Math.log,Ch=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ti,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Xa.getTicks.call(this,r);return G(o,function(s){var u=s.value,l=Tt(no(this.base,u));return l=u===a[0]&&this._fixMin?ao(l,i[0]):l,l=u===a[1]&&this._fixMax?ao(l,i[1]):l,{value:l}},this)},t.prototype.setExtent=function(r,n){var a=me(this.base);r=me(Math.max(0,r))/a,n=me(Math.max(0,n))/a,Xa.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=ld.getExtent.call(this);n[0]=no(r,n[0]),n[1]=no(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=ao(n[0],i[0])),this._fixMax&&(n[1]=ao(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=me(r[0])/me(n),r[1]=me(r[1])/me(n),ld.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=MS(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Tt(LD(n[0]/i)*i),Tt(AD(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Xa.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=me(r)/me(this.base),Es(r,this._extent)},t.prototype.normalize=function(r){return r=me(r)/me(this.base),Os(r,this._extent)},t.prototype.scale=function(r){return r=ks(r,this._extent),no(this.base,r)},t.type="log",t}(ir),_m=Ch.prototype;_m.getMinorTicks=Xa.getMinorTicks;_m.getLabel=Xa.getLabel;function ao(e,t){return DD(e,je(t))}ir.registerClass(Ch);const ID=Ch;var PD=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);q(i)?this._modelMinNum=io(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=io(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(q(o)?this._modelMaxNum=io(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=io(t,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),u=B(s)?s:[s||0,s||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Cr(u[0],1),Cr(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),u==null&&(u=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=Ka(s)||Ka(u)||t&&!a;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[ED[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RD[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RD={min:"_determinedMin",max:"_determinedMax"},ED={min:"_dataMin",max:"_dataMax"};function OD(e,t,r){var n=e.rawExtentInfo;return n||(n=new PD(e,t,r),e.rawExtentInfo=n,n)}function io(e,t){return t==null?null:Ka(t)?NaN:e.parse(t)}function Sm(e,t){var r=e.type,n=OD(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=cm("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=dm(s),f=kD(a,i,t,l);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function kD(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=dD(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/i,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function fd(e,t){var r=t,n=Sm(e,r),a=n.extent,i=r.get("splitNumber");e instanceof ID&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function BD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new fm({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new MD({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ir.getClass(t)||Ti)}}function ND(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ci(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):z(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i!=null?i:"");return o}}(t):q(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(Mh(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Mh(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function FD(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof fm?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Ci(e),u,l=1;a>40&&(l=Math.ceil(a/40));for(var f=0;f<a;f+=l){var h=n?n[f]:{value:i[0]+f},c=s(h,f),v=o.getTextRect(c),d=zD(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function zD(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new tt(e.x,e.y,i,o);return s}function Dh(e){var t=e.get("interval");return t==null?"auto":t}function xm(e){return e.type==="category"&&Dh(e.getLabelModel())===0}function wm(e,t){var r={};return M(e.mapDimensionsAll(t),function(n){r[rD(e,n)]=!0}),ct(r)}function GP(e,t,r){t&&M(wm(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var GD=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),hd=[],HD={registerPreprocessor:K0,registerProcessor:Q0,registerPostInit:LM,registerPostUpdate:IM,registerUpdateLifecycle:Sh,registerAction:sa,registerCoordinateSystem:PM,registerLayout:RM,registerVisual:wn,registerTransform:OM,registerLoading:J0,registerMap:EM,registerImpl:lM,PRIORITY:wM,ComponentModel:dt,ComponentView:Ye,SeriesModel:mn,ChartView:vn,registerComponentModel:function(e){dt.registerClass(e)},registerComponentView:function(e){Ye.registerClass(e)},registerSeriesModel:function(e){mn.registerClass(e)},registerChartView:function(e){vn.registerClass(e)},registerSubTypeDefaulter:function(e,t){dt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){cg(e,t)}};function _n(e){if(B(e)){M(e,function(t){_n(t)});return}it(hd,e)>=0||(hd.push(e),q(e)&&(e={install:e}),e.install(HD))}var VD=1e-8;function vd(e,t){return Math.abs(e-t)<VD}function cd(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=Je(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!vd(a[0],s[0])||!vd(a[1],s[1]))&&(n+=Je(a[0],a[1],s[0],s[1],t,r)),n!==0}var WD=[];function Wu(e,t){for(var r=0;r<e.length;r++)Ht(e[r],e[r],t)}function dd(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(pr(t,t,i),gr(r,r,i))}}function UD(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var u=e[s][0],l=e[s][1],f=i*l-u*o;t+=f,r+=(i+u)*f,n+=(o+l)*f,i=u,o=l}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var bm=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),pd=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),gd=function(){function e(t){this.type="linestring",this.points=t}return e}(),YD=function(e){N(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,u=s&&s.length;u>a&&(n=o,a=u)}if(n)return UD(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?dd(s.exterior,a,i,r):M(s.points,function(u){dd(u,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new tt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var u=s.exterior,l=s.interiors;if(cd(u,r[0],r[1])){for(var f=0;f<(l?l.length:0);f++)if(cd(l[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var u=new tt(r,n,a,i),l=o.calculateTransform(u),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(Wu(c.exterior,l),M(c.interiors,function(v){Wu(v,l)})):M(c.points,function(v){Wu(v,l)})}o=this._rect,o.copy(u),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(bm),HP=function(e){N(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=gi(WD),o=r;o&&!o.isGeoSVGGraphicRoot;)xr(i,o.getLocalTransform(),i),o=o.parent;return ra(i,i),Ht(a,a,i),a},t}(bm);function $D(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return M(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(!!o)switch(i.type){case"LineString":i.coordinates=Tm(s,o,r);break;case"Polygon":Uu(s,o,r);break;case"MultiLineString":Uu(s,o,r);break;case"MultiPolygon":M(s,function(u,l){return Uu(u,o[l],r)})}}),t.UTF8Encoding=!1,t}function Uu(e,t,r){for(var n=0;n<e.length;n++)e[n]=Tm(e[n],t[n],r)}function Tm(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,u=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),u=u>>1^-(u&1),s+=a,u+=i,a=s,i=u,n.push([s/r,u/r])}return n}function VP(e,t){return e=$D(e),G(wt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new pd(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(u){u[0]&&i.push(new pd(u[0],u.slice(1)))});break;case"LineString":i.push(new gd([a.coordinates]));break;case"MultiLineString":i.push(new gd(a.coordinates))}var s=new YD(n[t||"name"],i,n.cp);return s.properties=n,s})}var vi=yt();function XD(e){return e.type==="category"?ZD(e):QD(e)}function qD(e,t){return e.type==="category"?KD(e,t):{ticks:G(e.scale.getTicks(),function(r){return r.value})}}function ZD(e){var t=e.getLabelModel(),r=Cm(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Cm(e,t){var r=Mm(e,"labels"),n=Dh(t),a=Dm(r,n);if(a)return a;var i,o;return q(n)?i=Im(e,n):(o=n==="auto"?JD(e):n,i=Lm(e,o)),Am(r,n,{labels:i,labelCategoryInterval:o})}function KD(e,t){var r=Mm(e,"ticks"),n=Dh(t),a=Dm(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),q(n))i=Im(e,n,!0);else if(n==="auto"){var s=Cm(e,e.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(u){return u.tickValue})}else o=n,i=Lm(e,o,!0);return Am(r,n,{ticks:i,tickCategoryInterval:o})}function QD(e){var t=e.scale.getTicks(),r=Ci(e);return{labels:G(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function Mm(e,t){return vi(e)[t]||(vi(e)[t]=[])}function Dm(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Am(e,t,r){return e.push({key:t,value:r}),r}function JD(e){var t=vi(e).autoInterval;return t!=null?t:vi(e).autoInterval=e.calculateCategoryInterval()}function jD(e){var t=tA(e),r=Ci(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var u=i[0],l=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=i[1];u+=s){var d=0,g=0,p=Ef(r({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=vi(e.model),w=e.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function tA(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Lm(e,t,r){var n=Ci(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=i[0],f=a.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=xm(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==i[0]&&g(i[0]);for(var d=l;d<=i[1];d+=u)g(d);v&&d-u!==i[1]&&g(i[1]);function g(p){var y={value:p};s.push(r?p:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:p})}return s}function Im(e,t,r){var n=e.scale,a=Ci(e),i=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&i.push(r?u:{formattedLabel:a(o),rawLabel:s,tickValue:u})}),i}var yd=[0,1],eA=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return bS(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),md(n,a.count())),Ml(t,yd,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),md(n,a.count()));var i=Ml(t,n,yd,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=qD(this,r),a=n.ticks,i=G(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return rA(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=G(n,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return XD(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return jD(this)},e}();function md(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function rA(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var u=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=e.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+l*s},t.push(o)}var h=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&c(o.coord,i[1])&&t.push({coord:i[1]});function c(v,d){return v=Tt(v),d=Tt(d),h?v>d:v<d}}const nA=eA;var Aa=Math.PI*2,Qr=Dr.CMD,aA=["top","right","bottom","left"];function iA(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function oA(e,t,r,n,a,i,o,s,u){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*r+e,h=s*r+t;if(Math.abs(n-a)%Aa<1e-4)return u[0]=f,u[1]=h,l-r;if(i){var c=n;n=_r(a),a=_r(c)}else n=_r(n),a=_r(a);n>a&&(a+=Aa);var v=Math.atan2(s,o);if(v<0&&(v+=Aa),v>=n&&v<=a||v+Aa>=n&&v+Aa<=a)return u[0]=f,u[1]=h,l-r;var d=r*Math.cos(n)+e,g=r*Math.sin(n)+t,p=r*Math.cos(a)+e,y=r*Math.sin(a)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function rs(e,t,r,n,a,i,o,s){var u=a-e,l=i-t,f=r-e,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=e+d*f,p=o[1]=t+d*h;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function Pm(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,u=t+n,l=o[0]=Math.min(Math.max(a,e),s),f=o[1]=Math.min(Math.max(i,t),u);return Math.sqrt((l-a)*(l-a)+(f-i)*(f-i))}var we=[];function sA(e,t,r){var n=Pm(t.x,t.y,t.width,t.height,e.x,e.y,we);return r.set(we[0],we[1]),n}function uA(e,t,r){for(var n=0,a=0,i=0,o=0,s,u,l=1/0,f=t.data,h=e.x,c=e.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var g=l;switch(d){case Qr.M:i=f[v++],o=f[v++],n=i,a=o;break;case Qr.L:g=rs(n,a,f[v],f[v+1],h,c,we,!0),n=f[v++],a=f[v++];break;case Qr.C:g=jp(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,we),n=f[v++],a=f[v++];break;case Qr.Q:g=eg(n,a,f[v++],f[v++],f[v],f[v+1],h,c,we),n=f[v++],a=f[v++];break;case Qr.A:var p=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],w=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+p,u=Math.sin(S)*_+y,v<=1&&(i=s,o=u);var b=(h-p)*_/m+p;g=oA(p,y,_,S,S+w,x,b,c,we),n=Math.cos(S+w)*m+p,a=Math.sin(S+w)*_+y;break;case Qr.R:i=n=f[v++],o=a=f[v++];var T=f[v++],C=f[v++];g=Pm(i,o,T,C,h,c,we);break;case Qr.Z:g=rs(n,a,i,o,h,c,we,!0),n=i,a=o;break}g<l&&(l=g,r.set(we[0],we[1]))}return l}var Ce=new V,ut=new V,mt=new V,Ge=new V,Fe=new V;function _d(e,t){if(!!e){var r=e.getTextGuideLine(),n=e.getTextContent();if(!!(n&&r)){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||aA,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=a.anchor,f=e.getComputedTransform(),h=f&&ra([],f),c=t.get("length2")||0;l&&mt.copy(l);for(var v=0;v<o.length;v++){var d=o[v];iA(d,0,s,Ce,Ge),V.scaleAndAdd(ut,Ce,Ge,c),ut.transform(h);var g=e.getBoundingRect(),p=l?l.distance(ut):e instanceof nt?uA(ut,e.path,mt):sA(ut,g,mt);p<u&&(u=p,ut.transform(f),mt.transform(f),mt.toArray(i[0]),ut.toArray(i[1]),Ce.toArray(i[2]))}Rm(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var ns=[],zt=new V;function Rm(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ce.fromArray(e[0]),ut.fromArray(e[1]),mt.fromArray(e[2]),V.sub(Ge,Ce,ut),V.sub(Fe,mt,ut);var r=Ge.len(),n=Fe.len();if(!(r<.001||n<.001)){Ge.scale(1/r),Fe.scale(1/n);var a=Ge.dot(Fe),i=Math.cos(t);if(i<a){var o=rs(ut.x,ut.y,mt.x,mt.y,Ce.x,Ce.y,ns,!1);zt.fromArray(ns),zt.scaleAndAdd(Fe,o/Math.tan(Math.PI-t));var s=mt.x!==ut.x?(zt.x-ut.x)/(mt.x-ut.x):(zt.y-ut.y)/(mt.y-ut.y);if(isNaN(s))return;s<0?V.copy(zt,ut):s>1&&V.copy(zt,mt),zt.toArray(e[1])}}}}function lA(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ce.fromArray(e[0]),ut.fromArray(e[1]),mt.fromArray(e[2]),V.sub(Ge,ut,Ce),V.sub(Fe,mt,ut);var n=Ge.len(),a=Fe.len();if(!(n<.001||a<.001)){Ge.scale(1/n),Fe.scale(1/a);var i=Ge.dot(t),o=Math.cos(r);if(i<o){var s=rs(ut.x,ut.y,mt.x,mt.y,Ce.x,Ce.y,ns,!1);zt.fromArray(ns);var u=Math.PI/2,l=Math.acos(Fe.dot(t)),f=u+l-r;if(f>=u)V.copy(zt,mt);else{zt.scaleAndAdd(Fe,s/Math.tan(Math.PI/2-f));var h=mt.x!==ut.x?(zt.x-ut.x)/(mt.x-ut.x):(zt.y-ut.y)/(mt.y-ut.y);if(isNaN(h))return;h<0?V.copy(zt,ut):h>1&&V.copy(zt,mt)}zt.toArray(e[1])}}}}function Sd(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function fA(e,t){var r=t.smooth,n=t.points;if(!!n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Oo(n[0],n[1]),i=Oo(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=za([],n[1],n[0],o/a),u=za([],n[1],n[2],o/i),l=za([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function Em(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,u=0;u<Vo.length;u++){var l=Vo[u],f=t[l],h=l==="normal";if(f){var c=f.get("show"),v=h?s:K(a.states[l]&&a.states[l].ignore,s);if(v||!K(c,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0);continue}n||(n=new ms,e.setTextGuideLine(n),!h&&(s||!o)&&Sd(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Sd(n,!1,l,f)}}if(n){Q(n.style,r),n.style.fill=null;var g=i.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=fA}}function Om(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Ue.length;n++){var a=Ue[n];r[a]=e.getModel([a,t])}return r}function km(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,u=a.style.margin||0,l=o.clone();l.applyTransform(i),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new Wo(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function Bm(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,u,l=!1,f=0,h=0;h<o;h++){var c=e[h],v=c.rect;u=v[t]-s,u<0&&(v[t]-=u,c.label[t]-=u,l=!0);var d=Math.max(-u,0);f+=d,s=v[t]+v[r]}f>0&&i&&w(-f/o,0,o);var g=e[0],p=e[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=g.rect[t]-n,m=a-p.rect[t]-p.rect[r]}function S(T,C,A){if(T<0){var D=Math.min(C,-T);if(D>0){w(D*A,0,o);var L=D+T;L<0&&x(-L*A,1)}else x(-T*A,1)}}function w(T,C,A){T!==0&&(l=!0);for(var D=C;D<A;D++){var L=e[D],I=L.rect;I[t]+=T,L.label[t]+=T}}function x(T,C){for(var A=[],D=0,L=1;L<o;L++){var I=e[L-1].rect,P=Math.max(e[L].rect[t]-I[t]-I[r],0);A.push(P),D+=P}if(!!D){var R=Math.min(Math.abs(T)/D,C);if(T>0)for(var L=0;L<o-1;L++){var E=A[L]*R;w(E,0,L+1)}else for(var L=o-1;L>0;L--){var E=A[L-1]*R;w(-E,L,o)}}}function b(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(C>0?w(A,0,D+1):w(-A,o-D-1,o),T-=A,T<=0)return}return l}function hA(e,t,r,n){return Bm(e,"x","width",t,r,n)}function Nm(e,t,r,n){return Bm(e,"y","height",t,r,n)}function Fm(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var r=new tt(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,u=i.transform,l=i.label,f=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var h=i.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(!!r.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Wo(d.localRect,d.transform)),h||(h=new Wo(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(n(l),f&&n(f)):(l.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function vA(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function cA(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:vA(n&&n.shape.points)}}var xd=["align","verticalAlign","width","height","fontSize"],ee=new mi,Yu=yt(),dA=yt();function oo(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var so=["x","y","rotation"],pA=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,u=s.textConfig||{},l=a.getComputedTransform(),f=a.getBoundingRect().plain();tt.applyTransform(f,f,l),l?ee.setLocalTransform(l):(ee.x=ee.y=ee.rotation=ee.originX=ee.originY=0,ee.scaleX=ee.scaleY=1);var h=a.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();tt.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:ee.x,y:ee.y,scaleX:ee.scaleX,scaleY:ee.scaleY,rotation:ee.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:u.position,attachedRot:u.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");!(q(a)||ct(a).length)||t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=lt(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(_,S){return function(){_d(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;q(o.layoutOption)?f=o.layoutOption(cA(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*h:l.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=st(f.x,r),s.setStyle("x",0),c=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=st(f.y,n),s.setStyle("y",0),c=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=Yu(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var g=0;g<xd.length;g++){var p=xd[g];s.setStyle(p,f[p]!=null?f[p]:l.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(u,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=km(this._labelList),i=wt(a,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=wt(a,function(u){return u.layoutOption.moveOverlap==="shiftY"});hA(i,0,r),Nm(o,0,n);var s=wt(a,function(u){return u.layoutOption.hideOverlap});Fm(s)},e.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,u=o.getTextContent();!s&&u&&(s=Yu(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=lt(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),u={},l=o.getItemVisual(i,"style"),f=o.getVisual("drawType");u.stroke=l[f];var h=s.getModel("labelLine");Em(t,Om(s),u),_d(t,h)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!qn(t))){var i=Yu(n),o=i.oldLayout,s=lt(t),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(it(c,"select")>=0&&n.attr(i.oldLayoutSelect),it(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),te(n,l,r,u)}else if(n.attr(l),!wi(n).valueAnimation){var h=K(n.style.opacity,1);n.style.opacity=0,Jt(n,{style:{opacity:h}},r,u)}if(i.oldLayout=l,n.states.select){var v=i.oldLayoutSelect={};oo(v,l,so),oo(v,n.states.select,so)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};oo(d,l,so),oo(d,n.states.emphasis,so)}db(n,u,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=dA(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),te(a,{shape:g},r)):(a.setShape(g),a.style.strokePercent=0,Jt(a,{style:{strokePercent:1}},r)),i.oldLayout=g}},e}();const gA=pA;var $u=yt();function WP(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=$u(r).labelManager;a||(a=$u(r).labelManager=new gA),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=$u(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}function yA(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=ta(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(ta(e,t,r[o]));return i.join(" ")}}function mA(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!B(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}function _A(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,u=i.width,l=i.height,f=r.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,u+=f,l+=f,o=Math.floor(o),u=Math.round(u);var h=new Ct({shape:{x:o,y:s,width:u,height:l}});if(t){var c=e.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var g=q(a)?function(p){a(p,h)}:null;Jt(h,{shape:{width:u,height:l,x:o,y:s}},r,null,n,g)}return h}function SA(e,t,r){var n=e.getArea(),a=Tt(n.r0,1),i=Tt(n.r,1),o=new nr({shape:{cx:Tt(e.cx,1),cy:Tt(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Jt(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function xA(e,t,r,n,a){if(e){if(e.type==="polar")return SA(e,t,r);if(e.type==="cartesian2d")return _A(e,t,r,n,a)}else return null;return null}function zm(e,t){return e.type===t}var wA={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},bA=function(e){return Math.round(e.length/2)};function TA(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/v));var d=void 0;z(i)?d=wA[i]:q(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(l.dim),1/v,d,bA))}}}}}var Gm=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return om(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.dataToPoint(n.clampData(r)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),u=n.getBaseAxis().isHorizontal()?0:1;return a[u]+=o+s/2,a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(mn);mn.registerClass(Gm);const wd=Gm;var CA=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return om(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ay(wd.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(wd);const MA=CA;var DA=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),AA=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new DA},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var g=Math.cos(f),p=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(r.moveTo(g*o+a,p*o+i),r.arc(g*l+a,p*l+i,u,-Math.PI+f,f,!c)):r.moveTo(g*s+a,p*s+i),r.arc(a,i,s,f,h,!c),r.arc(y*l+a,m*l+i,u,h-Math.PI*2,h-Math.PI,!c),o!==0&&r.arc(a,i,o,h,f,c)},t}(nt);const bd=AA;function LA(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Go(n,a,i);var s=e(o),u=a.distance!=null?a.distance:5,l=this.shape,f=l.cx,h=l.cy,c=l.r,v=l.r0,d=(c+v)/2,g=l.startAngle,p=l.endAngle,y=(g+p)/2,m=r?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,w=f+c*_(g),x=h+c*S(g),b="left",T="top";switch(s){case"startArc":w=f+(v-u)*_(y),x=h+(v-u)*S(y),b="center",T="top";break;case"insideStartArc":w=f+(v+u)*_(y),x=h+(v+u)*S(y),b="center",T="bottom";break;case"startAngle":w=f+d*_(g)+uo(g,u+m,!1),x=h+d*S(g)+lo(g,u+m,!1),b="right",T="middle";break;case"insideStartAngle":w=f+d*_(g)+uo(g,-u+m,!1),x=h+d*S(g)+lo(g,-u+m,!1),b="left",T="middle";break;case"middle":w=f+d*_(y),x=h+d*S(y),b="center",T="middle";break;case"endArc":w=f+(c+u)*_(y),x=h+(c+u)*S(y),b="center",T="bottom";break;case"insideEndArc":w=f+(c-u)*_(y),x=h+(c-u)*S(y),b="center",T="top";break;case"endAngle":w=f+d*_(p)+uo(p,u+m,!0),x=h+d*S(p)+lo(p,u+m,!0),b="left",T="middle";break;case"insideEndAngle":w=f+d*_(p)+uo(p,-u+m,!0),x=h+d*S(p)+lo(p,-u+m,!0),b="right",T="middle";break;default:return Go(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=b,n.verticalAlign=T,n}}function IA(e,t,r,n){if(ft(n)){e.setTextConfig({rotation:n});return}else if(B(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,u,l=r(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=i;break;case"endAngle":case"insideEndAngle":u=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function uo(e,t,r){return t*Math.sin(e)*(r?-1:1)}function lo(e,t,r){return t*Math.cos(e)*(r?1:-1)}var Xu=Math.max,qu=Math.min;function PA(e,t){var r=e.getArea&&e.getArea();if(zm(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var RA=function(e){N(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){jf(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var c=r.isAnimationEnabled()?r:null,v=EA(r,l);v&&this._enableRealtimeSort(v,s,a);var d=r.get("clip",!0)||v,g=PA(l,s);o.removeClipPath();var p=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,x=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function T(D){var L=fo[l.type](s,D),I=GA(l,h,L);return I.useStyle(m.getItemStyle()),l.type==="cartesian2d"&&I.setShape("r",_),S[D]=I,I}s.diff(u).add(function(D){var L=s.getItemModel(D),I=fo[l.type](s,D,L);if(y&&T(D),!(!s.hasValue(D)||!Ad[l.type](I))){var P=!1;d&&(P=Td[l.type](g,I));var R=Cd[l.type](r,s,D,I,h,c,f.model,!1,p);v&&(R.forceLabelAnimation=!0),Ld(R,s,D,L,I,r,h,l.type==="polar"),x?R.attr({shape:I}):v?Md(v,c,R,I,D,h,!1,!1):Jt(R,{shape:I},r,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=fo[l.type](s,D,I);if(y){var R=void 0;w.length===0?R=T(L):(R=w[L],R.useStyle(m.getItemStyle()),l.type==="cartesian2d"&&R.setShape("r",_),S[D]=R);var E=fo[l.type](s,D),U=Vm(h,E,l);te(R,{shape:U},c,D)}var k=u.getItemGraphicEl(L);if(!s.hasValue(D)||!Ad[l.type](P)){o.remove(k);return}var F=!1;if(d&&(F=Td[l.type](g,P),F&&o.remove(k)),k?my(k):k=Cd[l.type](r,s,D,P,h,c,f.model,!!k,p),v&&(k.forceLabelAnimation=!0),b){var H=k.getTextContent();if(H){var Z=wi(H);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else Ld(k,s,D,I,P,r,h,l.type==="polar");x?k.attr({shape:P}):v?Md(v,c,k,P,D,h,!0,b):te(k,{shape:P},r,D,null),s.setItemGraphicEl(D,k),k.ignore=F,o.add(k)}).remove(function(D){var L=u.getItemGraphicEl(D);L&&Uo(L,r,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new de);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),Pd(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Pd(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&xA(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(!!n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(u){var l=n.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var u=a(s);u=u==null?NaN:u,i.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,u=0,l=i.getOrdinalMeta().categories.length;u<l;++u){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(!!this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Uo(i,r,lt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(vn),Td={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=Xu(t.x,e.x),s=qu(t.x+t.width,a),u=Xu(t.y,e.y),l=qu(t.y+t.height,i),f=s<o,h=l<u;return t.x=f&&o>a?s:o,t.y=h&&u>i?l:u,t.width=f?0:s-o,t.height=h?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=qu(t.r,e.r),i=Xu(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Cd={cartesian2d:function(e,t,r,n,a,i,o,s,u){var l=new Ct({shape:O({},n),z2:1});if(l.__dataIndex=r,l.name="item",i){var f=l.shape,h=a?"height":"width";f[h]=0}return l},polar:function(e,t,r,n,a,i,o,s,u){var l=!a&&u?bd:nr,f=new l({shape:n,z2:1});f.name="item";var h=Hm(a);if(f.calculateTextPosition=LA(h,{isRoundCap:l===bd}),i){var c=f.shape,v=a?"r":"endAngle",d={};c[v]=a?0:n.startAngle,d[v]=n[v],(s?te:Jt)(f,{shape:d},i)}return f}};function EA(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Md(e,t,r,n,a,i,o,s){var u,l;i?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?te:Jt)(r,{shape:u},t,a,null);var f=t?e.baseAxis.model:null;(o?te:Jt)(r,{shape:l},f,a)}function Dd(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var OA=["x","y","width","height"],kA=["cx","cy","r","startAngle","endAngle"],Ad={cartesian2d:function(e){return!Dd(e,OA)},polar:function(e){return!Dd(e,kA)}},fo={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?NA(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function BA(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Hm(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Ld(e,t,r,n,a,i,o,s){var u=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(u);var l=n.getShallow("cursor");l&&e.attr("cursor",l);var f=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=Cy(n);th(e,h,{labelFetcher:i,labelDataIndex:r,defaultText:yA(i.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var c=e.getTextContent();if(s&&c){var v=n.get(["label","position"]);e.textConfig.inside=v==="middle"?!0:null,IA(e,v==="outside"?f:v,Hm(o),n.get(["label","rotate"]))}cb(c,h,i.getRawValue(r),function(g){return mA(t,g)});var d=n.getModel(["emphasis"]);qg(e,d.get("focus"),d.get("blurScope"),d.get("disabled")),Zg(e,n),BA(a)&&(e.style.fill="none",e.style.stroke="none",M(e.states,function(g){g.style&&(g.style.fill=g.style.stroke="none")}))}function NA(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var FA=function(){function e(){}return e}(),Id=function(e){N(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new FA},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<a.length;f+=3)u[i]=l,u[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],u[0],u[1])},t}(nt);function Pd(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),u=e.getModel("backgroundStyle"),l=a.getLayout("largeBackgroundPoints");if(l){var f=new Id({shape:{points:l},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),r&&r.push(f)}var h=new Id({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(a.getVisual("style")),lt(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Rd),h.on("mousemove",Rd)),r&&r.push(h)}var Rd=ph(function(e){var t=this,r=zA(t,e.offsetX,e.offsetY);lt(t).dataIndex=r>=0?r:null},30,!1);function zA(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,f=0,h=i.length/3;f<h;f++){var c=f*3;if(u[n]=l,u[a]=i[c+2],s[n]=i[c+n],s[a]=i[c+a],u[a]<0&&(s[a]+=u[a],u[a]=-u[a]),t>=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function Vm(e,t,r){if(zm(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function GA(e,t,r){var n=e.type==="polar"?nr:Ct;return new n({shape:Vm(t,r,e),silent:!0,z2:0})}const HA=RA;function UP(e){e.registerChartView(HA),e.registerSeriesModel(MA),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,_t(pD,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gD("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,TA("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ho=Math.PI*2,Ed=Math.PI/180;function Wm(e,t){return Lr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Um(e,t){var r=Wm(e,t),n=e.get("center"),a=e.get("radius");B(a)||(a=[0,a]),B(n)||(n=[n,n]);var i=st(r.width,t.getWidth()),o=st(r.height,t.getHeight()),s=Math.min(i,o),u=st(a[0],s/2),l=st(a[1],s/2),f,h,c=e.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else f=st(n[0],i)+r.x,h=st(n[1],o)+r.y;return{cx:f,cy:h,r0:u,r:l}}function VA(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Wm(n,r),s=Um(n,r),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Ed,v=n.get("minAngle")*Ed,d=0;a.each(i,function(A){!isNaN(A)&&d++});var g=a.getSum(i),p=Math.PI/(g||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var w=ho,x=0,b=c,T=y?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(A,D){var L;if(isNaN(A)){a.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:l,r0:h,r:m?NaN:f});return}m!=="area"?L=g===0&&_?p:A*p:L=ho/d,L<v?(L=v,w-=v):x+=A;var I=b+T*L;a.setItemLayout(D,{angle:L,startAngle:b,endAngle:I,clockwise:y,cx:u,cy:l,r0:h,r:m?Ml(A,S,[h,f]):f}),b=I}),w<ho&&d)if(w<=.001){var C=ho/d;a.each(i,function(A,D){if(!isNaN(A)){var L=a.getItemLayout(D);L.angle=C,L.startAngle=c+T*D*C,L.endAngle=c+T*(D+1)*C}})}else p=w/x,b=c,a.each(i,function(A,D){if(!isNaN(A)){var L=a.getItemLayout(D),I=L.angle===v?v:A*p;L.startAngle=b,L.endAngle=b+T*I,b+=T*I}})})}function WA(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var UA=Math.PI/180;function Od(e,t,r,n,a,i,o,s,u,l){if(e.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],S=Math.abs(_.label.y-r),w=n+_.len,x=w*w,b=Math.sqrt((1-Math.abs(S*S/y))*x),T=t+(b+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;Ym(_,A,!0),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],S=_.label.y>r?y:p,w=Math.abs(_.label.y-r);if(w>=S.maxY){var x=_.label.x-t-_.len2*a,b=n+_.len,T=Math.abs(x)<b?Math.sqrt(w*w/(1-x*x/b/b)):b;S.rB=T,S.maxY=w}S.list.push(_)}f(p),f(y)}for(var c=e.length,v=0;v<c;v++)if(e[v].position==="outer"&&e[v].labelAlignTo==="labelLine"){var d=e[v].label.x-l;e[v].linePoints[1][0]+=d,e[v].label.x=l}Nm(e,u,u+o)&&h(e)}function YA(e,t,r,n,a,i,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<e.length;c++){var v=e[c].label;Zu(e[c])||(v.x<t?(f=Math.min(f,v.x),u.push(e[c])):(h=Math.max(h,v.x),l.push(e[c])))}for(var c=0;c<e.length;c++){var d=e[c];if(!Zu(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<t?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+a-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+a-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+a-v.x-d.bleedMargin,d.targetTextWidth=p,Ym(d,p)}}Od(l,t,r,n,1,a,i,o,s,h),Od(u,t,r,n,-1,a,i,o,s,f);for(var c=0;c<e.length;c++){var d=e[c];if(!Zu(d)&&d.linePoints){var v=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,w=d.rect.width+S,x=g[1][0]-g[2][0];y?v.x<t?g[2][0]=o+d.edgeDistance+w+d.labelDistance:g[2][0]=o+a-d.edgeDistance-w-d.labelDistance:(v.x<t?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=v.y}}}function Ym(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,u=s?s[1]+s[3]:0,l=a.overflow,f=i.width+(o?0:u);if(t<f||r){var h=i.height;if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-u,d=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();i.width=g.width;var p=(n.style.margin||0)+2.1;i.height=g.height+p,i.y-=(i.height-h)/2}}}function Zu(e){return e.position==="center"}function $A(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*UA,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}t.each(function(x){var b=t.getItemGraphicEl(x),T=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),D=t.getItemModel(x),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=st(L.get("edgeDistance"),l),U=L.get("bleedMargin"),k=D.getModel("labelLine"),F=k.get("length");F=st(F,l);var H=k.get("length2");if(H=st(H,l),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,v),M(A.states,v),C.ignore=A.ignore=!0;return}if(!!d(C)){var Z=(T.startAngle+T.endAngle)/2,X=Math.cos(Z),ht=Math.sin(Z),St,Lt,ie,Ut;n=T.cx,a=T.cy;var It=I==="inside"||I==="inner";if(I==="center")St=T.cx,Lt=T.cy,Ut="center";else{var bt=(It?(T.r+T.r0)/2*X:T.r*X)+n,pt=(It?(T.r+T.r0)/2*ht:T.r*ht)+a;if(St=bt+X*3,Lt=pt+ht*3,!It){var Y=bt+X*(F+u-T.r),J=pt+ht*(F+u-T.r),Pe=Y+(X<0?-1:1)*H,Mt=J;R==="edge"?St=X<0?f+E:f+l-E:St=Pe+(X<0?-P:P),Lt=Mt,ie=[[bt,pt],[Y,J],[Pe,Mt]]}Ut=It?"center":R==="edge"?X>0?"right":"left":X>0?"left":"right"}var or=Math.PI,qe=0,ua=L.get("rotate");if(ft(ua))qe=ua*(or/180);else if(I==="center")qe=0;else if(ua==="radial"||ua===!0){var m_=X<0?-Z+or:-Z;qe=m_}else if(ua==="tangential"&&I!=="outside"&&I!=="outer"){var bn=Math.atan2(X,ht);bn<0&&(bn=or*2+bn);var __=ht>0;__&&(bn=or+bn),qe=bn-or}if(i=!!qe,C.x=St,C.y=Lt,C.rotation=qe,C.setStyle({verticalAlign:"middle"}),It){C.setStyle({align:Ut});var Bs=C.states.select;Bs&&(Bs.x+=C.x,Bs.y+=C.y)}else{var la=C.getBoundingRect().clone();la.applyTransform(C.getComputedTransform());var Eh=(C.style.margin||0)+2.1;la.y-=Eh/2,la.height+=Eh,r.push({label:C,labelLine:A,position:I,len:F,len2:H,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new V(X,ht),linePoints:ie,textAlign:Ut,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:U,rect:la,unconstrainedWidth:la.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:It})}}),!i&&e.get("avoidLabelOverlap")&&YA(r,n,a,u,l,c,f,h);for(var g=0;g<r.length;g++){var p=r[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(M(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=p.linePoints;_||!w?(M(m.states,v),m.ignore=!0):(Rm(w,p.minTurnAngle),lA(w,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new V(w[0][0],w[0][1])})}}}function vo(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;B(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(n,function(i){return Cr(i,a)})}}var XA=function(e){N(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new Vt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,u=r.getItemModel(n),l=u.getModel("emphasis"),f=r.getItemLayout(n),h=O(vo(u.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Jt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Jt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Jt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,te(o,{shape:{endAngle:f.endAngle}},s,n))}else my(o),te(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),Zg(o,u);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,y=u.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=O({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},vo(l.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:g,y:p,shape:vo(u.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:vo(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:g,y:p}),O(_.ensureState("select"),{x:g,y:p}),qg(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),u=n.getItemVisual(a,"style"),l=u&&u.fill,f=u&&u.opacity;th(i,Cy(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=r.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new ms,this.setTextGuideLine(v)),Em(this,Om(o),{stroke:l,opacity:Yn(s.get(["lineStyle","opacity"]),f,1)})}},t}(nr),qA=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,u=this.group,l;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var c=new nr({shape:Um(r,a)});c.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,u.add(c)}o.diff(s).add(function(v){var d=new XA(o,v,l);o.setItemGraphicEl(v,d),u.add(d)}).update(function(v,d){var g=s.getItemGraphicEl(d);g.updateData(o,v,l),g.off("click"),u.add(g),o.setItemGraphicEl(v,g)}).remove(function(v){var d=s.getItemGraphicEl(v);Uo(d,r,v)}).execute(),$A(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,u=Math.sqrt(o*o+s*s);return u<=i.r&&u>=i.r0}},t.type="pie",t}(vn);const ZA=qA;function KA(e,t,r){t=B(t)&&{coordDimensions:t}||O({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=wh(n,t).dimensions,i=new am(a,e);return i.initData(n,r),i}var QA=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const JA=QA;var jA=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new JA(vt(this.getData,this),vt(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var r=KA(this,{coordDimensions:["value"],encodeDefaulter:_t(Wb,this)}),n=[];return r.each(r.mapDimension("value"),function(a){n.push(a)}),this.seats=pg(n,r.hostModel.get("percentPrecision")),r},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.call(this,r);return n.percent=this.seats[r],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(r){Dl(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(mn);const tL=jA;function eL(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(ft(o)&&!isNaN(o)&&o<0)})}}}function YP(e){e.registerChartView(ZA),e.registerSeriesModel(tL),PC("pie",e.registerAction),e.registerLayout(_t(VA,"pie")),e.registerProcessor(WA("pie")),e.registerProcessor(eL("pie"))}var rL=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(dt);const nL=rL;var lf=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Te).models[0]},t.type="cartesian2dAxis",t}(dt);Le(lf,GD);var $m={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},aL=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$m),Ah=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},$m),iL=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ah),oL=Q({logBase:10},Ah);const sL={category:aL,value:Ah,time:iL,log:oL};var uL={value:1,category:1,time:1,log:1};function kd(e,t,r,n){M(uL,function(a,i){var o=at(at({},sL[i],!0),n,!0),s=function(u){N(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=si(this),v=c?Ds(f):{},d=h.getTheme();at(f,d.get(i+"Axis")),at(f,this.getDefaultOption()),f.type=Bd(f),c&&jn(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=of.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=o,l}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Bd)}function Bd(e){return e.type||(e.data?"category":"value")}var lL=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return G(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),wt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const fL=lL;var ff=["x","y"];function Nd(e){return e.type==="interval"||e.type==="time"}var hL=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=ff,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Nd(r)||!Nd(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),u=a[1]-a[0],l=i[1]-i[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-a[0]*f,v=o[1]-i[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=ra([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new tt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ht(a,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=u.toGlobalCoord(u.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),u=a.parse(r[0]),l=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Ht(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new tt(a,i,o,s)},t}(fL),vL=function(e){N(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(nA);const cL=vL;function hf(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,u=o?"onZero":s,l=a.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}i.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Jn(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=u==="top"?-y:y,i.z2=1,i}function Fd(e){return e.get("coordinateSystem")==="cartesian2d"}function zd(e){var t={xAxisModel:null,yAxisModel:null};return M(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,Te).models[0];t[n]=i}),t}var Ku=Math.log;function dL(e,t,r){var n=Ti.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),u=Sm(e,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(e.type==="log"){var c=Ku(e.base);l=[Ku(l[0])/c,Ku(l[1])/c]}e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(e);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(e),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;p<l[1]&&isFinite(p)&&isFinite(l[1]);)d=Hu(d),p=l[0]+d*o;else if(h)for(g=l[1]-d*o;g>l[0]&&isFinite(g)&&isFinite(l[0]);)d=Hu(d),g=l[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=Hu(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=Tt(p-m),g<0&&l[0]>=0?(g=0,p=Tt(m)):p>0&&l[1]<=0&&(p=0,g=-Tt(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(e,g+d*_,p+d*S),n.setInterval.call(e,d),(_||S)&&n.setNiceExtent.call(e,g+d,p-d)}var pL=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ff,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,u=ct(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;sf(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(fd(g,d),sf(g)&&(s=v))}f.length&&(s||(s=f.pop(),fd(s.scale,s.model)),M(f,function(p){dL(p.scale,p.model,s.scale)}))}}a(n.x),a(n.y);var i={};M(n.x,function(o){Gd(n,"y",o,i)}),M(n.y,function(o){Gd(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Lr(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;u(),i&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=FD(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),gL(l,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}W(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Te).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",Te).models[0],i=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,it(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(a)u=this.getAxis("y",a.componentIndex);else if(i){var l=i.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,h){M(s.y,function(c,v){var d="x"+h+"y"+v,g=new hL(d);g.master=a,g.model=t,a._coordsMap[d]=g,a._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function l(f){return function(h,c){if(!!Qu(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new cL(f,BD(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=i,d.index=c,i._axesList.push(d),s[f][c]=d,u[f]++}}}},e.prototype._updateScale=function(t,r){M(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(Fd(a)){var i=zd(a),o=i.xAxisModel,s=i.yAxisModel;if(!Qu(o,r)||!Qu(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=a.getData(),f=u.getAxis("x"),h=u.getAxis("y");n(l,f),n(l,h)}},this);function n(a,i){M(wm(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return M(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);it(r,i)<0&&r.push(i),it(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(!!Fd(a)){var i=zd(a),o=i.xAxisModel,s=i.yAxisModel,u=o.getCoordSysModel(),l=u.coordinateSystem;a.coordinateSystem=l.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=ff,e}();function Qu(e,t){return e.getCoordSysModel()===t}function Gd(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Hd(a[u])&&(i=a[u]);else for(var l in a)if(a.hasOwnProperty(l)&&Hd(a[l])&&!n[f(a[l])]){i=a[l];break}i&&(n[f(i)]=!0);function f(h){return h.dim+"_"+h.index}}function Hd(e){return e&&e.type!=="category"&&e.type!=="time"&&ND(e)}function gL(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const yL=pL;var Sr=Math.PI,dn=function(){function e(t,r){this.group=new de,this.opt=r,this.axisModel=t,Q(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new de({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!Vd[t]},e.prototype.add=function(t){Vd[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=gg(r-t),i,o;return Ho(a)?(o=n>0?"top":"bottom",i="center"):Ho(a-Sr)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Sr?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),Vd={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],u=[i[1],0],l=s[0]>u[0];o&&(Ht(s,s,o),Ht(u,u,o));var f=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new yn({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ni(h.shape,h.style.lineWidth),h.anid="line",r.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);z(c)&&(c=[c,c]),(z(v)||ft(v))&&(v=[v,v]);var d=YC(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];M([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=gh(c[m],-g/2,-p/2,g,p,f.stroke,!0),S=y.r+y.offset,w=l?u:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(e.rotation),y:w[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=SL(r,n,t,e),i=wL(r,n,t,e);if(_L(t,i,a),xL(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=km(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Fm(o)}},axisName:function(e,t,r,n){var a=Jn(e.axisName,t.get("name"));if(!!a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[i==="start"?l[0]-f*u:i==="end"?l[1]+f*u:(l[0]+l[1])/2,Ud(i)?e.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Sr/180);var d;Ud(i)?c=dn.innerTextLayout(e.rotation,v!=null?v:e.rotation,o):(c=mL(e.rotation,i,v||0,l),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Jn(e.nameTruncateMaxWidth,p.maxWidth,d),_=new Vt({x:h[0],y:h[1],rotation:c.rotation,silent:dn.isLabelSilent(t),style:Ar(s,{text:a,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Jf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=dn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,lt(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function mL(e,t,r,n){var a=gg(r-e),i,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Ho(a-Sr/2)?(o=u?"bottom":"top",i="center"):Ho(a-Sr*1.5)?(o=u?"top":"bottom",i="center"):(o="middle",a<Sr*1.5&&a>Sr/2?i=u?"left":"right":i=u?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function _L(e,t,r){if(!xm(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=r[0],f=r[1],h=r[r.length-1],c=r[r.length-2];n===!1?(se(i),se(l)):Wd(i,o)&&(n?(se(o),se(f)):(se(i),se(l))),a===!1?(se(s),se(h)):Wd(u,s)&&(a?(se(u),se(c)):(se(s),se(h)))}}function se(e){e&&(e.ignore=!0)}function Wd(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=gi([]);return hs(a,a,-e.rotation),r.applyTransform(xr([],a,e.getLocalTransform())),n.applyTransform(xr([],a,t.getLocalTransform())),r.intersect(n)}}function Ud(e){return e==="middle"||e==="center"}function Xm(e,t,r,n,a){for(var i=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(Ht(o,o,t),Ht(s,s,t));var f=new yn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ni(f.shape,f.style.lineWidth),f.anid=a+"_"+e[u].tickValue,i.push(f)}return i}function SL(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),u=n.tickDirection*i.get("length"),l=a.getTicksCoords(),f=Xm(l,t.transform,u,Q(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}}function xL(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),u=n*i.get("length"),l=Q(s.getLineStyle(),Q(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Xm(o[f],t.transform,u,l,"minorticks_"+f),c=0;c<h.length;c++)e.add(h[c])}}function wL(e,t,r,n){var a=r.axis,i=Jn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),u=a.getViewLabels(),l=(Jn(n.labelRotate,o.get("rotate"))||0)*Sr/180,f=dn.innerTextLayout(n.rotation,l,n.labelDirection),h=r.getCategories&&r.getCategories(!0),c=[],v=dn.isLabelSilent(r),d=r.get("triggerEvent");return M(u,function(g,p){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,S=o;if(h&&h[y]){var w=h[y];W(w)&&w.textStyle&&(S=new kt(w.textStyle,o,r.ecModel))}var x=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=a.dataToCoord(y),T=new Vt({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:Ar(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:q(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,p):x})});if(T.anid="label_"+y,d){var C=dn.makeAxisEventDataBase(r);C.targetType="axisLabel",C.value=_,C.tickIndex=p,a.type==="category"&&(C.dataIndex=y),lt(T).eventData=C}t.add(T),T.updateTransform(),c.push(T),e.add(T),T.decomposeTransform()}),c}}const qm=dn;function bL(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return TL(r,e,t),r.seriesInvolved&&ML(r,e),r}function TL(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=ci(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(M(s.getAxes(),_t(g,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&M(d.baseAxes,_t(g,v?"cross":!0,c)),v&&M(d.otherAxes,_t(g,"cross",!1))}function g(p,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!p&&!vf(_))){y==null&&(y=_.get("triggerTooltip")),_=p?CL(m,h,a,t,p,y):_;var w=_.get("snap"),x=ci(m.model),b=y||w||m.type==="category",T=e.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:b,snap:w,useHandle:vf(_),seriesModels:[],linkGroup:null};l[x]=T,e.seriesInvolved=e.seriesInvolved||b;var C=DL(i,m);if(C!=null){var A=o[C]||(o[C]={axesInfo:{}});A.axesInfo[x]=T,A.mapper=i[C].mapper,T.linkGroup=A}}}})}function CL(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};M(s,function(c){u[c]=rt(o.get(c))}),u.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),a==="cross"){var f=o.get(["label","show"]);if(l.show=f!=null?f:!0,!i){var h=u.lineStyle=o.get("crossStyle");h&&Q(l,h.textStyle)}}return e.model.getModel("axisPointer",new kt(u,r,n))}function ML(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||M(e.coordSysAxesInfo[ci(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function DL(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(Ju(i[n+"AxisId"],r.id)||Ju(i[n+"AxisIndex"],r.componentIndex)||Ju(i[n+"AxisName"],r.name))return a}}function Ju(e,t){return e==="all"||B(e)&&it(e,t)>=0||e===t}function AL(e){var t=Lh(e);if(!!t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=vf(r);i==null&&(a.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Lh(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ci(e)]}function LL(e){var t=Lh(e);return t&&t.axisPointerModel}function vf(e){return!!e.get(["handle","show"])}function ci(e){return e.type+"||"+e.id}var Yd={},IL=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&AL(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=LL(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Yd[r]=n},t.getAxisPointerClass=function(r){return r&&Yd[r]},t.type="axis",t}(Ye);const Zm=IL;var cf=yt();function PL(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0});if(!!l.length){var f=s.length,h=cf(e).splitAreaColors,c=$(),v=0;if(h)for(var d=0;d<l.length;d++){var g=h.get(l[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=a.toGlobalCoord(l[0].coord),y=o.getAreaStyle();s=B(s)?s:[s];for(var d=1;d<l.length;d++){var m=a.toGlobalCoord(l[d].coord),_=void 0,S=void 0,w=void 0,x=void 0;a.isHorizontal()?(_=p,S=u.y,w=m-_,x=u.height,p=_+w):(_=u.x,S=p,w=u.width,x=m-S,p=S+x);var b=l[d-1].tickValue;b!=null&&c.set(b,v),t.add(new Ct({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:w,height:x},style:Q({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}cf(e).splitAreaColors=c}}}function RL(e){cf(e).splitAreaColors=null}var EL=["axisLine","axisTickLabel","axisName"],OL=["splitArea","splitLine","minorSplitLine"],Km=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new de,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),u=hf(s,r),l=new qm(r,O({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(sf(c[v].getOtherAxis(r.axis).scale))return!0;return!1}},u));M(EL,l.add,l),this._axisGroup.add(l.getGroup()),M(OL,function(h){r.get([h,"show"])&&kL[h](this,this._axisGroup,r,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||wy(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){RL(this)},t.type="cartesianAxis",t}(Zm),kL={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=B(s)?s:[s];for(var u=n.coordinateSystem.getRect(),l=a.isHorizontal(),f=0,h=a.getTicksCoords({tickModel:i}),c=[],v=[],d=o.getLineStyle(),g=0;g<h.length;g++){var p=a.toGlobalCoord(h[g].coord);l?(c[0]=p,c[1]=u.y,v[0]=p,v[1]=u.y+u.height):(c[0]=u.x,c[1]=p,v[0]=u.x+u.width,v[1]=p);var y=f++%s.length,m=h[g].tickValue,_=new yn({anid:m!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:Q({stroke:s[y]},d),silent:!0});ni(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),u=a.isHorizontal(),l=a.getMinorTicksCoords();if(!!l.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<l.length;v++)for(var d=0;d<l[v].length;d++){var g=a.toGlobalCoord(l[v][d].coord);u?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var p=new yn({anid:"minor_line_"+l[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});ni(p.shape,c.lineWidth),t.add(p)}},splitArea:function(e,t,r,n){PL(e,t,r,n)}},Qm=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(Km),BL=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Qm.type,r}return t.type="yAxis",t}(Km),NL=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ct({shape:r.coordinateSystem.getRect(),style:Q({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ye),$d={offset:0};function FL(e){e.registerComponentView(NL),e.registerComponentModel(nL),e.registerCoordinateSystem("cartesian2d",yL),kd(e,"x",lf,$d),kd(e,"y",lf,$d),e.registerComponentView(Qm),e.registerComponentView(BL),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var en=yt(),Xd=rt,ju=vt,zL=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,i,t,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new de,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),n.getZr().add(s);else{var c=_t(qd,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}Kd(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var u=Lh(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=en(t).pointerEl=new lb[i.type](Xd(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=en(t).labelEl=new Vt(Xd(r.label));t.add(i),Zd(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=en(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=en(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),Zd(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Qf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Hp(l.event)},onmousedown:ju(this._onHandleDragMove,this,0,0),drift:ju(this._onHandleDragMove,this),ondragend:ju(this._onHandleDragEnd,this)}),n.add(a)),Kd(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=i.get("size");B(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,x0(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){qd(this._axisPointerModel,!r&&this._moveAnimation,this._handle,tl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform(tl(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(tl(a)),en(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Zl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function qd(e,t,r,n){Jm(en(r).lastProp,n)||(en(r).lastProp=n,t?te(r,n,e):(r.stopAnimation(),r.attr(n)))}function Jm(e,t){if(W(e)&&W(t)){var r=!0;return M(t,function(n,a){r=r&&Jm(e[a],n)}),!!r}else return e===t}function Zd(e,t){e[t.get(["label","show"])?"show":"hide"]()}function tl(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Kd(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const GL=zL;function HL(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function VL(e,t,r,n,a){var i=r.get("value"),o=jm(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=bi(s.get("padding")||0),l=s.getFont(),f=Ef(o,l),h=a.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=a.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=a.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),WL(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Ar(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function WL(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function jm(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:Mh(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?i=o.replace("{value}",i):q(o)&&(i=o(s))}return i}function t_(e,t,r){var n=gn();return hs(n,n,r.rotation),ko(n,n,r.position),Kf([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function UL(e,t,r,n,a,i){var o=qm.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),VL(t,n,a,i,{position:t_(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function YL(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function $L(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function $P(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var XL=function(e){N(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,u=s.grid,l=i.get("type"),f=Qd(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=HL(i),v=qL[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=hf(u.model,a);UL(n,r,d,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=hf(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=t_(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Qd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(GL);function Qd(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var qL={line:function(e,t,r){var n=YL([t,r[0]],[t,r[1]],Jd(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:$L([t-n/2,r[0]],[n,a],Jd(e))}}};function Jd(e){return e.dim==="x"?0:1}const ZL=XL;var KL=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(dt);const QL=KL;var tr=yt(),JL=M;function e_(e,t,r){if(!j.node){var n=t.getZr();tr(n).records||(tr(n).records={}),jL(n,t);var a=tr(n).records[e]||(tr(n).records[e]={});a.handler=r}}function jL(e,t){if(tr(e).initialized)return;tr(e).initialized=!0,r("click",_t(jd,"click")),r("mousemove",_t(jd,"mousemove")),r("globalout",e2);function r(n,a){e.on(n,function(i){var o=r2(t);JL(tr(e).records,function(s){s&&a(s,i,o.dispatchAction)}),t2(o.pendings,t)})}}function t2(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function e2(e,t,r){e.handler("leave",null,r)}function jd(e,t,r,n){t.handler(e,r,n)}function r2(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function df(e,t){if(!j.node){var r=t.getZr(),n=(tr(r).records||{})[e];n&&(tr(r).records[e]=null)}}var n2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";e_("axisPointer",a,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,n){df("axisPointer",n)},t.prototype.dispose=function(r,n){df("axisPointer",n)},t.type="axisPointer",t}(Ye);const a2=n2;function r_(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Si(i,e);if(o==null||o<0||B(o))return{point:[]};var s=i.getItemGraphicEl(o),u=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=i.mapDimension(c),g=[];g[v]=i.get(d,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(i.getValues(G(u.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var tp=yt();function i2(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||vt(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Po(a)&&(a=r_({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var u=Po(a),l=i.axesInfo,f=s.axesInfo,h=n==="leave"||Po(a),c={},v={},d={list:[],map:{}},g={showPointer:_t(s2,v),showTooltip:_t(u2,d)};M(s.coordSysMap,function(y,m){var _=u||y.containPoint(a);M(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=v2(l,S);if(!h&&_&&(!l||b)){var T=b&&b.value;T==null&&!u&&(T=x.pointToData(a)),T!=null&&ep(S,T,g,!1,c)}})});var p={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,w){var x=v[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,rp(S),rp(y)))),p[y.key]=b}})}),M(p,function(y,m){ep(f[m],y,g,!0,c)}),l2(v,f,c),f2(d,a,e,o),h2(f,o,r),c}}function ep(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=o2(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&a.seriesIndex==null&&O(a,s[0]),!n&&e.snap&&i.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function o2(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,a=h,i.length=0),M(c,function(p){i.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function s2(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function u2(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var u=t.coordSys.model,l=ci(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function l2(e,t,r){var n=r.axesInfo=[];M(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function f2(e,t,r,n){if(Po(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function h2(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=tp(n)[a]||{},o=tp(n)[a]={};M(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(i,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!i[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function v2(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function rp(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Po(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function n_(e){Zm.registerAxisPointerClass("CartesianAxisPointer",ZL),e.registerComponentModel(QL),e.registerComponentView(a2),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!B(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=bL(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},i2)}function XP(e){_n(FL),_n(n_)}function qP(e,t,r){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=Lr(n,i,a);Qn(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Bb(e,n,i,a)}function c2(e,t){var r=bi(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var d2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(dt);const p2=d2;function a_(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function i_(e){if(!!j.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var o_=i_(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),g2=i_(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function s_(e,t){if(!e)return t;t=Gy(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function y2(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var m2=s_(g2,"transition"),Ih=s_(o_,"transform"),_2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(j.transform3dSupported?"will-change:transform;":"");function S2(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function x2(e,t,r){if(!z(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=oi(t);var i=S2(r),o=Math.max(Math.round(a)*1.5,6),s="",u=Ih+":",l;it(["left","right"],i)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+a,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-h)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function w2(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=j.transformSupported?","+Ih+n:",left"+n+",top"+n),m2+":"+a}function np(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!j.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=j.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Ih+":"+o+";":[["top",0],["left",0],[o_,o]]}function b2(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(u){var l=e.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function T2(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),f=e.getModel("textStyle"),h=m0(e,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&a&&n.push(w2(a,r)),i&&n.push("background-color:"+i),M(["width","color","radius"],function(v){var d="border-"+v,g=Gy(d),p=e.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(b2(f)),h!=null&&n.push("padding:"+bi(h).join("px ")+"px"),n.join(";")+";"}function ap(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&Q_(e,o,document.body,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var C2=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,j.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;ap(this._styleCoord,i,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();le(f,u,!0),l.dispatch("mousemove",u)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=y2(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=_2+T2(t,!this._firstShow,this._longHide)+np(i[0],i[1],!0)+("border-color:"+oi(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(i)&&n.get("trigger")==="item"&&!a_(n)&&(s=x2(n,a,i)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",B(t)||(t=[t]);for(var u=0;u<t.length;u++)Za(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(ap(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=np(n[0],n[1]);M(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",j.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const M2=C2;var D2=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),op(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;W(t)&&et(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Vt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:m0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=ip(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;op(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=cr(i.borderWidth||0),s=ip(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(vt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function cr(e){return Math.max(0,e)}function ip(e){var t=cr(e.shadowBlur||0),r=cr(e.shadowOffsetX||0),n=cr(e.shadowOffsetY||0);return{left:cr(t-r),right:cr(t+r),top:cr(t-n),bottom:cr(t+n)}}function op(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const A2=D2;var L2=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),I2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(j.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=WS(a.get("renderMode"));this._tooltipContent=i==="richText"?new A2(n):new M2(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(r,n,a){if(!(j.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a,this._alwaysShowContent=r.get("alwaysShowContent");var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?x0(this,"_updatePosition",50,"fixRate"):Zl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");e_("itemTooltip",this._api,vt(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||j.node||!a.getDom())){var o=sp(i,a);this._ticket="";var s=i.dataByCoordSys,u=O2(i,n,a);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=L2;f.x=i.x,f.y=i.y,f.update(),lt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var h=r_(i,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(sp(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=La([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(!!i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){this._lastDataByCoordSys=null;var s,u;Na(a,function(l){if(lt(l).dataIndex!=null)return s=l,!0;if(lt(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(r,s,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=vt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=La([n.tooltipOption],i),u=this._renderMode,l=[],f=li("section",{blocks:[],noHeader:!0}),h=[],c=new Lu;M(r,function(m){M(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=jm(w,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),b=li("section",{header:x,noHeader:!be(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,D=C.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Mh(S.axis,{value:w}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",oi(D.color),u);var L=_c(C.formatTooltip(A,!0,null)),I=L.frag;if(I){var P=La([C],i).get("valueFormatter");b.blocks.push(P?O({valueFormatter:P},I):I)}L.text&&h.push(L.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Cc(f,c,u,d,a.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?`
`:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=lt(n),s=o.seriesIndex,u=i.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=r.positionDefault,g=La([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new Lu;y.marker=m.makeTooltipMarker("item",oi(y.color),v);var _=_c(l.formatTooltip(f,!1,h)),S=g.get("order"),w=g.get("valueFormatter"),x=_.frag,b=x?Cc(w?O({valueFormatter:w},x):x,m,v,S,i.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=lt(n),o=i.tooltipConfig,s=o.option||{};if(z(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&l.push(f),l.push({formatter:s.content});var h=r.positionDefault,c=La(l,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new Lu;this._showOrMove(c,function(){var p=rt(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,r.offsetX,r.offsetY,r.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),g=d.color;if(c)if(z(c)){var p=r.ecModel.get("useUTC"),y=B(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=ws(y.axisValue,v,p)),v=Hy(v,a,!0)}else if(q(c)){var _=vt(function(S,w){S===this._ticket&&(h.setContent(w,f,r,g,u),this._updatePosition(r,u,o,s,h,a,l))},this);this._ticket=i,v=c(a,i,_)}else v=c;h.setContent(v,f,r,g,u),h.show(r,g),this._updatePosition(r,u,o,s,h,a,l)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||B(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!B(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),q(n)&&(n=n([a,i],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),B(n))a=st(n[0],l),i=st(n[1],f);else if(W(n)){var g=n;g.width=h[0],g.height=h[1];var p=Lr(g,{width:l,height:f});a=p.x,i=p.y,c=null,v=null}else if(z(n)&&u){var y=E2(n,d,h,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=P2(a,i,o,l,f,c?null:20,v?null:20);a=y[0],i=y[1]}if(c&&(a-=up(c)?h[0]/2:c==="right"?h[0]:0),v&&(i-=up(v)?h[1]/2:v==="bottom"?h[1]:0),a_(r)){var y=R2(a,i,o,l,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&M(a,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&M(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){j.node||!n.getDom()||(Zl(this,"_updatePosition"),this._tooltipContent.dispose(),df("itemTooltip",n))},t.type="tooltip",t}(Ye);function La(e,t,r){var n=t.ecModel,a;r?(a=new kt(r,n,n),a=new kt(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof kt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(a=new kt(o,a,n)))}return a}function sp(e,t){return e.dispatchAction||vt(t.dispatchAction,t)}function P2(e,t,r,n,a,i,o){var s=r.getSize(),u=s[0],l=s[1];return i!=null&&(e+u+i+2>n?e-=u+i:e+=i),o!=null&&(t+l+o>a?t-=l+o:t+=o),[e,t]}function R2(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function E2(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-a/2,u=t.y+f/2-i/2;break;case"top":s=t.x+l/2-a/2,u=t.y-i-o;break;case"bottom":s=t.x+l/2-a/2,u=t.y+f+o;break;case"left":s=t.x-a-o,u=t.y+f/2-i/2;break;case"right":s=t.x+l+o,u=t.y+f/2-i/2}return[s,u]}function up(e){return e==="center"||e==="middle"}function O2(e,t,r){var n=Ff(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=xi(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=lt(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:a,componentIndex:o.componentIndex,el:u}}}}const k2=I2;function ZP(e){_n(n_),e.registerComponentModel(p2),e.registerComponentView(k2),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gt)}var B2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(dt),N2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=K(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Vt({style:Ar(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new Vt({style:Ar(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){ec(d,"_"+r.get("target"))}),g&&v.on("click",function(){ec(g,"_"+r.get("subtarget"))}),lt(f).eventData=lt(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),c&&i.add(v);var y=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Lr(m,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var w=_.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var b=new Ct({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(Ye);function KP(e){e.registerComponentModel(B2),e.registerComponentView(N2)}var F2=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},z2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),B(n)&&M(n,function(i,o){z(i)&&(i={type:i}),n[o]=at(i,F2(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(s){var u=s.name;a.push(u);var l;if(s.legendVisualProvider){var f=s.legendVisualProvider,h=f.getAllNames();r.isSeriesFiltered(s)||(a=a.concat(h)),h.length?n=n.concat(h):l=!0}else l=!0;l&&Nf(s)&&n.push(s.name)}),this._availableNames=a;var i=this.get("data")||n,o=G(i,function(s){return(z(s)||ft(s))&&(s={name:s}),new kt(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;M(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;M(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;M(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&it(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(dt);const pf=z2;var Nn=_t,gf=M,co=de,G2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new co),this.group.add(this._selectorGroup=new co),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,u,s,l);var f=r.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},c=r.get("padding"),v=Lr(f,h,c),d=this.layoutInner(r,o,v,i,u,l),g=Lr(Q({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=c2(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,u){var l=this.getContentGroup(),f=$(),h=n.get("selectedMode"),c=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),gf(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var p=new co;p.newline=!0,l.add(p);return}var y=a.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,g,d,v,n,r,_,w,S,h,i);x.on("click",Nn(lp,g,null,i,c)).on("mouseover",Nn(yf,y.name,null,i,c)).on("mouseout",Nn(mf,y.name,null,i,c)),f.set(g,!0)}else a.eachRawSeries(function(b){if(!f.get(g)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(g))return;var C=T.indexOfName(g),A=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=Qt(A.fill);L&&L[3]===0&&(L[3]=.2,A=O(O({},A),{fill:Ir(L,"rgba")}));var I=this._createItem(b,g,d,v,n,r,{},A,D,h,i);I.on("click",Nn(lp,null,g,i,c)).on("mouseover",Nn(yf,null,g,i,c)).on("mouseout",Nn(mf,null,g,i,c)),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,u)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();gf(r,function(l){var f=l.type,h=new Vt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);th(h,{normal:c,emphasis:v},{defaultText:l.title}),Bl(h)})},t.prototype._createItem=function(r,n,a,i,o,s,u,l,f,h,c){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=H2(f,i,u,l,v,p,c),w=new co,x=i.getModel("textStyle");if(q(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;w.add(V2({itemWidth:d,itemHeight:g,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),D=n;z(A)&&A?D=A.replace("{name}",n!=null?n:""):q(A)&&(D=A(n));var L=i.get("inactiveColor");w.add(new Vt({style:Ar(x,{text:D,x:T,y:g/2,fill:p?x.getTextColor():L,align:C,verticalAlign:"middle"})}));var I=new Ct({shape:w.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&Jf({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(I),w.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(w),Bl(w),w.__legendDataIndex=a,w},t.prototype.layoutInner=function(r,n,a,i,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Qn(r.get("orient"),u,r.get("itemGap"),a.width,a.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Qn("horizontal",l,r.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ye);function H2(e,t,r,n,a,i,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),gf(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:tf(h,o),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:r).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function V2(e){var t=e.icon||"roundRect",r=gh(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function lp(e,t,r,n){mf(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e!=null?e:t}),yf(e,t,r,n)}function u_(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function yf(e,t,r,n){u_(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function mf(e,t,r,n){u_(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const l_=G2;function W2(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Ia(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();M(s,function(u){var l=u.get("name");if(!(l===`
`||l==="")){var f=o.isSelected(l);n.hasOwnProperty(l)?n[l]=n[l]&&f:n[l]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function U2(e){e.registerAction("legendToggleSelect","legendselectchanged",_t(Ia,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",_t(Ia,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",_t(Ia,"inverseSelect")),e.registerAction("legendSelect","legendselected",_t(Ia,"select")),e.registerAction("legendUnSelect","legendunselected",_t(Ia,"unSelect"))}function f_(e){e.registerComponentModel(pf),e.registerComponentView(l_),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,W2),e.registerSubTypeDefaulter("legend",function(){return"plain"}),U2(e)}var Y2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=Ds(r);e.prototype.init.call(this,r,n,a),fp(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),fp(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Ay(pf.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(pf);function fp(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,jn(t,r,{type:"box",ignoreSize:!!a})}const $2=Y2;var hp=de,el=["width","height"],rl=["x","y"],X2=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new hp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hp)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,u){var l=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=B(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Vt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=Qf(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:vt(l._pageGo,l,y,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=el[l],h=rl[l],c=el[1-l],v=rl[1-l];o&&Qn("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=u.getBoundingRect(),p=[-g.x,-g.y],y=rt(a);o&&(y[f]=a[f]-g[f]-d);var m=this._layoutContentAndController(r,i,y,l,f,c,v,h);if(o){if(s==="end")p[l]+=m[f]+d;else{var _=g[f]+d;p[l]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-l]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Qn(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),Qn("horizontal",c,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>a[o],p=[-v.x,-v.y];n||(p[i]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=K(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var S=r.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=g?a[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-i]),h.__rectSize=a[o],g){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new Ct({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&te(f,{x:b.contentPosition[0],y:b.contentPosition[1]},g?r:null),this._updatePageInfoView(r,b),w},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",c?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;i&&o&&i.setStyle("text",z(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=el[o],u=rl[o],l=this._findTargetItemIndex(n),f=a.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+i||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var b=x.getBoundingRect(),T=b[u]+x[u];return{s:T,e:T+b[s],i:x.__legendDataIndex}}}function w(x,b){return x.e>=b&&x.s<=b+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var u=o.__legendDataIndex;i==null&&u!=null&&(i=s),u===r&&(n=s)}),n!=null?n:i},t.type="legend.scroll",t}(l_);const q2=X2;function Z2(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function K2(e){_n(f_),e.registerComponentModel($2),e.registerComponentView(q2),Z2(e)}function QP(e){_n(f_),_n(K2)}var vp={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Q2=function(){function e(t){var r=this._condVal=z(t)?new RegExp(t):Rp(t)?t:null;if(r==null){var n="";et(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return z(r)?this._condVal.test(t):ft(r)?this._condVal.test(t+""):!1},e}(),J2=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),j2=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),tI=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),eI=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),rI=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function Ph(e,t){if(e===!0||e===!1){var r=new J2;return r.value=e,r}var n="";return h_(e)||et(n),e.and?cp("and",e,t):e.or?cp("or",e,t):e.not?nI(e,t):aI(e,t)}function cp(e,t,r){var n=t[e],a="";B(n)||et(a),n.length||et(a);var i=e==="and"?new j2:new tI;return i.children=G(n,function(o){return Ph(o,r)}),i.children.length||et(a),i}function nI(e,t){var r=e.not,n="";h_(r)||et(n);var a=new eI;return a.child=Ph(r,t),a.child||et(n),a}function aI(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=ct(e),o=e.parser,s=o?o0(o):null,u=0;u<i.length;u++){var l=i[u];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var f=Ve(vp,l)?vp[l]:l,h=e[l],c=s?s(h):h,v=LT(f,c)||f==="reg"&&new Q2(c);v||et(r),a.push(v)}}a.length||et(r);var d=new rI;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function h_(e){return W(e)&&!Bt(e)}var iI=function(){function e(t,r){this._cond=Ph(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function oI(e,t){return new iI(e,t)}var sI={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=oI(e.config,{valueGetterAttrMap:$({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;Ve(s,"dimension")||et(u);var f=t.getDimensionInfo(l);return f||et(u),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},uI={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=gt(r);a.length||et(n);var i=[];M(a,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&et(n),c!=="asc"&&c!=="desc"&&et(n),d&&d!=="min"&&d!=="max"){var g="";et(g)}if(c!=="asc"&&c!=="desc"){var p="";et(p)}var y=t.getDimensionInfo(h);y||et(n);var m=v?o0(v):null;v&&!m&&et(n),i.push({dimIdx:y.index,parser:m,comparator:new u0(c,d)})});var o=t.sourceFormat;o!==Wt&&o!==ge&&et(n);for(var s=[],u=0,l=t.count();u<l;u++)s.push(t.getRawDataItem(u));return s.sort(function(f,h){for(var c=0;c<i.length;c++){var v=i[c],d=t.retrieveValueFromItem(f,v.dimIdx),g=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function JP(e){e.registerTransform(sI),e.registerTransform(uI)}var lI=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new v0(this),bc(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),bc(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:He},t}(dt),fI=function(e){N(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Ye);function jP(e){e.registerComponentModel(lI),e.registerComponentView(fI)}var Be=Dr.CMD;function Un(e,t){return Math.abs(e-t)<1e-5}function _f(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,u=0;function l(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,R,E){Un(I,R)&&Un(P,E)||a.push(I,P,R,E,R,E)}function h(I,P,R,E,U,k){var F=Math.abs(P-I),H=Math.tan(F/4)*4/3,Z=P<I?-1:1,X=Math.cos(I),ht=Math.sin(I),St=Math.cos(P),Lt=Math.sin(P),ie=X*U+R,Ut=ht*k+E,It=St*U+R,bt=Lt*k+E,pt=U*H*Z,Y=k*H*Z;a.push(ie-pt*ht,Ut+Y*X,It+pt*Lt,bt-Y*St,It,bt)}for(var c,v,d,g,p=0;p<r;){var y=t[p++],m=p===1;switch(m&&(i=t[p],o=t[p+1],s=i,u=o,(y===Be.L||y===Be.C||y===Be.Q)&&(a=[s,u])),y){case Be.M:i=s=t[p++],o=u=t[p++],l(s,u);break;case Be.L:c=t[p++],v=t[p++],f(i,o,c,v),i=c,o=v;break;case Be.C:a.push(t[p++],t[p++],t[p++],t[p++],i=t[p++],o=t[p++]);break;case Be.Q:c=t[p++],v=t[p++],d=t[p++],g=t[p++],a.push(i+2/3*(c-i),o+2/3*(v-o),d+2/3*(c-d),g+2/3*(v-g),d,g),i=d,o=g;break;case Be.A:var _=t[p++],S=t[p++],w=t[p++],x=t[p++],b=t[p++],T=t[p++]+b;p+=1;var C=!t[p++];c=Math.cos(b)*w+_,v=Math.sin(b)*x+S,m?(s=c,u=v,l(s,u)):f(i,o,c,v),i=Math.cos(T)*w+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,D=b;C?D>T:D<T;D+=A){var L=C?Math.max(D+A,T):Math.min(D+A,T);h(D,L,_,S,w,x)}break;case Be.R:s=i=t[p++],u=o=t[p++],c=s+t[p++],v=u+t[p++],l(c,u),f(c,u,c,v),f(c,v,s,v),f(s,v,s,u),f(s,u,c,u);break;case Be.Z:a&&f(i,o,s,u),i=s,o=u;break}}return a&&a.length>2&&n.push(a),n}function Sf(e,t,r,n,a,i,o,s,u,l){if(Un(e,r)&&Un(t,n)&&Un(a,o)&&Un(i,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-e,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=r-e,p=n-t,y=a-o,m=i-s,_=g*g+p*p,S=y*y+m*m;if(_<h&&S<h){u.push(o,s);return}var w=c*g+v*p,x=-c*y-v*m,b=_-w*w,T=S-x*x;if(b<h&&w>=0&&T<h&&x>=0){u.push(o,s);return}var C=[],A=[];Tr(e,r,a,o,.5,C),Tr(t,n,i,s,.5,A),Sf(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],u,l),Sf(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],u,l)}function hI(e,t){var r=_f(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],u=i[1];o.push(s,u);for(var l=2;l<i.length;){var f=i[l++],h=i[l++],c=i[l++],v=i[l++],d=i[l++],g=i[l++];Sf(s,u,f,h,c,v,d,g,o,t),s=d,u=g}n.push(o)}return n}function v_(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var u=[],l=0;l<o;l++)u.push(s);var f=o*s,h=r-f;if(h>0)for(var l=0;l<h;l++)u[l%o]+=1;return u}function dp(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),u=s*a,l=a-n,f=u>Math.abs(l),h=v_([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;v<h.length;v++)for(var d=(f?l:s)/h[v],g=0;g<h[v];g++){var p={};f?(p.startAngle=i+c*v,p.endAngle=i+c*(v+1),p.r0=n+d*g,p.r=n+d*(g+1)):(p.startAngle=i+d*g,p.endAngle=i+d*(g+1),p.r0=n+c*v,p.r=n+c*(v+1)),p.clockwise=e.clockwise,p.cx=e.cx,p.cy=e.cy,r.push(p)}}function vI(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=v_([n,a],i?0:1,t),s=i?"width":"height",u=i?"height":"width",l=i?"x":"y",f=i?"y":"x",h=e[s]/o.length,c=0;c<o.length;c++)for(var v=e[u]/o[c],d=0;d<o[c];d++){var g={};g[l]=c*h,g[f]=d*v,g[s]=h,g[u]=v,g.x+=e.x,g.y+=e.y,r.push(g)}}function pp(e,t,r,n){return e*n-r*t}function cI(e,t,r,n,a,i,o,s){var u=r-e,l=n-t,f=o-a,h=s-i,c=pp(f,h,u,l);if(Math.abs(c)<1e-6)return null;var v=e-a,d=t-i,g=pp(v,d,f,h)/c;return g<0||g>1?null:new V(g*u+e,g*l+t)}function dI(e,t,r){var n=new V;V.sub(n,r,t),n.normalize();var a=new V;V.sub(a,e,t);var i=a.dot(n);return i}function Fn(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function pI(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],u=cI(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);u&&a.push({projPt:dI(u,t,r),pt:u,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(p,y){return p.projPt-y.projPt});var l=a[0],f=a[a.length-1];if(f.idx<l.idx){var h=l;l=f,f=h}for(var c=[l.pt.x,l.pt.y],v=[f.pt.x,f.pt.y],d=[c],g=[v],i=l.idx+1;i<=f.idx;i++)Fn(d,e[i].slice());Fn(d,v),Fn(d,c);for(var i=f.idx+1;i<=l.idx+n;i++)Fn(g,e[i%n].slice());return Fn(g,c),Fn(g,v),[{points:d},{points:g}]}function gp(e){var t=e.points,r=[],n=[];Ig(t,r,n);var a=new tt(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,u=a.y,l=new V,f=new V;return i>o?(l.x=f.x=s+i/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+i),pI(t,l,f)}function as(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);as(e,i[0],a,n),as(e,i[1],r-a,n)}return n}function gI(e,t){for(var r=[],n=0;n<t;n++)r.push(Uf(e));return r}function yI(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function mI(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function _I(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":vI(n,t,r),a=Ct;break;case"sector":dp(n,t,r),a=nr;break;case"circle":dp({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=nr;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(hI(e.getUpdatedPathProxy(),o),function(y){return mI(y)}),u=s.length;if(u===0)as(gp,{points:s[0]},t,r);else if(u===t)for(var l=0;l<u;l++)r.push({points:s[l]});else{var f=0,h=G(s,function(y){var m=[],_=[];Ig(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var c=t,l=0;l<u;l++){var v=h[l];if(c<=0)break;var d=l===u-1?c:Math.ceil(v.area/f*t);d<0||(as(gp,{points:v.poly},d,r),c-=d)}}a=$f;break}if(!a)return gI(e,t);for(var g=[],l=0;l<r.length;l++){var p=new a;p.setShape(r[l]),yI(e,p),g.push(p)}return g}function SI(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),u=Math.abs(n-r)/6,l=(s-2)/6,f=Math.ceil(u/l)+1,h=[o[0],o[1]],c=u,v=2;v<s;){var d=o[v-2],g=o[v-1],p=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],w=o[v++];if(c<=0){h.push(p,y,m,_,S,w);continue}for(var x=Math.min(c,f-1)+1,b=1;b<=x;b++){var T=b/x;Tr(d,p,m,S,T,a),Tr(g,y,_,w,T,i),d=a[3],g=i[3],h.push(a[1],i[1],a[2],i[2],d,g),p=a[5],y=i[5],m=a[6],_=i[6]}c-=x-1}return o===e?[h,t]:[e,h]}function yp(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function xI(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var u=e[s],l=t[s],f=void 0,h=void 0;u?l?(r=SI(u,l),f=r[0],h=r[1],n=f,a=h):(h=yp(a||u,u),f=u):(f=yp(n||l,l),h=l),i.push(f),o.push(h)}return[i,o]}function mp(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],u=e[o+1],l=e[i],f=e[i+1],h=s*f-l*u;t+=h,r+=(s+l)*h,n+=(u+f)*h}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function wI(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,u=s-2,l=0;l<a;l++){for(var f=l*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%u+2,d=e[v]-r[0],g=e[v+1]-r[1],p=t[c]-n[0],y=t[c+1]-n[1],m=p-d,_=y-g;h+=m*m+_*_}h<i&&(i=h,o=l)}return o}function bI(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function TI(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],u=t[o],l=mp(s),f=mp(u);i==null&&(i=l[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,g=[],p=s.length;i&&(s=bI(s));for(var y=wI(s,u,l,f)*6,m=p-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-l[0],h[_+3]=s[S+1]-l[1]}if(h[0]=s[y]-l[0],h[1]=s[y+1]-l[1],r>0)for(var w=n/r,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=h[_],D=h[_+1],L=u[_]-f[0],I=u[_+1]-f[1],P=L*T-I*b,R=L*b+I*T;g[_]=P,g[_+1]=R;var E=P-A,U=R-D;C+=E*E+U*U}if(C<d){d=C,v=x;for(var k=0;k<g.length;k++)c[k]=g[k]}}else for(var F=0;F<p;F+=2)c[F]=u[F]-f[0],c[F+1]=u[F+1]-f[1];a.push({from:h,to:c,fromCp:l,toCp:f,rotation:-v})}return a}function is(e){return e.__isCombineMorphing}var c_="__mOriginal_";function os(e,t,r){var n=c_+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var u=arguments,l;return s&&s.apply(this,u),i?l=i.apply(this,u):l=a.apply(this,u),o&&o.apply(this,u),l}}function qa(e,t){var r=c_+t;e[r]&&(e[t]=e[r],e[r]=null)}function _p(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function d_(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=xI(_f(r),_f(n)),i=a[0],o=a[1],s=e.getComputedTransform(),u=t.getComputedTransform();function l(){this.transform=null}s&&_p(i,s),u&&_p(o,u),os(t,"updateTransform",{replace:l}),t.transform=null;var f=TI(i,o,10,Math.PI),h=[];os(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,g=[],p=0;p<f.length;p++){var y=f[p],m=y.from,_=y.to,S=y.rotation*v,w=y.fromCp,x=y.toCp,b=Math.sin(S),T=Math.cos(S);za(g,w,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],D=m[C+1],L=_[C],I=_[C+1],P=A*d+L*v,R=D*d+I*v;h[C]=P*T-R*b+g[0],h[C+1]=P*b+R*T+g[1]}var E=h[0],U=h[1];c.moveTo(E,U);for(var C=2;C<m.length;){var L=h[C++],I=h[C++],k=h[C++],F=h[C++],H=h[C++],Z=h[C++];E===L&&U===I&&k===H&&F===Z?c.lineTo(H,Z):c.bezierCurveTo(L,I,k,F,H,Z),E=H,U=Z}}}})}function Rh(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;d_(e,t),t.__morphT=0;function i(){qa(t,"buildPath"),qa(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Q({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function CI(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,u,l=(1<<o)/2;l>0;l/=2){var f=0,h=0;(e&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(e=l-1-e,t=l-1-t),u=e,e=t,t=u)}return s}function ss(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=G(e,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),r=Math.min(h,r),n=Math.max(f,n),a=Math.max(h,a),[f,h]}),o=G(i,function(s,u){return{cp:s,z:CI(s[0],s[1],t,r,n,a),path:e[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function p_(e){return _I(e.path,e.count)}function xf(){return{fromIndividuals:[],toIndividuals:[],count:0}}function MI(e,t,r){var n=[];function a(w){for(var x=0;x<w.length;x++){var b=w[x];is(b)?a(b.childrenRef()):b instanceof nt&&n.push(b)}}a(e);var i=n.length;if(!i)return xf();var o=r.dividePath||p_,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),xf();n=ss(n),s=ss(s);for(var u=r.done,l=r.during,f=r.individualDelay,h=new mi,c=0;c<i;c++){var v=n[c],d=s[c];d.parent=t,d.copyTransform(h),f||d_(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(w){for(var x=0;x<s.length;x++)s[x].addSelfToZr(w)}os(t,"addSelfToZr",{after:function(w){g(w)}}),os(t,"removeSelfFromZr",{after:function(w){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(w)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,qa(t,"addSelfToZr"),qa(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(p(),u&&u())},c=0;c<y;c++){var S=f?Q({delay:(r.delay||0)+f(c,y,n[c],s[c]),done:_},r):r;Rh(n[c],s[c],S)}else t.__morphT=0,t.animateTo({__morphT:1},Q({during:function(w){for(var x=0;x<y;x++){var b=s[x];b.__morphT=t.__morphT,b.dirtyShape()}l&&l(w)},done:function(){p();for(var w=0;w<e.length;w++)qa(e[w],"updateTransform");u&&u()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function DI(e,t,r){var n=t.length,a=[],i=r.dividePath||p_;function o(v){for(var d=0;d<v.length;d++){var g=v[d];is(g)?o(g.childrenRef()):g instanceof nt&&a.push(g)}}if(is(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var u=0,l=s;l<n;l++)a.push(Uf(a[u++%s]));a.length=n}else{a=i({path:e,count:n});for(var f=e.getComputedTransform(),l=0;l<a.length;l++)a[l].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),xf()}a=ss(a),t=ss(t);for(var h=r.individualDelay,l=0;l<n;l++){var c=h?Q({delay:(r.delay||0)+h(l,n,a[l],t[l])},r):r;Rh(a[l],t[l],c)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function Sp(e){return B(e[0])}function xp(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var u=r[s].many;if(u.length<=1)if(s)s=0;else return r;var i=u.length,l=Math.ceil(i/2);r[a].many=u.slice(l,i),r[s].many=u.slice(0,l),s++}return r}var AI={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=Uf(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function nl(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=_s("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Sp(e)&&(l=e,f=t),Sp(t)&&(l=t,f=e);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,C=m?b:x[0];if(is(T))h({many:[T],one:C},!0,_,S,!0);else{var A=s?Q({delay:s(_,S)},u):u;Rh(T,C,A),i(T,C,T,C,A)}}else for(var D=Q({dividePath:AI[r],individualDelay:s&&function(U,k,F,H){return s(U+_,S)}},u),L=m?MI(x,b,D):DI(b,x,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var A=s?Q({delay:s(E,R)},u):u;i(I[E],P[E],m?x[E]:y.one,m?y.one:x[E],A)}}for(var c=l?l===e:e.length>t.length,v=l?xp(f,l):xp(c?t:e,[c?e:t]),d=0,g=0;g<v.length;g++)d+=v[g].many.length;for(var p=0,g=0;g<v.length;g++)h(v[g],c,p,d),p+=v[g].many.length}function tn(e){if(!e)return[];if(B(e)){for(var t=[],r=0;r<e.length;r++)t.push(tn(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof nt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var g_=1e4,LI=yt();function II(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function wp(e){var t=[];return M(e,function(r){var n=r.data;if(!(n.count()>g_))for(var a=n.getIndices(),i=II(n),o=0;o<a.length;o++)t.push({data:n,dim:r.dim||i,divide:r.divide,dataIndex:o})}),t}function al(e,t,r){e.traverse(function(n){n instanceof nt&&Jt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function il(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function zn(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function PI(e,t,r){var n=_s("update",r,t);n&&e.traverse(function(a){if(a instanceof na){var i=qw(a);i&&a.animateFrom({style:i},n)}})}function RI(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function y_(e,t,r){var n=wp(e),a=wp(t);function i(y,m,_,S,w){(_||y)&&m.animateFrom({style:_&&_!==y?O(O({},_.style),y.style):y.style},w)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),u=o(a),l=!1;function f(y,m){return function(_){var S=_.data,w=_.dataIndex;if(m)return S.getId(w);var x=S.hostModel&&S.hostModel.get("dataGroupId"),b=y?s||u:u||s,T=b&&S.getDimensionInfo(b),C=T&&T.ordinalMeta;if(T){var A=S.get(T.name,w);return C&&C.categories[A]||A+""}var D=S.getRawDataItem(w);return D&&D.groupId?D.groupId+"":x||S.getId(w)}}var h=RI(n,a),c={};if(!h)for(var v=0;v<a.length;v++){var d=a[v],g=d.data.getItemGraphicEl(d.dataIndex);g&&(c[g.id]=!0)}function p(y,m){var _=n[m],S=a[y],w=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),b=S.data.getItemGraphicEl(S.dataIndex);if(x===b){b&&PI(b,S.dataIndex,w);return}x&&c[x.id]||b&&(zn(b),x?(zn(x),il(x),l=!0,nl(tn(x),tn(b),S.divide,w,y,i)):al(b,w,y))}new af(n,a,f(!0,h),f(!1,h),null,"multiple").update(p).updateManyToOne(function(y,m){var _=a[y],S=_.data,w=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),b=wt(G(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==x&&!c[T.id]});x&&(zn(x),b.length?(M(b,function(T){zn(T),il(T)}),l=!0,nl(tn(b),tn(x),_.divide,w,y,i)):al(x,w,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&c[S.id])){var w=wt(G(y,function(b){return a[b].data.getItemGraphicEl(a[b].dataIndex)}),function(b){return b&&b!==S}),x=a[y[0]].data.hostModel;w.length&&(M(w,function(b){return zn(b)}),S?(zn(S),il(S),l=!0,nl(tn(S),tn(w),_.divide,x,y[0],i)):M(w,function(b){return al(b,x,y[0])}))}}).updateManyToMany(function(y,m){new af(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){p(y[_],m[S])}).execute()}).execute(),l&&M(t,function(y){var m=y.data,_=m.hostModel,S=_&&r.getViewOfSeriesModel(_),w=_s("update",_,0);S&&_.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(x){x instanceof nt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function bp(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function Tp(e){return B(e)?e.sort().join(","):e}function dr(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function EI(e,t){var r=$(),n=$(),a=$();return M(e.oldSeries,function(i,o){var s=e.oldData[o],u=bp(i),l=Tp(u);n.set(l,s),B(u)&&M(u,function(f){a.set(f,{data:s,key:l})})}),M(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=bp(i),u=Tp(s),l=n.get(u);if(l)r.set(u,{oldSeries:[{divide:dr(l),data:l}],newSeries:[{divide:dr(o),data:o}]});else if(B(s)){var f=[];M(s,function(v){var d=n.get(v);d&&f.push({divide:dr(d),data:d})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{data:o,divide:dr(o)}]})}else{var h=a.get(s);if(h){var c=r.get(h.key);c||(c={oldSeries:[{data:h.data,divide:dr(h.data)}],newSeries:[]},r.set(h.key,c)),c.newSeries.push({data:o,divide:dr(o)})}}}}),r}function Cp(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function OI(e,t,r,n){var a=[],i=[];M(gt(e.from),function(o){var s=Cp(t.oldSeries,o);s>=0&&a.push({data:t.oldData[s],divide:dr(t.oldData[s]),dim:o.dimension})}),M(gt(e.to),function(o){var s=Cp(r.updatedSeries,o);if(s>=0){var u=r.updatedSeries[s].getData();i.push({data:u,divide:dr(u),dim:o.dimension})}}),a.length>0&&i.length>0&&y_(a,i,n)}function tR(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){M(gt(n.seriesTransition),function(a){M(gt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Lo]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=LI(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(gt(i),function(c){OI(c,a,n,r)});else{var o=EI(a,n);M(o.keys(),function(c){var v=o.get(c);y_(v.oldSeries,v.newSeries,r)})}M(n.updatedSeries,function(c){c[Lo]&&(c[Lo]=!1)})}for(var s=t.getSeries(),u=a.oldSeries=[],l=a.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<g_&&(u.push(s[f]),l.push(h))}})}function Mp(e,t,r){var n=er.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var kI=function(e){N(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||zo,typeof r=="string"?o=Mp(r,n,a):W(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(Df(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Mp("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new tt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new tt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,x=0,b=0;b<o.length;++b){var T=o[b];if(T.intersect(m)){var C=new tt(0,0,0,0);C.copy(T),C.union(m),o[b]=C,S=!0;break}else if(u){l.copy(m),l.union(T);var A=m.width*m.height,D=T.width*T.height,L=l.width*l.height,I=L-A-D;I<w&&(w=I,x=b)}}if(u&&(o[x].union(m),S=!0),!S){var _=new tt(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(a,i,!0,!0),d=c.__isRendered&&(c.__dirty&ne||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&ne||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c.shouldBePainted(a,i,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,u=i.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,u/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;di(n)?(_=n.__canvasGradient||Jl(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_):Pp(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=jl(o,n,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!a||l?d(0,0,s,u):a.length&&M(a,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}($e);const ol=kI;var Dp=1e5,Jr=314159,po=.01,BI=.001;function NI(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function FI(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var zI=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=O({},n||{}),this.dpr=n.devicePixelRatio||zo,this._singleCanvas=i,this.root=t;var o=t.style;o&&(Df(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(i){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new ol(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Jr]=v,v.zlevel=Jr,s.push(Jr),this._domRoot=t}else{this._width=Qi(t,0,n),this._height=Qi(t,1,n);var l=this._domRoot=FI(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=i===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Dp)),i||(i=n.ctx,i.save()),sn(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Dp)},e.prototype.paintOne=function(t,r){R0(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;cl(function(){u._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Jr).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var f=!0,h=!1,c=function(g){var p=i[g],y=p.ctx,m=o&&p.createRepaintRects(t,r,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,S=!n&&p.incremental&&Date.now,w=S&&Date.now(),x=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,x,m);else if(_===p.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&p.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<p.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=!0),a._doPaintEl(R,p,o,I,P,T===p.__endIndex-1),S){var E=Date.now()-w;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var A=v.dpr,D=0;D<m.length;++D){var L=m[D];y.save(),y.beginPath(),y.rect(L.x*A,L.y*A,L.width*A,L.height*A),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<i.length;d++)c(d);return j.wxa&&M(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var u=t.getPaintRect();(!a||u&&u.intersect(a))&&(sn(s,t,i,o),t.setPrevPaintRect(u))}else sn(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Jr);var n=this._layers[t];return n||(n=new ol("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?at(n,this._layerConfig[t],!0):this._layerConfig[t-po]&&at(n,this._layerConfig[t-po],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&!!NI(r)){if(i>0&&t>a[0]){for(u=0;u<i-1&&!(a[u]<t&&a[u+1]>t);u++);s=n[a[u]]}if(a.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,u;for(u=0;u<t.length;u++){var a=t[u],l=a.zlevel,f=void 0;s!==l&&(s=l,o=0),a.incremental?(f=this.getLayer(l+BI,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?po:0),this._needsManuallyCompositing),f.__builtin__||ls("ZLevel "+l+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),i=f),a.__dirty&ne&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?at(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+po){var o=this._layers[i];at(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];!a||(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(it(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=Qi(i,0,a),r=Qi(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Jr).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Jr].dom;var r=new ol("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,a,i):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];sn(n,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const GI=zI;function eR(e){e.registerPainter("canvas",GI)}export{nr as $,GD as A,yg as B,lP as C,fP as D,DS as E,Mr as F,ws as G,Zw as H,Qw as I,Zf as J,_y as K,jw as L,kt as M,xy as N,Qf as O,te as P,Jt as Q,rb as R,ib as S,ob as T,Ie as U,Jw as V,de as W,aa as X,Yf as Y,Vt as Z,ny as _,BD as a,J0 as a$,sy as a0,$f as a1,ms as a2,Ct as a3,yn as a4,cy as a5,Xf as a6,Xw as a7,Fw as a8,Hw as a9,at as aA,dt as aB,Ye as aC,mn as aD,vn as aE,Iy as aF,DP as aG,AP as aH,wM as aI,LP as aJ,IP as aK,AM as aL,PP as aM,RP as aN,q0 as aO,EP as aP,Z0 as aQ,K0 as aR,Q0 as aS,LM as aT,IM as aU,Sh as aV,sa as aW,PM as aX,OP as aY,RM as aZ,wn as a_,Ww as aa,tt as ab,zy as ac,Gy as ad,bi as ae,re as af,Hy as ag,Ob as ah,_P as ai,SP as aj,nx as ak,G as al,M as am,it as an,Ip as ao,rr as ap,wt as aq,vt as ar,_t as as,B as at,z as au,W as av,q as aw,O as ax,Q as ay,rt as az,Ar as b,lb as b$,kP as b0,EM as b1,BP as b2,OM as b3,NP as b4,ph as b5,_n as b6,L_ as b7,VP as b8,j as b9,yA as bA,qg as bB,yy as bC,MP as bD,jf as bE,ft as bF,Vu as bG,Dr as bH,Qp as bI,nt as bJ,At as bK,oi as bL,Zg as bM,Si as bN,gP as bO,mA as bP,US as bQ,wi as bR,Ue as bS,zm as bT,_A as bU,SA as bV,og as bW,_0 as bX,TA as bY,FL as bZ,B_ as b_,nA as ba,R0 as bb,iP as bc,UI as bd,VI as be,HI as bf,YI as bg,am as bh,KP as bi,QP as bj,ZP as bk,XP as bl,jP as bm,JP as bn,UP as bo,WP as bp,tR as bq,eR as br,YP as bs,N as bt,Rl as bu,El as bv,my as bw,Cy as bx,YC as by,th as bz,om as c,Nl as c$,JA as c0,KA as c1,QT as c2,li as c3,sL as c4,qm as c5,st as c6,Ti as c7,dL as c8,WA as c9,Wb as cA,mi as cB,Ht as cC,Pf as cD,ra as cE,F_ as cF,K as cG,Te as cH,O_ as cI,Jn as cJ,pr as cK,gr as cL,Dl as cM,Na as cN,PC as cO,Ig as cP,kp as cQ,ps as cR,De as cS,wh as cT,TP as cU,gt as cV,Bb as cW,xP as cX,ri as cY,af as cZ,ec as c_,Gt as ca,WI as cb,Hp as cc,$e as cd,ct as ce,Ve as cf,Pl as cg,_w as ch,be as ci,xr as cj,hs as ck,Vp as cl,ko as cm,gn as cn,$ as co,Ae as cp,HP as cq,YD as cr,yt as cs,xs as ct,na as cu,rw as cv,tf as cw,Jf as cx,yP as cy,qx as cz,Lr as d,_s as d$,Kg as d0,fw as d1,Mf as d2,ig as d3,Ir as d4,Qt as d5,hP as d6,B1 as d7,N1 as d8,Yn as d9,Kf as dA,nb as dB,wy as dC,kd as dD,pP as dE,FM as dF,Vb as dG,Wt as dH,et as dI,xA as dJ,eb as dK,l1 as dL,Oo as dM,$h as dN,An as dO,xx as dP,er as dQ,Ay as dR,wd as dS,pD as dT,gD as dU,vo as dV,Vo as dW,gl as dX,ti as dY,_o as dZ,Bt as d_,Bp as da,Fp as db,go as dc,Sn as dd,Np as de,Af as df,z_ as dg,G_ as dh,No as di,Et as dj,un as dk,As as dl,JT as dm,mx as dn,Xx as dp,cb as dq,db as dr,bd as ds,V as dt,Em as du,Om as dv,Uo as dw,Ka as dx,x0 as dy,Zl as dz,tD as e,Of as e$,$v as e0,zP as e1,vb as e2,HL as e3,VL as e4,GL as e5,YL as e6,$P as e7,Ef as e8,wm as e9,LC as eA,CP as eB,cd as eC,sb as eD,_i as eE,TT as eF,Cr as eG,MD as eH,fm as eI,Ao as eJ,nw as eK,Wg as eL,IC as eM,Ql as eN,cP as eO,Qn as eP,XI as eQ,$I as eR,L0 as eS,Rg as eT,rg as eU,sS as eV,nP as eW,rP as eX,eP as eY,pn as eZ,KI as e_,Zm as ea,n_ as eb,RL as ec,ni as ed,PL as ee,UL as ef,t_ as eg,$L as eh,Ds as ei,wP as ej,jn as ek,mP as el,Ab as em,RS as en,Nb as eo,kb as ep,dP as eq,GP as er,OD as es,qP as et,c2 as eu,Za as ev,i1 as ew,nu as ex,bP as ey,vP as ez,lt as f,ZI as f0,Yx as f1,Ux as f2,b_ as f3,tP as f4,jI as f5,qI as f6,QI as f7,JI as f8,H1 as f9,V1 as fa,Zh as fb,z1 as fc,Mg as fd,Qi as fe,aP as ff,rD as g,FP as h,im as i,gh as j,Bl as k,Ml as l,Le as m,fd as n,oP as o,je as p,wS as q,Tt as r,bS as s,sP as t,uP as u,gg as v,Ho as w,We as x,MS as y,Bf as z};