import{d as Jr,am as oo,an as RS,r as Ke,a as Da,ao as kS,ap as ES,q as tr,o as Lt,b as er,t as Qe,aq as Mh,ar as OS,M as Ih,as as NS,at as BS,u as FS,p as zS,n as VS,$ as W,au as GS,c as Ee,w as Mt,f as ut,e as Bt,P as HS,v as WS,h as qe,a2 as ds,a4 as bi,F as Xs,x as jv,g as Jv,aj as US,m as lf,_ as YS,B as XS,G as $S,ak as Im,av as ZS,l as Lh,L as Ph,aw as qS,ab as KS,ax as QS,H as jS}from"./index-BlU6DPnP.js";import{f as JS,a as tx,b as ex,c as rx}from"./dashboard-BeDoY5ze.js";import{_ as nx}from"./Progress-C5rNsouW.js";import{r as ax,s as ix,c as Lm,d as Pm,_ as ox,b as sx}from"./Grid-Cpsk88_v.js";import{_ as lx}from"./datetime-range.vue_vue_type_script_setup_true_lang-BvDNPTrA.js";const ux=Jr({name:"RadioButton",props:ax,setup:ix,render(){const{mergedClsPrefix:r}=this;return oo("label",{class:[`${r}-radio-button`,this.mergedDisabled&&`${r}-radio-button--disabled`,this.renderSafeChecked&&`${r}-radio-button--checked`,this.focus&&[`${r}-radio-button--focus`]]},oo("input",{ref:"inputRef",type:"radio",class:`${r}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),oo("div",{class:`${r}-radio-button__state-border`}),RS(this.$slots.default,t=>!t&&!this.label?null:oo("div",{ref:"labelRef",class:`${r}-radio__label`},t||this.label)))}}),fx=Jr({name:"CountTo",__name:"count-to",props:{startValue:{default:0},endValue:{default:2021},duration:{default:1500},autoplay:{type:Boolean,default:!0},decimals:{default:0},prefix:{default:""},suffix:{default:""},separator:{default:","},decimal:{default:"."},useEasing:{type:Boolean,default:!0},transition:{default:"linear"}},setup(r){const t=r,e=Ke(t.startValue),n=Da(()=>t.useEasing?kS[t.transition]:void 0),a=ES(e,{disabled:!1,duration:t.duration,transition:n.value}),i=Da(()=>o(a.value));function o(l){const{decimals:u,decimal:f,separator:h,suffix:c,prefix:v}=t;let d=l.toFixed(u);d=String(d);const g=d.split(".");let p=g[0];const m=g.length>1?f+g[1]:"",y=/(\d+)(\d{3})/;if(h)for(;y.test(p);)p=p.replace(y,`$1${h}$2`);return v+p+m+c}async function s(){await Mh(),e.value=t.endValue}return tr([()=>t.startValue,()=>t.endValue],()=>{t.autoplay&&s()},{immediate:!0}),(l,u)=>(Lt(),er("span",null,Qe(i.value),1))}});/*! *****************************************************************************
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 uf=function(r,t){return uf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},uf(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uf(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var hx=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vx=function(){function r(){this.browser=new hx,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),tt=new vx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(tt.wxa=!0,tt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?tt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(tt.node=!0,tt.svgSupported=!0):cx(navigator.userAgent,tt);function cx(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var Rh=12,dx="sans-serif",kn=Rh+"px "+dx,px=20,gx=100,mx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yx(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-px)/gx;t[n]=a}return t}var _x=yx(mx),Na={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=Na.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||kn),r.measureText(e);e=e||"",n=n||kn;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||Rh,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=_x[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},Rm=Xr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),km=Xr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Ba=Object.prototype.toString,$s=Array.prototype,Sx=$s.forEach,xx=$s.filter,kh=$s.slice,bx=$s.map,tc=(function(){}).constructor,so=tc?tc.prototype:null,Eh="__proto__",Tx=2311;function Em(){return Tx++}function Oh(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function et(r){if(r==null||typeof r!="object")return r;var t=r,e=Ba.call(r);if(e==="[object Array]"){if(!Ci(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=et(r[n])}}else if(km[e]){if(!Ci(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!Rm[e]&&!Ci(r)&&!Aa(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Eh&&(t[o]=et(r[o]))}return t}function nt(r,t,e){if(!X(t)||!X(r))return e?et(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Eh){var a=r[n],i=t[n];X(i)&&X(a)&&!V(i)&&!V(a)&&!Aa(i)&&!Aa(a)&&!ec(i)&&!ec(a)&&!Ci(i)&&!Ci(a)?nt(a,i,e):(e||!(n in r))&&(r[n]=et(t[n]))}return r}function F(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Eh&&(r[e]=t[e]);return r}function j(r,t,e){for(var n=xt(t),a=0;a<n.length;a++){var i=n[a];r[i]==null&&(r[i]=t[i])}return r}function lt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Cx(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function ze(r,t,e){if(r="prototype"in r?r.prototype:r,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[i]==null&&(r[i]=t[i])}else j(r,t)}function te(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Sx)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function G(r,t,e){if(!r)return[];if(!t)return Nh(r);if(r.map&&r.map===bx)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function Xr(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function Rt(r,t,e){if(!r)return[];if(!t)return Nh(r);if(r.filter&&r.filter===xx)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function Dx(r,t,e){if(r&&t){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function xt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function Ax(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(kh.call(arguments)))}}var mt=so&&K(so.bind)?so.call.bind(so.bind):Ax;function ct(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(kh.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):Ba.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function U(r){return typeof r=="string"}function ff(r){return Ba.call(r)==="[object String]"}function dt(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function ec(r){return!!Rm[Ba.call(r)]}function ue(r){return!!km[Ba.call(r)]}function Aa(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Zs(r){return r.colorStops!=null}function Mx(r){return r.image!=null}function Ix(r){return Ba.call(r)==="[object RegExp]"}function ps(r){return r!==r}function Ma(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function at(r,t){return r??t}function Ti(r,t,e){return r??t??e}function Nh(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return kh.apply(r,t)}function Om(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function sr(r,t){if(!r)throw new Error(t)}function rr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Nm="__ec_primitive__";function gs(r){r[Nm]=!0}function Ci(r){return r[Nm]}var Lx=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return xt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),Bm=typeof Map=="function";function Px(){return Bm?new Map:new Lx}var Rx=function(){function r(t){var e=V(t);this.data=Px();var n=this;t instanceof r?t.each(a):t&&M(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return Bm?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function q(r){return new Rx(r)}function kx(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function qs(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&F(e,t),e}function Fm(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function br(r,t){return r.hasOwnProperty(t)}function Jt(){}var Ex=180/Math.PI;function Fa(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Ox(r){return[r[0],r[1]]}function rc(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Nx(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Bx(r){return Math.sqrt(Fx(r))}function Fx(r){return r[0]*r[0]+r[1]*r[1]}function Rl(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function zx(r,t){var e=Bx(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function hf(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var vf=hf;function Vx(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ga=Vx;function Jo(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function be(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function fa(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function ha(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Un=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),Gx=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Un(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new Un(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Un(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Un(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Un(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Un(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Ve=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];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,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),Hx=Math.log(2);function cf(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/Hx);return r[e][l]}for(var u=n|1<<e,f=e+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)*r[e][c]*cf(r,t-1,f,u,a|d,i),v++)}return i[o]=h,h}function nc(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},a=cf(e,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)*cf(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var ac="___zrEVENTSAVED",kl=[];function Wx(r,t,e,n,a){return df(kl,t,n,a,!0)&&df(r,e,kl[0],kl[1])}function df(r,t,e,n,a){if(t.getBoundingClientRect&&tt.domSupported&&!zm(t)){var i=t[ac]||(t[ac]={}),o=Ux(t,i),s=Yx(o,i,a);if(s)return s(r,e,n),!0}return!1}function Ux(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Yx(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&i&&c===i[h]&&v===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?nc(s,o):nc(o,s))}function zm(r){return r.nodeName.toUpperCase()==="CANVAS"}var Xx=/([&<>"'])/g,$x={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function he(r){return r==null?"":(r+"").replace(Xx,function(t,e){return $x[e]})}var Zx=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,El=[],qx=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function pf(r,t,e,n){return e=e||{},n?ic(r,t,e):qx&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):ic(r,t,e),e}function ic(r,t,e){if(tt.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(zm(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(df(El,r,n,a)){e.zrX=El[0],e.zrY=El[1];return}}e.zrX=e.zrY=0}function Bh(r){return r||window.event}function me(r,t,e){if(t=Bh(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&&pf(r,o,t,e)}else{pf(r,t,t,e);var i=Kx(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Zx.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Kx(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function gf(r,t,e,n){r.addEventListener(t,e,n)}function Qx(r,t,e,n){r.removeEventListener(t,e,n)}var Vm=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},jx=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=pf(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Ol)if(Ol.hasOwnProperty(e)){var n=Ol[e](this._track,t);if(n)return n}},r}();function oc(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Jx(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ol={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=oc(n)/oc(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Jx(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ma(){return[1,0,0,1,0,0]}function Fh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function tw(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ya(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function mf(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function zh(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=a*h+s*f,r[1]=-a*f+s*h,r[2]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function ew(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Ks(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}var $=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),lo=Math.min,uo=Math.max,en=new $,rn=new $,nn=new $,an=new $,Xa=new $,$a=new $,ft=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=lo(t.x,this.x),n=lo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=uo(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=uo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=ma();return mf(i,i,[-e.x,-e.y]),ew(i,i,[n,a]),mf(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(i<l||u<a||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(i-l),p=Math.abs(u-a),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(g,p),S=Math.min(m,y);i<l||u<a?_>d&&(d=_,g<p?$.set($a,-g,0):$.set($a,p,0)):_<v&&(v=_,g<p?$.set(Xa,g,0):$.set(Xa,-p,0)),s<f||h<o?S>d&&(d=S,m<y?$.set($a,0,-m):$.set($a,0,y)):_<v&&(v=_,m<y?$.set(Xa,0,m):$.set(Xa,0,-y))}return e&&$.copy(e,c?Xa:$a),c},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);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=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.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}en.x=nn.x=e.x,en.y=an.y=e.y,rn.x=an.x=e.x+e.width,rn.y=nn.y=e.y+e.height,en.transform(n),an.transform(n),rn.transform(n),nn.transform(n),t.x=lo(en.x,rn.x,nn.x,an.x),t.y=lo(en.y,rn.y,nn.y,an.y);var l=uo(en.x,rn.x,nn.x,an.x),u=uo(en.y,rn.y,nn.y,an.y);t.width=l-t.x,t.height=u-t.y},r}(),Gm="silent";function rw(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:nw}}function nw(){Vm(this.event)}var aw=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ve),Za=function(){function r(t,e){this.x=t,this.y=e}return r}(),iw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Nl=new ft(0,0,0,0),Hm=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Za(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new aw,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Gx(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(iw,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=Wm(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Za(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Za(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];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(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=rw(n,e,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(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),o=new Za(e,n);if(sc(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ft(e-u,n-u,l,l),h=i.length-1;h>=0;h--){var c=i[h];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Nl.copy(c.getBoundingRect()),c.transform&&Nl.applyTransform(c.transform),Nl.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var m=0;m<g;m+=d){var y=e+p*Math.cos(m),_=n+p*Math.sin(m);if(sc(s,o,y,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new jx);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Za;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Ve);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Hm.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=Wm(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||vf(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function ow(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?Gm:!0}return!1}function sc(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=ow(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==Gm)){t.target=o;break}}}function Wm(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Um=32,qa=7;function sw(r){for(var t=0;r>=Um;)t|=r&1,r>>=1;return r+t}function lc(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;lw(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function lw(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function uc(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Bl(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function Fl(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function uw(r,t){var e=qa,n,a,i=0,o=[];n=[],a=[];function s(v,d){n[i]=v,a[i]=d,i+=1}function l(){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 u(){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],m=a[v+1];a[v]=g+m,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var y=Fl(r[p],r,d,g,0,t);d+=y,g-=y,g!==0&&(m=Bl(r[d+g-1],r,p,m,m-1,t),m!==0&&(g<=m?h(d,g,p,m):c(d,g,p,m)))}function h(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=r[v+m];var y=0,_=g,S=v;if(r[S++]=r[_++],--p===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)r[S+m]=r[_+m];r[S+p]=o[y];return}for(var w=e,x,b,T;;){x=0,b=0,T=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],b++,x=0,--p===0){T=!0;break}}else if(r[S++]=o[y++],x++,b=0,--d===1){T=!0;break}while((x|b)<w);if(T)break;do{if(x=Fl(r[_],o,y,d,0,t),x!==0){for(m=0;m<x;m++)r[S+m]=o[y+m];if(S+=x,y+=x,d-=x,d<=1){T=!0;break}}if(r[S++]=r[_++],--p===0){T=!0;break}if(b=Bl(o[y],r,_,p,0,t),b!==0){for(m=0;m<b;m++)r[S+m]=r[_+m];if(S+=b,_+=b,p-=b,p===0){T=!0;break}}if(r[S++]=o[y++],--d===1){T=!0;break}w--}while(x>=qa||b>=qa);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(m=0;m<p;m++)r[S+m]=r[_+m];r[S+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function c(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=r[g+m];var y=v+d-1,_=p-1,S=g+p-1,w=0,x=0;if(r[S--]=r[y--],--d===0){for(w=S-(p-1),m=0;m<p;m++)r[w+m]=o[m];return}if(p===1){for(S-=d,y-=d,x=S+1,w=y+1,m=d-1;m>=0;m--)r[x+m]=r[w+m];r[S]=o[_];return}for(var b=e;;){var T=0,C=0,D=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],T++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){D=!0;break}while((T|C)<b);if(D)break;do{if(T=d-Fl(o[_],r,v,d,d-1,t),T!==0){for(S-=T,y-=T,d-=T,x=S+1,w=y+1,m=T-1;m>=0;m--)r[x+m]=r[w+m];if(d===0){D=!0;break}}if(r[S--]=o[_--],--p===1){D=!0;break}if(C=p-Bl(r[y],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,x=S+1,w=_+1,m=0;m<C;m++)r[x+m]=o[w+m];if(p<=1){D=!0;break}}if(r[S--]=r[y--],--d===0){D=!0;break}b--}while(T>=qa||C>=qa);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(S-=d,y-=d,x=S+1,w=y+1,m=d-1;m>=0;m--)r[x+m]=r[w+m];r[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),m=0;m<p;m++)r[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ts(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<Um){i=lc(r,e,n,t),uc(r,e,n,e+i,t);return}var o=uw(r,t),s=sw(a);do{if(i=lc(r,e,n,t),i<s){var l=a;l>s&&(l=s),uc(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var ve=1,pi=2,sa=4,fc=!1;function zl(){fc||(fc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var fw=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hc}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,ts(n,hc)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=ve),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(zl(),f.z=0),isNaN(f.z2)&&(zl(),f.z2=0),isNaN(f.zlevel)&&(zl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var a=lt(this._roots,t);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),ms;ms=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Di={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Di.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Di.bounceIn(r*2)*.5:Di.bounceOut(r*2-1)*.5+.5}},fo=Math.pow,Wr=Math.sqrt,ys=1e-8,Ym=1e-4,vc=Wr(3),ho=1/3,je=Fa(),Se=Fa(),_a=Fa();function Gr(r){return r>-ys&&r<ys}function Xm(r){return r>ys||r<-ys}function Ft(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function cc(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function _s(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Gr(f)&&Gr(h))if(Gr(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var g=h*h-4*f*c;if(Gr(g)){var p=h/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m)}else if(g>0){var y=Wr(g),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-fo(-_,ho):_=fo(_,ho),S<0?S=-fo(-S,ho):S=fo(S,ho);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),m=(-s+b*(T+vc*Math.sin(x)))/(3*o),C=(-s+b*(T-vc*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[v++]=d),m>=0&&m<=1&&(i[v++]=m),C>=0&&C<=1&&(i[v++]=C)}}return v}function $m(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Gr(o)){if(Xm(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Gr(f))a[0]=-i/(2*o);else if(f>0){var h=Wr(f),u=(-i+h)/(2*o),c=(-i-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function $r(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=n}function Zm(r,t,e,n,a,i,o,s,l,u,f){var h,c=.005,v=1/0,d,g,p,m;je[0]=l,je[1]=u;for(var y=0;y<1;y+=.05)Se[0]=Ft(r,e,a,o,y),Se[1]=Ft(t,n,i,s,y),p=ga(je,Se),p<v&&(h=y,v=p);v=1/0;for(var _=0;_<32&&!(c<Ym);_++)d=h-c,g=h+c,Se[0]=Ft(r,e,a,o,d),Se[1]=Ft(t,n,i,s,d),p=ga(Se,je),d>=0&&p<v?(h=d,v=p):(_a[0]=Ft(r,e,a,o,g),_a[1]=Ft(t,n,i,s,g),m=ga(_a,je),g<=1&&m<v?(h=g,v=m):c*=.5);return f&&(f[0]=Ft(r,e,a,o,h),f[1]=Ft(t,n,i,s,h)),Wr(v)}function hw(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,g=Ft(r,e,a,o,d),p=Ft(t,n,i,s,d),m=g-u,y=p-f;h+=Math.sqrt(m*m+y*y),u=g,f=p}return h}function Yt(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function dc(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function vw(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Gr(i)){if(Xm(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Gr(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=Wr(f),u=(-o+h)/(2*i),c=(-o-h)/(2*i);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function qm(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ss(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function Km(r,t,e,n,a,i,o,s,l){var u,f=.005,h=1/0;je[0]=o,je[1]=s;for(var c=0;c<1;c+=.05){Se[0]=Yt(r,e,a,c),Se[1]=Yt(t,n,i,c);var v=ga(je,Se);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Ym);d++){var g=u-f,p=u+f;Se[0]=Yt(r,e,a,g),Se[1]=Yt(t,n,i,g);var v=ga(Se,je);if(g>=0&&v<h)u=g,h=v;else{_a[0]=Yt(r,e,a,p),_a[1]=Yt(t,n,i,p);var m=ga(_a,je);p<=1&&m<h?(u=p,h=m):f*=.5}}return l&&(l[0]=Yt(r,e,a,u),l[1]=Yt(t,n,i,u)),Wr(h)}function cw(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Yt(r,e,a,c),d=Yt(t,n,i,c),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var dw=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qm(r){var t=r&&dw.exec(r);if(t){var e=t[1].split(","),n=+rr(e[0]),a=+rr(e[1]),i=+rr(e[2]),o=+rr(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:_s(0,n,i,1,l,s)&&Ft(0,a,o,1,s[0])}}}var pw=function(){function r(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||Jt,this.ondestroy=t.ondestroy||Jt,this.onrestart=t.onrestart||Jt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;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 l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:Di[t]||Qm(t)},r}(),jm=function(){function r(t){this.value=t}return r}(),gw=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new jm(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),eo=function(){function r(t){this._list=new gw,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){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 l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new jm(e),s.key=t,n.insertEntry(s),a[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),pc={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 Ur(r){return r=Math.round(r),r<0?0:r>255?255:r}function yf(r){return r<0?0:r>1?1:r}function Vl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ur(parseFloat(t)/100*255):Ur(parseInt(t,10))}function Ai(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?yf(parseFloat(t)/100):yf(parseFloat(t))}function Gl(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function vo(r,t,e){return r+(t-r)*e}function ge(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function _f(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Jm=new eo(20),co=null;function Yn(r,t){co&&_f(co,t),co=Jm.put(r,co||t.slice())}function xr(r,t){if(r){t=t||[];var e=Jm.get(r);if(e)return _f(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in pc)return _f(t,pc[n]),Yn(r,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)){ge(t,0,0,0,1);return}return ge(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),Yn(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){ge(t,0,0,0,1);return}return ge(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Yn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ge(t,+u[0],+u[1],+u[2],1):ge(t,0,0,0,1);f=Ai(u.pop());case"rgb":if(u.length>=3)return ge(t,Vl(u[0]),Vl(u[1]),Vl(u[2]),u.length===3?f:Ai(u[3])),Yn(r,t),t;ge(t,0,0,0,1);return;case"hsla":if(u.length!==4){ge(t,0,0,0,1);return}return u[3]=Ai(u[3]),gc(u,t),Yn(r,t),t;case"hsl":if(u.length!==3){ge(t,0,0,0,1);return}return gc(u,t),Yn(r,t),t;default:return}}ge(t,0,0,0,1)}}function gc(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Ai(r[1]),a=Ai(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],ge(t,Ur(Gl(o,i,e+1/3)*255),Ur(Gl(o,i,e)*255),Ur(Gl(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function mc(r,t){var e=xr(r);if(e){for(var n=0;n<3;n++)e[n]=e[n]*(1-t)|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Qs(e,e.length===4?"rgba":"rgb")}}function mw(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=xr(t[a]),s=xr(t[i]),l=n-a,u=Qs([Ur(vo(o[0],s[0],l)),Ur(vo(o[1],s[1],l)),Ur(vo(o[2],s[2],l)),yf(vo(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function Qs(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function xs(r,t){var e=xr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var yc=new eo(100);function _c(r){if(U(r)){var t=yc.get(r);return t||(t=mc(r,-.1),yc.put(r,t)),t}else if(Zs(r)){var e=F({},r);return e.colorStops=G(r.colorStops,function(n){return{offset:n.offset,color:mc(n.color,-.1)}}),e}return r}function yw(r){return r.type==="linear"}function _w(r){return r.type==="radial"}(function(){return tt.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Sf=Array.prototype.slice;function gr(r,t,e){return(t-r)*e+r}function Hl(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=gr(t[i],e[i],n);return r}function Sw(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=gr(t[o][s],e[o][s],n)}return r}function po(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function Sc(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function xw(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function ww(r,t,e){var n=r,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 l=i;l<o;l++)n.push(e===1?a[l]:Sf.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function es(r){if(te(r)){var t=r.length;if(te(r[0])){for(var e=[],n=0;n<t;n++)e.push(Sf.call(r[n]));return e}return Sf.call(r)}return r}function rs(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function bw(r){return te(r&&r[0])?2:1}var go=0,ns=1,ty=2,gi=3,xf=4,wf=5,xc=6;function wc(r){return r===xf||r===wf}function mo(r){return r===ns||r===ty}var Ka=[0,0,0,0],Tw=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=xc,l=e;if(te(e)){var u=bw(e);s=u,(u===1&&!dt(e[0])||u===2&&!dt(e[0][0]))&&(o=!0)}else if(dt(e)&&!ps(e))s=go;else if(U(e))if(!isNaN(+e))s=go;else{var f=xr(e);f&&(l=f,s=gi)}else if(Zs(e)){var h=F({},l);h.colorStops=G(e.colorStops,function(v){return{offset:v.offset,color:xr(v.color)}}),yw(e)?s=xf:_w(e)&&(s=wf),l=h}i===0?this.valType=s:(s!==this.valType||s===xc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=K(n)?n:Di[n]||Qm(n)),a.push(c),c},r.prototype.prepare=function(t,e){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,l=mo(a),u=wc(a),f=0;f<i;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==i-1?ww(c,v,a):u&&xw(c.colorStops,v.colorStops))}if(!s&&a!==wf&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<i;f++)a===go?n[f].additiveValue=n[f].value-d:a===gi?n[f].additiveValue=po([],n[f].value,d,-1):mo(a)&&(n[f].additiveValue=a===ns?po([],n[f].value,d,-1):Sc([],n[f].value,d,-1))}},r.prototype.step=function(t,e){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,l=this.propName,u=i===gi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,m=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Ka:t[l];if((mo(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:d.rawValue;else if(mo(i))i===ns?Hl(y,v[a],d[a],m):Sw(y,v[a],d[a],m);else if(wc(i)){var _=v[a],S=d[a],w=i===xf;t[l]={type:w?"linear":"radial",x:gr(_.x,S.x,m),y:gr(_.y,S.y,m),colorStops:G(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:gr(b.offset,C.offset,m),color:rs(Hl([],b.color,C.color,m))}}),global:S.global},w?(t[l].x2=gr(_.x2,S.x2,m),t[l].y2=gr(_.y2,S.y2,m)):t[l].r=gr(_.r,S.r,m)}else if(u)Hl(y,v[a],d[a],m),n||(t[l]=rs(y));else{var x=gr(v[a],d[a],m);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===go?t[n]=t[n]+a:e===gi?(xr(t[n],Ka),po(Ka,Ka,a,1),t[n]=rs(Ka)):e===ns?po(t[n],t[n],a,1):e===ty&&Sc(t[n],t[n],a,1)},r}(),Vh=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){Oh("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,xt(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new Tw(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===gi&&u&&(u=rs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,es(u),a),this._trackKeys.push(s)}l.addKeyframe(t,es(e[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new pw({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(e._target,v);var m=e._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return G(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){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()&&(e?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},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=es(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||xt(t);for(var n=0;n<e.length;n++){var a=e[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())}}}},r}();function va(){return new Date().getTime()}var Cw=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=va()-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,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(ms(n),!e._paused&&e.update())}ms(n)},t.prototype.start=function(){this._running||(this._time=va(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=va(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=va()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new Vh(e,n.loop);return this.addAnimator(a),a},t}(Ve),Dw=300,Wl=tt.domSupported,Ul=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),bc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Tc=!1;function bf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Aw(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Yl(r){r&&(r.zrByTouch=!0)}function Mw(r,t){return me(r.dom,new Iw(r,t),!0)}function ey(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Iw=function(){function r(t,e){this.stopPropagation=Jt,this.stopImmediatePropagation=Jt,this.preventDefault=Jt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Pe={mousedown:function(r){r=me(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=me(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=me(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=me(this.dom,r);var t=r.toElement||r.relatedTarget;ey(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Tc=!0,r=me(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Tc||(r=me(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=me(this.dom,r),Yl(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Pe.mousemove.call(this,r),Pe.mousedown.call(this,r)},touchmove:function(r){r=me(this.dom,r),Yl(r),this.handler.processGesture(r,"change"),Pe.mousemove.call(this,r)},touchend:function(r){r=me(this.dom,r),Yl(r),this.handler.processGesture(r,"end"),Pe.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Dw&&Pe.click.call(this,r)},pointerdown:function(r){Pe.mousedown.call(this,r)},pointermove:function(r){bf(r)||Pe.mousemove.call(this,r)},pointerup:function(r){Pe.mouseup.call(this,r)},pointerout:function(r){bf(r)||Pe.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){Pe[r]=function(t){t=me(this.dom,t),this.trigger(r,t)}});var Tf={pointermove:function(r){bf(r)||Tf.mousemove.call(this,r)},pointerup:function(r){Tf.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Lw(r,t){var e=t.domHandlers;tt.pointerEventsSupported?M(Ul.pointer,function(n){as(t,n,function(a){e[n].call(r,a)})}):(tt.touchEventsSupported&&M(Ul.touch,function(n){as(t,n,function(a){e[n].call(r,a),Aw(t)})}),M(Ul.mouse,function(n){as(t,n,function(a){a=Bh(a),t.touching||e[n].call(r,a)})}))}function Pw(r,t){tt.pointerEventsSupported?M(bc.pointer,e):tt.touchEventsSupported||M(bc.mouse,e);function e(n){function a(i){i=Bh(i),ey(r,i.target)||(i=Mw(r,i),t.domHandlers[n].call(r,i))}as(t,n,a,{capture:!0})}}function as(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,gf(r.domTarget,t,e,n)}function Xl(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Qx(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Cc=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),Rw=function(r){B(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Cc(e,Pe),Wl&&(a._globalHandlerScope=new Cc(document,Tf)),Lw(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Xl(this._localHandlerScope),Wl&&Xl(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Wl&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?Pw(this,n):Xl(n)}},t}(Ve),ry=1;tt.hasGlobalWindow&&(ry=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ws=ry,Cf=.4,Df="#333",Af="#ccc",kw="#eee",Dc=Fh,Ac=5e-5;function on(r){return r>Ac||r<-Ac}var sn=[],Xn=[],$l=ma(),Zl=Math.abs,ro=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return on(this.rotation)||on(this.x)||on(this.y)||on(this.scaleX-1)||on(this.scaleY-1)||on(this.skewX)||on(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Dc(n),this.invTransform=null);return}n=n||ma(),e?this.getLocalTransform(n):Dc(n),t&&(e?ya(n,t,n):tw(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(sn);var n=sn[0]<0?-1:1,a=sn[1]<0?-1:1,i=((sn[0]-n)*e+n)/sn[0]||0,o=((sn[1]-a)*e+a)/sn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ma(),Ks(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],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),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ma(),ya(Xn,t.invTransform,e),e=Xn);var n=this.originX,a=this.originY;(n||a)&&($l[4]=n,$l[5]=a,ya(Xn,e,$l),Xn[4]-=n,Xn[5]-=a,e=Xn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&be(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&be(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Zl(t[0]-1)>1e-10&&Zl(t[3]-1)>1e-10?Math.sqrt(Zl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Ew(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=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||l){var d=n+s,g=a+l;e[4]=-d*i-c*g*o,e[5]=-g*o-v*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=v*i,e[2]=c*o,u&&zh(e,e,u),e[4]+=n+f,e[5]+=a+h,e},r.initDefaultProps=function(){var t=r.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}(),r}(),zi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ew(r,t){for(var e=0;e<zi.length;e++){var n=zi[e];r[n]=t[n]}}var Mc={};function ce(r,t){t=t||kn;var e=Mc[t];e||(e=Mc[t]=new eo(500));var n=e.get(r);return n==null&&(n=Na.measureText(r,t).width,e.put(r,n)),n}function Ic(r,t,e,n){var a=ce(r,t),i=Gh(t),o=mi(0,a,e),s=la(0,i,n),l=new ft(o,s,a,i);return l}function js(r,t,e,n){var a=((r||"")+"").split(`
`),i=a.length;if(i===1)return Ic(a[0],t,e,n);for(var o=new ft(0,0,0,0),s=0;s<a.length;s++){var l=Ic(a[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function mi(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function la(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Gh(r){return ce("国",r)}function Zr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function bs(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Zr(n[0],e.width),u+=Zr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=a,u+=s,f="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ql="__zr_normal__",Kl=zi.concat(["ignore"]),Ow=Xr(zi,function(r,t){return r[t]=!0,r},{ignore:!1}),$n={},Nw=new ft(0,0,0,0),Js=function(){function r(t){this.id=Em(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(e),n.position!=null){var f=Nw;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($n,n,f):bs($n,n,f),i.x=$n.x,i.y=$n.y,o=$n.align,s=$n.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=Zr(h[0],f.width),v=Zr(h[1],f.height)),u=!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],u||(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={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ve,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Af:Df},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&xr(e);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,Qs(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},F(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(X(t))for(var n=t,a=xt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==ql)){var o=a.targetName,s=o?e[o]:e;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Kl)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ql,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===ql,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(lt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Oh("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ve),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),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,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ve)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=lt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=lt(a,t),o=lt(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];F(e,i),i.textConfig&&(n=n||{},F(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,o){var s=!(e&&a);e&&e.textConfig?(this.textConfig=F({},a?this.textConfig:n.textConfig),F(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Kl.length;f++){var h=Kl[f],c=i&&Ow[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(c?(u=!0,l[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?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ro,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),F(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ve;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var a=t?this[t]:this,i=new Vh(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,o=lt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){Ql(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Ql(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=Ql(this,e,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ve;function e(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();ze(Js,Ve);ze(Js,ro);function Ql(r,t,e,n,a){e=e||{};var i=[];ny(r,"",r,t,e,n,i,a);var o=i.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(d,g){e.during(g)});for(var c=0;c<i.length;c++){var v=i[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return i}function jl(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function Bw(r){return te(r[0])}function Fw(r,t,e){if(te(t[e]))if(te(r[e])||(r[e]=[]),ue(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),jl(r[e],t[e],n))}else{var a=t[e],i=r[e],o=a.length;if(Bw(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?jl(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else jl(i,a,o);i.length=a.length}else r[e]=t[e]}function zw(r,t){return r===t||te(r)&&te(t)&&Vw(r,t)}function Vw(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function ny(r,t,e,n,a,i,o,s){for(var l=xt(n),u=a.duration,f=a.delay,h=a.additive,c=a.setToFinal,v=!X(i),d=r.animators,g=[],p=0;p<l.length;p++){var m=l[p],y=n[m];if(y!=null&&e[m]!=null&&(v||i[m]))if(X(y)&&!te(y)&&!Zs(y)){if(t){s||(e[m]=y,r.updateDuringAnimation(t));continue}ny(r,m,e[m],y,a,i&&i[m],o,s)}else g.push(m);else s||(e[m]=y,r.updateDuringAnimation(t),g.push(m))}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=lt(d,w);d.splice(b,1)}}}if(a.force||(g=Rt(g,function(A){return!zw(n[A],e[A])}),_=g.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var m=g[S];C[m]=e[m],c?T[m]=n[m]:e[m]=n[m]}}else if(c){D={};for(var S=0;S<_;S++){var m=g[S];D[m]=es(e[m]),Fw(e,n,m)}}var w=new Vh(e,!1,!1,h?Rt(d,function(I){return I.targetName===t}):null);w.targetName=t,a.scope&&(w.scope=a.scope),c&&T&&w.whenWithKeys(0,T,g),D&&w.whenWithKeys(0,D,g),w.whenWithKeys(u??500,s?C:n,g).delay(f||0),r.addAnimator(w,t),o.push(w)}}var St=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=lt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=lt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];e.call(n,o,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=e.call(n,i);i.isGroup&&!o&&i.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new ft(0,0,0,0),a=e||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ft.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Js);St.prototype.type="group";/*!
* 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 is={},ay={};function Gw(r){delete ay[r]}function Hw(r){if(!r)return!1;if(typeof r=="string")return xs(r,1)<Cf;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=xs(t[a].color,1);return e/=n,e<Cf}return!1}var Ww=function(){function r(t,e,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new fw,o=n.renderer||"canvas";is[o]||(o=xt(is)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new is[o](e,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!tt.node&&!tt.worker&&!l?new Rw(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?tt.touchEventsSupported:!!f,c=44,v;h&&(v=at(n.pointerSize,c)),this.handler=new Hm(i,s,u,s.root,v),this.animation=new Cw({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Hw(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=va();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=va();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof St&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Gw(this.id))},r}();function Lc(r,t){var e=new Ww(Em(),r,t);return ay[e.id]=e,e}function Uw(r,t){is[r]=t}var Pc=1e-4,iy=20;function Yw(r){return r.replace(/^\s+|\s+$/g,"")}function ie(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function Z(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return U(r)?Yw(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function kt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),iy),r=(+r).toFixed(t),e?r:+r}function Xw(r){return r.sort(function(t,e){return t-e}),r}function mr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return $w(r)}function $w(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function oy(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Zw(r,t){var e=Xr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=G(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=G(a,function(v){return Math.floor(v)}),s=Xr(o,function(v,d){return v+d},0),l=G(a,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(v){return v/n})}function qw(r,t){var e=Math.max(mr(r),mr(t)),n=r+t;return e>iy?n:kt(n,e)}function sy(r){var t=Math.PI*2;return(r%t+t)%t}function Ts(r){return r>-Pc&&r<Pc}var Kw=/^(?:(\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 Tr(r){if(r instanceof Date)return r;if(U(r)){var t=Kw.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function Qw(r){return Math.pow(10,Hh(r))}function Hh(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function ly(r,t){var e=Hh(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function qr(r){var t=parseFloat(r);return t==r&&(t!==0||!U(r)||r.indexOf("x")<=0)?t:NaN}function uy(r){return!isNaN(qr(r))}function fy(){return Math.round(Math.random()*9)}function hy(r,t){return t===0?r:hy(t,r%t)}function Rc(r,t){return r==null?t:t==null?r:r*t/hy(r,t)}function ht(r){throw new Error(r)}function kc(r,t,e){return(t-r)*e+r}var vy="series\0",cy="\0_ec_\0";function Et(r){return r instanceof Array?r:r==null?[]:[r]}function Mf(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Ec=["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 no(r){return X(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function jw(r){return X(r)&&!(r instanceof Array)}function Jw(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=q();M(t,function(l,u){if(!X(l)){t[u]=null;return}});var s=tb(r,o,e);return(n||a)&&eb(s,r,o,t),n&&rb(s,t),n||a?nb(s,t,a):i&&ab(s,t),ib(s),s}function tb(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||Vi(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function eb(r,t,e,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Mi(a.id),s=e.get(o);if(s!=null){var l=r[s];sr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function rb(r,t){M(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!Vi(e)&&!Vi(i)&&dy("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function nb(r,t,e){M(t,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Vi(a.existing)||a.existing&&n.id!=null&&!dy("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function ab(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function ib(r){var t=q();M(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(r,function(e){var n=e.newOption;sr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),M(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(X(i)){if(o.name=i.name!=null?Mi(i.name):a?a.name:vy+n,a)o.id=Mi(a.id);else if(i.id!=null)o.id=Mi(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function dy(r,t,e){var n=ir(t[r],null),a=ir(e[r],null);return n!=null&&a!=null&&n===a}function Mi(r){return ir(r,"")}function ir(r,t){return r==null?t:U(r)?r:dt(r)||ff(r)?r+"":t}function Wh(r){var t=r.name;return!!(t&&t.indexOf(vy))}function Vi(r){return r&&r.id!=null&&Mi(r.id).indexOf(cy)===0}function ob(r){return cy+r}function sb(r,t,e){M(r,function(n){var a=n.newOption;X(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=lb(t,a,n.existing,e))})}function lb(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function En(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?G(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?G(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function wt(){var r="__ec_inner_"+ub++;return function(t){return t[r]||(t[r]={})}}var ub=fy();function Ii(r,t,e){var n=Uh(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var h=ao(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Uh(r,t){var e;if(U(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=q(),i={},o=!1;return M(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&lt(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 jt={useDefault:!0,enableAll:!1,enableNone:!1},fb={useDefault:!1,enableAll:!0,enableNone:!0};function ao(r,t,e,n){n=n||jt;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(sr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(sr(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function py(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function hb(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function vb(r){return r==="auto"?tt.domSupported?"html":"richText":r||"html"}function gy(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(dt(n)){var o=kc(e||0,n,a);return kt(o,i?Math.max(mr(e||0),mr(n)):t)}else{if(U(n))return a<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(a<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=kc(v,d,a);s[h]=kt(o,i?Math.max(mr(v),mr(d)):t)}}return s}}var cb=".",ln="___EC__COMPONENT__CONTAINER___",my="___EC__EXTENDED_CLASS___";function nr(r){var t={main:"",sub:""};if(r){var e=r.split(cb);t.main=e[0]||"",t.sub=e[1]||""}return t}function db(r){sr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function pb(r){return!!(r&&r[my])}function Yh(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return gb(n)?a=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},Cx(a,this)),F(a.prototype,e),a[my]=!0,a.extend=this.extend,a.superCall=_b,a.superApply=Sb,a.superClass=n,a}}function gb(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function yy(r,t){r.extend=t.extend}var mb=Math.round(Math.random()*10);function yb(r){var t=["__\0is_clz",mb++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function _b(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function Sb(r,t,e){return this.superClass.prototype[t].apply(r,e)}function tl(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){db(a),n.prototype.type=a;var i=nr(a);if(!i.sub)t[i.main]=n;else if(i.sub!==ln){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[ln]&&(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},r.getClassesByMainType=function(n){var a=nr(n),i=[],o=t[a.main];return o&&o[ln]?M(o,function(s,l){l!==ln&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=nr(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return M(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=nr(n),i=t[a.main];return i&&i[ln]};function e(n){var a=t[n.main];return(!a||!a[ln])&&(a=t[n.main]={},a[ln]=!0),a}}function Gi(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&lt(a,l)>=0||i&&lt(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var xb=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],wb=Gi(xb),bb=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return wb(this,t,e)},r}(),If=new eo(50);function Tb(r){if(typeof r=="string"){var t=If.get(r);return t&&t.image}else return r}function _y(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=If.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!el(t)&&i.pending.push(o)):(t=Na.loadImage(r,Oc,Oc),t.__zrImageSrc=r,If.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Oc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function el(r){return r&&r.width&&r.height}var Jl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Cb(r,t,e,n,a){if(!t)return"";var i=(r+"").split(`
`);a=Sy(t,e,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=xy(i[o],a);return i.join(`
`)}function Sy(r,t,e,n){n=n||{};var a=F({},n);a.font=t,e=at(e,"..."),a.maxIterations=at(n.maxIterations,2);var i=a.minChar=at(n.minChar,0);a.cnCharWidth=ce("国",t);var o=a.ascCharWidth=ce("a",t);a.placeholder=at(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=ce(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function xy(r,t){var e=t.containerWidth,n=t.font,a=t.contentWidth;if(!e)return"";var i=ce(r,n);if(i<=e)return r;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?Db(r,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*a/i):0;r=r.substr(0,s),i=ce(r,n)}return r===""&&(r=t.placeholder),r}function Db(r,t,e,n){for(var a=0,i=0,o=r.length;i<o&&a<t;i++){var s=r.charCodeAt(i);a+=0<=s&&s<=127?e:n}return i}function Ab(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,a=t.font,i=e==="truncate",o=Gh(a),s=at(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?wy(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var c=h.length*s,v=at(t.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var g=Sy(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=xy(h[p],g);for(var m=v,y=0,p=0;p<h.length;p++)y=Math.max(ce(h[p],a),y);f==null&&(f=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:c,width:f}}var Mb=function(){function r(){}return r}(),Nc=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),Ib=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function Lb(r,t){var e=new Ib;if(r!=null&&(r+=""),!r)return e;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=Jl.lastIndex=0,l;(l=Jl.exec(r))!=null;){var u=l.index;u>s&&tu(e,r.substring(s,u),t,o),tu(e,l[2],t,o,l[1]),s=Jl.lastIndex}s<r.length&&tu(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=i==="truncate",g=t.lineOverflow==="truncate";function p(E,N,z){E.width=N,E.lineHeight=z,h+=z,c=Math.max(c,N)}t:for(var m=0;m<e.lines.length;m++){for(var y=e.lines[m],_=0,S=0,w=0;w<y.tokens.length;w++){var x=y.tokens[w],b=x.styleName&&t.rich[x.styleName]||{},T=x.textPadding=b.padding,C=T?T[1]+T[3]:0,D=x.font=b.font||t.font;x.contentHeight=Gh(D);var A=at(b.height,x.contentHeight);if(x.innerHeight=A,T&&(A+=T[0]+T[2]),x.height=A,x.lineHeight=Ti(b.lineHeight,t.lineHeight,A),x.align=b&&b.align||t.align,x.verticalAlign=b&&b.verticalAlign||"middle",g&&a!=null&&h+x.lineHeight>a){w>0?(y.tokens=y.tokens.slice(0,w),p(y,S,_),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);break t}var I=b.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=ce(x.text,D);else{if(L){var P=b.backgroundColor,R=P&&P.image;R&&(R=Tb(R),el(R)&&(x.width=Math.max(x.width,R.width*A/R.height)))}var k=d&&n!=null?n-S:null;k!=null&&k<x.width?!L||k<C?(x.text="",x.width=x.contentWidth=0):(x.text=Cb(x.text,k-C,D,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=ce(x.text,D)):x.contentWidth=ce(x.text,D)}x.width+=C,S+=x.width,b&&(_=Math.max(_,x.lineHeight))}p(y,S,_)}e.outerWidth=e.width=at(n,c),e.outerHeight=e.height=at(a,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var x=f[m],O=x.percentWidth;x.width=parseInt(O,10)/100*e.width}return e}function tu(r,t,e,n,a){var i=t==="",o=a&&e.rich[a]||{},s=r.lines,l=o.font||e.font,u=!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=Zr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var g=wy(t,l,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 m=f[p],y=new Mb;if(y.styleName=a,y.text=m,y.isLineHolder=!m&&!i,typeof o.width=="number"?y.width=o.width:y.width=h?h[p]:ce(m,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new Nc)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=y:(m||!S||i)&&_.push(y)}else s.push(new Nc([y]))}}function Pb(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Rb=Xr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function kb(r){return Pb(r)?!!Rb[r]:!0}function wy(r,t,e,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=ce(c,t),d=n?!1:!kb(c);if(i.length?f+v>e:a+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=c,f=v)):d?(i.push(l),o.push(u),l=c,u=v):(i.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}var Lf="__zr_style_"+Math.round(Math.random()*10),Ln={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ln[Lf]=!0;var Bc=["z","z2","invisible"],Eb=["invisible"],za=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=xt(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[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(e,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Ob(this,e,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 l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=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,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ft(0,0,0,0)),n?ft.applyTransform(e,a,n):e.copy(a),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ft(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=pi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&pi)},t.prototype.styleUpdated=function(){this.__dirty&=~pi},t.prototype.createStyle=function(e){return qs(Ln,e)},t.prototype.useStyle=function(e){e[Lf]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Lf]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Bc)},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=xt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=xt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?Eb:Bc,c=0;c<g.length;c++){var v=g[c];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return F(e,n),e},t.prototype.getAnimationStyleProps=function(){return rl},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ve|pi}(),t}(Js),eu=new ft(0,0,0,0),ru=new ft(0,0,0,0);function Ob(r,t,e){return eu.copy(r.getBoundingRect()),r.transform&&eu.applyTransform(r.transform),ru.width=t,ru.height=e,!eu.intersect(ru)}var oe=Math.min,se=Math.max,nu=Math.sin,au=Math.cos,un=Math.PI*2,yo=Fa(),_o=Fa(),So=Fa();function by(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=oe(a,n[0]),i=se(i,n[0]),o=oe(o,n[1]),s=se(s,n[1]);t[0]=a,t[1]=o,e[0]=i,e[1]=s}}function Fc(r,t,e,n,a,i){a[0]=oe(r,e),a[1]=oe(t,n),i[0]=se(r,e),i[1]=se(t,n)}var zc=[],Vc=[];function Nb(r,t,e,n,a,i,o,s,l,u){var f=$m,h=Ft,c=f(r,e,a,o,zc);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,a,o,zc[v]);l[0]=oe(d,l[0]),u[0]=se(d,u[0])}c=f(t,n,i,s,Vc);for(var v=0;v<c;v++){var g=h(t,n,i,s,Vc[v]);l[1]=oe(g,l[1]),u[1]=se(g,u[1])}l[0]=oe(r,l[0]),u[0]=se(r,u[0]),l[0]=oe(o,l[0]),u[0]=se(o,u[0]),l[1]=oe(t,l[1]),u[1]=se(t,u[1]),l[1]=oe(s,l[1]),u[1]=se(s,u[1])}function Bb(r,t,e,n,a,i,o,s){var l=qm,u=Yt,f=se(oe(l(r,e,a),1),0),h=se(oe(l(t,n,i),1),0),c=u(r,e,a,f),v=u(t,n,i,h);o[0]=oe(r,a,c),o[1]=oe(t,i,v),s[0]=se(r,a,c),s[1]=se(t,i,v)}function Fb(r,t,e,n,a,i,o,s,l){var u=fa,f=ha,h=Math.abs(a-i);if(h%un<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(yo[0]=au(a)*e+r,yo[1]=nu(a)*n+t,_o[0]=au(i)*e+r,_o[1]=nu(i)*n+t,u(s,yo,_o),f(l,yo,_o),a=a%un,a<0&&(a=a+un),i=i%un,i<0&&(i=i+un),a>i&&!o?i+=un:a<i&&o&&(a+=un),o){var c=i;i=a,a=c}for(var v=0;v<i;v+=Math.PI/2)v>a&&(So[0]=au(v)*e+r,So[1]=nu(v)*n+t,u(s,So,s),f(l,So,l))}var gt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fn=[],hn=[],Ue=[],Ir=[],Ye=[],Xe=[],iu=Math.min,ou=Math.max,vn=Math.cos,cn=Math.sin,cr=Math.abs,Pf=Math.PI,Fr=Pf*2,su=typeof Float32Array<"u",Qa=[];function lu(r){var t=Math.round(r/Pf*1e8)/1e8;return t%2*Pf}function Xh(r,t){var e=lu(r[0]);e<0&&(e+=Fr);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=Fr?a=e+Fr:t&&e-a>=Fr?a=e-Fr:!t&&e>a?a=e+(Fr-lu(e-a)):t&&e<a&&(a=e-(Fr-lu(a-e))),r[0]=e,r[1]=a}var Cr=function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=cr(n/ws/t)||0,this._uy=cr(n/ws/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(gt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=cr(t-this._xi),a=cr(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(gt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(gt.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(gt.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),Qa[0]=a,Qa[1]=i,Xh(Qa,o),a=Qa[0],i=Qa[1];var s=i-a;return this.addData(gt.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=vn(i)*n+t,this._yi=cn(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(gt.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(gt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&su&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,a=this._len,i=0;i<e;i++)n+=t[i].len();su&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(t,e,n,a,i,o,s,l,u){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]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,su&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ue[0]=Ue[1]=Ye[0]=Ye[1]=Number.MAX_VALUE,Ir[0]=Ir[1]=Xe[0]=Xe[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],a=e,i=n),s){case gt.M:e=a=t[o++],n=i=t[o++],Ye[0]=a,Ye[1]=i,Xe[0]=a,Xe[1]=i;break;case gt.L:Fc(e,n,t[o],t[o+1],Ye,Xe),e=t[o++],n=t[o++];break;case gt.C:Nb(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ye,Xe),e=t[o++],n=t[o++];break;case gt.Q:Bb(e,n,t[o++],t[o++],t[o],t[o+1],Ye,Xe),e=t[o++],n=t[o++];break;case gt.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];l&&(a=vn(v)*h+u,i=cn(v)*c+f),Fb(u,f,h,c,v,d,g,Ye,Xe),e=vn(d)*h+u,n=cn(d)*c+f;break;case gt.R:a=e=t[o++],i=n=t[o++];var p=t[o++],m=t[o++];Fc(a,i,a+p,i+m,Ye,Xe);break;case gt.Z:e=a,n=i;break}fa(Ue,Ue,Ye),ha(Ir,Ir,Xe)}return o===0&&(Ue[0]=Ue[1]=Ir[0]=Ir[1]=0),new ft(Ue[0],Ue[1],Ir[0]-Ue[0],Ir[1]-Ue[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(i=t[c],o=t[c+1],s=i,l=o);var g=-1;switch(v){case gt.M:i=s=t[c++],o=l=t[c++];break;case gt.L:{var p=t[c++],m=t[c++],y=p-i,_=m-o;(cr(y)>n||cr(_)>a||c===e-1)&&(g=Math.sqrt(y*y+_*_),i=p,o=m);break}case gt.C:{var S=t[c++],w=t[c++],p=t[c++],m=t[c++],x=t[c++],b=t[c++];g=hw(i,o,S,w,p,m,x,b,10),i=x,o=b;break}case gt.Q:{var S=t[c++],w=t[c++],p=t[c++],m=t[c++];g=cw(i,o,S,w,p,m,10),i=p,o=m;break}case gt.A:var T=t[c++],C=t[c++],D=t[c++],A=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=vn(I)*D+T,l=cn(I)*A+C),g=ou(D,A)*iu(Fr,Math.abs(L)),i=vn(P)*D+T,o=cn(P)*A+C;break;case gt.R:{s=i=t[c++],l=o=t[c++];var R=t[c++],k=t[c++];g=R*2+k*2;break}case gt.Z:{var y=s-i,_=l-o;g=Math.sqrt(y*y+_*_),i=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,g,p=0,m=0,y,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var x=0;x<o;){var b=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),b!==gt.L&&_>0&&(t.lineTo(S,w),_=0),b){case gt.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case gt.L:{h=n[x++],c=n[x++];var C=cr(h-u),D=cr(c-f);if(C>a||D>i){if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;t.lineTo(u*(1-I)+h*I,f*(1-I)+c*I);break t}p+=A}t.lineTo(h,c),u=h,f=c,_=0}else{var L=C*C+D*D;L>_&&(S=h,w=c,_=L)}break}case gt.C:{var P=n[x++],R=n[x++],k=n[x++],O=n[x++],E=n[x++],N=n[x++];if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;$r(u,P,k,E,I,fn),$r(f,R,O,N,I,hn),t.bezierCurveTo(fn[1],hn[1],fn[2],hn[2],fn[3],hn[3]);break t}p+=A}t.bezierCurveTo(P,R,k,O,E,N),u=E,f=N;break}case gt.Q:{var P=n[x++],R=n[x++],k=n[x++],O=n[x++];if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;Ss(u,P,k,I,fn),Ss(f,R,O,I,hn),t.quadraticCurveTo(fn[1],hn[1],fn[2],hn[2]);break t}p+=A}t.quadraticCurveTo(P,R,k,O),u=k,f=O;break}case gt.A:var z=n[x++],H=n[x++],Y=n[x++],J=n[x++],rt=n[x++],_t=n[x++],pt=n[x++],Gt=!n[x++],Ht=Y>J?Y:J,Ot=cr(Y-J)>.001,Tt=rt+_t,Q=!1;if(v){var A=d[m++];p+A>y&&(Tt=rt+_t*(y-p)/A,Q=!0),p+=A}if(Ot&&t.ellipse?t.ellipse(z,H,Y,J,pt,rt,Tt,Gt):t.arc(z,H,Ht,rt,Tt,Gt),Q)break t;T&&(s=vn(rt)*Y+z,l=cn(rt)*J+H),u=vn(Tt)*Y+z,f=cn(Tt)*J+H;break;case gt.R:s=u=n[x],l=f=n[x+1],h=n[x++],c=n[x++];var ot=n[x++],We=n[x++];if(v){var A=d[m++];if(p+A>y){var zt=y-p;t.moveTo(h,c),t.lineTo(h+iu(zt,ot),c),zt-=ot,zt>0&&t.lineTo(h+ot,c+iu(zt,We)),zt-=We,zt>0&&t.lineTo(h+ou(ot-zt,0),c+We),zt-=ot,zt>0&&t.lineTo(h,c+ou(We-zt,0));break t}p+=A}t.rect(h,c,ot,We);break;case gt.Z:if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}p+=A}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=gt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Zn(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function zb(r,t,e,n,a,i,o,s,l,u,f){if(l===0)return!1;var h=l;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||u>r+h&&u>e+h&&u>a+h&&u>o+h||u<r-h&&u<e-h&&u<a-h&&u<o-h)return!1;var c=Zm(r,t,e,n,a,i,o,s,u,f,null);return c<=h/2}function Vb(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=Km(r,t,e,n,a,i,s,l,null);return f<=u/2}var Gc=Math.PI*2;function yr(r){return r%=Gc,r<0&&(r+=Gc),r}var ja=Math.PI*2;function Gb(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-a)%ja<1e-4)return!0;if(i){var h=n;n=yr(a),a=yr(h)}else n=yr(n),a=yr(a);n>a&&(a+=ja);var c=Math.atan2(l,s);return c<0&&(c+=ja),c>=n&&c<=a||c+ja>=n&&c+ja<=a}function dn(r,t,e,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 l=o*(e-r)+r;return l===a?1/0:l>a?s:0}var Lr=Cr.CMD,pn=Math.PI*2,Hb=1e-4;function Wb(r,t){return Math.abs(r-t)<Hb}var Kt=[-1,-1,-1],_e=[-1,-1];function Ub(){var r=_e[0];_e[0]=_e[1],_e[1]=r}function Yb(r,t,e,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=_s(t,n,i,s,u,Kt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Kt[g],m=p===0||p===1?.5:1,y=Ft(r,e,a,o,p);y<l||(c<0&&(c=$m(t,n,i,s,_e),_e[1]<_e[0]&&c>1&&Ub(),v=Ft(t,n,i,s,_e[0]),c>1&&(d=Ft(t,n,i,s,_e[1]))),c===2?p<_e[0]?h+=v<t?m:-m:p<_e[1]?h+=d<v?m:-m:h+=s<d?m:-m:p<_e[0]?h+=v<t?m:-m:h+=s<v?m:-m)}return h}function Xb(r,t,e,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=vw(t,n,i,s,Kt);if(l===0)return 0;var u=qm(t,n,i);if(u>=0&&u<=1){for(var f=0,h=Yt(t,n,i,u),c=0;c<l;c++){var v=Kt[c]===0||Kt[c]===1?.5:1,d=Yt(r,e,a,Kt[c]);d<o||(Kt[c]<u?f+=h<t?v:-v:f+=i<h?v:-v)}return f}else{var v=Kt[0]===0||Kt[0]===1?.5:1,d=Yt(r,e,a,Kt[0]);return d<o?0:i<t?v:-v}}function $b(r,t,e,n,a,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=pn-1e-4){n=0,a=pn;var f=i?1:-1;return o>=Kt[0]+r&&o<=Kt[1]+r?f:0}if(n>a){var h=n;n=a,a=h}n<0&&(n+=pn,a+=pn);for(var c=0,v=0;v<2;v++){var d=Kt[v];if(d+r>o){var g=Math.atan2(s,d),f=i?1:-1;g<0&&(g=pn+g),(g>=n&&g<=a||g+pn>=n&&g+pn<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Ty(r,t,e,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var g=i[d++],p=d===1;switch(g===Lr.M&&d>1&&(e||(s+=dn(l,u,f,h,n,a))),p&&(l=i[d],u=i[d+1],f=l,h=u),g){case Lr.M:f=i[d++],h=i[d++],l=f,u=h;break;case Lr.L:if(e){if(Zn(l,u,i[d],i[d+1],t,n,a))return!0}else s+=dn(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Lr.C:if(e){if(zb(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Yb(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Lr.Q:if(e){if(Vb(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Xb(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Lr.A:var m=i[d++],y=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);c=Math.cos(w)*_+m,v=Math.sin(w)*S+y,p?(f=c,h=v):s+=dn(l,u,c,v,n,a);var T=(n-m)*S/_+m;if(e){if(Gb(m,y,S,w,w+x,b,t,T,a))return!0}else s+=$b(m,y,S,w,w+x,b,T,a);l=Math.cos(w+x)*_+m,u=Math.sin(w+x)*S+y;break;case Lr.R:f=l=i[d++],h=u=i[d++];var C=i[d++],D=i[d++];if(c=f+C,v=h+D,e){if(Zn(f,h,c,h,t,n,a)||Zn(c,h,c,v,t,n,a)||Zn(c,v,f,v,t,n,a)||Zn(f,v,f,h,t,n,a))return!0}else s+=dn(c,h,c,v,n,a),s+=dn(f,v,f,h,n,a);break;case Lr.Z:if(e){if(Zn(l,u,f,h,t,n,a))return!0}else s+=dn(l,u,f,h,n,a);l=f,u=h;break}}return!e&&!Wb(u,h)&&(s+=dn(l,u,f,h,n,a)||0),s!==0}function Zb(r,t,e){return Ty(r,0,!1,t,e)}function qb(r,t,e,n){return Ty(r,t,!0,e,n)}var Cy=j({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ln),Kb={style:j({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rl.style)},uu=zi.concat(["invisible","culling","z","z2","zlevel","parent"]),it=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.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(l){e.buildPath(l,e.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<uu.length;++s)a[uu[s]]=this[uu[s]];a.__dirty|=ve}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=xt(e);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=e[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(this.shape,s):r.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 e=this.style.fill;if(e!=="none"){if(U(e)){var n=xs(e,0);return n>.5?Df:n>.2?kw:Af}else if(e)return Af}return Df},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(U(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=xs(e,0)<Cf;if(i===o)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~sa},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Cr(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&sa)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),qb(s,l/u,e,n)))return!0}if(this.hasFill())return Zb(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=sa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:F(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&sa)},t.prototype.createStyle=function(e){return qs(Cy,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=F({},a.shape),F(u,n.shape)):(u=F({},i?this.shape:a.shape),F(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=F({},this.shape);for(var f={},h=xt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Kb},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(i){B(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return et(e.style)},o.prototype.getDefaultShape=function(){return et(e.shape)},o}(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ve|pi|sa}(),t}(za),Qb=j({strokeFirst:!0,font:kn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Cy),Cs=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return qs(Qb,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=js(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.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 e=t.prototype;e.dirtyRectTolerance=10}(),t}(za);Cs.prototype.type="tspan";var jb=j({x:0,y:0},Ln),Jb={style:j({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rl.style)};function tT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ge=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return qs(jb,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=tT(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Jb},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ft(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(za);Ge.prototype.type="image";function eT(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>a&&(h=s+l,s*=a/h,l*=a/h),u+f>a&&(h=u+f,u*=a/h,f*=a/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var ca=Math.round;function Dy(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(ca(n*2)===ca(a*2)&&(r.x1=r.x2=An(n,s,!0)),ca(i*2)===ca(o*2)&&(r.y1=r.y2=An(i,s,!0))),r}}function Ay(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=An(n,s,!0),r.y=An(a,s,!0),r.width=Math.max(An(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(An(a+o,s,!1)-r.y,o===0?0:1)),r}}function An(r,t,e){if(!t)return r;var n=ca(r*2);return(n+ca(t))%2===0?n/2:(n+(e?1:-1))/2}var rT=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),nT={},bt=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rT},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=Ay(nT,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?eT(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(it);bt.prototype.type="rect";var Hc={fill:"#000"},Wc=2,aT={style:j({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},rl.style)},At=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Hc,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];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 e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,uT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);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 e=new ft(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Hc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var a=n.rich,i=e.rich||a&&{};return F(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=xt(n),i=0;i<a.length;i++){var o=a[i];e[o]=e[o]||{},F(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return aT},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||kn,a=e.padding,i=Kc(e),o=Ab(i,e),s=fu(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,g=e.x||0,p=e.y||0,m=e.align||d.align||"left",y=e.verticalAlign||d.verticalAlign||"top",_=g,S=la(p,o.contentHeight,y);if(s||a){var w=mi(g,f,m),x=la(p,u,y);s&&this._renderBackground(e,e,w,x,f,u)}S+=v/2,a&&(_=qc(g,m,a),y==="top"?S+=a[0]:y==="bottom"&&(S-=a[2]));for(var b=0,T=!1,C=Zc("fill"in e?e.fill:(T=!0,d.fill)),D=$c("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(b=Wc,d.stroke):null),A=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(Cs),k=R.createStyle();R.useStyle(k),k.text=c[P],k.x=_,k.y=S,m&&(k.textAlign=m),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,A&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=D,k.fill=C,D&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=n,Yc(k,e),S+=v,I&&R.setBoundingRect(new ft(mi(k.x,e.width,k.textAlign),la(k.y,L,k.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=Kc(e),a=Lb(n,e),i=a.width,o=a.outerWidth,s=a.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign,d=mi(u,o,c),g=la(f,s,v),p=d,m=g;l&&(p+=l[3],m+=l[0]);var y=p+i;fu(e)&&this._renderBackground(e,e,d,g,o,s);for(var _=!!e.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,D=0,A=p,I=y,L=b-1,P=void 0;D<b&&(P=x[D],!P.align||P.align==="left");)this._placeToken(P,e,T,m,A,"left",_),C-=P.width,A+=P.width,D++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,m,I,"right",_),C-=P.width,I-=P.width,L--;for(A+=(i-(A-p)-(y-I)-C)/2;D<=L;)P=x[D],this._placeToken(P,e,T,m,A+P.width/2,"center",_),A+=P.width,D++;m+=T}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=i+a/2;f==="top"?h=i+e.height/2:f==="bottom"&&(h=i+a-e.height/2);var c=!e.isLineHolder&&fu(u);c&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=qc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Cs),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,S=Zc("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=$c("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!m.autoStroke||y)?(_=Wc,m.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||kn,p.opacity=Ti(u.opacity,n.opacity,1),Yc(p,u),w&&(p.lineWidth=Ti(u.lineWidth,n.lineWidth,_),p.lineDash=at(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S);var b=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ft(mi(p.x,b,p.textAlign),la(p.y,T,p.textBaseline),b,T))},t.prototype._renderBackground=function(e,n,a,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||u&&f){g=this._getOrCreateChild(bt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(c){var y=g.style;y.fill=l||null,y.fillOpacity=at(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Ge),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=at(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Ti(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return lT(e)&&(n=[e.fontStyle,e.fontWeight,sT(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&rr(n)||e.textFont||e.font},t}(za),iT={left:!0,right:1,center:1},oT={top:1,bottom:1,middle:1},Uc=["fontStyle","fontWeight","fontSize","fontFamily"];function sT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Rh+"px":r+"px"}function Yc(r,t){for(var e=0;e<Uc.length;e++){var n=Uc[e],a=t[n];a!=null&&(r[n]=a)}}function lT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function uT(r){return Xc(r),M(r.rich,Xc),r}function Xc(r){if(r){r.font=At.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||iT[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||oT[e]?e:"top";var n=r.padding;n&&(r.padding=Om(r.padding))}}function $c(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Zc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function qc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Kc(r){var t=r.text;return t!=null&&(t+=""),t}function fu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var st=wt(),Rf=function(r,t,e,n){if(n){var a=st(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=st(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Qc=1,jc={},My=wt(),$h=wt(),Zh=0,nl=1,al=2,Te=["emphasis","blur","select"],Ds=["normal","emphasis","blur","select"],fT=10,hT=9,Pn="highlight",os="downplay",Li="select",ss="unselect",Pi="toggleSelect";function qn(r){return r!=null&&r!=="none"}function il(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Iy(r){il(r,"emphasis",al)}function Ly(r){r.hoverState===al&&il(r,"normal",Zh)}function qh(r){il(r,"blur",nl)}function Py(r){r.hoverState===nl&&il(r,"normal",Zh)}function vT(r){r.selected=!0}function cT(r){r.selected=!1}function Jc(r,t,e){t(r,e)}function Ar(r,t,e){Jc(r,t,e),r.isGroup&&r.traverse(function(n){Jc(n,t,e)})}function td(r,t){switch(t){case"emphasis":r.hoverState=al;break;case"normal":r.hoverState=Zh;break;case"blur":r.hoverState=nl;break;case"select":r.selected=!0}}function dT(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function pT(r,t,e,n){var a=e&&lt(e,"select")>=0,i=!1;if(r instanceof it){var o=My(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(qn(s)||qn(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=F({},n),u=F({},u),u.fill=s):!qn(u.fill)&&qn(s)?(i=!0,n=F({},n),u=F({},u),u.fill=_c(s)):!qn(u.stroke)&&qn(l)&&(i||(n=F({},n),u=F({},u)),u.stroke=_c(l)),n.style=u}}if(n&&n.z2==null){i||(n=F({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??fT)}return n}function gT(r,t,e){if(e&&e.z2==null){e=F({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??hT)}return e}function mT(r,t,e){var n=lt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:dT(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:n?a:i.opacity*.1},o),e.style=o),e}function hu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return pT(this,r,t,e);if(r==="blur")return mT(this,r,e);if(r==="select")return gT(this,r,e)}return e}function yT(r){r.stateProxy=hu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=hu),e&&(e.stateProxy=hu)}function ed(r,t){!Oy(r,t)&&!r.__highByOuter&&Ar(r,Iy)}function rd(r,t){!Oy(r,t)&&!r.__highByOuter&&Ar(r,Ly)}function Ia(r,t){r.__highByOuter|=1<<(t||0),Ar(r,Iy)}function La(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ar(r,Ly)}function _T(r){Ar(r,qh)}function Ry(r){Ar(r,Py)}function ky(r){Ar(r,vT)}function Ey(r){Ar(r,cT)}function Oy(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Ny(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=$h(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Py(u)}),s&&e.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function kf(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&Ry(c)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||qh(p)}),te(t))i(u.getData(),t);else if(X(t))for(var d=xt(t),g=0;g<d.length;g++)i(u.getData(d[g]),t[d[g]]);l.push(u),$h(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function Ef(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){$h(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){qh(i)})}}}function ST(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(a){var i=En(a,t);i=(V(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=st(o);kf(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&kf(n,f,h,e)}}}function Kh(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(st(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xT(r,t,e){var n=st(r),a=Kh(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&Ef(n.componentMainType,n.componentIndex,e),M(i,function(s){return ed(s,t)})):(kf(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&Ef(n.componentMainType,n.componentIndex,e),ed(r,t))}function wT(r,t,e){Ny(e);var n=st(r),a=Kh(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?M(a,function(i){return rd(i,t)}):rd(r,t)}function bT(r,t,e){if(Bf(t)){var n=t.dataType,a=r.getData(n),i=En(a,t);V(i)||(i=[i]),r[t.type===Pi?"toggleSelect":t.type===Li?"select":"unselect"](i,n)}}function nd(r){var t=r.getAllData();M(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?ky(i):Ey(i)})})}function TT(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();M(n,function(a){a.data;var i=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Of(r,t,e){By(r,!0),Ar(r,yT),DT(r,t,e)}function CT(r){By(r,!1)}function Dr(r,t,e,n){n?CT(r):Of(r,t,e)}function DT(r,t,e){var n=st(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var ad=["emphasis","blur","select"],AT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(r,t,e,n){e=e||"itemStyle";for(var a=0;a<ad.length;a++){var i=ad[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=o[AT[e]]()}}function By(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Nf(r){return!!(r&&r.__highDownDispatcher)}function MT(r){var t=jc[r];return t==null&&Qc<=32&&(t=jc[r]=Qc++),t}function Bf(r){var t=r.type;return t===Li||t===ss||t===Pi}function id(r){var t=r.type;return t===Pn||t===os}function IT(r){var t=My(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Kn=Cr.CMD,LT=[[],[],[]],od=Math.sqrt,PT=Math.atan2;function Fy(r,t){if(t){var e=r.data,n=r.len(),a,i,o,s,l,u,f=Kn.M,h=Kn.C,c=Kn.L,v=Kn.R,d=Kn.A,g=Kn.Q;for(o=0,s=0;o<n;){switch(a=e[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],m=t[5],y=od(t[0]*t[0]+t[1]*t[1]),_=od(t[2]*t[2]+t[3]*t[3]),S=PT(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=p,e[o]*=_,e[o++]+=m,e[o++]*=y,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],be(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],be(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var w=LT[l];w[0]=e[o++],w[1]=e[o++],be(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var vu=Math.sqrt,xo=Math.sin,wo=Math.cos,Ja=Math.PI;function sd(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Ff(r,t){return(r[0]*t[0]+r[1]*t[1])/(sd(r)*sd(t))}function ld(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Ff(r,t))}function ud(r,t,e,n,a,i,o,s,l,u,f){var h=l*(Ja/180),c=wo(h)*(r-e)/2+xo(h)*(t-n)/2,v=-1*xo(h)*(r-e)/2+wo(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=vu(d),s*=vu(d));var g=(a===i?-1:1)*vu((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,m=g*-s*c/o,y=(r+e)/2+wo(h)*p-xo(h)*m,_=(t+n)/2+xo(h)*p+wo(h)*m,S=ld([1,0],[(c-p)/o,(v-m)/s]),w=[(c-p)/o,(v-m)/s],x=[(-1*c-p)/o,(-1*v-m)/s],b=ld(w,x);if(Ff(w,x)<=-1&&(b=Ja),Ff(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Ja*1e6)/1e6;b=Ja*2+T%2*Ja}f.addData(u,y,_,o,s,S,b,h,i)}var RT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ET(r){var t=new Cr;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=Cr.CMD,l=r.match(RT);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(kT)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=e,C=n,D=void 0,A=void 0;switch(h){case"l":e+=v[p++],n+=v[p++],c=s.L,t.addData(c,e,n);break;case"L":e=v[p++],n=v[p++],c=s.L,t.addData(c,e,n);break;case"m":e+=v[p++],n+=v[p++],c=s.M,t.addData(c,e,n),a=e,i=n,h="l";break;case"M":e=v[p++],n=v[p++],c=s.M,t.addData(c,e,n),a=e,i=n,h="L";break;case"h":e+=v[p++],c=s.L,t.addData(c,e,n);break;case"H":e=v[p++],c=s.L,t.addData(c,e,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,e,n);break;case"V":n=v[p++],c=s.L,t.addData(c,e,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),e=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+e,v[p++]+n,v[p++]+e,v[p++]+n,v[p++]+e,v[p++]+n),e+=v[p-2],n+=v[p-1];break;case"S":m=e,y=n,D=t.len(),A=t.data,o===s.C&&(m+=e-A[D-4],y+=n-A[D-3]),c=s.C,T=v[p++],C=v[p++],e=v[p++],n=v[p++],t.addData(c,m,y,T,C,e,n);break;case"s":m=e,y=n,D=t.len(),A=t.data,o===s.C&&(m+=e-A[D-4],y+=n-A[D-3]),c=s.C,T=e+v[p++],C=n+v[p++],e+=v[p++],n+=v[p++],t.addData(c,m,y,T,C,e,n);break;case"Q":T=v[p++],C=v[p++],e=v[p++],n=v[p++],c=s.Q,t.addData(c,T,C,e,n);break;case"q":T=v[p++]+e,C=v[p++]+n,e+=v[p++],n+=v[p++],c=s.Q,t.addData(c,T,C,e,n);break;case"T":m=e,y=n,D=t.len(),A=t.data,o===s.Q&&(m+=e-A[D-4],y+=n-A[D-3]),e=v[p++],n=v[p++],c=s.Q,t.addData(c,m,y,e,n);break;case"t":m=e,y=n,D=t.len(),A=t.data,o===s.Q&&(m+=e-A[D-4],y+=n-A[D-3]),e+=v[p++],n+=v[p++],c=s.Q,t.addData(c,m,y,e,n);break;case"A":_=v[p++],S=v[p++],w=v[p++],x=v[p++],b=v[p++],T=e,C=n,e=v[p++],n=v[p++],c=s.A,ud(T,C,e,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=e,C=n,e+=v[p++],n+=v[p++],c=s.A,ud(T,C,e,n,x,b,_,S,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=a,n=i),o=c}return t.toStatic(),t}var zy=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(it);function Vy(r){return r.setData!=null}function Gy(r,t){var e=ET(r),n=F({},t);return n.buildPath=function(a){if(Vy(a)){a.setData(e.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;e.rebuildPath(i,1)}},n.applyTransform=function(a){Fy(e,a),this.dirtyShape()},n}function OT(r,t){return new zy(Gy(r,t))}function NT(r,t){var e=Gy(r,t),n=function(a){B(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(zy);return n}function BT(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var o=new it(t);return o.createPathProxy(),o.buildPath=function(s){if(Vy(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Qh(r,t){t=t||{};var e=new it;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?Fy(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var FT=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Va=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new FT},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(it);Va.prototype.type="circle";var zT=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),jh=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zT},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(it);jh.prototype.type="ellipse";var Hy=Math.PI,cu=Hy*2,gn=Math.sin,Qn=Math.cos,VT=Math.acos,Wt=Math.atan2,fd=Math.abs,Ri=Math.sqrt,yi=Math.max,$e=Math.min,Le=1e-4;function GT(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,h=s-i,c=h*l-f*u;if(!(c*c<Le))return c=(f*(t-i)-h*(r-a))/c,[r+c*l,t+c*u]}function bo(r,t,e,n,a,i,o){var s=r-e,l=t-n,u=(o?i:-i)/Ri(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,g=n+h,p=(c+d)/2,m=(v+g)/2,y=d-c,_=g-v,S=y*y+_*_,w=a-i,x=c*g-d*v,b=(_<0?-1:1)*Ri(yi(0,w*w*S-x*x)),T=(x*_-y*b)/S,C=(-x*y-_*b)/S,D=(x*_+y*b)/S,A=(-x*y+_*b)/S,I=T-p,L=C-m,P=D-p,R=A-m;return I*I+L*L>P*P+R*R&&(T=D,C=A),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(a/w-1),y1:C*(a/w-1)}}function HT(r){var t;if(V(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function WT(r,t){var e,n=yi(t.r,0),a=yi(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 l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=fd(u-l),d=v>cu&&v%cu;if(d>Le&&(v=d),!(n>Le))r.moveTo(f,h);else if(v>cu-Le)r.moveTo(f+n*Qn(l),h+n*gn(l)),r.arc(f,h,n,l,u,!c),a>Le&&(r.moveTo(f+a*Qn(u),h+a*gn(u)),r.arc(f,h,a,u,l,c));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,C=void 0,D=void 0,A=void 0,I=void 0,L=void 0,P=void 0,R=n*Qn(l),k=n*gn(l),O=a*Qn(u),E=a*gn(u),N=v>Le;if(N){var z=t.cornerRadius;z&&(e=HT(z),g=e[0],p=e[1],m=e[2],y=e[3]);var H=fd(n-a)/2;if(_=$e(H,m),S=$e(H,y),w=$e(H,g),x=$e(H,p),C=b=yi(_,S),D=T=yi(w,x),(b>Le||T>Le)&&(A=n*Qn(u),I=n*gn(u),L=a*Qn(l),P=a*gn(l),v<Hy)){var Y=GT(R,k,L,P,A,I,O,E);if(Y){var J=R-Y[0],rt=k-Y[1],_t=A-Y[0],pt=I-Y[1],Gt=1/gn(VT((J*_t+rt*pt)/(Ri(J*J+rt*rt)*Ri(_t*_t+pt*pt)))/2),Ht=Ri(Y[0]*Y[0]+Y[1]*Y[1]);C=$e(b,(n-Ht)/(Gt+1)),D=$e(T,(a-Ht)/(Gt-1))}}}if(!N)r.moveTo(f+R,h+k);else if(C>Le){var Ot=$e(m,C),Tt=$e(y,C),Q=bo(L,P,R,k,n,Ot,c),ot=bo(A,I,O,E,n,Tt,c);r.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C<b&&Ot===Tt?r.arc(f+Q.cx,h+Q.cy,C,Wt(Q.y0,Q.x0),Wt(ot.y0,ot.x0),!c):(Ot>0&&r.arc(f+Q.cx,h+Q.cy,Ot,Wt(Q.y0,Q.x0),Wt(Q.y1,Q.x1),!c),r.arc(f,h,n,Wt(Q.cy+Q.y1,Q.cx+Q.x1),Wt(ot.cy+ot.y1,ot.cx+ot.x1),!c),Tt>0&&r.arc(f+ot.cx,h+ot.cy,Tt,Wt(ot.y1,ot.x1),Wt(ot.y0,ot.x0),!c))}else r.moveTo(f+R,h+k),r.arc(f,h,n,l,u,!c);if(!(a>Le)||!N)r.lineTo(f+O,h+E);else if(D>Le){var Ot=$e(g,D),Tt=$e(p,D),Q=bo(O,E,A,I,a,-Tt,c),ot=bo(R,k,L,P,a,-Ot,c);r.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),D<T&&Ot===Tt?r.arc(f+Q.cx,h+Q.cy,D,Wt(Q.y0,Q.x0),Wt(ot.y0,ot.x0),!c):(Tt>0&&r.arc(f+Q.cx,h+Q.cy,Tt,Wt(Q.y0,Q.x0),Wt(Q.y1,Q.x1),!c),r.arc(f,h,a,Wt(Q.cy+Q.y1,Q.cx+Q.x1),Wt(ot.cy+ot.y1,ot.cx+ot.x1),c),Ot>0&&r.arc(f+ot.cx,h+ot.cy,Ot,Wt(ot.y1,ot.x1),Wt(ot.y0,ot.x0),!c))}else r.lineTo(f+O,h+E),r.arc(f,h,a,u,l,c)}r.closePath()}}}var UT=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Ce=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new UT},t.prototype.buildPath=function(e,n){WT(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(it);Ce.prototype.type="sector";var YT=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ol=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new YT},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t}(it);ol.prototype.type="ring";function XT(r,t,e,n){var a=[],i=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)fa(f,f,r[c]),ha(h,h,r[c]);fa(f,f,n[0]),ha(h,h,n[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){a.push(Ox(r[c]));continue}else l=r[c-1],u=r[c+1];Nx(i,u,l),Rl(i,i,t);var g=hf(d,l),p=hf(d,u),m=g+p;m!==0&&(g/=m,p/=m),Rl(o,i,-g),Rl(s,i,p);var y=rc([],d,o),_=rc([],d,s);n&&(ha(y,y,f),fa(y,y,h),ha(_,_,f),fa(_,_,h)),a.push(y),a.push(_)}return e&&a.push(a.shift()),a}function Wy(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=XT(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var $T=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),zn=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $T},t.prototype.buildPath=function(e,n){Wy(e,n,!0)},t}(it);zn.prototype.type="polygon";var ZT=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),tn=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZT},t.prototype.buildPath=function(e,n){Wy(e,n,!1)},t}(it);tn.prototype.type="polyline";var qT={},KT=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),lr=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KT},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=Dy(qT,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(it);lr.prototype.type="line";var ne=[],QT=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function hd(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?cc:Ft)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?cc:Ft)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?dc:Yt)(r.x1,r.cpx1,r.x2,t),(e?dc:Yt)(r.y1,r.cpy1,r.y2,t)]}var Jh=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QT},t.prototype.buildPath=function(e,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(e.moveTo(a,i),f==null||h==null?(c<1&&(Ss(a,l,o,c,ne),l=ne[1],o=ne[2],Ss(i,u,s,c,ne),u=ne[1],s=ne[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&($r(a,l,f,o,c,ne),l=ne[1],f=ne[2],o=ne[3],$r(i,u,h,s,c,ne),u=ne[1],h=ne[2],s=ne[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return hd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=hd(this.shape,e,!0);return zx(n,n)},t}(it);Jh.prototype.type="bezier-curve";var jT=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),sl=function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jT},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+a,h*o+i),e.arc(a,i,o,s,l,!u)},t}(it);sl.prototype.type="arc";var JT=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),it.prototype.getBoundingRect.call(this)},t}(it),Uy=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),Yy=function(r){B(t,r);function t(e,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(Uy),tC=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(Uy),mn=[0,0],yn=[0,0],To=new $,Co=new $,As=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new $;for(var n=0;n<2;n++)this._axes[n]=new $;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),e)for(var u=0;u<4;u++)n[u].transform(e);$.sub(a[0],n[1],n[0]),$.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,a=!e;return To.set(1/0,1/0),Co.set(0,0),!this._intersectCheckOneSide(this,t,To,Co,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,To,Co,a,-1)&&(n=!1,a)||a||$.copy(e,n?To:Co),n},r.prototype._intersectCheckOneSide=function(t,e,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,mn),this._getProjMinMaxOnAxis(l,e._corners,yn),mn[1]<yn[0]||mn[0]>yn[1]){if(s=!1,i)return s;var f=Math.abs(yn[0]-mn[1]),h=Math.abs(mn[0]-yn[1]);Math.min(f,h)>a.len()&&(f<h?$.scale(a,u,-f*o):$.scale(a,u,h*o))}else if(n){var f=Math.abs(yn[0]-mn[1]),h=Math.abs(mn[0]-yn[1]);Math.min(f,h)<n.len()&&(f<h?$.scale(n,u,f*o):$.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var a=this._axes[t],i=this._origin,o=e[0].dot(a)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+i[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}(),eC=[],rC=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.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(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ft(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(eC)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,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(e,n))return!0}return!1},t}(za),Xy=wt();function ll(r,t,e,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=at(n.duration,200),f=at(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),K(h)&&(h=h(e,a)),K(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function tv(r,t,e,n,a,i,o){var s=!1,l;K(a)?(o=i,i=a,a=null):X(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=ll(r,n,a,u?l||{}: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:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Dt(r,t,e,n,a,i){tv("update",r,t,e,n,a,i)}function Nt(r,t,e,n,a,i){tv("enter",r,t,e,n,a,i)}function Sa(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Hi(r,t,e,n,a,i){Sa(r)||tv("leave",r,t,e,n,a,i)}function vd(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Hi(r,{style:{opacity:0}},t,e,n)}function Ms(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||vd(a,t,e,n)}):vd(r,t,e,n)}function Wi(r){Xy(r).oldStyle=r.style}function nC(r){return Xy(r).oldStyle}var Is=Math.max,Ls=Math.min,zf={};function aC(r){return it.extend(r)}var iC=NT;function oC(r,t){return iC(r,t)}function He(r,t){zf[r]=t}function sC(r){if(zf.hasOwnProperty(r))return zf[r]}function ev(r,t,e,n){var a=OT(r,t);return e&&(n==="center"&&(e=Zy(e,a.getBoundingRect())),qy(a,e)),a}function $y(r,t,e){var n=new Ge({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(Zy(t,i))}}});return n}function Zy(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Vf=BT;function qy(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Ui(r,t){return Dy(r,r,{lineWidth:t}),r}function lC(r){return Ay(r.shape,r.shape,r.style),r}var uC=An;function rv(r,t){for(var e=Fh([]);r&&r!==t;)ya(e,r.getLocalTransform(),e),r=r.parent;return e}function nv(r,t,e){return t&&!te(t)&&(t=ro.getLocalTransform(t)),e&&(t=Ks([],t)),be([],r,t)}function Ky(r,t,e){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=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=nv(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function cd(r){return!r.isGroup}function fC(r){return r.shape!=null}function Qy(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){cd(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fC(o)&&(s.shape=F({},o.shape)),s}var i=n(r);t.traverse(function(o){if(cd(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Dt(o,l,e,st(o).dataIndex)}}})}function jy(r,t){return G(r,function(e){var n=e[0];n=Is(n,t.x),n=Ls(n,t.x+t.width);var a=e[1];return a=Is(a,t.y),a=Ls(a,t.y+t.height),[n,a]})}function hC(r,t){var e=Is(r.x,t.x),n=Ls(r.x+r.width,t.x+t.width),a=Is(r.y,t.y),i=Ls(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function ul(r,t,e){var n=F({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),j(a,e),new Ge(n)):ev(r.replace("path://",""),n,e,"center")}function vC(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Jy(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Jy(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,h=s-i,c=du(f,h,l,u);if(cC(c))return!1;var v=r-a,d=t-i,g=du(v,d,l,u)/c;if(g<0||g>1)return!1;var p=du(v,d,f,h)/c;return!(p<0||p>1)}function du(r,t,e,n){return r*n-e*t}function cC(r){return r<=1e-6&&r>=-1e-6}function fl(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=U(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&M(xt(l),function(f){br(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=st(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:j({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function dd(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function hl(r,t){if(r)if(V(r))for(var e=0;e<r.length;e++)dd(r[e],t);else dd(r,t)}He("circle",Va);He("ellipse",jh);He("sector",Ce);He("ring",ol);He("polygon",zn);He("polyline",tn);He("rect",bt);He("line",lr);He("bezierCurve",Jh);He("arc",sl);const vl=Object.freeze(Object.defineProperty({__proto__:null,Arc:sl,BezierCurve:Jh,BoundingRect:ft,Circle:Va,CompoundPath:JT,Ellipse:jh,Group:St,Image:Ge,IncrementalDisplayable:rC,Line:lr,LinearGradient:Yy,OrientedBoundingRect:As,Path:it,Point:$,Polygon:zn,Polyline:tn,RadialGradient:tC,Rect:bt,Ring:ol,Sector:Ce,Text:At,applyTransform:nv,clipPointsByRect:jy,clipRectByRect:hC,createIcon:ul,extendPath:oC,extendShape:aC,getShapeClass:sC,getTransform:rv,groupTransition:Qy,initProps:Nt,isElementRemoved:Sa,lineLineIntersect:Jy,linePolygonIntersect:vC,makeImage:$y,makePath:ev,mergePath:Vf,registerShape:He,removeElement:Hi,removeElementWithFadeOut:Ms,resizePath:qy,setTooltipConfig:fl,subPixelOptimize:uC,subPixelOptimizeLine:Ui,subPixelOptimizeRect:lC,transformDirection:Ky,traverseElements:hl,updateProps:Dt},Symbol.toStringTag,{value:"Module"}));var cl={};function t0(r,t){for(var e=0;e<Te.length;e++){var n=Te[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Gf(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<Te.length;u++){var f=Te[u],h=t[f];l[f]=at(n?n.getFormattedLabel(a,f,null,i,h&&h.get("formatter")):null,s)}return l}function Vn(r,t,e,n){e=e||cl;for(var a=r instanceof At,i=!1,o=0;o<Ds.length;o++){var s=t[Ds[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new At,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Gf(e,t),f=t.normal,h=!!f.getShallow("show"),c=we(f,n&&n.normal,e,!1,!a);c.text=u.normal,a||r.setTextConfig(pd(f,e,!1));for(var o=0;o<Te.length;o++){var v=Te[o],s=t[v];if(s){var d=l.ensureState(v),g=!!at(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=we(s,n&&n[v],e,!0,!a),d.style.text=u[v],!a){var p=r.ensureState(v);p.textConfig=pd(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(Ga(l).setLabelText=function(m){var y=Gf(e,t,m);t0(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Gn(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Te.length;n++){var a=Te[n];e[a]=r.getModel([a,t])}return e}function we(r,t,e,n,a){var i={};return dC(i,r,e,n,a),t&&F(i,t),i}function pd(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=at(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?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=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function dC(r,t,e,n,a){e=e||cl;var i=t.ecModel,o=i&&i.option.textStyle,s=pC(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);_d(l[u]={},f,o,e,n,a,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),_d(r,t,o,e,n,a,!0,!1)}function pC(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||cl).rich;if(e){t=t||{};for(var n=xt(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var gd=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],md=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],yd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _d(r,t,e,n,a,i,o,s){e=!a&&e||cl;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=at(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=at(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=at(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=at(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!a&&!i&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var g=0;g<gd.length;g++){var p=gd[g],m=at(t.getShallow(p),e[p]);m!=null&&(r[p]=m)}for(var g=0;g<md.length;g++){var p=md[g],m=t.getShallow(p);m!=null&&(r[p]=m)}if(r.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!n.disableBox){for(var g=0;g<yd.length;g++){var p=yd[g],m=t.getShallow(p);m!=null&&(r[p]=m)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function e0(r,t){var e=t&&t.getModel("textStyle");return rr([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ga=wt();function r0(r,t,e,n){if(r){var a=Ga(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function n0(r,t,e,n,a){var i=Ga(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=at(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var h=gy(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:h;var c=Gf({labelDataIndex:t,labelFetcher:a,defaultText:o?o(h):h+""},i.statesModels,h);t0(r,c)}r.percent=0,(i.prevValue==null?Nt:Dt)(r,{percent:1},n,t,null,u)}var gC=["textStyle","color"],pu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],gu=new At,mC=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(gC):null)},r.prototype.getFont=function(){return e0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<pu.length;n++)e[pu[n]]=this.getShallow(pu[n]);return gu.useStyle(e),gu.update(),gu.getBoundingRect()},r}(),a0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],yC=Gi(a0),_C=function(){function r(){}return r.prototype.getLineStyle=function(t){return yC(this,t)},r}(),i0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],SC=Gi(i0),xC=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return SC(this,t,e)},r}(),Ct=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){nt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(et(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){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&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();Yh(Ct);yb(Ct);ze(Ct,_C);ze(Ct,xC);ze(Ct,bb);ze(Ct,mC);var wC=Math.round(Math.random()*10);function io(r){return[r||"",wC++].join("_")}function bC(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=nr(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=nr(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function TC(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(M(i,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),M(d.successor,g?m:p)}M(c,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){c[y]=!0,p(y)}};function e(i){var o={},s=[];return M(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=a(f,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),M(h,function(c){lt(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);lt(v.successor,c)<0&&v.successor.push(l)})}),{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(l){lt(o,l)>=0&&s.push(l)}),s}}function av(r,t){return nt(nt({},r,!0),t,!0)}const CC={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},DC={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var Ps="ZH",iv="EN",xa=iv,ls={},ov={},o0=tt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xa).toUpperCase();return r.indexOf(Ps)>-1?Ps:xa}():xa;function s0(r,t){r=r.toUpperCase(),ov[r]=new Ct(t),ls[r]=t}function AC(r){if(U(r)){var t=ls[r.toUpperCase()]||{};return r===Ps||r===iv?et(t):nt(et(t),et(ls[xa]),!1)}else return nt(et(r),et(ls[xa]),!1)}function MC(r){return ov[r]}function IC(){return ov[xa]}s0(iv,CC);s0(Ps,DC);var sv=1e3,lv=sv*60,ki=lv*60,xe=ki*24,Sd=xe*365,_i={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}"},Do="{yyyy}-{MM}-{dd}",xd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Do,hour:Do+" "+_i.hour,minute:Do+" "+_i.minute,second:Do+" "+_i.second,millisecond:_i.none},mu=["year","month","day","hour","minute","second","millisecond"],l0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pr(r,t){return r+="","0000".substr(0,t-r.length)+r}function wa(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function LC(r){return r===wa(r)}function PC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dl(r,t,e,n){var a=Tr(r),i=a[uv(e)](),o=a[ba(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[pl(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Yi(e)](),h=(f-1)%12+1,c=a[gl(e)](),v=a[ml(e)](),d=a[yl(e)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof Ct?n:MC(n||o0)||IC(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),w=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Pr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Pr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Pr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Pr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Pr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Pr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Pr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Pr(d,3)).replace(/{S}/g,d+"")}function RC(r,t,e,n,a){var i=null;if(U(e))i=e;else if(K(e))i=e(r.value,t,{level:r.level});else{var o=F({},_i);if(r.level>0)for(var s=0;s<mu.length;++s)o[mu[s]]="{primary|"+o[mu[s]]+"}";var l=e?e.inherit===!1?e:j(e,o):o,u=u0(r.value,a);if(l[u])i=l[u];else if(l.inherit){for(var f=l0.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(V(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return dl(new Date(r.value),i,a,n)}function u0(r,t){var e=Tr(r),n=e[ba(t)]()+1,a=e[pl(t)](),i=e[Yi(t)](),o=e[gl(t)](),s=e[ml(t)](),l=e[yl(t)](),u=l===0,f=u&&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":u?"second":"millisecond"}function wd(r,t,e){var n=dt(r)?Tr(r):r;switch(t=t||u0(r,e),t){case"year":return n[uv(e)]();case"half-year":return n[ba(e)]()>=6?1:0;case"quarter":return Math.floor((n[ba(e)]()+1)/4);case"month":return n[ba(e)]();case"day":return n[pl(e)]();case"half-day":return n[Yi(e)]()/24;case"hour":return n[Yi(e)]();case"minute":return n[gl(e)]();case"second":return n[ml(e)]();case"millisecond":return n[yl(e)]()}}function uv(r){return r?"getUTCFullYear":"getFullYear"}function ba(r){return r?"getUTCMonth":"getMonth"}function pl(r){return r?"getUTCDate":"getDate"}function Yi(r){return r?"getUTCHours":"getHours"}function gl(r){return r?"getUTCMinutes":"getMinutes"}function ml(r){return r?"getUTCSeconds":"getSeconds"}function yl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function kC(r){return r?"setUTCFullYear":"setFullYear"}function f0(r){return r?"setUTCMonth":"setMonth"}function h0(r){return r?"setUTCDate":"setDate"}function v0(r){return r?"setUTCHours":"setHours"}function c0(r){return r?"setUTCMinutes":"setMinutes"}function d0(r){return r?"setUTCSeconds":"setSeconds"}function p0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function g0(r){if(!uy(r))return U(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function m0(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var _l=Om;function Hf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&rr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Tr(r):r;if(isNaN(+l)){if(s)return"-"}else return dl(l,n,e)}if(t==="ordinal")return ff(r)?a(r):dt(r)&&i(r)?r+"":"-";var u=qr(r);return i(u)?g0(u):ff(r)?a(r):typeof r=="boolean"?r+"":"-"}var bd=["a","b","c","d","e","f","g"],yu=function(r,t){return"{"+r+(t??"")+"}"};function y0(r,t,e){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=bd[i];r=r.replace(yu(o),yu(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(yu(bd[l],s),e?he(u):u)}return r}function EC(r,t){var e=U(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.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:'+he(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+he(n)+";"+(t||"")+'"></span>';var o=e.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 On(r,t){return t=t||"transparent",U(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Td(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var us=M,OC=["left","right","top","bottom","width","height"],Ao=[["width","left","right"],["height","top","bottom"]];function fv(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=i+g,v>n||l.newline?(i=0,v=g,o+=s+e,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||l.newline?(i+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Ta=fv;ct(fv,"vertical");ct(fv,"horizontal");function Qr(r,t,e){e=_l(e||0);var n=t.width,a=t.height,i=Z(r.left,n),o=Z(r.top,a),s=Z(r.right,n),l=Z(r.bottom,a),u=Z(r.width,n),f=Z(r.height,a),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-i),isNaN(f)&&(f=a-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-c),isNaN(o)&&(o=a-l-f-h),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=n-c-i-(s||0)),isNaN(f)&&(f=a-h-o-(l||0));var d=new ft(i+e[3],o+e[0],u,f);return d.margin=e,d}function NC(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Qr(j({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function Xi(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Pa(r,t,e){var n=e&&e.ignoreSize;!V(n)&&(n=[n,n]);var a=o(Ao[0],0),i=o(Ao[1],1);u(Ao[0],r,a),u(Ao[1],r,i);function o(f,h){var c={},v=0,d={},g=0,p=2;if(us(f,function(_){d[_]=r[_]}),us(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&g++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var m=0;m<f.length;m++){var y=f[m];if(!s(c,y)&&s(r,y)){c[y]=r[y];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){us(f,function(v){h[v]=c[v]})}}function Sl(r){return BC({},r)}function BC(r,t){return t&&r&&us(OC,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var FC=wt(),vt=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=io("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Xi(this),i=a?Sl(e):{},o=n.getTheme();nt(e,o.get(this.mainType)),nt(e,this.getDefaultOption()),a&&Pa(e,i,a)},t.prototype.mergeOption=function(e,n){nt(this.option,e,!0);var a=Xi(this);a&&Pa(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!pb(e))return e.defaultOption;var n=FC(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=nt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return ao(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Ct);yy(vt,Ct);tl(vt);bC(vt);TC(vt,zC);function zC(r){var t=[];return M(vt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=G(t,function(e){return nr(e).main}),r!=="dataset"&&lt(t,"dataset")<=0&&t.unshift("dataset"),t}var _0="";typeof navigator<"u"&&(_0=navigator.platform||"");var jn="rgba(0, 0, 0, 0.2)";const VC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:jn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:jn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:jn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:jn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:jn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:jn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_0.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 S0=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),De="original",ee="arrayRows",Ae="objectRows",ur="keyedColumns",Yr="typedArray",x0="unknown",or="column",Ha="row",Vt={Must:1,Might:2,Not:3},w0=wt();function GC(r){w0(r).datasetMap=q()}function HC(r,t,e){var n={},a=hv(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=w0(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(g,p){var m=X(g)?g:r[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,h=d(m)),n[m.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});M(r,function(g,p){var m=g.name,y=d(g);if(f==null){var _=c.valueWayDim;v(n[m],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(i,0,y);else{var _=c.categoryWayDim;v(n[m],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}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 WC(r,t,e){var n={},a=hv(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Ae||i===ur)&&M(o,function(f,h){(X(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var g=T0(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Vt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Vt.Not)&&(f.n=v),m(f)&&c[f.n]!==Vt.Not)return f;p||(g===Vt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(h)?h:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function hv(r){var t=r.get("data",!0);if(!t)return ao(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},jt).models[0]}function UC(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ao(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},jt).models}function b0(r,t){return T0(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function T0(r,t,e,n,a,i){var o,s=5;if(ue(r))return Vt.Not;var l,u;if(n){var f=n[i];X(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(t===ee){var h=r;if(e===Ha){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===Ae){var g=r;if(!l)return Vt.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[l]))!=null)return o}}else if(t===ur){var m=r;if(!l)return Vt.Not;var c=m[l];if(!c||ue(c))return Vt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===De)for(var y=r,v=0;v<y.length&&v<s;v++){var p=y[v],_=no(p);if(!V(_))return Vt.Not;if((o=S(_[i]))!=null)return o}function S(w){var x=U(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?Vt.Might:Vt.Not;if(x&&w!=="-")return Vt.Must}return Vt.Not}var Wf=q();function YC(r,t){sr(Wf.get(r)==null&&t),Wf.set(r,t)}function XC(r,t,e){var n=Wf.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var Cd=wt();wt();var vv=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=Et(this.get("color",!0)),i=this.get("colorLayer",!0);return ZC(this,Cd,a,i,t,e,n)},r.prototype.clearColorPalette=function(){qC(this,Cd)},r}();function $C(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function ZC(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:$C(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%f.length,h}}function qC(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Mo,ti,Dd,Ad="\0_ec_inner",KC=1,cv=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ct(i),this._locale=new Ct(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=Ld(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Ld(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Dd(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=n&&n.replaceMergeMainTypeMap;GC(this),M(e,function(h,c){h!=null&&(vt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?et(h):nt(a[c],h,!0))}),u&&u.each(function(h,c){vt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),vt.topologicalTravel(s,vt.getAllClassMainTypes(),f,this);function f(h){var c=XC(this,h,Et(e[h])),v=i.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=Jw(v,c,d);sb(g,h,vt),a[h]=null,i.set(h,null),o.set(h,0);var p=[],m=[],y=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=vt.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 D=F({componentIndex:w},S.keyInfo);x=new C(b,this,this,D),F(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),m.push(x),y++):(p.push(void 0),m.push(void 0))},this),a[h]=p,i.set(h,m),o.set(h,y),h==="series"&&Mo(this)}this._seriesIndices||Mo(this)},t.prototype.getOption=function(){var e=et(this.option);return M(e,function(n,a){if(vt.hasClass(a)){for(var i=Et(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Vi(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Ad],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);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(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],M(Et(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Md("id",i,s):o!=null?l=Md("name",o,s):l=Rt(s,function(u){return!!u}),Id(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):Rt(this._componentsMap.get(a),function(u){return!!u});return l(Id(o,e));function s(u){var f=a+"Index",h=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?Rt(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(K(e)){var o=n,s=e;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 l=U(e)?i.get(e):X(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=ir(e,null);return Rt(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Rt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Rt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){ti(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){M(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){ti(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return M(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return ti(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){ti(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=q(a)},t.prototype.restoreData=function(e){Mo(this);var n=this._componentsMap,a=[];n.each(function(i,o){vt.hasClass(o)&&a.push(o)}),vt.topologicalTravel(a,vt.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!QC(o,e))&&o.restoreData()})})},t.internalField=function(){Mo=function(e){var n=e._seriesIndices=[];M(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=q(n)},ti=function(e){},Dd=function(e,n){e.option={},e.option[Ad]=KC,e._componentsMap=q({series:[]}),e._componentsCount=q();var a=n.aria;X(a)&&a.enabled==null&&(a.enabled=!0),jC(n,e._theme.option),nt(n,VC,!1),e._mergeOption(n,null)}}(),t}(Ct);function QC(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function jC(r,t){var e=r.color&&!r.colorLayer;M(t,function(n,a){a==="colorLayer"&&e||vt.hasClass(a)||(typeof n=="object"?r[a]=r[a]?nt(r[a],n,!1):et(n):r[a]==null&&(r[a]=n))})}function Md(r,t,e){if(V(t)){var n=q();return M(t,function(i){if(i!=null){var o=ir(i,null);o!=null&&n.set(i,!0)}}),Rt(e,function(i){return i&&n.get(i[r])})}else{var a=ir(t,null);return Rt(e,function(i){return i&&a!=null&&i[r]===a})}}function Id(r,t){return t.hasOwnProperty("subType")?Rt(r,function(e){return e&&e.subType===t.subType}):r}function Ld(r){var t=q();return r&&M(Et(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ze(cv,vv);var JC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],C0=function(){function r(t){M(JC,function(e){this[e]=mt(t[e],t)},this)}return r}(),_u={},dv=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];M(_u,function(a,i){var o=a.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){M(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){_u[t]=e},r.get=function(t){return _u[t]},r}(),tD=/^(min|max)?(.+)$/,eD=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(M(Et(t.series),function(o){o&&o.data&&ue(o.data)&&gs(o.data)}),M(Et(t.dataset),function(o){o&&o.source&&ue(o.source)&&gs(o.source)})),t=et(t);var a=this._optionBackup,i=rD(t,e,!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},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],et(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=et(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)nD(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!iD(o,this._currentMediaIndices)&&(s=G(o,function(f){return et(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function rD(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||f)&&(r.options=r.media=null),i=r),f&&V(u)&&M(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),c(i),M(l,function(v){return c(v)}),M(n,function(v){return c(v.option)});function c(v){M(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function nD(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return M(r,function(i,o){var s=o.match(tD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();aD(n[u],i,l)||(a=!1)}}),a}function aD(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function iD(r,t){return r.join(",")===t.join(",")}var Me=M,$i=X,Pd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Su(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Pd.length;e<n;e++){var a=Pd[e],i=t.normal,o=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?nt(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?nt(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Xt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,j(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Si(r){Xt(r,"itemStyle"),Xt(r,"lineStyle"),Xt(r,"areaStyle"),Xt(r,"label"),Xt(r,"labelLine"),Xt(r,"upperLabel"),Xt(r,"edgeLabel")}function Pt(r,t){var e=$i(r)&&r[t],n=$i(e)&&e.textStyle;if(n)for(var a=0,i=Ec.length;a<i;a++){var o=Ec[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}function ye(r){r&&(Si(r),Pt(r,"label"),r.emphasis&&Pt(r.emphasis,"label"))}function oD(r){if($i(r)){Su(r),Si(r),Pt(r,"label"),Pt(r,"upperLabel"),Pt(r,"edgeLabel"),r.emphasis&&(Pt(r.emphasis,"label"),Pt(r.emphasis,"upperLabel"),Pt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Su(t),ye(t));var e=r.markLine;e&&(Su(e),ye(e));var n=r.markArea;n&&ye(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!ue(i))for(var o=0;o<i.length;o++)ye(i[o]);M(r.categories,function(u){Si(u)})}if(a&&!ue(a))for(var o=0;o<a.length;o++)ye(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ye(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)V(l[o])?(ye(l[o][0]),ye(l[o][1])):ye(l[o]);r.type==="gauge"?(Pt(r,"axisLabel"),Pt(r,"title"),Pt(r,"detail")):r.type==="treemap"?(Xt(r.breadcrumb,"itemStyle"),M(r.levels,function(u){Si(u)})):r.type==="tree"&&Si(r.leaves)}}function dr(r){return V(r)?r:r?[r]:[]}function Rd(r){return(V(r)?r[0]:r)||{}}function sD(r,t){Me(dr(r.series),function(n){$i(n)&&oD(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Me(e,function(n){Me(dr(r[n]),function(a){a&&(Pt(a,"axisLabel"),Pt(a.axisPointer,"label"))})}),Me(dr(r.parallel),function(n){var a=n&&n.parallelAxisDefault;Pt(a,"axisLabel"),Pt(a&&a.axisPointer,"label")}),Me(dr(r.calendar),function(n){Xt(n,"itemStyle"),Pt(n,"dayLabel"),Pt(n,"monthLabel"),Pt(n,"yearLabel")}),Me(dr(r.radar),function(n){Pt(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)}),Me(dr(r.geo),function(n){$i(n)&&(ye(n),Me(dr(n.regions),function(a){ye(a)}))}),Me(dr(r.timeline),function(n){ye(n),Xt(n,"label"),Xt(n,"itemStyle"),Xt(n,"controlStyle",!0);var a=n.data;V(a)&&M(a,function(i){X(i)&&(Xt(i,"label"),Xt(i,"itemStyle"))})}),Me(dr(r.toolbox),function(n){Xt(n,"iconStyle"),Me(n.feature,function(a){Xt(a,"iconStyle")})}),Pt(Rd(r.axisPointer),"label"),Pt(Rd(r.tooltip).axisPointer,"label")}function lD(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function uD(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=e)}function kd(r){r&&M(fD,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var fD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ei(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<xu.length;e++){var n=xu[e][1],a=xu[e][0];t[n]!=null&&(t[a]=t[n])}}function Ed(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Od(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function vD(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function D0(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&D0(r[e].children,t)}function A0(r,t){sD(r,t),r.series=Et(r.series),M(r.series,function(e){if(X(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Ed(e.label);var a=e.data;if(a&&!ue(a))for(var i=0;i<a.length;i++)Ed(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=lD(e,"pointer.color");o!=null&&uD(e,"itemStyle.color",o)}else if(n==="bar"){ei(e),ei(e.backgroundStyle),ei(e.emphasis);var a=e.data;if(a&&!ue(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(ei(a[i]),ei(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Od(e),D0(e.data,Od)}else n==="graph"||n==="sankey"?vD(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&j(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),kd(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(hD,function(e){var n=r[e];n&&(V(n)||(n=[n]),M(n,function(a){kd(a)}))})}function cD(r){var t=q();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(dD)}function dD(r){M(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,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=e-1;p>=0;p--){var m=r[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=qw(c,y),g=y;break}}}return n[0]=c,n[1]=g,n})})}var xl=function(){function r(t){this.data=t.data||(t.sourceFormat===ur?{}:[]),this.sourceFormat=t.sourceFormat||x0,this.seriesLayoutBy=t.seriesLayoutBy||or,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var a=e[n];a.type==null&&b0(this,n)===Vt.Must&&(a.type="ordinal")}}return r}();function pv(r){return r instanceof xl}function Uf(r,t,e){e=e||I0(r);var n=t.seriesLayoutBy,a=gD(r,e,n,t.sourceHeader,t.dimensions),i=new xl({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:et(t)});return i}function M0(r){return new xl({data:r,sourceFormat:ue(r)?Yr:De})}function pD(r){return new xl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:et(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function I0(r){var t=x0;if(ue(r))t=Yr;else if(V(r)){r.length===0&&(t=ee);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(V(a)||ue(a)){t=ee;break}else if(X(a)){t=Ae;break}}}}else if(X(r)){for(var i in r)if(br(r,i)&&te(r[i])){t=ur;break}}return t}function gD(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:Nd(a),startIndex:o,dimensionsDetectedCount:i};if(t===ee){var s=r;n==="auto"||n==null?Bd(function(u){u!=null&&u!=="-"&&(U(u)?o==null&&(o=1):o=0)},e,s,10):o=dt(n)?n:n?1:0,!a&&o===1&&(a=[],Bd(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===Ha?s.length:s[0]?s[0].length:null}else if(t===Ae)a||(a=mD(r));else if(t===ur)a||(a=[],M(r,function(u,f){a.push(f)}));else if(t===De){var l=no(r[0]);i=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Nd(a),dimensionsDetectedCount:i}}function mD(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return xt(e)}function Nd(r){if(r){var t=q();return G(r,function(e,n){e=X(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.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 Bd(r,t,e,n){if(t===Ha)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function L0(r){var t=r.sourceFormat;return t===Ae||t===ur}var _n,Sn,xn,Fd,zd,P0=function(){function r(t,e){var n=pv(t)?t:M0(t);this._source=n;var a=this._data=n.data;n.sourceFormat===Yr&&(this._offset=0,this._dimSize=e,this._data=a),zd(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;zd=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Fd[gv(u,f)];if(F(o,v),u===Yr)o.getItem=e,o.count=a,o.fillStorage=n;else{var d=R0(u,f);o.getItem=mt(d,null,s,h,c);var g=k0(u,f);o.count=mt(g,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,m=l[c],y=0;y<p;y++){var _=f[y*h+c];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};Fd=(t={},t[ee+"_"+or]={pure:!0,appendData:i},t[ee+"_"+Ha]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ae]={pure:!0,appendData:i},t[ur]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[De]={appendData:i},t[Yr]={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])}}(),r}(),Vd=function(r,t,e,n){return r[n]},yD=(_n={},_n[ee+"_"+or]=function(r,t,e,n){return r[n+t]},_n[ee+"_"+Ha]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},_n[Ae]=Vd,_n[ur]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[n]:null}return i},_n[De]=Vd,_n);function R0(r,t){var e=yD[gv(r,t)];return e}var Gd=function(r,t,e){return r.length},_D=(Sn={},Sn[ee+"_"+or]=function(r,t,e){return Math.max(0,r.length-t)},Sn[ee+"_"+Ha]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Sn[Ae]=Gd,Sn[ur]=function(r,t,e){var n=e[0].name,a=r[n];return a?a.length:0},Sn[De]=Gd,Sn);function k0(r,t){var e=_D[gv(r,t)];return e}var wu=function(r,t,e){return r[t]},SD=(xn={},xn[ee]=wu,xn[Ae]=function(r,t,e){return r[e]},xn[ur]=wu,xn[De]=function(r,t,e){var n=no(r);return n instanceof Array?n[t]:n},xn[Yr]=wu,xn);function E0(r){var t=SD[r];return t}function gv(r,t){return r===ee?r+"_"+t:r}function Ra(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return E0(i)(n,o,s)}else{var l=n;return i===De&&(l=no(n)),l}}}}var xD=/\{@(.+?)\}/g,wD=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.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:e,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&V(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(K(i))return l.status=e,l.dimensionIndex=a,i(l);if(U(i)){var f=y0(i,l);return f.replace(xD,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=Ra(s,t,d);if(o&&V(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Ra(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Hd(r){var t,e;return X(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Ei(r){return new bD(r)}var bD=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.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,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._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(V(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,a,i){Wd.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Wd.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),V(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Wd=function(){var r,t,e,n,a,i={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}}();function fs(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!dt(r)&&r!=null&&r!=="-"&&(r=+Tr(r)),r==null||r===""?NaN:Number(r))}var TD=q({number:function(r){return parseFloat(r)},time:function(r){return+Tr(r)},trim:function(r){return U(r)?rr(r):r}});function O0(r){return TD.get(r)}var N0={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},CD=function(){function r(t,e){if(!dt(e)){var n="";ht(n)}this._opFn=N0[t],this._rvalFloat=qr(e)}return r.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(qr(t),this._rvalFloat)},r}(),B0=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=dt(t)?t:qr(t),a=dt(e)?e:qr(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=U(t),l=U(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),DD=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=qr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=qr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function AD(r,t){return r==="eq"||r==="ne"?new DD(r==="eq",t):br(N0,r)?new CD(r,t):null}var MD=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return fs(t,e)},r}();function ID(r,t){var e=new MD,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==or&&ht(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";br(l,m)&&ht(_),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=R0(a,or);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(n,i,s,g)},e.getRawData=mt(LD,null,r)),e.cloneRawData=mt(PD,null,r);var c=k0(a,or);e.count=mt(c,null,n,i,s);var v=E0(a);e.retrieveValue=function(g,p){var m=h(n,i,s,g);return d(m,p)};var d=e.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return e.getDimensionInfo=mt(RD,null,s,l),e.cloneAllDimensionInfo=mt(kD,null,s),e}function LD(r){var t=r.sourceFormat;if(!mv(t)){var e="";ht(e)}return r.data}function PD(r){var t=r.sourceFormat,e=r.data;if(!mv(t)){var n="";ht(n)}if(t===ee){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===Ae){for(var a=[],i=0,o=e.length;i<o;i++)a.push(F({},e[i]));return a}}function RD(r,t,e){if(e!=null){if(dt(e)||!isNaN(e)&&!br(t,e))return r[e];if(br(t,e))return t[e]}}function kD(r){return et(r)}var F0=q();function ED(r){r=et(r);var t=r.type,e="";t||ht(e);var n=t.split(":");n.length!==2&&ht(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,F0.set(t,r)}function OD(r,t,e){var n=Et(r),a=n.length,i="";a||ht(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=ND(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function ND(r,t,e,n){var a="";t.length||ht(a),X(r)||ht(a);var i=r.type,o=F0.get(i);o||ht(a);var s=G(t,function(u){return ID(u,o)}),l=Et(o.transform({upstream:s[0],upstreamList:s,config:et(r.config)}));return G(l,function(u,f){var h="";X(u)||ht(h),u.data||ht(h);var c=I0(u.data);mv(c)||ht(h);var v,d=t[0];if(d&&f===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),v={seriesLayoutBy:or,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:or,sourceHeader:0,dimensions:u.dimensions};return Uf(u.data,v,null)})}function mv(r){return r===ee||r===Ae}var wl="undefined",BD=typeof Uint32Array===wl?Array:Uint32Array,FD=typeof Uint16Array===wl?Array:Uint16Array,z0=typeof Int32Array===wl?Array:Int32Array,Ud=typeof Float64Array===wl?Array:Float64Array,V0={float:Ud,int:z0,ordinal:Array,number:Array,time:Ud},bu;function ri(r){return r>65535?BD:FD}function Jn(){return[1/0,-1/0]}function zD(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Yd(r,t,e,n,a){var i=V0[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var Yf=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=bu[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],L0(a),this._dimensions=G(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new V0[e||"float"](this._rawCount),this._rawExtent[i]=Jn(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=Jn());for(var l=i[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];Yd(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<i;d++){var f=a[d],g=bu.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=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Jn()),Yd(i,f,h.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var c=[],v=t;v<e;v++){c=a.getItem(v,c);for(var d=0;d<s;d++){var g=i[d],p=this._dimValueGetter(c,u[d],v,d);g[v]=p;var m=l[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],a=[];if(e==null){e=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],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var n=e.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},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[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(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-i[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=ri(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=ri(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],h=n._chunks,c=0;c<a;c++){var v=void 0,d=n.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var g=h[f][d];v=e(g,c)}else{for(var p=0;p<l;p++)s[p]=h[t[p]][d];s[p]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var a=xt(t),i=a.length;if(!i)return this;var o=e.count(),s=ri(e._rawCount),l=new s(o),u=0,f=a[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var g=0;if(i===1){for(var p=v[a[0]],m=0;m<n;m++){var y=p[m];(y>=h&&y<=c||isNaN(y))&&(l[u++]=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],m=0;m<n;m++){var y=p[m],x=_[m];(y>=h&&y<=c||isNaN(y))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=g),g++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var b=e.getRawIndex(m),y=v[a[0]][b];(y>=h&&y<=c||isNaN(y))&&(l[u++]=b)}else for(var m=0;m<o;m++){for(var T=!0,b=e.getRawIndex(m),C=0;C<i;C++){var D=a[C],y=v[D][b];(y<t[D][0]||y>t[D][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(m))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Jn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=a[e[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var g=e[f],p=d[f],m=u[g],y=a[g];y&&(y[c]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(ri(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var S=this.getRawIndex(_),w=i[S];isNaN(w)||(y+=w)}y/=p-g;var x=d,b=Math.min(d+l,o),T=d-1,C=i[u];f=-1,c=x;for(var D=-1,A=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=i[S];if(isNaN(w)){A++,D<0&&(D=S);continue}h=Math.abs((T-m)*(w-C)-(T-_)*(y-C)),h>f&&(f=h,c=S)}A>0&&A<b-x&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=i._rawExtent[t]=Jn(),c=new(ri(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var m=n(s),y=this.getRawIndex(Math.min(d+a(s,m)||0,f-1));u[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),c[v++]=y}return i._count=v,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){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:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Jn();if(!e)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],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&Xr(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?zD(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=et(this._extent),t._rawExtent=et(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var a=0;a<n;a++)e[a]=this._indices[a]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return fs(e[i],this._dimensions[i])}bu={arrayRows:t,objectRows:function(e,n,a,i){return fs(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return fs(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),G0=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(Io(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=ue(s)?Yr:De,i=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=at(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=at(h.sourceHeader,c.sourceHeader),g=at(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;a=p?[Uf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Uf(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&$d(i)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&$d(h),s.push(f),l.push(u._getVersionSign())}),n?o=OD(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[pD(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Io(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Yf,s.initData(new P0(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Io(t)){var e=hv(t);return e?[e.getSourceManager()]:[]}else return G(UC(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(Io(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function Xd(r){var t=r.option.transform;t&&gs(r.option.transform)}function Io(r){return r.mainType==="series"}function $d(r){throw new Error(r)}var H0="line-height:1";function W0(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+he(n+"")+"px;color:"+he(e)+";font-weight:"+he(a+""),valueStyle:"font-size:"+he(o+"")+"px;color:"+he(i)+";font-weight:"+he(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var VD=[0,10,20,30],GD=["",`
`,`

`,`


`];function Nn(r,t){return t.type=r,t}function Xf(r){return r.type==="section"}function U0(r){return Xf(r)?HD:WD}function Y0(r){if(Xf(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return M(r.blocks,function(a){var i=Y0(a);i>=t&&(t=i+ +(n&&(!i||Xf(a)&&!a.noHeader)))}),t}return 0}function HD(r,t,e,n){var a=t.noHeader,i=UD(Y0(t)),o=[],s=t.blocks||[];sr(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(br(u,l)){var f=new B0(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(d,g){var p=t.valueFormatter,m=U0(d)(p?F(F({},r),{valueFormatter:p}):r,d,g>0?i.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):$f(o.join(""),a?e:i.html);if(a)return h;var c=Hf(t.header,"ordinal",r.useUTC),v=W0(n,r.renderMode).nameStyle;return r.renderMode==="richText"?X0(r,c,v)+i.richText+h:$f('<div style="'+v+";"+H0+';">'+he(c)+"</div>"+h,e)}function WD(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=V(S)?S:[S],G(S,function(w,x){return Hf(w,V(v)?v[x]:v,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":Hf(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!i,p=!s&&i,m=W0(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":h)+(i?"":X0(r,c,y))+(o?"":$D(r,d,g,p,_)):$f((s?"":h)+(i?"":YD(c,!s,y))+(o?"":XD(d,g,p,_)),e)}}function Zd(r,t,e,n,a,i){if(r){var o=U0(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function UD(r){return{html:VD[r],richText:GD[r]}}function $f(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+H0+';">'+r+e+"</div>"}function YD(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+he(r)+"</span>"}function XD(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=V(r)?r:[r],'<span style="'+i+";"+n+'">'+G(r,function(o){return he(o)}).join("&nbsp;&nbsp;")+"</span>"}function X0(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function $D(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join("  "):t,i)}function $0(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return On(n)}function Z0(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Tu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=fy()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=EC({color:e,type:t,renderMode:n,markerId:a});return U(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};V(e)?M(e,function(i){return F(n,i)}):F(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function ZD(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=V(s),u=$0(t,e),f,h,c,v;if(o>1||l&&!o){var d=qD(s,t,e,i,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=f=Ra(a,e,i[0]),h=g.type}else v=f=l?s[0]:s;var p=Wh(t),m=p&&t.name||"",y=a.getName(e),_=n?m:y;return Nn("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[Nn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!rr(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function qD(r,t,e,n,a){var i=t.getData(),o=Xr(r,function(h,c,v){var d=i.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(h){f(Ra(i,e,h),h)}):M(r,f);function f(h,c){var v=i.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Nn("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Rr=wt();function Lo(r,t){return r.getName(t)||r.getId(t)}var hs="__universalTransitionEnabled",fe=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Ei({count:QD,reset:jD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=Rr(this).sourceManager=new G0(this);i.prepareSource();var o=this.getInitialData(e,a);Kd(o,this),this.dataTask.context.data=o,Rr(this).dataBeforeProcessed=o,qd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Xi(this),i=a?Sl(e):{},o=this.subType;vt.hasClass(o)&&(o+="Series"),nt(e,n.getTheme().get(this.subType)),nt(e,this.getDefaultOption()),Mf(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Pa(e,i,a)},t.prototype.mergeOption=function(e,n){e=nt(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Xi(this);a&&Pa(this.option,e,a);var i=Rr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);Kd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Rr(this).dataBeforeProcessed=o,qd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ue(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&Mf(e[a],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=Zf(this);if(n){var a=n.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return Rr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=Zf(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}Rr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return Rr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,a){return ZD({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(tt.node&&!(e&&e.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(e,n,a){var i=this.ecModel,o=vv.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,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<e.length;s++){var l=e[s],u=Lo(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[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 e=this._selectedDataIndicesMap,n=xt(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[Lo(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[hs])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=Lo(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=Lo(e,v);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(i={},i[c]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return vt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(vt);ze(fe,wD);ze(fe,vv);yy(fe,vt);function qd(r){var t=r.name;Wh(r)||(r.name=KD(r)||t)}function KD(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function QD(r){return r.model.getRawData().count()}function jD(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),JD}function JD(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Kd(r,t){M(kx(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ct(tA,t))})}function tA(r,t){var e=Zf(r);return e&&e.setOutputEnd((t||this).count()),t}function Zf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var re=function(){function r(){this.group=new St,this.uid=io("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Yh(re);tl(re);function yv(){var r=wt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var q0=wt(),eA=yv(),$t=function(){function r(){this.group=new St,this.uid=io("viewChart"),this.renderTask=Ei({plan:rA,reset:nA}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&jd(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&jd(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){hl(this.group,t)},r.markUpdateMethod=function(t,e){q0(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Qd(r,t,e){r&&Nf(r)&&(t==="emphasis"?Ia:La)(r,e)}function jd(r,t,e){var n=En(r,t),a=t&&t.highlightKey!=null?MT(t.highlightKey):null;n!=null?M(Et(n),function(i){Qd(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Qd(i,e,a)})}Yh($t);tl($t);function rA(r){return eA(r.model)}function nA(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&q0(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),aA[l]}var aA={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Rs="\0__throttleOriginMethod",Jd="\0__throttleRate",tp="\0__throttleType";function _v(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var g=f||t,p=f||e;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 K0(r,t,e,n){var a=r[t];if(a){var i=a[Rs]||a,o=a[tp],s=a[Jd];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=_v(i,e,n==="debounce"),a[Rs]=i,a[tp]=n,a[Jd]=e}return a}}function qf(r,t){var e=r[t];e&&e[Rs]&&(e.clear&&e.clear(),r[t]=e[Rs])}var ep=wt(),rp={itemStyle:Gi(i0,!0),lineStyle:Gi(a0,!0)},iA={lineStyle:"stroke",itemStyle:"fill"};function Q0(r,t){var e=r.visualStyleMapper||rp[t];return e||(console.warn("Unknown style type '"+t+"'."),rp.itemStyle)}function j0(r,t){var e=r.visualDrawType||iA[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var oA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=Q0(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=j0(r,n),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=F({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},ni=new Ct,sA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=Q0(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ni.option=l[n];var u=a(ni),f=o.ensureUniqueItemVisual(s,"style");F(f,u),ni.option.decal&&(o.setItemVisual(s,"decal",ni.option.decal),ni.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},lA={performRawSeries:!0,overallReset:function(r){var t=q();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),ep(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),o=ep(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=j0(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var c=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},Po=Math.PI;function uA(r,t){t=t||{},j(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 e=new St,n=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new At({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 bt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new sl({shape:{startAngle:-Po/2,endAngle:-Po/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:Po*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Po*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var J0=function(){function r(t,e,n,a){this._stageTaskMap=q(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=q();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}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";sr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;M(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.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,m){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Ei({plan:dA,reset:pA,count:mA}));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)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||Ei({reset:fA});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";sr(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(h=!1,M(n.getSeries(),d));function d(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(c=!0,Ei({reset:hA,onDirty:cA})));m.context={model:g,overallProgress:h},m.agent=o,m.__block=h,i._pipe(g,m)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return K(t)&&(t={overallReset:t,seriesType:yA(t)}),t.uid=io("stageHandler"),e&&(t.visualType=e),t},r}();function fA(r){r.overallReset(r.ecModel,r.api,r.payload)}function hA(r){return r.overallProgress&&vA}function vA(){this.agent.dirty(),this.getDownstream().dirty()}function cA(){this.agent&&this.agent.dirty()}function dA(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function pA(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Et(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?G(t,function(e,n){return t_(n)}):gA}var gA=t_(0);function t_(r){return function(t,e){var n=e.data,a=e.resetDefines[r];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 mA(r){return r.data.count()}function yA(r){ks=null;try{r(Zi,e_)}catch{}return ks}var Zi={},e_={},ks;r_(Zi,cv);r_(e_,C0);Zi.eachSeriesByType=Zi.eachRawSeriesByType=function(r){ks=r};Zi.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ks=r.subType)};function r_(r,t){for(var e in t.prototype)r[e]=Jt}var np=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _A={color:np,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],np]};var qt="#B9B8CE",ap="#100C2A",Ro=function(){return{axisLine:{lineStyle:{color:qt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ip=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],n_={darkMode:!0,color:ip,backgroundColor:ap,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:qt}},textStyle:{color:qt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:qt}},dataZoom:{borderColor:"#71708A",textStyle:{color:qt},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:qt}},timeline:{lineStyle:{color:qt},label:{color:qt},controlStyle:{color:qt,borderColor:qt}},calendar:{itemStyle:{color:ap},dayLabel:{color:qt},monthLabel:{color:qt},yearLabel:{color:qt}},timeAxis:Ro(),logAxis:Ro(),valueAxis:Ro(),categoryAxis:Ro(),line:{symbol:"circle"},graph:{color:ip},gauge:{title:{color:qt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:qt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};n_.categoryAxis.splitLine.show=!1;var SA=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(U(t)){var i=nr(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){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 l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Kf=["symbol","symbolSize","symbolRotate","symbolOffset"],op=Kf.concat(["symbolKeepAspect"]),xA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<Kf.length;o++){var s=Kf[o],l=r.get(s);K(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(F({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=xt(a);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),g=0;g<u.length;g++){var p=u[g];h.setItemVisual(c,p,a[p](v,d))}}return{dataEach:i?f:null}}},wA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<op.length;s++){var l=op[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function bA(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function TA(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function CA(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=F({},a),o.dispatchAction(F(a,{type:n[1],seriesIndex:e(i,a)}))})})}function ta(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=En(h,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:V(c)?h.getName(c[0]):h.getName(c),selected:U(l)?l:F({},l)})}})}function DA(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(ta("map","selectchanged",t,a,n),ta("pie","selectchanged",t,a,n)):n.fromAction==="select"?(ta("map","selected",t,a,n),ta("pie","selected",t,a,n)):n.fromAction==="unselect"&&(ta("map","unselected",t,a,n),ta("pie","unselected",t,a,n))})}function xi(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var AA=Math.round(Math.random()*9),MA=typeof Object.defineProperty=="function",IA=function(){function r(){this._id="__ec_inner_"+AA++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return MA?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),LA=it.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),PA=it.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),RA=it.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),kA=it.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),EA={line:lr,rect:bt,roundRect:bt,square:bt,circle:Va,diamond:PA,pin:RA,arrow:kA,triangle:LA},OA={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},Qf={};M(EA,function(r,t){Qf[t]=new r});var NA=it.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=bs(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var a=Qf[n];a||(n="rect",a=Qf[n]),OA[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function BA(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Be(r,t,e,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=$y(r.slice(8),new ft(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=ev(r.slice(7),{},new ft(t,e,n,a),o?"center":"cover"):l=new NA({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=BA,i&&l.setColor(i),l}function a_(r){return V(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Sv(r,t){if(r!=null)return V(r)||(r=[r,r]),[Z(r[0],t[0])||0,Z(at(r[1],r[0]),t[1])||0]}function Mn(r){return isFinite(r)}function FA(r,t,e){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*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),n=Mn(n)?n:0,a=Mn(a)?a:1,i=Mn(i)?i:0,o=Mn(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function zA(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*a+e.y,l=l*i),o=Mn(o)?o:.5,s=Mn(s)?s:.5,l=l>=0&&Mn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function jf(r,t,e){for(var n=t.type==="radial"?zA(r,t,e):FA(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function VA(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function ko(r){return parseInt(r,10)}function Eo(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||ko(s[n])||ko(r.style[n]))-(ko(s[i])||0)-(ko(s[o])||0)|0}function GA(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:dt(r)?[r]:V(r)?r:null}function i_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&GA(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=G(e,function(i){return i/a}),n/=a)}return[e,n]}var HA=new Cr(!0);function Es(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function sp(r){return typeof r=="string"&&r!=="none"}function Os(r){var t=r.fill;return t!=null&&t!=="none"}function lp(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function up(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Jf(r,t,e){var n=_y(t.image,t.__image,e);if(el(n)){var a=r.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)*Ex),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function WA(r,t,e,n){var a,i=Es(e),o=Os(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||HA,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=i&&!!v.colorStops,p=o&&!!c.image,m=i&&!!v.image,y=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||g)&&(x=t.getBoundingRect()),d&&(y=h?jf(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?jf(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?Jf(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(w=h||!t.__canvasStrokePattern?Jf(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=y:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:m&&(w?r.strokeStyle=w:i=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(a=i_(t),T=a[0],C=a[1]);var D=!0;(u||h&sa)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(i&&up(r,e),o&&lp(r,e)):(o&&lp(r,e),i&&up(r,e))),T&&r.setLineDash([])}function UA(r,t,e){var n=t.__image=_y(e.image,t.__image,t,t.onload);if(!(!n||!el(n))){var a=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,a,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(n,u,f,h,c,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function YA(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||kn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=i_(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Es(e)&&r.strokeText(a,e.x,e.y),Os(e)&&r.fillText(a,e.x,e.y)):(Os(e)&&r.fillText(a,e.x,e.y),Es(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var fp=["shadowBlur","shadowOffsetX","shadowOffsetY"],hp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function o_(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){le(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Ln.opacity:o}(n||t.blend!==e.blend)&&(i||(le(r,a),i=!0),r.globalCompositeOperation=t.blend||Ln.blend);for(var s=0;s<fp.length;s++){var l=fp[s];(n||t[l]!==e[l])&&(i||(le(r,a),i=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(le(r,a),i=!0),r.shadowColor=t.shadowColor||Ln.shadowColor),i}function vp(r,t,e,n,a){var i=qi(t,a.inHover),o=n?null:e&&qi(e,a.inHover)||{};if(i===o)return!1;var s=o_(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(le(r,a),s=!0),sp(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(le(r,a),s=!0),sp(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(le(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(le(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<hp.length;f++){var h=hp[f],c=h[0];(n||i[c]!==o[c])&&(s||(le(r,a),s=!0),r[c]=i[c]||h[1])}return s}function XA(r,t,e,n,a){return o_(r,qi(t,a.inHover),e&&qi(e,a.inHover),n,a)}function s_(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function $A(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),s_(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function ZA(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var cp=1,dp=2,pp=3,gp=4;function qA(r){var t=Os(r),e=Es(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function le(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function qi(r,t){return t&&r.__hoverStyle||r.style}function l_(r,t){In(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function In(r,t,e,n){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ve,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||VA(i,o))&&(o&&o.length&&(le(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(le(r,e),r.save(),$A(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof it&&t.autoBatch&&qA(t.style);s||ZA(a,u.transform)?(le(r,e),s_(r,t)):f||le(r,e);var h=qi(t,e.inHover);t instanceof it?(e.lastDrawType!==cp&&(l=!0,e.lastDrawType=cp),vp(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),WA(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Cs?(e.lastDrawType!==pp&&(l=!0,e.lastDrawType=pp),vp(r,t,u,l,e),YA(r,t,h)):t instanceof Ge?(e.lastDrawType!==dp&&(l=!0,e.lastDrawType=dp),XA(r,t,u,l,e),UA(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==gp&&(l=!0,e.lastDrawType=gp),KA(r,t,e)),f&&n&&le(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function KA(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),In(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),In(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Cu=new IA,mp=new eo(100),yp=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function th(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&Cu.delete(r);var i=Cu.get(r);if(i)return i;var o=j(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/e,Cu.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<yp.length;++c){var v=o[yp[c]];if(v!=null&&!V(v)&&!U(v)&&!dt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(a?"-svg":"");var g=mp.get(d);g&&(a?u.svgElement=g:u.image=g)}var p=f_(o.dashArrayX),m=QA(o.dashArrayY),y=u_(o.symbol),_=jA(p),S=h_(m),w=!a&&Na.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;w&&(w.width=b.width*e,w.height=b.height*e,T=w.getContext("2d")),D(),h&&mp.put(d,w||x),u.image=w,u.svgElement=x,u.svgWidth=b.width,u.svgHeight=b.height;function C(){for(var A=1,I=0,L=_.length;I<L;++I)A=Rc(A,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=Rc(P,y[I].length);A*=P;var R=S*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){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 A=0,I=0;I<m.length;++I)A+=m[I];if(A<=0)return;for(var L=-S,P=0,R=0,k=0;L<b.height;){if(P%2===0){for(var O=R/2%y.length,E=0,N=0,z=0;E<b.width*2;){for(var H=0,I=0;I<p[k].length;++I)H+=p[k][I];if(H<=0)break;if(N%2===0){var Y=(1-o.symbolSize)*.5,J=E+p[k][N]*Y,rt=L+m[P]*Y,_t=p[k][N]*o.symbolSize,pt=m[P]*o.symbolSize,Gt=z/2%y[O].length;Ht(J,rt,_t,pt,y[O][Gt])}E+=p[k][N],++z,++N,N===p[k].length&&(N=0)}++k,k===p.length&&(k=0)}L+=m[P],++R,++P,P===m.length&&(P=0)}function Ht(Ot,Tt,Q,ot,We){var zt=a?1:e,Mr=Be(We,Ot*zt,Tt*zt,Q*zt,ot*zt,o.color,o.symbolKeepAspect);if(a){var vr=n.painter.renderOneToVNode(Mr);vr&&x.children.push(vr)}else l_(T,Mr)}}}}function u_(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!U(r[e])){t=!1;break}if(t)return u_([r]);for(var n=[],e=0;e<r.length;++e)U(r[e])?n.push([r[e]]):n.push(r[e]);return n}function f_(r){if(!r||r.length===0)return[[0,0]];if(dt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!dt(r[n])){e=!1;break}if(e)return f_([r]);for(var a=[],n=0;n<r.length;++n)if(dt(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=G(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function QA(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(dt(r)){var t=Math.ceil(r);return[t,t]}var e=G(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function jA(r){return G(r,function(t){return h_(t)})}function h_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function JA(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=th(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=th(a,t)}}})}var Re=new Ve,v_={};function tM(r,t){v_[r]=t}function eM(r){return v_[r]}var rM=1,nM=800,aM=900,iM=1e3,oM=2e3,sM=5e3,c_=1e3,lM=1100,xv=2e3,d_=3e3,uM=4e3,bl=4500,fM=4600,hM=5e3,vM=6e3,p_=7e3,cM={PROCESSOR:{FILTER:iM,SERIES_FILTER:nM,STATISTIC:sM},VISUAL:{LAYOUT:c_,PROGRESSIVE_LAYOUT:lM,GLOBAL:xv,CHART:d_,POST_CHART_LAYOUT:fM,COMPONENT:uM,BRUSH:hM,CHART_ITEM:bl,ARIA:vM,DECAL:p_}},Ut="__flagInMainProcess",ae="__pendingUpdate",Du="__needsUpdateStatus",_p=/^[a-zA-Z0-9_]+$/,Au="__connectUpdateStatus",Sp=0,dM=1,pM=2;function g_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return y_(this,r,t)}}function m_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return y_(this,r,t)}}function y_(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ve.prototype[t].apply(r,e)}var __=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ve),S_=__.prototype;S_.on=m_("on");S_.off=m_("off");var ea,Mu,Oo,kr,Iu,Lu,Pu,ai,ii,xp,wp,Ru,bp,No,Tp,x_,de,Cp,w_=function(r){B(t,r);function t(e,n,a){var i=r.call(this,new SA)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},U(n)&&(n=b_[n]),i._dom=e;var o="canvas",s="auto",l=!1;a.ssr;var u=i._zr=Lc(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:at(a.useDirtyRect,l),useCoarsePointer:at(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=_v(mt(u.flush,u),17),n=et(n),n&&A0(n,!0),i._theme=n,i._locale=AC(a.locale||o0),i._coordSysMgr=new dv;var f=i._api=Tp(i);function h(c,v){return c.__prio-v.__prio}return ts(Bs,h),ts(eh,h),i._scheduler=new J0(i,f,eh,Bs),i._messageCenter=new __,i._initEvents(),i.resize=mt(i.resize,i),u.animation.on("frame",i._onframe,i),xp(u,i),wp(u,i),gs(i),i}return t.prototype._onframe=function(){if(!this._disposed){Cp(this);var e=this._scheduler;if(this[ae]){var n=this[ae].silent;this[Ut]=!0;try{ea(this),kr.update.call(this,null,this[ae].updateParams)}catch(l){throw this[Ut]=!1,this[ae]=null,l}this._zr.flush(),this[Ut]=!1,this[ae]=null,ai.call(this,n),ii.call(this,n)}else if(e.unfinished){var a=rM,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Lu(this,i),e.performVisualTasks(i),No(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&e.unfinished);e.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(e,n,a){if(!this[Ut]){if(this._disposed){this.id;return}var i,o,s;if(X(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ut]=!0,!this._model||n){var l=new eD(this._api),u=this._theme,f=this._model=new cv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},rh);var h={seriesTransition:s,optionChanged:!0};if(a)this[ae]={silent:i,updateParams:h},this[Ut]=!1,this.getZr().wakeUp();else{try{ea(this),kr.update.call(this,null,h)}catch(c){throw this[ae]=null,this[Ut]=!1,c}this._ssr||this._zr.flush(),this[ae]=null,this[Ut]=!1,ai.call(this,i),ii.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||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(tt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;M(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Dp[a]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Ni,function(_,S){if(_.group===a){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,g=h-u,p=Na.createCanvas(),m=Lc(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return M(c,function(_){var S=_.left-l,w=_.top-u;y+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new bt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new Ge({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Iu(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Iu(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=Ii(a,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=Ii(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?bA(s,l,n):TA(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(gM,function(n){var a=function(i){var o=e.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&xi(s,function(d){var g=st(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=F({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=i,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),M(Oi,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),DA(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 e=this.getDom();e&&py(this.getDom(),bv,"");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 Ni[n.id]},t.prototype.resize=function(e){if(!this[Ut]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[ae]&&(i==null&&(i=this[ae].silent),a=!0,this[ae]=null),this[Ut]=!0;try{a&&ea(this),kr.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[Ut]=!1,o}this[Ut]=!1,ai.call(this,i),ii.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(X(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!nh[e]){var a=nh[e](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(e){var n=F({},e);return n.type=Oi[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!Ns[e.type]&&this._model){if(this[Ut]){this._pendingActions.push(e);return}var a=n.silent;Pu.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&tt.browser.weChat&&this._throttledZrFlush(),ai.call(this,a),ii.call(this,a)}},t.prototype.updateLabelLayout=function(){Re.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ea=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Mu(h,!0),Mu(h,!1),c.plan()},Mu=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,m=h._zr,y=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 D=nr(x.type),A=c?re.getClass(D.main,D.sub):$t.getClass(D.sub);C=new A,C.init(v,y),p[T]=C,g.push(C),m.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,y)}for(var _=0;_<g.length;){var w=g[_];w.__alive?_++:(!c&&w.renderTask.dispose(),m.remove(w.group),w.dispose(v,y),g.splice(_,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Oo=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 m={};m[d+"Id"]=v[d+"Id"],m[d+"Index"]=v[d+"Index"],m[d+"Name"]=v[d+"Name"];var y={mainType:d,query:m};g&&(y.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=q(),M(Et(_),function(x){var b=ir(x,null);b!=null&&S.set(b,!0)})),p&&p.eachComponent(y,function(x){var b=S&&S.get(x.id)!=null;if(!b)if(id(v))if(x instanceof fe)v.type===Pn&&!v.notBlur&&!x.get(["emphasis","disabled"])&&ST(x,v,h._api);else{var T=Kh(x.mainType,x.componentIndex,v.name,h._api),C=T.focusSelf,D=T.dispatchers;v.type===Pn&&C&&!v.notBlur&&Ef(x.mainType,x.componentIndex,h._api),D&&M(D,function(A){v.type===Pn?Ia(A):La(A)})}else Bf(v)&&x instanceof fe&&(bT(x,v,h._api),nd(x),de(h))},h),p&&p.eachComponent(y,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)}},kr={prepareAndUpdate:function(h){ea(this),kr.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,m=this._scheduler;if(v){v.setUpdatePayload(h),m.restoreData(v,h),m.performSeriesTasks(v),p.create(v,d),m.performDataProcessorTasks(v,h),Lu(this,v),p.update(v,d),e(v),m.performVisualTasks(v,h),Ru(this,v,d,h,c);var y=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(y),_!=null&&_!=="auto"&&g.setDarkMode(_),Re.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(m,y){if(m!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var p=q();v.eachSeries(function(m){var y=c._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,v,d,h);_&&_.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),No(this,v,d,h,{},p),Re.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),$t.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Ru(this,c,this._api,h,{}),Re.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()}),$t.markUpdateMethod(h,"updateVisual"),e(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)}),Re.trigger("afterupdate",v,this._api))},updateLayout:function(h){kr.update.call(this,h)}},Iu=function(h,c,v,d){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),m,y=Ii(g,v),_=0;_<p.length;_++){var S=p[_];if(S[c]&&(m=S[c](g,y,d))!=null)return m}},Lu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Pu=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,m=Ns[g],y=m.actionInfo,_=(y.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&nr(_[0]);this[Ut]=!0;var x=[h],b=!1;h.batch&&(b=!0,x=G(h.batch,function(P){return P=j(F({},P),h),P.batch=null,P}));var T=[],C,D=Bf(h),A=id(h);if(A&&Ny(this._api),M(x,function(P){if(C=m.action(P,v._model,v._api),C=C||F({},P),C.type=y.event||C.type,T.push(C),A){var R=Uh(h),k=R.queryOptionMap,O=R.mainTypeSpecified,E=O?k.keys()[0]:"series";Oo(v,S,P,E),de(v)}else D?(Oo(v,S,P,"series"),de(v)):w&&Oo(v,S,P,w.main,w.sub)}),S!=="none"&&!A&&!D&&!w)try{this[ae]?(ea(this),kr.update.call(this,h),this[ae]=null):kr[S].call(this,h)}catch(P){throw this[Ut]=!1,P}if(b?C={type:y.event||g,escapeConnect:p,batch:T}:C=T[0],this[Ut]=!1,!c){var I=this._messageCenter;if(I.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:p,selected:TT(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(L.type,L)}}},ai=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Pu.call(this,v,h)}},ii=function(h){!h&&this.trigger("updated")},xp=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[ae]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},wp=function(h,c){h.on("mouseover",function(v){var d=v.target,g=xi(d,Nf);g&&(xT(g,v,c._api),de(c))}).on("mouseout",function(v){var d=v.target,g=xi(d,Nf);g&&(wT(g,v,c._api),de(c))}).on("click",function(v){var d=v.target,g=xi(d,function(y){return st(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=st(g);c._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(y==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:y,key:x})}),d){var g=c.concat(v),p,m;ts(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),M(g,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,w=y.key;p!=null&&(S=Math.max(p,S)),w?(S===p&&w!==m&&S++,m=w):m&&(S===p&&S++,m=""),p=S,_.setZLevel(S)})}}Ru=function(h,c,v,d,g){n(c),bp(h,c,v,d,g),M(h._chartsViews,function(p){p.__alive=!1}),No(h,c,v,d,g),M(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},bp=function(h,c,v,d,g,p){M(p||h._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,c,v,d),s(y,m),f(y,m)})},No=function(h,c,v,d,g,p){var m=h._scheduler;g=F(g||{},{updatedSeries:c.getSeries()}),Re.trigger("series:beforeupdate",c,v,g);var y=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;m.updatePayload(w,d),u(_,S),p&&p.get(_.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(y=!0),S.group.silent=!!_.get("silent"),o(_,S),nd(_)}),m.unfinished=y||m.unfinished,Re.trigger("series:layoutlabels",c,v,g),Re.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(h,c),Re.trigger("series:afterupdate",c,v,g)},de=function(h){h[Du]=!0,h.getZr().wakeUp()},Cp=function(h){h[Du]&&(h.getZr().storage.traverse(function(c){Sa(c)||a(c)}),h[Du]=!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===al&&h.states.emphasis?c.push("emphasis"):h.hoverState===nl&&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")&&!tt.node&&!tt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=h._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.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 l(g,v,d,-1/0),!0})}}function l(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_<y.length;_++)d=Math.max(l(y[_],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 u(h,c){c.eachRendered(function(v){if(!Sa(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(m){if(m.states&&m.states.emphasis){if(Sa(m))return;if(m instanceof it&&IT(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}m.__dirty&&a(m)}})}Tp=function(h){return new(function(c){B(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){Ia(d,g),de(h)},v.prototype.leaveEmphasis=function(d,g){La(d,g),de(h)},v.prototype.enterBlur=function(d){_T(d),de(h)},v.prototype.leaveBlur=function(d){Ry(d),de(h)},v.prototype.enterSelect=function(d){ky(d),de(h)},v.prototype.leaveSelect=function(d){Ey(d),de(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}(C0))(h)},x_=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[Au]=d}}M(Oi,function(v,d){h._messageCenter.on(d,function(g){if(Dp[h.group]&&h[Au]!==Sp){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),m=[];M(Ni,function(y){y!==h&&y.group===h.group&&m.push(y)}),c(m,Sp),M(m,function(y){y[Au]!==dM&&y.dispatchAction(p)}),c(m,pM)}})})}}(),t}(Ve),wv=w_.prototype;wv.on=g_("on");wv.off=g_("off");wv.one=function(r,t,e){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(r,a)}this.on.call(this,r,a,e)};var gM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ns={},Oi={},eh=[],rh=[],Bs=[],b_={},nh={},Ni={},Dp={},mM=+new Date-0,bv="_echarts_instance_";function yM(r,t,e){{var n=_M(r);if(n)return n}var a=new w_(r,t,e);return a.id="ec_"+mM++,Ni[a.id]=a,py(r,bv,a.id),x_(a),Re.trigger("afterinit",a),a}function _M(r){return Ni[hb(r,bv)]}function T_(r,t){b_[r]=t}function C_(r){lt(rh,r)<0&&rh.push(r)}function D_(r,t){Cv(eh,r,t,oM)}function SM(r){Tv("afterinit",r)}function xM(r){Tv("afterupdate",r)}function Tv(r,t){Re.on(r,t)}function fr(r,t,e){K(t)&&(e=t,t="");var n=X(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!Oi[t]&&(sr(_p.test(n)&&_p.test(t)),Ns[n]||(Ns[n]={action:e,actionInfo:r}),Oi[t]=n)}function wM(r,t){dv.register(r,t)}function bM(r,t){Cv(Bs,r,t,c_,"layout")}function Hn(r,t){Cv(Bs,r,t,d_,"visual")}var Ap=[];function Cv(r,t,e,n,a){if((K(t)||X(t))&&(e=t,t=n),!(lt(Ap,e)>=0)){Ap.push(e);var i=J0.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function A_(r,t){nh[r]=t}function TM(r,t,e){var n=eM("registerMap");n&&n(r,t,e)}var CM=ED;Hn(xv,oA);Hn(bl,sA);Hn(bl,lA);Hn(xv,xA);Hn(bl,wA);Hn(p_,JA);C_(A0);D_(aM,cD);A_("default",uA);fr({type:Pn,event:Pn,update:Pn},Jt);fr({type:os,event:os,update:os},Jt);fr({type:Li,event:Li,update:Li},Jt);fr({type:ss,event:ss,update:ss},Jt);fr({type:Pi,event:Pi,update:Pi},Jt);T_("light",_A);T_("dark",n_);function oi(r){return r==null?0:r.length||1}function Mp(r){return r}var Ki=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Mp,this._newKeyGetter=a||Mp,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=oi(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],h=oi(u),c=oi(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=oi(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);e[a]=null}},r.prototype._initIndexMap=function(t,e,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),!!e){var l=e[s],u=oi(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),DM=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function AM(r,t){var e={},n=e.encode={},a=q(),i=[],o=[],s={};M(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;ku(n,d)[g]=c,v.isExtraCoord||(a.set(d,1),IM(v.type)&&(i[0]=c),ku(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}S0.each(function(p,m){var y=ku(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};a.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=G(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;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,e.userOutput=new DM(s,t),e}function ku(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function MM(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function IM(r){return!(r==="ordinal"||r==="time")}var vs=function(){function r(t){this.otherDims={},t!=null&&F(this,t)}return r}(),LM=wt(),PM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},M_=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=P_(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return at(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=L0(this.source),n=!R_(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=PM[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function I_(r){return r instanceof M_}function L_(r){for(var t=q(),e=0;e<(r||[]).length;e++){var n=r[e],a=X(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function P_(r){var t=LM(r);return t.dimNameMap||(t.dimNameMap=L_(r.dimensionsDefine))}function R_(r){return r>30}var si=X,Er=G,RM=typeof Int32Array>"u"?Array:Int32Array,kM="e\0\0",Ip=-1,EM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],OM=["_approximateExtent"],Lp,Bo,li,ui,Eu,Fo,Ou,k_=function(){function r(t,e){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;I_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=U(h)?new vs({name:h}):h instanceof vs?h:new vs(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,u[v]!=null&&(l=!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(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=q();M(o,function(p){g.set(i[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(dt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var a=this,i;if(t instanceof Yf&&(i=t),!i){var o=this.dimensions,s=pv(t)||te(t)?new P0(t,o.length):t;i=new Yf;var l=Er(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=AM(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&Ou(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Yr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===De;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var h=a.getItem(f,u);if(!this.hasItemOption&&jw(h)&&(this.hasItemOption=!0),h){var c=h.name;i[f]==null&&c!=null&&(i[f]=ir(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ir(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Ou(this,f);Lp(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){si(t)?F(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=li(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return Bo(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,a=this._store;return V(t)?a.getValues(Er(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],a=n[e];return a==null||isNaN(a)?Ip:a},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){K(t)&&(n=e,e=t,t=[]);var a=n||this,i=Er(ui(t),this._getStoreDimIndex,this);this._store.each(i,a?mt(e,a):e)},r.prototype.filterSelf=function(t,e,n){K(t)&&(n=e,e=t,t=[]);var a=n||this,i=Er(ui(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?mt(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=xt(t);return M(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){K(t)&&(n=e,e=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=Er(ui(t),this._getStoreDimIndex,this),s=Fo(this);return s._store=this._store.map(o,i?mt(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=n||a||this,o=Er(ui(t),this._getStoreDimIndex,this);this._store.modify(o,i?mt(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=Fo(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.lttbDownSample=function(t,e){var n=Fo(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Ct(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Ki(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Bo(t,n)},function(n){return Bo(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},si(t)?F(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),V(i)?i=i.slice():si(i)&&(i=F({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,si(e)?F(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){si(t)?F(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?F(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Rf(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Er(this.dimensions,this._getDimInfo,this),this.hostModel)),Eu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(Nh(arguments)))})},r.internalField=function(){Lp=function(t){var e=t._invertedIndicesMap;M(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new RM(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Ip;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},li=function(t,e,n){return ir(t._getCategory(e,n),null)},Bo=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=li(t,t._idDimIdx,e)),n==null&&(n=kM+e),n},ui=function(t){return V(t)||(t=t!=null?[t]:[]),t},Fo=function(t){var e=new r(t._schema?t._schema:Er(t.dimensions,t._getDimInfo,t),t.hostModel);return Eu(e,t),e},Eu=function(t,e){M(EM.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,M(OM,function(n){t[n]=et(e[n])}),t._calculationInfo=F({},e._calculationInfo)},Ou=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=li(t,i,e)),l==null&&o!=null&&(a[e]=l=li(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}}(),r}();function E_(r,t){pv(r)||(r=M0(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=q(),i=[],o=BM(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&R_(o),l=n===r.dimensionsDefine,u=l?P_(r):L_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=q(f),c=new z0(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var D=c[C];if(D<0){var A=n[C],I=X(A)?A:{name:A},L=new vs,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=i.length;return c[C]=R,L.storeDimIndex=C,i.push(L),L}return i[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,D){var A=Et(C).slice();if(A.length===1&&!U(A[0])&&A[0]<0){h.set(D,!1);return}var I=h.set(D,[]);M(A,function(L,P){var R=U(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,p(d(R),D,P))})});var g=0;M(e,function(C){var D,A,I,L;if(U(C))D=C,L={};else{L=C,D=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=P,A=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(D);if(R!==!1){if(R=Et(R),!R.length)for(var k=0;k<(A&&A.length||1);k++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&R.push(g++)}M(R,function(O,E){var N=d(O);if(l&&L.type!=null&&(N.type=L.type),p(j(N,L),D,E),N.name==null&&A){var z=A[E];!X(z)&&(z={name:z}),N.name=N.displayName=z.name,N.defaultTooltip=z.defaultTooltip}I&&j(N.otherDims,I)})}});function p(C,D,A){S0.get(D)!=null?C.otherDims[D]=A:(C.coordDim=D,C.coordDimIndex=A,a.set(D,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)M(i,function(C){w(C)}),i.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var x=0;x<o;x++){var b=d(x),T=b.coordDim;T==null&&(b.coordDim=FM(S,a,_),b.coordDimIndex=0,(!m||y<=0)&&(b.isExtraCoord=!0),y--),w(b),b.type==null&&(b0(r,x)===Vt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return NM(i),new M_({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function NM(r){for(var t=q(),e=0;e<r.length;e++){var n=r[e],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function BM(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(i){var o;X(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function FM(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var zM=function(){function r(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return r}();function VM(r){var t=r.get("coordinateSystem"),e=new zM(t),n=GM[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var GM={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",jt).models[0],i=r.getReferringComponents("yAxis",jt).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),ra(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ra(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",jt).models[0];t.coordSysDims=["single"],e.set("single",a),ra(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",jt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),ra(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),ra(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ra(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ra(r){return r.get("type")==="category"}function HM(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;WM(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(M(i,function(y,_){U(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;M(i,function(y){y.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(i.push(p),i.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function WM(r){return!I_(r.schema)}function ka(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function UM(r,t){return ka(r,t)?r.getCalculationInfo("stackResultDimension"):t}function YM(r,t){var e=r.get("coordinateSystem"),n=dv.get(e),a;return t&&t.coordSysDims&&(a=G(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=MM(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function XM(r,t,e){var n,a;return e&&M(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function Tl(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===De;var o=VM(t),s=YM(t,o),l=e.useEncodeDefaulter,u=K(l)?l:l?ct(HC,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=E_(a,f),c=XM(h.dimensions,e.createInvertedIndices,o),v=i?null:n.getSharedDataStore(h),d=HM(t,{schema:h,store:v}),g=new k_(h,t);g.setCalculationInfo(d);var p=c!=null&&$M(a)?function(m,y,_,S){return S===c?_:this.defaultDimValueGetter(m,y,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,p),g}function $M(r){if(r.sourceFormat===De){var t=ZM(r.data||[]);return!V(no(t))}}function ZM(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var hr=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();tl(hr);var qM=0,ah=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++qM}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&G(n,KM);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!U(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function KM(r){return X(r)&&r.value!=null?r.value:r+""}function ih(r){return r.type==="interval"||r.type==="log"}function QM(r,t,e,n){var a={},i=r[1]-r[0],o=a.interval=ly(i/t);e!=null&&o<e&&(o=a.interval=e),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=O_(o),l=a.niceTickExtent=[kt(Math.ceil(r[0]/o)*o,s),kt(Math.floor(r[1]/o)*o,s)];return jM(l,r),a}function Nu(r){var t=Math.pow(10,Hh(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,kt(e*t)}function O_(r){return mr(r)+2}function Pp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function jM(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Pp(r,0,t),Pp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Cl(r,t){return r>=t[0]&&r<=t[1]}function Dl(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Al(r,t){return r*(t[1]-t[0])+t[0]}var Dv=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new ah({})),V(a)&&(a=new ah({categories:G(a,function(i){return X(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:U(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Cl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Dl(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Al(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.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(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hr);hr.registerClass(Dv);var wn=kt,jr=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Cl(e,this._extent)},t.prototype.normalize=function(e){return Dl(e,this._extent)},t.prototype.scale=function(e){return Al(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=O_(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(e?s.push({value:wn(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=wn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return a[1]>f&&(e?s.push({value:wn(f+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=wn(l.value+(u+1)*c);v>i[0]&&v<i[1]&&f.push(v),u++}a.push(f)}return a},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=mr(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=wn(e.value,a,!0);return g0(i)},t.prototype.calcNiceTicks=function(e,n,a){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=QM(i,e,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);e.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(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=wn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=wn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(hr);hr.registerClass(jr);var N_=typeof Float32Array<"u",JM=N_?Float32Array:Array;function _r(r){return V(r)?N_?new Float32Array(r):r:new JM(r)}var t2="__ec_stack_";function Av(r){return r.get("stack")||t2+r.seriesIndex}function Mv(r){return r.dim+r.index}function B_(r,t){var e=[];return t.eachSeriesByType(r,function(n){G_(n)&&e.push(n)}),e}function e2(r){var t={};M(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.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 m=d.get(v,g);t[c]?t[c].push(m):t[c]=[m]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});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))}e[n]=i}}return e}function F_(r){var t=e2(r),e=[];return M(r,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 l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Z(n.get("barWidth"),s),g=Z(n.get("barMaxWidth"),s),p=Z(n.get("barMinWidth")||(H_(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:Mv(i),stackId:Av(n)})}),r2(e)}function r2(r){var t={};M(r,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,a){e[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=xt(i).length;s=Math.max(35-l*4,15)+"%"}var u=Z(s,o),f=Z(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),M(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,h-=S+f*S,c--}else{var S=v;y&&y<S&&(S=Math.min(y,h)),_&&_>S&&(S=_),S!==v&&(m.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;M(i,function(m,y){m.width||(m.width=v),g=m,d+=m.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;M(i,function(m,y){e[a][y]=e[a][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+f)})}),e}function n2(r,t,e){if(r&&t){var n=r[Mv(t)];return n!=null&&e!=null?n[Av(e)]:n}}function z_(r,t){var e=B_(r,t),n=F_(e);M(e,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Av(a),u=n[Mv(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function V_(r){return{seriesType:r,plan:yv(),reset:function(t){if(G_(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),h=ka(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),v=a2(a,i),d=H_(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&_r(w*3),b=d&&l&&_r(w*3),T=d&&_r(w),C=n.master.getRect(),D=c?C.width:C.height,A,I=S.getStore(),L=0;(A=_.next())!=null;){var P=I.get(h?p:o,A),R=I.get(s,A),k=v,O=void 0;h&&(O=+P-I.get(o,A));var E=void 0,N=void 0,z=void 0,H=void 0;if(c){var Y=n.dataToPoint([P,R]);if(h){var J=n.dataToPoint([O,R]);k=J[0]}E=k,N=Y[1]+y,z=Y[0]-k,H=m,Math.abs(z)<g&&(z=(z<0?-1:1)*g)}else{var Y=n.dataToPoint([R,P]);if(h){var J=n.dataToPoint([R,O]);k=J[1]}E=Y[0]+y,N=k,z=m,H=Y[1]-k,Math.abs(H)<g&&(H=(H<=0?-1:1)*g)}d?(x[L]=E,x[L+1]=N,x[L+2]=c?z:H,b&&(b[L]=c?C.x:E,b[L+1]=c?N:C.y,b[L+2]=D),T[A]=A):S.setItemLayout(A,{x:E,y:N,width:z,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function G_(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function H_(r){return r.pipelineContext&&r.pipelineContext.large}function a2(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var i2=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},W_=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return dl(e.value,xd[PC(wa(this._minLevelUnit))]||xd.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return RC(e,n,a,o,i)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,a=[];if(!e)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=v2(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=xe,n[1]+=xe),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]-xe}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,a){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=zo.length,l=Math.min(i2(zo,this._approxInterval,0,s),s-1);this._interval=zo[l][1],this._minLevelUnit=zo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return dt(e)?e:+Tr(e)},t.prototype.contain=function(e){return Cl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Dl(this.parse(e),this._extent)},t.prototype.scale=function(e){return Al(e,this._extent)},t.type="time",t}(jr),zo=[["second",sv],["minute",lv],["hour",ki],["quarter-day",ki*6],["half-day",ki*12],["day",xe*1.2],["half-week",xe*3.5],["week",xe*7],["month",xe*31],["quarter",xe*95],["half-year",Sd/2],["year",Sd]];function o2(r,t,e,n){var a=Tr(t),i=Tr(e),o=function(d){return wd(a,d,n)===wd(i,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function s2(r,t){return r/=xe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function l2(r){var t=30*xe;return r/=t,r>6?6:r>3?3:r>2?2:1}function u2(r){return r/=ki,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Rp(r,t){return r/=t?lv:sv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function f2(r){return ly(r)}function h2(r,t,e){var n=new Date(r);switch(wa(t)){case"year":case"month":n[f0(e)](0);case"day":n[h0(e)](1);case"hour":n[v0(e)](0);case"minute":n[c0(e)](0);case"second":n[d0(e)](0),n[p0(e)](0)}return n.getTime()}function v2(r,t,e,n){var a=1e4,i=l0,o=0;function s(D,A,I,L,P,R,k){for(var O=new Date(A),E=A,N=O[L]();E<I&&E<=n[1];)k.push({value:E}),N+=D,O[P](N),E=O.getTime();k.push({value:E,notAdd:!0})}function l(D,A,I){var L=[],P=!A.length;if(!o2(wa(D),n[0],n[1],e)){P&&(A=[{value:h2(new Date(n[0]),D,e)},{value:n[1]}]);for(var R=0;R<A.length-1;R++){var k=A[R].value,O=A[R+1].value;if(k!==O){var E=void 0,N=void 0,z=void 0,H=!1;switch(D){case"year":E=Math.max(1,Math.round(t/xe/365)),N=uv(e),z=kC(e);break;case"half-year":case"quarter":case"month":E=l2(t),N=ba(e),z=f0(e);break;case"week":case"half-week":case"day":E=s2(t),N=pl(e),z=h0(e),H=!0;break;case"half-day":case"quarter-day":case"hour":E=u2(t),N=Yi(e),z=v0(e);break;case"minute":E=Rp(t,!0),N=gl(e),z=c0(e);break;case"second":E=Rp(t,!1),N=ml(e),z=d0(e);break;case"millisecond":E=f2(t),N=yl(e),z=p0(e);break}s(E,k,O,N,z,H,L),D==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-E})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<i.length&&o++<a;++v){var d=wa(i[v]);if(LC(i[v])){l(i[v],u[u.length-1]||[],f);var g=i[v+1]?wa(i[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(D,A){return D.value-A.value});for(var p=[],m=0;m<f.length;++m){var y=f[m].value;(m===0||f[m-1].value!==y)&&(p.push(f[m]),y>=n[0]&&y<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===i[v]))break}f=[]}}}for(var S=Rt(G(u,function(D){return Rt(D,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(D){return D.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(D,A){return D.value-A.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}hr.registerClass(W_);var kp=hr.prototype,Bi=jr.prototype,c2=kt,d2=Math.floor,p2=Math.ceil,Vo=Math.pow,Ie=Math.log,Iv=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new jr,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Bi.getTicks.call(this,e);return G(o,function(s){var l=s.value,u=kt(Vo(this.base,l));return u=l===a[0]&&this._fixMin?Go(u,i[0]):u,u=l===a[1]&&this._fixMax?Go(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var a=Ie(this.base);e=Ie(Math.max(0,e))/a,n=Ie(Math.max(0,n))/a,Bi.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=kp.getExtent.call(this);n[0]=Vo(e,n[0]),n[1]=Vo(e,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Go(n[0],i[0])),this._fixMax&&(n[1]=Go(n[1],i[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Ie(e[0])/Ie(n),e[1]=Ie(e[1])/Ie(n),kp.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=Qw(a),o=e/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[kt(p2(n[0]/i)*i),kt(d2(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Bi.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ie(e)/Ie(this.base),Cl(e,this._extent)},t.prototype.normalize=function(e){return e=Ie(e)/Ie(this.base),Dl(e,this._extent)},t.prototype.scale=function(e){return e=Al(e,this._extent),Vo(this.base,e)},t.type="log",t}(hr),U_=Iv.prototype;U_.getMinorTicks=Bi.getMinorTicks;U_.getLabel=Bi.getLabel;function Go(r,t){return c2(r,mr(t))}hr.registerClass(Iv);var g2=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,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"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;K(o)?this._modelMinNum=Ho(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Ho(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(K(s)?this._modelMaxNum=Ho(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Ho(t,s)),a)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=V(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Zr(u[0],1),Zr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:e-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=ps(s)||ps(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[y2[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=m2[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),m2={min:"_determinedMin",max:"_determinedMax"},y2={min:"_dataMin",max:"_dataMax"};function Y_(r,t,e){var n=r.rawExtentInfo;return n||(n=new g2(r,t,e),r.rawExtentInfo=n,n)}function Ho(r,t){return t==null?null:ps(t)?NaN:r.parse(t)}function X_(r,t){var e=r.type,n=Y_(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&e==="time"){var s=B_("bar",o),l=!1;if(M(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=F_(s),f=_2(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function _2(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],o=n2(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;M(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/i,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function Ep(r,t){var e=t,n=X_(r,e),a=n.extent,i=e.get("splitNumber");r instanceof Iv&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function S2(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Dv({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new W_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(hr.getClass(t)||jr)}}function x2(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Wa(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):U(t)?function(n){return function(a){var i=r.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):K(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(Lv(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Lv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function w2(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof Dv?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Wa(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var h=n?n[f]:{value:i[0]+f},c=s(h,f),v=o.getTextRect(c),d=b2(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function b2(r,t){var e=t*Math.PI/180,n=r.width,a=r.height,i=n*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new ft(r.x,r.y,i,o);return s}function Pv(r){var t=r.get("interval");return t??"auto"}function $_(r){return r.type==="category"&&Pv(r.getLabelModel())===0}function Z_(r,t){var e={};return M(r.mapDimensionsAll(t),function(n){e[UM(r,n)]=!0}),xt(e)}function T2(r,t,e){t&&M(Z_(t,e),function(n){var a=t.getApproximateExtent(n);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var q_=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Op=[],C2={registerPreprocessor:C_,registerProcessor:D_,registerPostInit:SM,registerPostUpdate:xM,registerUpdateLifecycle:Tv,registerAction:fr,registerCoordinateSystem:wM,registerLayout:bM,registerVisual:Hn,registerTransform:CM,registerLoading:A_,registerMap:TM,registerImpl:tM,PRIORITY:cM,ComponentModel:vt,ComponentView:re,SeriesModel:fe,ChartView:$t,registerComponentModel:function(r){vt.registerClass(r)},registerComponentView:function(r){re.registerClass(r)},registerSeriesModel:function(r){fe.registerClass(r)},registerChartView:function(r){$t.registerClass(r)},registerSubTypeDefaulter:function(r,t){vt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Uw(r,t)}};function Fe(r){if(V(r)){M(r,function(t){Fe(t)});return}lt(Op,r)>=0||(Op.push(r),K(r)&&(r={install:r}),r.install(C2))}var Qi=wt();function K_(r,t){var e=G(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function D2(r){var t=r.getLabelModel().get("customValues");if(t){var e=Wa(r);return{labels:K_(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?M2(r):L2(r)}function A2(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:K_(r,e)}:r.type==="category"?I2(r,t):{ticks:G(r.scale.getTicks(),function(n){return n.value})}}function M2(r){var t=r.getLabelModel(),e=Q_(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Q_(r,t){var e=j_(r,"labels"),n=Pv(t),a=J_(e,n);if(a)return a;var i,o;return K(n)?i=r1(r,n):(o=n==="auto"?P2(r):n,i=e1(r,o)),t1(e,n,{labels:i,labelCategoryInterval:o})}function I2(r,t){var e=j_(r,"ticks"),n=Pv(t),a=J_(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),K(n))i=r1(r,n,!0);else if(n==="auto"){var s=Q_(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else o=n,i=e1(r,o,!0);return t1(e,n,{ticks:i,tickCategoryInterval:o})}function L2(r){var t=r.scale.getTicks(),e=Wa(r);return{labels:G(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function j_(r,t){return Qi(r)[t]||(Qi(r)[t]=[])}function J_(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function t1(r,t,e){return r.push({key:t,value:e}),e}function P2(r){var t=Qi(r).autoInterval;return t??(Qi(r).autoInterval=r.calculateCategoryInterval())}function R2(r){var t=k2(r),e=Wa(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.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 l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),c=0,v=0;l<=i[1];l+=s){var d=0,g=0,p=js(e({value:l}),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 m=c/f,y=v/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=Qi(r.model),w=r.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 k2(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function e1(r,t,e){var n=Wa(r),a=r.scale,i=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=$_(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==i[0]&&g(i[0]);for(var d=u;d<=i[1];d+=l)g(d);v&&d-l!==i[1]&&g(i[1]);function g(p){var m={value:p};s.push(e?p:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:p})}return s}function r1(r,t,e){var n=r.scale,a=Wa(r),i=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Np=[0,1],n1=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return oy(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Bp(n,a.count())),ie(t,Np,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Bp(n,a.count()));var i=ie(t,n,Np,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=A2(this,e),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=e.get("alignWithLabel");return E2(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=G(n,function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return D2(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return R2(this)},r}();function Bp(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function E2(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;M(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*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=kt(v),d=kt(d),h?v>d:v<d}}var fi=Math.PI*2,bn=Cr.CMD,O2=["top","right","bottom","left"];function N2(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function B2(r,t,e,n,a,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(n-a)%fi<1e-4)return l[0]=f,l[1]=h,u-e;if(i){var c=n;n=yr(a),a=yr(c)}else n=yr(n),a=yr(a);n>a&&(a+=fi);var v=Math.atan2(s,o);if(v<0&&(v+=fi),v>=n&&v<=a||v+fi>=n&&v+fi<=a)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(a)+r,m=e*Math.sin(a)+t,y=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=g,Math.sqrt(y)):(l[0]=p,l[1]=m,Math.sqrt(_))}function Fs(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function a1(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var ke=[];function F2(r,t,e){var n=a1(t.x,t.y,t.width,t.height,r.x,r.y,ke);return e.set(ke[0],ke[1]),n}function z2(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,h=r.x,c=r.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=u;switch(d){case bn.M:i=f[v++],o=f[v++],n=i,a=o;break;case bn.L:g=Fs(n,a,f[v],f[v+1],h,c,ke,!0),n=f[v++],a=f[v++];break;case bn.C:g=Zm(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,ke),n=f[v++],a=f[v++];break;case bn.Q:g=Km(n,a,f[v++],f[v++],f[v],f[v+1],h,c,ke),n=f[v++],a=f[v++];break;case bn.A:var p=f[v++],m=f[v++],y=f[v++],_=f[v++],S=f[v++],w=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*y+p,l=Math.sin(S)*_+m,v<=1&&(i=s,o=l);var b=(h-p)*_/y+p;g=B2(p,m,_,S,S+w,x,b,c,ke),n=Math.cos(S+w)*y+p,a=Math.sin(S+w)*_+m;break;case bn.R:i=n=f[v++],o=a=f[v++];var T=f[v++],C=f[v++];g=a1(i,o,T,C,h,c,ke);break;case bn.Z:g=Fs(n,a,i,o,h,c,ke,!0),n=i,a=o;break}g<u&&(u=g,e.set(ke[0],ke[1]))}return u}var Ne=new $,yt=new $,It=new $,ar=new $,Je=new $;function Fp(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||O2,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),h=f&&Ks([],f),c=t.get("length2")||0;u&&It.copy(u);for(var v=0;v<o.length;v++){var d=o[v];N2(d,0,s,Ne,ar),$.scaleAndAdd(yt,Ne,ar,c),yt.transform(h);var g=r.getBoundingRect(),p=u?u.distance(yt):r instanceof it?z2(yt,r.path,It):F2(yt,g,It);p<l&&(l=p,yt.transform(f),It.transform(f),It.toArray(i[0]),yt.toArray(i[1]),Ne.toArray(i[2]))}i1(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var zs=[],Qt=new $;function i1(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ne.fromArray(r[0]),yt.fromArray(r[1]),It.fromArray(r[2]),$.sub(ar,Ne,yt),$.sub(Je,It,yt);var e=ar.len(),n=Je.len();if(!(e<.001||n<.001)){ar.scale(1/e),Je.scale(1/n);var a=ar.dot(Je),i=Math.cos(t);if(i<a){var o=Fs(yt.x,yt.y,It.x,It.y,Ne.x,Ne.y,zs,!1);Qt.fromArray(zs),Qt.scaleAndAdd(Je,o/Math.tan(Math.PI-t));var s=It.x!==yt.x?(Qt.x-yt.x)/(It.x-yt.x):(Qt.y-yt.y)/(It.y-yt.y);if(isNaN(s))return;s<0?$.copy(Qt,yt):s>1&&$.copy(Qt,It),Qt.toArray(r[1])}}}}function V2(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ne.fromArray(r[0]),yt.fromArray(r[1]),It.fromArray(r[2]),$.sub(ar,yt,Ne),$.sub(Je,It,yt);var n=ar.len(),a=Je.len();if(!(n<.001||a<.001)){ar.scale(1/n),Je.scale(1/a);var i=ar.dot(t),o=Math.cos(e);if(i<o){var s=Fs(yt.x,yt.y,It.x,It.y,Ne.x,Ne.y,zs,!1);Qt.fromArray(zs);var l=Math.PI/2,u=Math.acos(Je.dot(t)),f=l+u-e;if(f>=l)$.copy(Qt,It);else{Qt.scaleAndAdd(Je,s/Math.tan(Math.PI/2-f));var h=It.x!==yt.x?(Qt.x-yt.x)/(It.x-yt.x):(Qt.y-yt.y)/(It.y-yt.y);if(isNaN(h))return;h<0?$.copy(Qt,yt):h>1&&$.copy(Qt,It)}Qt.toArray(r[1])}}}}function Bu(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);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?r.useStyle(s):i.style=s}function G2(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=vf(n[0],n[1]),i=vf(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=Jo([],n[1],n[0],o/a),l=Jo([],n[1],n[2],o/i),u=Jo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function o1(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<Ds.length;l++){var u=Ds[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:at(a.states[u]&&a.states[u].ignore,s);if(v||!at(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&Bu(n,!0,u,f);continue}n||(n=new tn,r.setTextGuideLine(n),!h&&(s||!o)&&Bu(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Bu(n,!1,u,f)}}if(n){j(n.style,e),n.style.fill=null;var g=i.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=G2}}function s1(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Te.length;n++){var a=Te[n];e[a]=r.getModel([a,t])}return e}function l1(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new As(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function u1(r,t,e,n,a,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&i&&w(-f/o,0,o);var g=r[0],p=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&b(-m),y<0&&b(y);function _(){m=g.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function S(T,C,D){if(T<0){var A=Math.min(C,-T);if(A>0){w(A*D,0,o);var I=A+T;I<0&&x(-I*D,1)}else x(-T*D,1)}}function w(T,C,D){T!==0&&(u=!0);for(var A=C;A<D;A++){var I=r[A],L=I.rect;L[t]+=T,I.label[t]+=T}}function x(T,C){for(var D=[],A=0,I=1;I<o;I++){var L=r[I-1].rect,P=Math.max(r[I].rect[t]-L[t]-L[e],0);D.push(P),A+=P}if(A){var R=Math.min(Math.abs(T)/A,C);if(T>0)for(var I=0;I<o-1;I++){var k=D[I]*R;w(k,0,I+1)}else for(var I=o-1;I>0;I--){var k=D[I-1]*R;w(-k,I,o)}}}function b(T){var C=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),A=0;A<o-1;A++)if(C>0?w(D,0,A+1):w(-D,o-A-1,o),T-=D,T<=0)return}return u}function H2(r,t,e,n){return u1(r,"x","width",t,e,n)}function f1(r,t,e,n){return u1(r,"y","height",t,e,n)}function h1(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ft(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<r.length;a++){var i=r[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=i.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new As(d.localRect,d.transform)),h||(h=new As(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(n(u),f&&n(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function W2(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function U2(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:W2(n&&n.shape.points)}}var zp=["align","verticalAlign","width","height","fontSize"],Zt=new ro,Fu=wt(),Y2=wt();function Wo(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var Uo=["x","y","rotation"],X2=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();ft.applyTransform(f,f,u),u?Zt.setLocalTransform(u):(Zt.x=Zt.y=Zt.rotation=Zt.originX=Zt.originY=0,Zt.scaleX=Zt.scaleY=1),Zt.rotation=yr(Zt.rotation);var h=a.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();ft.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Zt.x,y:Zt.y,scaleX:Zt.scaleX,scaleY:Zt.scaleY,rotation:Zt.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:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(K(a)||xt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=st(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){Fp(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;K(o.layoutOption)?f=o.layoutOption(U2(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=Z(f.x,e),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Z(f.y,n),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=Fu(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<zp.length;g++){var p=zp[g];s.setStyle(p,f[p]!=null?f[p]:u.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=l1(this._labelList),i=Rt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Rt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});H2(i,0,e),f1(o,0,n);var s=Rt(a,function(l){return l.layoutOption.hideOverlap});h1(s)},r.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Fu(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=st(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var h=s.getModel("labelLine");o1(t,s1(s),l),Fp(t,h)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Sa(t))){var i=Fu(n),o=i.oldLayout,s=st(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(lt(c,"select")>=0&&n.attr(i.oldLayoutSelect),lt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Dt(n,u,e,l)}else if(n.attr(u),!Ga(n).valueAnimation){var h=at(n.style.opacity,1);n.style.opacity=0,Nt(n,{style:{opacity:h}},e,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};Wo(v,u,Uo),Wo(v,n.states.select,Uo)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Wo(d,u,Uo),Wo(d,n.states.emphasis,Uo)}n0(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=Y2(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),Dt(a,{shape:g},e)):(a.setShape(g),a.style.strokePercent=0,Nt(a,{style:{strokePercent:1}},e)),i.oldLayout=g}},r}(),zu=wt();function $2(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=zu(e).labelManager;a||(a=zu(e).labelManager=new X2),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=zu(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var Z2=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Tl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new St,a=Be("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Be(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(fe);function Ml(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Ra(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push(Ra(r,t,e[o]));return i.join(" ")}}function v1(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!V(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var Rv=function(r){B(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o){this.removeAll();var s=Be(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=q2,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ia(this.childAt(0))},t.prototype.downplay=function(){La(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Dt(c,v,s,n),Wi(c)}if(this._updateCommon(e,n,l,a,i),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Nt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,g,p,m;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,c=i.focus,v=i.blurScope,g=i.labelStatesModels,p=i.hoverScale,m=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Gn(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Sv(e.getItemVisual(n,"symbolOffset"),a);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),b=x.fill;if(s instanceof Ge){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;Vn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:b,defaultOpacity:x.opacity});function I(R){return A?e.getName(R):Ml(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Dr(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=st(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Hi(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Hi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return a_(e.getItemVisual(n,"symbolSize"))},t}(St);function q2(r,t){this.parent.drift(r,t)}function Vu(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Vp(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Gp(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Gn(t),cursorStyle:t.get("cursor")}}var c1=function(){function r(t){this.group=new St,this._SymbolCtor=t||Rv}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vp(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Gp(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};i||n.removeAll(),t.diff(i).add(function(h){var c=f(h);if(Vu(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=i.getItemGraphicEl(c),d=f(h);if(!Vu(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var m={x:d[0],y:d[1]};s?v.attr(m):Dt(v,m,a)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=i.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Gp(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Vp(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Vu(e,o,i,n)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){hl(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();function d1(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=K2(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=G(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return ka(t,h[0])&&(c=!0,h[0]=v),ka(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function K2(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:dt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function p1(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function Q2(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function j2(r,t,e,n,a,i,o,s){for(var l=Q2(r,t),u=[],f=[],h=[],c=[],v=[],d=[],g=[],p=d1(a,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,x=void 0,b=void 0;switch(S.cmd){case"=":x=S.idx*2,b=S.idx1*2;var T=m[x],C=m[x+1],D=y[b],A=y[b+1];(isNaN(T)||isNaN(C))&&(T=D,C=A),u.push(T,C),f.push(D,A),h.push(e[x],e[x+1]),c.push(n[b],n[b+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=p.dataDimsForPoint,P=a.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);b=I*2,u.push(P[0],P[1]),f.push(y[b],y[b+1]);var R=p1(p,a,t,I);h.push(R[0],R[1]),c.push(n[b],n[b+1]),g.push(t.getRawIndex(I));break;case"-":w=!1}w&&(v.push(S),d.push(d.length))}d.sort(function(_t,pt){return g[_t]-g[pt]});for(var k=u.length,O=_r(k),E=_r(k),N=_r(k),z=_r(k),H=[],_=0;_<d.length;_++){var Y=d[_],J=_*2,rt=Y*2;O[J]=u[rt],O[J+1]=u[rt+1],E[J]=f[rt],E[J+1]=f[rt+1],N[J]=h[rt],N[J+1]=h[rt+1],z[J]=c[rt],z[J+1]=c[rt+1],H[_]=v[Y]}return{current:O,next:E,stackedOnCurrent:N,stackedOnNext:z,status:H}}var Or=Math.min,Nr=Math.max;function Rn(r,t){return isNaN(r)||isNaN(t)}function oh(r,t,e,n,a,i,o,s,l){for(var u,f,h,c,v,d,g=e,p=0;p<n;p++){var m=t[g*2],y=t[g*2+1];if(g>=a||g<0)break;if(Rn(m,y)){if(l){g+=i;continue}break}if(g===e)r[i>0?"moveTo":"lineTo"](m,y),h=m,c=y;else{var _=m-u,S=y-f;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var w=g+i,x=t[w*2],b=t[w*2+1];x===m&&b===y&&p<n;)p++,w+=i,g+=i,x=t[w*2],b=t[w*2+1],m=t[g*2],y=t[g*2+1],_=m-u,S=y-f;var T=p+1;if(l)for(;Rn(x,b)&&T<n;)T++,w+=i,x=t[w*2],b=t[w*2+1];var C=.5,D=0,A=0,I=void 0,L=void 0;if(T>=n||Rn(x,b))v=m,d=y;else{D=x-u,A=b-f;var P=m-u,R=x-m,k=y-f,O=b-y,E=void 0,N=void 0;if(s==="x"){E=Math.abs(P),N=Math.abs(R);var z=D>0?1:-1;v=m-z*E*o,d=y,I=m+z*N*o,L=y}else if(s==="y"){E=Math.abs(k),N=Math.abs(O);var H=A>0?1:-1;v=m,d=y-H*E*o,I=m,L=y+H*N*o}else E=Math.sqrt(P*P+k*k),N=Math.sqrt(R*R+O*O),C=N/(N+E),v=m-D*o*(1-C),d=y-A*o*(1-C),I=m+D*o*C,L=y+A*o*C,I=Or(I,Nr(x,m)),L=Or(L,Nr(b,y)),I=Nr(I,Or(x,m)),L=Nr(L,Or(b,y)),D=I-m,A=L-y,v=m-D*E/N,d=y-A*E/N,v=Or(v,Nr(u,m)),d=Or(d,Nr(f,y)),v=Nr(v,Or(u,m)),d=Nr(d,Or(f,y)),D=m-v,A=y-d,I=m+D*N/E,L=y+A*N/E}r.bezierCurveTo(h,c,v,d,m,y),h=I,c=L}else r.lineTo(m,y)}u=m,f=y,g+=i}return p}var g1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),J2=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new g1},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Rn(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Rn(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=oh(e,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Cr.CMD,s,l,u=n==="x",f=[],h=0;h<i.length;){var c=i[h++],v=void 0,d=void 0,g=void 0,p=void 0,m=void 0,y=void 0,_=void 0;switch(c){case o.M:s=i[h++],l=i[h++];break;case o.L:if(v=i[h++],d=i[h++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[h++],d=i[h++],g=i[h++],p=i[h++],m=i[h++],y=i[h++];var w=u?_s(s,v,g,m,e,f):_s(l,d,p,y,e,f);if(w>0)for(var x=0;x<w;x++){var b=f[x];if(b<=1&&b>=0){var S=u?Ft(l,d,p,y,b):Ft(s,v,g,m,b);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(it),tI=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(g1),eI=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new tI},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Rn(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Rn(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=oh(e,a,o,s,s,1,n.smooth,l,n.connectNulls);oh(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(it);function m1(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new bt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=K(a)?function(p){a(p,h)}:null;Nt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,g)}return h}function y1(r,t,e){var n=r.getArea(),a=kt(n.r0,1),i=kt(n.r,1),o=new Ce({shape:{cx:kt(r.cx,1),cy:kt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Nt(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function _1(r,t,e,n,a){if(r){if(r.type==="polar")return y1(r,t,e);if(r.type==="cartesian2d")return m1(r,t,e,n,a)}else return null;return null}function kv(r,t){return r.type===t}function Hp(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Wp(r){for(var t=1/0,e=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[n,a]]}function Up(r,t){var e=Wp(r),n=e[0],a=e[1],i=Wp(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Yp(r){return dt(r)?r:r?.5:0}function rI(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),a=_r(n*2),i=0;i<n;i++){var o=p1(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Br(r,t,e,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var c=(u[i]+f[i])/2,v=[];l[i]=v[i]=c,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function nI(r,t){var e=[],n=r.length,a,i;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=mw(d,[f.color,h.color]);return{coord:c,color:g}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function aI(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=nI(u,a==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,m=p-g;if(m<.001)return"transparent";M(c,function(_){_.offset=(_.coord-g)/m}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new Yy(0,0,0,0,c,!0);return y[a]=g,y[a+"2"]=p,y}}}function iI(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&oI(i,t))){var o=t.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function oI(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Rv.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function sI(r,t){return isNaN(r)||isNaN(t)}function lI(r){for(var t=r.length/2;t>0&&sI(r[t*2-2],r[t*2-1]);t--);return t-1}function Xp(r,t){return[r[t*2],r[t*2+1]]}function uI(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function S1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Te.length;t++)if(r.get([Te[t],"endLabel","show"]))return!0;return!1}function Gu(r,t,e,n){if(kv(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=S1(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=m1(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return y1(t,e,n)}function fI(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var hI=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new St,n=new c1;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,d=this._symbolDraw,g=this._polyline,p=this._polygon,m=this._lineGroup,y=!n.ssr&&e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),w=d1(o,l,S),x=_&&rI(o,l,w),b=e.get("showSymbol"),T=e.get("connectNulls"),C=b&&!c&&iI(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(pt,Gt){pt.__temp&&(s.remove(pt),D.setItemGraphicEl(Gt,null))}),b||d.remove(),s.add(m);var A=c?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=aI(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&v.type===o.type&&A===this._step))b&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(pt){return[h[pt*2],h[pt*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,I),A&&(h=Br(h,o,A,T),x&&(x=Br(x,o,A,T))),g=this._newPolyline(h),_?p=this._newPolygon(h,x):p&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,On(L)),m.setClipPath(Gu(this,o,!0,e));else{_&&!p?p=this._newPolygon(h,x):p&&!_&&(m.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,On(L));var P=m.getClipPath();if(P){var R=Gu(this,o,!1,e);Nt(P,{shape:R.shape},e)}else m.setClipPath(Gu(this,o,!0,e));b&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(pt){return[h[pt*2],h[pt*2+1]]}}),(!Hp(this._stackedOnPoints,x)||!Hp(this._points,h))&&(y?this._doUpdateAnimation(l,x,o,a,A,S,T):(A&&(h=Br(h,o,A,T),x&&(x=Br(x,o,A,T))),g.setShape({points:h}),p&&p.setShape({points:h,stackedOnPoints:x})))}var k=e.getModel("emphasis"),O=k.get("focus"),E=k.get("blurScope"),N=k.get("disabled");if(g.useStyle(j(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Kr(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=g.getState("emphasis").style;z.lineWidth=+g.style.lineWidth+1}st(g).seriesIndex=e.seriesIndex,Dr(g,O,E,N);var H=Yp(e.get("smooth")),Y=e.get("smoothMonotone");if(g.setShape({smooth:H,smoothMonotone:Y,connectNulls:T}),p){var J=l.getCalculationInfo("stackedOnSeries"),rt=0;p.useStyle(j(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(rt=Yp(J.get("smooth"))),p.setShape({smooth:H,stackedOnSmooth:rt,smoothMonotone:Y,connectNulls:T}),Kr(p,e,"areaStyle"),st(p).seriesIndex=e.seriesIndex,Dr(p,O,E,N)}var _t=function(pt){i._changePolyState(pt)};l.eachItemGraphicEl(function(pt){pt&&(pt.onHoverStateChange=_t)}),this._polyline.onHoverStateChange=_t,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=A,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){st(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=En(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new Rv(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $t.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=En(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else $t.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;td(this._polyline,e),n&&td(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new J2({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new eI({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=K(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var S=a,w=n.pointToCoord(p);i?(m=S.startAngle,y=S.endAngle,_=-w[1]/180*Math.PI):(m=S.r0,y=S.r,_=w[0])}else{var x=a;i?(m=x.x,y=x.x+x.width,_=v.x):(m=x.y+x.height,y=x.y,_=v.y)}var b=y===m?0:(_-m)/(y-m);l&&(b=1-b);var T=K(h)?h(d):f*b+c,C=g.getSymbolPath(),D=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(S1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new At({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=lI(l);f>=0&&(Vn(s,Gn(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?v1(o,v):Ml(o,h)},enableTextSetter:!0},fI(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=a.getLayout("points"),c=a.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,w=(m?g:0)*(y?-1:1),x=(m?0:-g)*(y?-1:1),b=m?"x":"y",T=uI(h,S,b),C=T.range,D=C[1]-C[0],A=void 0;if(D>=1){if(D>1&&!v){var I=Xp(h,C[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(A=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,b);I&&u.attr({x:I[0]+w,y:I[1]+x});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(A=gy(a,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,I=Xp(h,R);o&&(A=c.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+x})}if(o){var k=Ga(u);typeof k.setLabelText=="function"&&k.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=j2(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=Br(c.current,a,o,l),d=Br(c.stackedOnCurrent,a,o,l),g=Br(c.next,a,o,l),p=Br(c.stackedOnNext,a,o,l)),Up(v,g)>3e3||f&&Up(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var m={shape:{points:g}};c.current!==v&&(m.shape.__points=c.next),u.stopAnimation(),Dt(u,m,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Dt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=c.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,D=y[T].ptIdx*2;C.x=b[D],C.y=b[D+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}($t);function Ev(r,t){return{seriesType:r,plan:yv(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(a){var s=G(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ka(n,s[0])&&(s[0]=u),ka(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var g=v.end-v.start,p=o&&_r(g*l),m=[],y=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(l===1){var x=f.get(h,_);w=a.dataToPoint(x,null,y)}else m[0]=f.get(h,_),m[1]=f.get(c,_),w=a.dataToPoint(m,null,y);o?(p[S++]=w[0],p[S++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",p)}}}}}}var vI={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},minmax:function(r){for(var t=-1/0,e=-1/0,n=0;n<r.length;n++){var a=r[n],i=Math.abs(a);i>t&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},cI=function(r){return Math.round(r.length/2)};function x1(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.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(u.dim),1/v));var d=void 0;U(i)?d=vI[i]:K(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,cI))}}}}}function dI(r){r.registerChartView(hI),r.registerSeriesModel(Z2),r.registerLayout(Ev("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,x1("line"))}var ji=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Tl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),p=o[v],m=n[v]==="x1"||n[v]==="y1";if(m&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,S=1,w=0;w<d.length;w++){var x=d[w].coord,b=w===d.length-1?d[w-1].tickValue+S:d[w].tickValue;if(b===p){_=x;break}else if(b<p)y=x;else if(y!=null&&b>p){_=(x+y)/2;break}w===1&&(S=b-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}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}(fe);fe.registerClass(ji);var pI=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Tl(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 e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=av(ji.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}(ji),gI=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Vs=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new gI},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,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),m=Math.cos(h),y=Math.sin(h);d?(e.moveTo(g*o+a,p*o+i),e.arc(g*u+a,p*u+i,l,-Math.PI+f,f,!c)):e.moveTo(g*s+a,p*s+i),e.arc(a,i,s,f,h,!c),e.arc(m*u+a,y*u+i,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(a,i,o,h,f,c)},t}(it);function mI(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return bs(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,g=u.startAngle,p=u.endAngle,m=(g+p)/2,y=e?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-l)*_(m),x=h+(v-l)*S(m),b="center",T="top";break;case"insideStartArc":w=f+(v+l)*_(m),x=h+(v+l)*S(m),b="center",T="bottom";break;case"startAngle":w=f+d*_(g)+Yo(g,l+y,!1),x=h+d*S(g)+Xo(g,l+y,!1),b="right",T="middle";break;case"insideStartAngle":w=f+d*_(g)+Yo(g,-l+y,!1),x=h+d*S(g)+Xo(g,-l+y,!1),b="left",T="middle";break;case"middle":w=f+d*_(m),x=h+d*S(m),b="center",T="middle";break;case"endArc":w=f+(c+l)*_(m),x=h+(c+l)*S(m),b="center",T="bottom";break;case"insideEndArc":w=f+(c-l)*_(m),x=h+(c-l)*S(m),b="center",T="top";break;case"endAngle":w=f+d*_(p)+Yo(p,l+y,!0),x=h+d*S(p)+Xo(p,l+y,!0),b="left",T="middle";break;case"insideEndAngle":w=f+d*_(p)+Yo(p,-l+y,!0),x=h+d*S(p)+Xo(p,-l+y,!0),b="right",T="middle";break;default:return bs(n,a,i)}return n=n||{},n.x=w,n.y=x,n.align=b,n.verticalAlign=T,n}}function yI(r,t,e,n){if(dt(n)){r.setTextConfig({rotation:n});return}else if(V(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Yo(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Xo(r,t,e){return t*Math.cos(r)*(e?1:-1)}function wi(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;V(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(n,function(i){return Zr(i,a)})}}var Hu=Math.max,Wu=Math.min;function _I(r,t){var e=r.getArea&&r.getArea();if(kv(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var SI=function(r){B(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){hl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,a,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=xI(e,u);v&&this._enableRealtimeSort(v,s,a);var d=e.get("clip",!0)||v,g=_I(u,s);o.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],w=this._backgroundEls,x=i&&i.isInitSort,b=i&&i.type==="changeAxisOrder";function T(A){var I=$o[u.type](s,A),L=MI(u,h,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[A]=L,L}s.diff(l).add(function(A){var I=s.getItemModel(A),L=$o[u.type](s,A,I);if(m&&T(A),!(!s.hasValue(A)||!Qp[u.type](L))){var P=!1;d&&(P=$p[u.type](g,L));var R=Zp[u.type](e,s,A,L,h,c,f.model,!1,p);v&&(R.forceLabelAnimation=!0),jp(R,s,A,I,L,e,h,u.type==="polar"),x?R.attr({shape:L}):v?qp(v,c,R,L,A,h,!1,!1):Nt(R,{shape:L},e,A),s.setItemGraphicEl(A,R),o.add(R),R.ignore=P}}).update(function(A,I){var L=s.getItemModel(A),P=$o[u.type](s,A,L);if(m){var R=void 0;w.length===0?R=T(I):(R=w[I],R.useStyle(y.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[A]=R);var k=$o[u.type](s,A),O=b1(h,k,u);Dt(R,{shape:O},c,A)}var E=l.getItemGraphicEl(I);if(!s.hasValue(A)||!Qp[u.type](P)){o.remove(E);return}var N=!1;if(d&&(N=$p[u.type](g,P),N&&o.remove(E)),E?Wi(E):E=Zp[u.type](e,s,A,P,h,c,f.model,!!E,p),v&&(E.forceLabelAnimation=!0),b){var z=E.getTextContent();if(z){var H=Ga(z);H.prevValue!=null&&(H.prevValue=H.value)}}else jp(E,s,A,L,P,e,h,u.type==="polar");x?E.attr({shape:P}):v?qp(v,c,E,P,A,h,!0,b):Dt(E,{shape:P},e,A,null),s.setItemGraphicEl(A,E),E.ignore=N,o.add(E)}).remove(function(A){var I=l.getItemGraphicEl(A);I&&Ms(I,e,A)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new St);C.removeAll();for(var D=0;D<S.length;++D)C.add(S[D]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),tg(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),tg(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&_1(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.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(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,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(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,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(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Ms(i,e,st(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}($t),$p={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,o=Hu(t.x,r.x),s=Wu(t.x+t.width,a),l=Hu(t.y,r.y),u=Wu(t.y+t.height,i),f=s<o,h=u<l;return t.x=f&&o>a?s:o,t.y=h&&l>i?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=Wu(t.r,r.r),i=Hu(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Zp={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new bt({shape:F({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,h=a?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?Vs:Ce,f=new u({shape:n,z2:1});f.name="item";var h=w1(a);if(f.calculateTextPosition=mI(h,{isRoundCap:u===Vs}),i){var c=f.shape,v=a?"r":"endAngle",d={};c[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?Dt:Nt)(f,{shape:d},i)}return f}};function xI(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function qp(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Dt:Nt)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Dt:Nt)(e,{shape:u},f,a)}function Kp(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var wI=["x","y","width","height"],bI=["cx","cy","r","startAngle","endAngle"],Qp={cartesian2d:function(r){return!Kp(r,wI)},polar:function(r){return!Kp(r,bI)}},$o={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),a=e?CI(e,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(r,t,e){var n=r.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 TI(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function w1(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function jp(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=wi(n.getModel("itemStyle"),f,!0);F(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var v=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",d=Gn(n);Vn(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Ml(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,yI(r,p==="outside"?v:p,w1(o),n.get(["label","rotate"]))}r0(g,d,i.getRawValue(e),function(y){return v1(t,y)});var m=n.getModel(["emphasis"]);Dr(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),Kr(r,n),TI(a)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function CI(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.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 DI=function(){function r(){}return r}(),Jp=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new DI},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(it);function tg(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new Jp({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new Jp({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")),st(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",eg),h.on("mousemove",eg)),e&&e.push(h)}var eg=_v(function(r){var t=this,e=AI(t,r.offsetX,r.offsetY);st(t).dataIndex=e>=0?e:null},30,!1);function AI(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[a]=i[c+2],s[n]=i[c+n],s[a]=i[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function b1(r,t,e){if(kv(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function MI(r,t,e){var n=r.type==="polar"?Ce:bt;return new n({shape:b1(t,e,r),silent:!0,z2:0})}function II(r){r.registerChartView(SI),r.registerSeriesModel(pI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ct(z_,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,V_("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,x1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var rg=Math.PI*2,Zo=Math.PI/180;function T1(r,t){return Qr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function C1(r,t){var e=T1(r,t),n=r.get("center"),a=r.get("radius");V(a)||(a=[0,a]);var i=Z(e.width,t.getWidth()),o=Z(e.height,t.getHeight()),s=Math.min(i,o),l=Z(a[0],s/2),u=Z(a[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else V(n)||(n=[n,n]),f=Z(n[0],i)+e.x,h=Z(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function LI(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=T1(n,e),s=C1(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Zo,v=n.get("endAngle"),d=n.get("padAngle")*Zo;v=v==="auto"?c-rg:-v*Zo;var g=n.get("minAngle")*Zo,p=g+d,m=0;a.each(i,function(O){!isNaN(O)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var T=S?1:-1,C=[c,v],D=T*d/2;Xh(C,!S),c=C[0],v=C[1];var A=D1(n);A.startAngle=c,A.endAngle=v,A.clockwise=S;var I=Math.abs(v-c),L=I,P=0,R=c;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(O,E){var N;if(isNaN(O)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?N=y===0&&x?_:O*_:N=I/m,N<p?(N=p,L-=p):P+=O;var z=R+T*N,H=0,Y=0;d>N?(H=R+T*N/2,Y=H):(H=R+D,Y=z-D),a.setItemLayout(E,{angle:N,startAngle:H,endAngle:Y,clockwise:S,cx:l,cy:u,r0:h,r:w?ie(O,b,[h,f]):f}),R=z}),L<rg&&m)if(L<=.001){var k=I/m;a.each(i,function(O,E){if(!isNaN(O)){var N=a.getItemLayout(E);N.angle=k;var z=0,H=0;k<d?(z=c+T*(E+1/2)*k,H=z):(z=c+T*E*k+D,H=c+T*(E+1)*k-D),N.startAngle=z,N.endAngle=H}})}else _=L/P,R=c,a.each(i,function(O,E){if(!isNaN(O)){var N=a.getItemLayout(E),z=N.angle===p?p:O*_,H=0,Y=0;z<d?(H=R+T*z/2,Y=H):(H=R+D,Y=R+T*z-D),N.startAngle=H,N.endAngle=Y,R+=T*z}})})}var D1=wt();function A1(r){return{seriesType:r,reset:function(t,e){var n=e.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 PI=Math.PI/180;function ng(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(g){for(var p=g.rB,m=p*p,y=0;y<g.list.length;y++){var _=g.list[y],S=Math.abs(_.label.y-e),w=n+_.len,x=w*w,b=Math.sqrt((1-Math.abs(S*S/m))*x),T=t+(b+_.len2)*a,C=T-_.label.x,D=_.targetTextWidth-C*a;M1(_,D,!0),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},m={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var _=g[y],S=_.label.y>e?m:p,w=Math.abs(_.label.y-e);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(m)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}f1(r,l,l+o)&&h(r)}function RI(r,t,e,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;Uu(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Uu(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,M1(d,p)}}ng(u,t,e,n,1,a,i,o,s,h),ng(l,t,e,n,-1,a,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Uu(d)&&d.linePoints){var v=d.label,g=d.linePoints,m=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,S=v.style.backgroundColor?0:_,w=d.rect.width+S,x=g[1][0]-g[2][0];m?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 M1(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){var h=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.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 Uu(r){return r.position==="center"}function kI(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*PI,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=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(),D=b.getTextGuideLine(),A=t.getItemModel(x),I=A.getModel("label"),L=I.get("position")||A.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),k=Z(I.get("edgeDistance"),u),O=I.get("bleedMargin"),E=A.getModel("labelLine"),N=E.get("length");N=Z(N,u);var z=E.get("length2");if(z=Z(z,u),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,v),C.ignore=!0,D&&(M(D.states,v),D.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,Y=Math.cos(H),J=Math.sin(H),rt,_t,pt,Gt;n=T.cx,a=T.cy;var Ht=L==="inside"||L==="inner";if(L==="center")rt=T.cx,_t=T.cy,Gt="center";else{var Ot=(Ht?(T.r+T.r0)/2*Y:T.r*Y)+n,Tt=(Ht?(T.r+T.r0)/2*J:T.r*J)+a;if(rt=Ot+Y*3,_t=Tt+J*3,!Ht){var Q=Ot+Y*(N+l-T.r),ot=Tt+J*(N+l-T.r),We=Q+(Y<0?-1:1)*z,zt=ot;R==="edge"?rt=Y<0?f+k:f+u-k:rt=We+(Y<0?-P:P),_t=zt,pt=[[Ot,Tt],[Q,ot],[We,zt]]}Gt=Ht?"center":R==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var Mr=Math.PI,vr=0,Ua=I.get("rotate");if(dt(Ua))vr=Ua*(Mr/180);else if(L==="center")vr=0;else if(Ua==="radial"||Ua===!0){var LS=Y<0?-H+Mr:-H;vr=LS}else if(Ua==="tangential"&&L!=="outside"&&L!=="outer"){var Wn=Math.atan2(Y,J);Wn<0&&(Wn=Mr*2+Wn);var PS=J>0;PS&&(Wn=Mr+Wn),vr=Wn-Mr}if(i=!!vr,C.x=rt,C.y=_t,C.rotation=vr,C.setStyle({verticalAlign:"middle"}),Ht){C.setStyle({align:Gt});var Pl=C.states.select;Pl&&(Pl.x+=C.x,Pl.y+=C.y)}else{var Ya=C.getBoundingRect().clone();Ya.applyTransform(C.getComputedTransform());var Qv=(C.style.margin||0)+2.1;Ya.y-=Qv/2,Ya.height+=Qv,e.push({label:C,labelLine:D,position:L,len:N,len2:z,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new $(Y,J),linePoints:pt,textAlign:Gt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:O,rect:Ya,unconstrainedWidth:Ya.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Ht})}}),!i&&r.get("avoidLabelOverlap")&&RI(e,n,a,l,u,c,f,h);for(var g=0;g<e.length;g++){var p=e[g],m=p.label,y=p.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:p.textAlign}),_&&(M(m.states,v),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(y){var w=p.linePoints;_||!w?(M(y.states,v),y.ignore=!0):(i1(w,p.minTurnAngle),V2(w,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new $(w[0][0],w[0][1])})}}}var EI=function(r){B(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new At;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=F(wi(l.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?(Nt(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,Nt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Nt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Dt(o,{shape:{endAngle:f.endAngle}},s,n))}else Wi(o),Dt(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),Kr(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},wi(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:g,y:p,shape:wi(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:wi(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&F(y.ensureState("select"),{x:g,y:p}),F(_.ensureState("select"),{x:g,y:p}),Dr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Vn(i,Gn(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new tn,this.setTextGuideLine(v)),o1(this,s1(o),{stroke:u,opacity:Ti(s.get(["lineStyle","opacity"]),f,1)})}},t}(Ce),OI=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a,i){var o=e.getData(),s=this._data,l=this.group,u;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&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=D1(e),v=new Ce({shape:F(C1(e,a),c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var g=new EI(o,d,u);o.setItemGraphicEl(d,g),l.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var g=s.getItemGraphicEl(d);Ms(g,e,d)}).execute(),kI(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}($t);function Ov(r,t,e){t=V(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=E_(n,t).dimensions,i=new k_(a,r);return i.initData(n,e),i}var I1=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),NI=wt(),BI=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new I1(mt(this.getData,this),mt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ov(this,{coordDimensions:["value"],encodeDefaulter:ct(WC,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=NI(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Zw(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Mf(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.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,endAngle:"auto",padAngle:0,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}(fe);function FI(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(dt(o)&&!isNaN(o)&&o<0)})}}}function zI(r){r.registerChartView(OI),r.registerSeriesModel(BI),CA("pie",r.registerAction),r.registerLayout(ct(LI,"pie")),r.registerProcessor(A1("pie")),r.registerProcessor(FI("pie"))}var VI=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Tl(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(fe),L1=4,GI=function(){function r(){}return r}(),HI=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new GI},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<L1,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<a.length;){var c=a[h++],v=a[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,a=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,h=i[f]-s/2,c=i[f+1]-l/2;if(e>=h&&n>=c&&e<=h+s&&n<=c+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<a.length;){var v=a[c++],d=a[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),h=Math.max(d,h)}e=this._rect=new ft(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(it),WI=function(){function r(){this.group=new St}return r.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;e=new Float32Array(e.buffer,i,a)}n.setShape("points",e),n.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,n)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new HI({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Be(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<L1;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=st(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),UI=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Ev("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new WI:new c1,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}($t),YI=function(r){B(t,r);function t(){return r!==null&&r.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}(vt),sh=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jt).models[0]},t.type="cartesian2dAxis",t}(vt);ze(sh,q_);var P1={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)"]}}},XI=nt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},P1),Nv=nt({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}}},P1),$I=nt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nv),ZI=j({logBase:10},Nv);const R1={category:XI,value:Nv,time:$I,log:ZI};var qI={value:1,category:1,time:1,log:1};function ag(r,t,e,n){M(qI,function(a,i){var o=nt(nt({},R1[i],!0),n,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Xi(this),v=c?Sl(f):{},d=h.getTheme();nt(f,d.get(i+"Axis")),nt(f,this.getDefaultOption()),f.type=ig(f),c&&Pa(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ah.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",ig)}function ig(r){return r.type||(r.data?"category":"value")}var KI=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return G(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Rt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),lh=["x","y"];function og(r){return r.type==="interval"||r.type==="time"}var QI=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=lh,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!og(e)||!og(n))){var a=e.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-a[0]*f,v=o[1]-i[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Ks([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new ft(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return be(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return be(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new ft(i,o,s,l)},t}(KI),jI=function(r){B(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(n1);function uh(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=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=u==="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=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],i.rotation=Math.PI/2*(u==="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),Ma(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function sg(r){return r.get("coordinateSystem")==="cartesian2d"}function lg(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,jt).models[0];t[n]=i}),t}var Yu=Math.log;function k1(r,t,e){var n=jr.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),o=a.length-1,s=n.getInterval.call(e),l=X_(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=Yu(r.base);u=[Yu(u[0])/c,Yu(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=n.getInterval.call(r),g=u[0],p=u[1];if(f&&h)d=(p-g)/o;else if(f)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=Nu(d),p=u[0]+d*o;else if(h)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=Nu(d),g=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=Nu(d));var y=d*o;p=Math.ceil(u[1]/d)*d,g=kt(p-y),g<0&&u[0]>=0?(g=0,p=kt(y)):p>0&&u[1]<=0&&(p=0,g=-kt(y))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;n.setExtent.call(r,g+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,p-d)}var JI=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lh,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=xt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,g=v.scale;ih(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Ep(g,d),ih(g)&&(s=v))}f.length&&(s||(s=f.pop(),Ep(s.scale,s.model)),M(f,function(p){k1(p.scale,p.model,s.scale)}))}}a(n.x),a(n.y);var i={};M(n.x,function(o){ug(n,"y",o,i)}),M(n.y,function(o){ug(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Qr(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=w2(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),tL(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}X(t)&&(e=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===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",jt).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",jt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,lt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.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 QI(d);g.master=a,g.model=t,a._coordsMap[d]=g,a._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function u(f){return function(h,c){if(Xu(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 jI(f,S2(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,l[f]++}}}},r.prototype._updateScale=function(t,e){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(sg(a)){var i=lg(a),o=i.xAxisModel,s=i.yAxisModel;if(!Xu(o,e)||!Xu(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(a,i){M(Z_(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return M(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);lt(e,i)<0&&e.push(i),lt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(sg(a)){var i=lg(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=lh,r}();function Xu(r,t){return r.getCoordSysModel()===t}function ug(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)fg(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&fg(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(h){return h.dim+"_"+h.index}}function fg(r){return r&&r.type!=="category"&&r.type!=="time"&&x2(r)}function tL(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}var Hr=Math.PI,wr=function(){function r(t,e){this.group=new St,this.opt=e,this.axisModel=t,j(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new St({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!hg[t]},r.prototype.add=function(t){hg[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var a=sy(e-t),i,o;return Ts(a)?(o=n>0?"top":"bottom",i="center"):Ts(a-Hr)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Hr?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),hg={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(be(s,s,o),be(l,l,o));var f=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new lr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ui(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);U(c)&&(c=[c,c]),(U(v)||dt(v))&&(v=[v,v]);var d=Sv(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(c[y]!=="none"&&c[y]!=null){var _=Be(c[y],-g/2,-p/2,g,p,f.stroke,!0),S=m.r+m.offset,w=u?l:s;_.attr({rotation:m.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var a=nL(e,n,t,r),i=iL(e,n,t,r);if(rL(t,i,a),aL(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=l1(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));h1(o)}},axisName:function(r,t,e,n){var a=Ma(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,cg(i)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*Hr/180);var d;cg(i)?c=wr.innerTextLayout(r.rotation,v??r.rotation,o):(c=eL(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Ma(r.nameTruncateMaxWidth,p.maxWidth,d),_=new At({x:h[0],y:h[1],rotation:c.rotation,silent:wr.isLabelSilent(t),style:we(s,{text:a,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(fl({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=wr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,st(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function eL(r,t,e,n){var a=sy(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ts(a-Hr/2)?(o=l?"bottom":"top",i="center"):Ts(a-Hr*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Hr*1.5&&a>Hr/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function rL(r,t,e){if(!$_(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(pe(i),pe(u)):vg(i,o)&&(n?(pe(o),pe(f)):(pe(i),pe(u))),a===!1?(pe(s),pe(h)):vg(l,s)&&(a?(pe(l),pe(c)):(pe(s),pe(h)))}}function pe(r){r&&(r.ignore=!0)}function vg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Fh([]);return zh(a,a,-r.rotation),e.applyTransform(ya([],a,r.getLocalTransform())),n.applyTransform(ya([],a,t.getLocalTransform())),e.intersect(n)}}function cg(r){return r==="middle"||r==="center"}function E1(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(be(o,o,t),be(s,s,t));var f=new lr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ui(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function nL(r,t,e,n){var a=e.axis,i=e.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"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=E1(u,t.transform,l,j(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function aL(r,t,e,n){var a=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=j(s.getLineStyle(),j(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=E1(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function iL(r,t,e,n){var a=e.axis,i=Ma(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Ma(n.labelRotate,o.get("rotate"))||0)*Hr/180,f=wr.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=wr.isLabelSilent(e),d=e.get("triggerEvent");return M(l,function(g,p){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,y=g.formattedLabel,_=g.rawLabel,S=o;if(h&&h[m]){var w=h[m];X(w)&&w.textStyle&&(S=new Ct(w.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),b=a.dataToCoord(m),T=S.getShallow("align",!0)||f.textAlign,C=at(S.getShallow("alignMinLabel",!0),T),D=at(S.getShallow("alignMaxLabel",!0),T),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=at(S.getShallow("verticalAlignMinLabel",!0),A),L=at(S.getShallow("verticalAlignMaxLabel",!0),A),P=new At({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:we(S,{text:y,align:p===0?C:p===l.length-1?D:T,verticalAlign:p===0?I:p===l.length-1?L:A,fill:K(x)?x(a.type==="category"?_:a.type==="value"?m+"":m,p):x})});if(P.anid="label_"+m,d){var R=wr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=p,a.type==="category"&&(R.dataIndex=m),st(P).eventData=R}t.add(P),P.updateTransform(),c.push(P),r.add(P),P.decomposeTransform()}),c}}function oL(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sL(e,r,t),e.seriesInvolved&&uL(e,r),e}function sL(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ji(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(M(s.getAxes(),ct(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,ct(g,v?"cross":!0,c)),v&&M(d.otherAxes,ct(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!p&&!fh(_))){m==null&&(m=_.get("triggerTooltip")),_=p?lL(y,h,a,t,p,m):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),b=Ji(y.model),T=m||w||y.type==="category",C=r.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:w,useHandle:fh(_),seriesModels:[],linkGroup:null};u[b]=C,r.seriesInvolved=r.seriesInvolved||T;var D=fL(i,y);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[b]=C,A.mapper=i[D].mapper,C.linkGroup=A}}}})}function lL(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(c){l[c]=et(o.get(c))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&j(u,h.textStyle)}}return r.model.getModel("axisPointer",new Ct(l,e,n))}function uL(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[Ji(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function fL(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if($u(i[n+"AxisId"],e.id)||$u(i[n+"AxisIndex"],e.componentIndex)||$u(i[n+"AxisName"],e.name))return a}}function $u(r,t){return r==="all"||V(r)&&lt(r,t)>=0||r===t}function hL(r){var t=Bv(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=fh(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Bv(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ji(r)]}function vL(r){var t=Bv(r);return t&&t.axisPointerModel}function fh(r){return!!r.get(["handle","show"])}function Ji(r){return r.type+"||"+r.id}var dg={},O1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a,i){this.axisPointerClass&&hL(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=vL(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){dg[e]=n},t.getAxisPointerClass=function(e){return e&&dg[e]},t.type="axis",t}(re),hh=wt();function cL(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,h=hh(r).splitAreaColors,c=q(),v=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=V(s)?s:[s];for(var d=1;d<u.length;d++){var y=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,w=void 0,x=void 0;a.isHorizontal()?(_=p,S=l.y,w=y-_,x=l.height,p=_+w):(_=l.x,S=p,w=l.width,x=y-S,p=S+x);var b=u[d-1].tickValue;b!=null&&c.set(b,v),t.add(new bt({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:w,height:x},style:j({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}hh(r).splitAreaColors=c}}}function dL(r){hh(r).splitAreaColors=null}var pL=["axisLine","axisTickLabel","axisName"],gL=["splitArea","splitLine","minorSplitLine"],N1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new St,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=uh(s,e),u=new wr(e,F({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(ih(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));M(pL,u.add,u),this._axisGroup.add(u.getGroup()),M(gL,function(h){e.get([h,"show"])&&mL[h](this,this._axisGroup,e,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||Qy(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){dL(this)},t.type="cartesianAxis",t}(O1),mL={splitLine:function(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=V(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=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);u?(c[0]=p,c[1]=l.y,v[0]=p,v[1]=l.y+l.height):(c[0]=l.x,c[1]=p,v[0]=l.x+l.width,v[1]=p);var m=f++%s.length,y=h[g].tickValue,_=new lr({anid:y!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:j({stroke:s[m]},d),silent:!0});Ui(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var a=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var g=a.toGlobalCoord(u[v][d].coord);l?(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 lr({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});Ui(p.shape,c.lineWidth),t.add(p)}},splitArea:function(r,t,e,n){cL(r,t,e,n)}},B1=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(N1),yL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=B1.type,e}return t.type="yAxis",t}(N1),_L=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new bt({shape:e.coordinateSystem.getRect(),style:j({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(re),pg={offset:0};function F1(r){r.registerComponentView(_L),r.registerComponentModel(YI),r.registerCoordinateSystem("cartesian2d",JI),ag(r,"x",sh,pg),ag(r,"y",sh,pg),r.registerComponentView(B1),r.registerComponentView(yL),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function SL(r){Fe(F1),r.registerSeriesModel(VI),r.registerChartView(UI),r.registerLayout(Ev("scatter"))}function xL(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();M(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=gg(f)?f:mg(a)})}),e.each(function(o){var s=Dx(n[o],function(l){return gg(l)})||mg(a);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function gg(r){return!isNaN(r[0])&&!isNaN(r[1])}function mg(r){return[r.cx,r.cy]}function wL(r){var t=r.polar;if(t){V(t)||(t=[t]);var e=[];M(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],V(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var bL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(c,v){var d=c.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var g=a_(c.getItemVisual(v,"symbolSize")),p=Be(d,-1,-1,2,2),m=c.getItemVisual(v,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),p}}function f(c,v,d,g,p,m){d.removeAll();for(var y=0;y<v.length-1;y++){var _=u(g,p);_&&(_.__dimIdx=y,c[y]?(_.setPosition(c[y]),vl[m?"initProps":"updateProps"](_,{x:v[y][0],y:v[y][1]},e,p)):_.setPosition(v[y]),d.add(_))}}function h(c){return G(c,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var d=new zn,g=new tn,p={shape:{points:v}};d.shape.points=h(v),g.shape.points=h(v),Nt(d,p,e,c),Nt(g,p,e,c);var m=new St,y=new St;m.add(g),m.add(d),m.add(y),f(g.shape.points,v,y,s,c,!0),s.setItemGraphicEl(c,m)}}).update(function(c,v){var d=l.getItemGraphicEl(v),g=d.childAt(0),p=d.childAt(1),m=d.childAt(2),y={shape:{points:s.getItemLayout(c)}};y.shape.points&&(f(g.shape.points,y.shape.points,m,s,c,!1),Wi(p),Wi(g),Dt(g,y,e),Dt(p,y,e),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var d=s.getItemModel(v),g=c.childAt(0),p=c.childAt(1),m=c.childAt(2),y=s.getItemVisual(v,"style"),_=y.fill;o.add(c),g.useStyle(j(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Kr(g,d,"lineStyle"),Kr(p,d,"areaStyle");var S=d.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();p.ignore=w,M(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),D=C.isEmpty()&&C.parentModel.isEmpty();p.ensureState(T).ignore=D&&w}),p.useStyle(j(S.getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var x=d.getModel("emphasis"),b=x.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof Ge){var C=T.style;T.useStyle(F({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else T.useStyle(y),T.setColor(_),T.style.strokeNoScale=!0;var D=T.ensureState("emphasis");D.style=et(b);var A=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(A==null||isNaN(A))&&(A=""),Vn(T,Gn(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:A,inheritColor:_,defaultOpacity:y.opacity})}),Dr(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}($t),TL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new I1(mt(this.getData,this),mt(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return Ov(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=$0(this,e);return Nn("section",{header:u,sortBlocks:!0,blocks:G(s,function(h){var c=i.get(i.mapDimension(h.dim),e);return Nn("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(G(a.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(fe),hi=R1.value;function qo(r,t){return j({show:t},r)}var CL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=G(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=j({color:d.color},l));var p=nt(et(d),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:c},!1);if(U(f)){var m=p.name;p.name=f.replace("{value}",m??"")}else K(f)&&(p.name=f(p.name,p));var y=new Ct(p,null,this.ecModel);return ze(y,q_.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:nt({lineStyle:{color:"#bbb"}},hi.axisLine),axisLabel:qo(hi.axisLabel,!1),axisTick:qo(hi.axisTick,!1),splitLine:qo(hi.splitLine,!0),splitArea:qo(hi.splitArea,!0),indicator:[]},t}(vt),DL=["axisLine","axisTickLabel","axisName"],AL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=G(a,function(o){var s=o.model.get("showName")?o.name:"",l=new wr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(DL,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),d=V(c)?c:[c],g=V(v)?v:[v],p=[],m=[];function y(R,k,O){var E=O%k.length;return R[E]=R[E]||[],E}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(f){var b=y(p,d,x);p[b].push(new Va({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=y(m,g,x);m[b].push(new ol({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(a,function(R,k){var O=R.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),G(O,function(E){return n.coordToPoint(E.coord,k)})}),D=[],x=0;x<=T;x++){for(var A=[],I=0;I<a.length;I++)A.push(C[I][x]);if(A[0]&&A.push(A[0].slice()),f){var b=y(p,d,x);p[b].push(new tn({shape:{points:A}}))}if(h&&D){var b=y(m,g,x-1);m[b].push(new zn({shape:{points:A.concat(D)}}))}D=A.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();M(m,function(R,k){this.group.add(Vf(R,{style:j({stroke:"none",fill:g[k%g.length]},P),silent:!0}))},this),M(p,function(R,k){this.group.add(Vf(R,{style:j({fill:"none",stroke:d[k%d.length]},L),silent:!0}))},this)},t.type="radar",t}(re),ML=function(r){B(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(n1),IL=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=G(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new ML(o,new jr);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(i-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight(),o=Math.min(a,i)/2;this.cx=Z(n[0],a),this.cy=Z(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(U(s)||dt(s))&&(s=[0,s]),this.r0=Z(s[0],o),this.r=Z(s[1],o),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,a=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();M(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new jr;o.setExtent(0,i),o.setInterval(1),M(n,function(s,l){k1(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();function LL(r){r.registerCoordinateSystem("radar",IL),r.registerComponentModel(CL),r.registerComponentView(AL),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function PL(r){Fe(LL),r.registerChartView(bL),r.registerSeriesModel(TL),r.registerLayout(xL),r.registerProcessor(A1("radar")),r.registerPreprocessor(wL)}var yg="\0_ec_interaction_mutex";function RL(r,t,e){var n=z1(r);n[t]=e}function kL(r,t,e){var n=z1(r),a=n[t];a===e&&(n[t]=null)}function z1(r){return r[yg]||(r[yg]={})}fr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Jt);var EL={axisPointer:1,tooltip:1,brush:1};function OL(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!EL.hasOwnProperty(n.mainType)&&a&&a.model!==e}var NL=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),BL=function(r){B(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new NL},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t}(it);function FL(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=Z(e[0],t.getWidth()),s=Z(e[1],t.getHeight()),l=Z(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ko(r,t){var e=r==null?"":r+"";return t&&(U(t)?e=t.replace("{value}",e):K(t)&&(e=t(r))),e}var zL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=FL(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),c=h.get("roundCap"),v=c?Vs:Ce,d=h.get("show"),g=h.getModel("lineStyle"),p=g.get("width"),m=[u,f];Xh(m,!l),u=m[0],f=m[1];for(var y=f-u,_=u,S=[],w=0;d&&w<i.length;w++){var x=Math.min(Math.max(i[w][0],0),1);f=u+y*x;var b=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});b.setStyle({fill:i[w][1]}),b.setStyle(g.getLineStyle(["color","width"])),S.push(b),_=f}S.reverse(),M(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=C&&(D===0?0:i[D-1][0])<C)return i[D][1];return i[D-1][1]};this._renderTicks(e,n,a,T,o,u,f,l,p),this._renderTitleAndDetail(e,n,a,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,a,T,o,u,f,l,p)},t.prototype._renderTicks=function(e,n,a,i,o,s,l,u,f){for(var h=this.group,c=o.cx,v=o.cy,d=o.r,g=+e.get("min"),p=+e.get("max"),m=e.getModel("splitLine"),y=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),w=y.get("splitNumber"),x=Z(m.get("length"),d),b=Z(y.get("length"),d),T=s,C=(l-s)/S,D=C/w,A=m.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),L=m.get("distance"),P,R,k=0;k<=S;k++){if(P=Math.cos(T),R=Math.sin(T),m.get("show")){var O=L?L+f:f,E=new lr({shape:{x1:P*(d-O)+c,y1:R*(d-O)+v,x2:P*(d-x-O)+c,y2:R*(d-x-O)+v},style:A,silent:!0});A.stroke==="auto"&&E.setStyle({stroke:i(k/S)}),h.add(E)}if(_.get("show")){var O=_.get("distance")+L,N=Ko(kt(k/S*(p-g)+g),_.get("formatter")),z=i(k/S),H=P*(d-x-O)+c,Y=R*(d-x-O)+v,J=_.get("rotate"),rt=0;J==="radial"?(rt=-T+2*Math.PI,rt>Math.PI/2&&(rt+=Math.PI)):J==="tangential"?rt=-T-Math.PI/2:dt(J)&&(rt=J*Math.PI/180),rt===0?h.add(new At({style:we(_,{text:N,x:H,y:Y,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0})):h.add(new At({style:we(_,{text:N,x:H,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:H,originY:Y,rotation:rt}))}if(y.get("show")&&k!==S){var O=y.get("distance");O=O?O+f:f;for(var _t=0;_t<=w;_t++){P=Math.cos(T),R=Math.sin(T);var pt=new lr({shape:{x1:P*(d-O)+c,y1:R*(d-O)+v,x2:P*(d-b-O)+c,y2:R*(d-b-O)+v},silent:!0,style:I});I.stroke==="auto"&&pt.setStyle({stroke:i((k+_t/w)/S)}),h.add(pt),T+=D}T-=D}else T+=C}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var h=this.group,c=this._data,v=this._progressEls,d=[],g=e.get(["pointer","show"]),p=e.getModel("progress"),m=p.get("show"),y=e.getData(),_=y.mapDimension("value"),S=+e.get("min"),w=+e.get("max"),x=[S,w],b=[s,l];function T(D,A){var I=y.getItemModel(D),L=I.getModel("pointer"),P=Z(L.get("width"),o.r),R=Z(L.get("length"),o.r),k=e.get(["pointer","icon"]),O=L.get("offsetCenter"),E=Z(O[0],o.r),N=Z(O[1],o.r),z=L.get("keepAspect"),H;return k?H=Be(k,E-P/2,N-R,P,R,null,z):H=new BL({shape:{angle:-Math.PI/2,width:P,r:R,x:E,y:N}}),H.rotation=-(A+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(D,A){var I=p.get("roundCap"),L=I?Vs:Ce,P=p.get("overlap"),R=P?p.get("width"):f/y.count(),k=P?o.r-R:o.r-(D+1)*R,O=P?o.r:o.r-D*R,E=new L({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:O}});return P&&(E.z2=w-y.get(_,D)%w),E}(m||g)&&(y.diff(c).add(function(D){var A=y.get(_,D);if(g){var I=T(D,s);Nt(I,{rotation:-((isNaN(+A)?b[0]:ie(A,x,b,!0))+Math.PI/2)},e),h.add(I),y.setItemGraphicEl(D,I)}if(m){var L=C(D,s),P=p.get("clip");Nt(L,{shape:{endAngle:ie(A,x,b,P)}},e),h.add(L),Rf(e.seriesIndex,y.dataType,D,L),d[D]=L}}).update(function(D,A){var I=y.get(_,D);if(g){var L=c.getItemGraphicEl(A),P=L?L.rotation:s,R=T(D,P);R.rotation=P,Dt(R,{rotation:-((isNaN(+I)?b[0]:ie(I,x,b,!0))+Math.PI/2)},e),h.add(R),y.setItemGraphicEl(D,R)}if(m){var k=v[A],O=k?k.shape.endAngle:s,E=C(D,O),N=p.get("clip");Dt(E,{shape:{endAngle:ie(I,x,b,N)}},e),h.add(E),Rf(e.seriesIndex,y.dataType,D,E),d[D]=E}}).execute(),y.each(function(D){var A=y.getItemModel(D),I=A.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),R=I.get("disabled");if(g){var k=y.getItemGraphicEl(D),O=y.getItemVisual(D,"style"),E=O.fill;if(k instanceof Ge){var N=k.style;k.useStyle(F({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},O))}else k.useStyle(O),k.type!=="pointer"&&k.setColor(E);k.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i(ie(y.get(_,D),x,[0,1],!0))),k.z2EmphasisLift=0,Kr(k,A),Dr(k,L,P,R)}if(m){var z=d[D];z.useStyle(y.getItemVisual(D,"style")),z.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,Kr(z,A),Dr(z,L,P,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Be(s,n.cx-o/2+Z(l[0],n.r),n.cy-o/2+Z(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),h=+e.get("max"),c=new St,v=[],d=[],g=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new At({silent:!0}),d[m]=new At({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],d[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),S=new St,w=i(ie(_,[f,h],[0,1],!0)),x=y.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),T=o.cx+Z(b[0],o.r),C=o.cy+Z(b[1],o.r),D=v[m];D.attr({z2:p?0:2,style:we(x,{x:T,y:C,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(D)}var A=y.getModel("detail");if(A.get("show")){var I=A.get("offsetCenter"),L=o.cx+Z(I[0],o.r),P=o.cy+Z(I[1],o.r),R=Z(A.get("width"),o.r),k=Z(A.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(m,"style").fill:w,D=d[m],E=A.get("formatter");D.attr({z2:p?0:2,style:we(A,{x:L,y:P,text:Ko(_,E),width:isNaN(R)?null:R,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:O})}),r0(D,{normal:A},_,function(z){return Ko(z,E)}),g&&n0(D,m,l,e,{getFormattedLabel:function(z,H,Y,J,rt,_t){return Ko(_t?_t.interpolatedValue:_,E)}}),S.add(D)}c.add(S)}),this.group.add(c),this._titleEls=v,this._detailEls=d},t.type="gauge",t}($t),VL=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return Ov(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(fe);function GL(r){r.registerChartView(zL),r.registerSeriesModel(VL)}function V1(r,t,e,n,a,i){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=na(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=na(s,[0,o]),a=i=na(s,[a,i]),n=0}t[0]=na(t[0],e),t[1]=na(t[1],e);var l=Zu(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=na(t[n],f);var h;return h=Zu(t,n),a!=null&&(h.sign!==l.sign||h.span<a)&&(t[1-n]=t[n]+l.sign*a),h=Zu(t,n),i!=null&&h.span>i&&(t[1-n]=t[n]+h.sign*i),t}function Zu(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function na(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Bn=!0,to=Math.min,Ea=Math.max,HL=Math.pow,WL=1e4,UL=6,YL=6,_g="globalPan",XL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},$L={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Sg={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},ZL=0,qL=function(r){B(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new St,n._uid="brushController_"+ZL++,M(rP,function(a,i){this._handlers[i]=mt(a,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||RL(n,_g,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=nt(et(Sg),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;kL(e,_g,this._uid),M(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(a){n[a.panelId]=et(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=G(e,function(c){return nt(et(Sg),c,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Ki(a,e,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&a[v]===s)i[c]=a[v];else{var g=i[c]=v!=null?(a[v].__brushOption=d,a[v]):H1(o,G1(o,d));Fv(o,g)}}function h(c){a[c]!==s&&o.group.remove(a[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),vh(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ve);function G1(r,t){var e=Il[t.brushType].createCover(r,t);return e.__brushOption=t,U1(e,t),r.group.add(e),e}function H1(r,t){var e=zv(t);return e.endCreating&&(e.endCreating(r,t),U1(t,t.__brushOption)),t}function W1(r,t){var e=t.__brushOption;zv(t).updateCoverShape(r,t,e.range,e)}function U1(r,t){var e=t.z;e==null&&(e=WL),r.traverse(function(n){n.z=e,n.z2=e})}function Fv(r,t){zv(t).updateCommon(r,t),W1(r,t)}function zv(r){return Il[r.__brushOption.brushType]}function Vv(r,t,e){var n=r._panels;if(!n)return Bn;var a,i=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function Y1(r,t){var e=r._panels;if(!e)return Bn;var n=t.__brushOption.panelId;return n!=null?e[n]:Bn}function vh(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Fn(r,t){var e=G(r._covers,function(n){var a=n.__brushOption,i=et(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function KL(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=HL(a*a+i*i,.5);return o>UL}function X1(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function $1(r,t,e,n){var a=new St;return a.add(new bt({name:"main",style:Gv(e),silent:!0,draggable:!0,cursor:"move",drift:ct(xg,r,t,a,["n","s","w","e"]),ondragend:ct(Fn,t,{isEnd:!0})})),M(n,function(i){a.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ct(xg,r,t,a,i),ondragend:ct(Fn,t,{isEnd:!0})}))}),a}function Z1(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Ea(a,YL),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],h=e[1][1],c=f-i+a/2,v=h-i+a/2,d=f-o,g=h-s,p=d+a,m=g+a;pr(r,t,"main",o,s,d,g),n.transformable&&(pr(r,t,"w",l,u,i,m),pr(r,t,"e",c,u,i,m),pr(r,t,"n",l,u,p,i),pr(r,t,"s",l,v,p,i),pr(r,t,"nw",l,u,i,i),pr(r,t,"ne",c,u,i,i),pr(r,t,"sw",l,v,i,i),pr(r,t,"se",c,v,i,i))}function ch(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Gv(e)),a.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?dh(r,i[0]):jL(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?$L[s]+"-resize":null})})}function pr(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(tP(Hv(r,t,[[n,a],[n+i,a+o]])))}function Gv(r){return j({strokeNoScale:!0},r.brushStyle)}function q1(r,t,e,n){var a=[to(r,e),to(t,n)],i=[Ea(r,e),Ea(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function QL(r){return rv(r.group)}function dh(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Ky(e[t],QL(r));return n[a]}function jL(r,t){var e=[dh(r,t[0]),dh(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function xg(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=K1(t,a,i);M(n,function(u){var f=XL[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(q1(s[0][0],s[1][0],s[0][1],s[1][1])),Fv(t,e),Fn(t,{isEnd:!1})}function JL(r,t,e,n){var a=t.__brushOption.range,i=K1(r,e,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Fv(r,t),Fn(r,{isEnd:!1})}function K1(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function Hv(r,t,e){var n=Y1(r,t);return n&&n!==Bn?n.clipPath(e,r._transform):et(e)}function tP(r){var t=to(r[0][0],r[1][0]),e=to(r[0][1],r[1][1]),n=Ea(r[0][0],r[1][0]),a=Ea(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function eP(r,t,e){if(!(!r._brushType||nP(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=Vv(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Bn||s.panelId===i.panelId)&&Il[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function ph(r){var t=r.event;t.preventDefault&&t.preventDefault()}function gh(r,t,e){return r.childOfName("main").contain(t,e)}function Q1(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),KL(r)||a){if(i&&!a){o.brushMode==="single"&&vh(r);var l=et(o);l.brushType=wg(l.brushType,i),l.panelId=i===Bn?null:i.panelId,a=r._creatingCover=G1(r,l),r._covers.push(a)}if(a){var u=Il[wg(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(Hv(r,a,r._track)),n&&(H1(r,a),u.updateCommon(r,a)),W1(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Vv(r,t,e)&&vh(r)&&(s={isEnd:n,removeOnClick:!0});return s}function wg(r,t){return r==="auto"?t.defaultBrushType:r}var rP={mousedown:function(r){if(this._dragging)bg(this,r);else if(!r.target||!r.target.draggable){ph(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Vv(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(eP(this,r,n),this._dragging){ph(r);var a=Q1(this,r,n,!1);a&&Fn(this,a)}},mouseup:function(r){bg(this,r)}};function bg(r,t){if(r._dragging){ph(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=Q1(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Fn(r,i)}}function nP(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Il={lineX:Tg(0),lineY:Tg(1),rect:{createCover:function(r,t){function e(n){return n}return $1({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=X1(r);return q1(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){Z1(r,t,e,n)},updateCommon:ch,contain:gh},polygon:{createCover:function(r,t){var e=new St;return e.add(new tn({name:"main",style:Gv(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new zn({name:"main",draggable:!0,drift:ct(JL,r,t),ondragend:ct(Fn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Hv(r,t,e)})},updateCommon:ch,contain:gh}};function Tg(r){return{createCover:function(t,e){return $1({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=X1(t),n=to(e[0][r],e[1][r]),a=Ea(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=Y1(t,e);if(o!==Bn&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),Z1(t,e,l,a)},updateCommon:ch,contain:gh}}function aP(r){return r=Wv(r),function(t){return jy(t,r)}}function iP(r,t){return r=Wv(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function oP(r,t,e){var n=Wv(r);return function(a,i){return n.contain(i[0],i[1])&&!OL(a,t,e)}}function Wv(r){return ft.create(r)}var sP=["itemStyle","borderWidth"],Cg=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],qu=new Va,lP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:Cg[+f],categoryDim:Cg[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var g=Ag(o,d),p=Dg(o,d,g,c),m=Mg(o,c,p);o.setItemGraphicEl(d,m),i.add(m),Lg(m,c,p)}}).update(function(d,g){var p=s.getItemGraphicEl(g);if(!o.hasValue(d)){i.remove(p);return}var m=Ag(o,d),y=Dg(o,d,m,c),_=nS(o,y);p&&_!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(d,null),p=null),p?pP(p,c,y):p=Mg(o,c,y,!0),o.setItemGraphicEl(d,p),p.__pictorialSymbolMeta=y,i.add(p),Lg(p,c,y)}).remove(function(d){var g=s.getItemGraphicEl(d);g&&Ig(s,d,g.__pictorialSymbolMeta.animationModel,g)}).execute();var v=e.get("clip",!0)?_1(e.coordinateSystem,!1,e):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){Ig(i,st(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}($t);function Dg(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};uP(e,i,a,n,c),fP(r,t,a,i,o,c.boundingLength,c.pxSign,f,n,c),hP(e,c.symbolScale,u,n,c);var v=c.symbolSize,d=Sv(e.get("symbolOffset"),v);return vP(e,v,a,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function uP(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(V(o)){var h=[Ku(s,o[0])-l,Ku(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=Ku(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=e[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=e[i.wh]),a.pxSign=f>0?1:-1}function Ku(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function fP(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,c=Math.abs(e[h.wh]),v=r.getItemVisual(t,"symbolSize"),d;V(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[h.index]=Z(d[h.index],c),d[f.index]=Z(d[f.index],n?c:Math.abs(i)),u.symbolSize=d;var g=u.symbolScale=[d[0]/s,d[1]/s];g[f.index]*=(l.isHorizontal?-1:1)*o}function hP(r,t,e,n,a){var i=r.get(sP)||0;i&&(qu.attr({scaleX:t[0],scaleY:t[1],rotation:e}),qu.updateTransform(),i/=qu.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function vP(r,t,e,n,a,i,o,s,l,u,f,h){var c=f.categoryDim,v=f.valueDim,d=h.pxSign,g=Math.max(t[v.index]+s,0),p=g;if(n){var m=Math.abs(l),y=Ma(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=Z(y,t[v.index]),w=Math.max(g+S*2,0),x=_?0:S*2,b=uy(n),T=b?n:Pg((m+x)/w),C=m-T*g;S=C/2/(_?T:Math.max(T-1,1)),w=g+S*2,x=_?0:S*2,!b&&n!=="fixed"&&(T=u?Pg((Math.abs(u)+x)/w):0),p=T*w-x,h.repeatTimes=T,h.symbolMargin=S}var D=d*(p/2),A=h.pathPosition=[];A[c.index]=e[c.wh]/2,A[v.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var I=h.bundlePosition=[];I[c.index]=e[c.xy],I[v.index]=e[v.xy];var L=h.barRectShape=F({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(A[v.index]+D)),L[c.wh]=e[c.wh];var P=h.clipShape={};P[c.xy]=-e[c.xy],P[c.wh]=f.ecSize[c.wh],P[v.xy]=0,P[v.wh]=e[v.wh]}function j1(r){var t=r.symbolPatternSize,e=Be(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function J1(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,h=i[t.valueDim.index]+o+e.symbolMargin*2;for(Uv(r,function(g){g.__pictorialAnimationIndex=f,g.__pictorialRepeatTimes=u,f<u?Ca(g,null,d(f),e,n):Ca(g,null,{scaleX:0,scaleY:0},e,n,function(){a.remove(g)}),f++});f<u;f++){var c=j1(e);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var v=d(f);Ca(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,n)}function d(g){var p=s.slice(),m=e.pxSign,y=g;return(e.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-g),p[l.index]=h*(y-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function tS(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ca(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=j1(e),a.add(i),Ca(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function eS(r,t,e){var n=F({},t.barRectShape),a=r.__pictorialBarRect;a?Ca(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new bt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function rS(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=F({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Dt(a,{shape:i},s,l);else{i[o.wh]=0,a=new bt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],vl[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Ag(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=cP,e.isAnimationEnabled=dP,e}function cP(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function dP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Mg(r,t,e,n){var a=new St,i=new St;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?J1(a,t,e):tS(a,t,e),eS(a,e,n),rS(a,t,e,n),a.__pictorialShapeStr=nS(r,e),a.__pictorialSymbolMeta=e,a}function pP(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;Dt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?J1(r,t,e,!0):tS(r,t,e,!0),eS(r,e,!0),rS(r,t,e,!0)}function Ig(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Uv(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),M(i,function(o){Hi(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function nS(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Uv(r,t,e){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Ca(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&vl[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function Lg(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),c=i.get("scale");Uv(r,function(g){if(g instanceof Ge){var p=g.style;g.useStyle(F({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else g.useStyle(e.style);var m=g.ensureState("emphasis");m.style=o,c&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Vn(d,Gn(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ml(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Dr(r,f,h,i.get("disabled"))}function Pg(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var gP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=av(ji.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(ji);function mP(r){r.registerChartView(lP),r.registerSeriesModel(gP),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ct(z_,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,V_("pictorialBar"))}var Dn=wt(),Rg=et,Qu=mt,yP=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new St,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var c=ct(kg,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}Og(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.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 l=Bv(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=Dn(t).pointerEl=new vl[i.type](Rg(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=Dn(t).labelEl=new At(Rg(e.label));t.add(i),Eg(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=Dn(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=Dn(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Eg(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.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=ul(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Vm(u.event)},onmousedown:Qu(this._onHandleDragMove,this,0,0),drift:Qu(this._onHandleDragMove,this),ondragend:Qu(this._onHandleDragEnd,this)}),n.add(a)),Og(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");V(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,K0(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){kg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ju(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(ju(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ju(a)),Dn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),qf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function kg(r,t,e,n){aS(Dn(e).lastProp,n)||(Dn(e).lastProp=n,t?Dt(e,n,r):(e.stopAnimation(),e.attr(n)))}function aS(r,t){if(X(r)&&X(t)){var e=!0;return M(t,function(n,a){e=e&&aS(r[a],n)}),!!e}else return r===t}function Eg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ju(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Og(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function _P(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function SP(r,t,e,n,a){var i=e.get("value"),o=iS(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=_l(s.get("padding")||0),u=s.getFont(),f=js(o,u),h=a.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[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),xP(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:we(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function xP(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function iS(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Lv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?i=o.replace("{value}",i):K(o)&&(i=o(s))}return i}function oS(r,t,e){var n=ma();return zh(n,n,e.rotation),mf(n,n,e.position),nv([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function wP(r,t,e,n,a,i){var o=wr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),SP(t,n,a,i,{position:oS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function bP(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function TP(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var CP=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=Ng(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=_P(i),v=DP[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=uh(l.model,a);wP(n,e,d,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=uh(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=oS(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Ng(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(yP);function Ng(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var DP={line:function(r,t,e){var n=bP([t,e[0]],[t,e[1]],Bg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:TP([t-n/2,e[0]],[n,a],Bg(r))}}};function Bg(r){return r.dim==="x"?0:1}var AP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(vt),Sr=wt(),MP=M;function sS(r,t,e){if(!tt.node){var n=t.getZr();Sr(n).records||(Sr(n).records={}),IP(n,t);var a=Sr(n).records[r]||(Sr(n).records[r]={});a.handler=e}}function IP(r,t){if(Sr(r).initialized)return;Sr(r).initialized=!0,e("click",ct(Fg,"click")),e("mousemove",ct(Fg,"mousemove")),e("globalout",PP);function e(n,a){r.on(n,function(i){var o=RP(t);MP(Sr(r).records,function(s){s&&a(s,i,o.dispatchAction)}),LP(o.pendings,t)})}}function LP(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function PP(r,t,e){r.handler("leave",null,e)}function Fg(r,t,e,n){t.handler(r,e,n)}function RP(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function mh(r,t){if(!tt.node){var e=t.getZr(),n=(Sr(e).records||{})[r];n&&(Sr(e).records[r]=null)}}var kP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sS("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){mh("axisPointer",n)},t.prototype.dispose=function(e,n){mh("axisPointer",n)},t.type="axisPointer",t}(re);function lS(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=En(i,r);if(o==null||o<0||V(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.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),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(i.getValues(G(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var zg=wt();function EP(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||mt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){cs(a)&&(a=lS({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=cs(a),u=i.axesInfo,f=s.axesInfo,h=n==="leave"||cs(a),c={},v={},d={list:[],map:{}},g={showPointer:ct(NP,v),showTooltip:ct(BP,d)};M(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);M(s.coordSysAxesInfo[y],function(S,w){var x=S.axis,b=GP(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&Vg(S,T,g,!1,c)}})});var p={};return M(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&M(_.axesInfo,function(S,w){var x=v[w];if(S!==m&&x){var b=x.value;_.mapper&&(b=m.axis.scale.parse(_.mapper(b,Gg(S),Gg(m)))),p[m.key]=b}})}),M(p,function(m,y){Vg(f[y],m,g,!0,c)}),FP(v,f,c),zP(d,a,r,o),VP(f,o,e),c}}function Vg(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=OP(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&F(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function OP(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-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:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function NP(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function BP(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Ji(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim: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 FP(r,t,e){var n=e.axesInfo=[];M(t,function(a,i){var o=a.axisPointerModel.option,s=r[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 zP(r,t,e,n){if(cs(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function VP(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=zg(n)[a]||{},o=zg(n)[a]={};M(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];M(i,function(u,f){!o[f]&&l.push(u)}),M(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function GP(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Gg(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function cs(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function uS(r){O1.registerAxisPointerClass("CartesianAxisPointer",CP),r.registerComponentModel(AP),r.registerComponentView(kP),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!V(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=oL(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},EP)}function HP(r){Fe(F1),Fe(uS)}var Hg=["x","y","radius","angle","single"],WP=["cartesian2d","polar","singleAxis"];function UP(r){var t=r.get("coordinateSystem");return lt(WP,t)>=0}function da(r){return r+"Axis"}function YP(r,t){var e=q(),n=[],a=q();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}var Ju=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),XP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=Wg(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Wg(e);nt(this.option,e,!0),nt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=q(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(Hg,function(a){var i=this.getReferringComponents(da(a),fb);if(i.specified){n=!0;var o=new Ju;M(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new Ju;if(c.add(h.componentIndex),e.set(f,c),i=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",jt).models[0];v&&M(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",jt).models[0]&&c.add(d.componentIndex)})}}}i&&M(Hg,function(u){if(i){var f=a.findComponents({mainType:da(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Ju;h.add(f[0].componentIndex),e.set(u,h),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(da(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(da(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(vt);function Wg(r){var t={};return M(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var $P=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(XP),ZP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(re),qP=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(ZP),ua=M,Ug=Xw,KP=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(UP(e)){var n=da(this._dimName),a=e.getReferringComponents(n,jt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return et(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ua(["start","end"],function(c,v){var d=t[c],g=t[c+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),g=a.parse(ie(d,o,e))):(u=!0,g=g==null?e[v]:a.parse(g),d=ie(g,e,o)),l[v]=g==null||isNaN(g)?e[v]:g,s[v]=d==null||isNaN(d)?o[v]:d}),Ug(l),Ug(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,d,g,p){var m=p?"Span":"ValueSpan";V1(0,c,d,"all",f["min"+m],f["max"+m]);for(var y=0;y<2;y++)v[y]=ie(c[y],d,g,!0),p&&(v[y]=a.parse(v[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=QP(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ua(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var h=u.getStore(),c=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,g,p,m=0;m<f.length;m++){var y=h.get(c[m],v),_=!isNaN(y),S=y<o[0],w=y>o[1];if(_&&!S&&!w)return!0;_&&(p=!0),S&&(d=!0),w&&(g=!0)}return p&&d&&g})}else ua(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});ua(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ua(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ie(n[0]+o,n,[0,100],!0):i!=null&&(o=ie(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=oy(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function QP(r,t,e){var n=[1/0,-1/0];ua(e,function(o){T2(n,o.getData(),t)});var a=r.getAxisModel(),i=Y_(a.axis.scale,a,n).calculate();return[i.min,i.max]}var jP={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(da(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new KP(a,i,s,r),e.push(o.__dzAxisProxy))});var n=q();return M(e,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function JP(r){r.registerAction("dataZoom",function(t,e){var n=YP(e,t);M(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Yg=!1;function tR(r){Yg||(Yg=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,jP),JP(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function eR(r){r.registerComponentModel($P),r.registerComponentView(qP),tR(r)}var Oe=function(){function r(){}return r}(),fS={};function vi(r,t){fS[r]=t}function hS(r){return fS[r]}var rR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,a){var i=hS(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),nt(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(vt);function nR(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=Qr(n,i,a);Ta(t.get("orient"),r,t.get("itemGap"),o.width,o.height),NC(r,n,i,a)}function vS(r,t){var e=_l(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new bt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var aR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),h=[];M(u,function(d,g){h.push(g)}),new Ki(this._featureNames||[],h).add(c).update(c).remove(ct(c,null)).execute(),this._featureNames=h;function c(d,g){var p=h[d],m=h[g],y=u[p],_=new Ct(y,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!m){if(iR(p))S={onclick:_.option.onclick,featureName:p};else{var w=hS(p);if(!w)return;S=new w}f[p]=S}else if(S=f[m],!S)return;S.uid=io("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof Oe;if(!p&&m){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,p),_.setIconStatus=function(b,T){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[b]=T,D[b]&&(T==="emphasis"?Ia:La)(D[b])},S instanceof Oe&&S.render&&S.render(_,n,a,i)}function v(d,g,p){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=g instanceof Oe&&g.getIcons?g.getIcons():d.get("icon"),S=d.get("title")||{},w,x;U(_)?(w={},w[p]=_):w=_,U(S)?(x={},x[p]=S):x=S;var b=d.iconPaths={};M(w,function(T,C){var D=ul(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(m.getItemStyle());var A=D.ensureState("emphasis");A.style=y.getItemStyle();var I=new At({style:{text:x[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:e0({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});D.setTextContent(I),fl({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),D.__title=x[C],D.on("mouseover",function(){var L=y.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?Ia:La)(D),o.add(D),D.on("click",mt(g.onclick,g,n,a,C)),b[C]=D})}nR(o,e,a),o.add(vS(o.getBoundingRect(),e)),l||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),m=p.textConfig||(p.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!K(_)&&g){var S=_.style||(_.style={}),w=js(g,At.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>a.getHeight()&&(m.position="top",T=!0);var C=T?-5-w.height:s+10;x+w.width/2>a.getWidth()?(m.position=["100%",C],S.align="right"):x-w.width/2<0&&(m.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,a,i){M(this._features,function(o){o instanceof Oe&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(e,n){M(this._features,function(a){a instanceof Oe&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(a){a instanceof Oe&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(re);function iR(r){return r.indexOf("my")===0}var oR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=tt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,m=new Uint8Array(p);p--;)m[p]=d.charCodeAt(p);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=a.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(b),T.document.title=i}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Oe),Xg="__ec_magicType_stack__",sR=[["line","bar"],["stack"]],lR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return M(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if($g[a]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,d=$g[a](c,v,h,i);d&&(j(d,h.option),s.series.push(d));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var m=p.dim,y=m+"Axis",_=h.getReferringComponents(y,jt).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var w=0;w<=S;w++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=a==="bar"}}};M(sR,function(h){lt(h,a)>=0&&M(h,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=nt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Oe),$g={line:function(r,t,e,n){if(r==="bar")return nt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return nt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===Xg;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),nt({id:t,stack:a?"":Xg},n.get(["option","stack"])||{},!0)}};fr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Ll=new Array(60).join("-"),Oa="	";function uR(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function fR(r){var t=[];return M(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(G(e.series,function(v){return v.name})),l=[a.model.getCategories()];M(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var u=[s.join(Oa)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(Oa))}t.push(u.join(`
`))}),t.join(`

`+Ll+`

`)}function hR(r){return G(r,function(t){var e=t.getRawData(),n=[t.name],a=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Oa:"")+a.join(Oa))}),n.join(`
`)}).join(`

`+Ll+`

`)}function vR(r){var t=uR(r);return{value:Rt([fR(t.seriesGroupByCategoryAxis),hR(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+Ll+`

`),meta:t.meta}}function Gs(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function cR(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(Oa)>=0)return!0}var yh=new RegExp("["+Oa+"]+","g");function dR(r){for(var t=r.split(/\n+/g),e=Gs(t.shift()).split(yh),n=[],a=G(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Gs(t[i]).split(yh);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function pR(r){for(var t=r.split(/\n+/g),e=Gs(t.shift()),n=[],a=0;a<t.length;a++){var i=Gs(t[a]);if(i){var o=i.split(yh),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function gR(r,t){var e=r.split(new RegExp(`
*`+Ll+`
*`,"g")),n={series:[]};return M(e,function(a,i){if(cR(a)){var o=dR(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=pR(a);n.series.push(o)}}),n}var mR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),c=i.get("contentToOption"),v=vR(e);if(K(h)){var d=h(n.getOption());U(d)?u.innerHTML=d:Aa(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var g=f.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=i.get("textColor"),g.borderColor=i.get("textareaBorderColor"),g.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var p=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var w=this;function x(){a.removeChild(o),w._dom=null}gf(_,"click",x),gf(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var b;try{K(c)?b=c(u,n.getOption()):b=gR(f.value,p)}catch(T){throw x(),new Error("Data view format error "+T)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=y,!i.get("readOnly")&&m.appendChild(S),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Oe);function yR(r,t){return G(r,function(e,n){var a=t&&t[n];if(X(a)&&!V(a)){var i=X(e)&&!V(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=j(e,a),o&&delete e.name,e}else return e})}fr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(F({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:yR(n.data,i)})}}),t.mergeOption(j({series:e},r.newOption))});var cS=M,dS=wt();function _R(r,t){var e=Yv(r);cS(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function SR(r){var t=Yv(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return cS(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function xR(r){dS(r).snapshots=null}function wR(r){return Yv(r).length}function Yv(r){var t=dS(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var bR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){xR(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Oe);fr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var TR=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],pS=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=Zg(e,t);M(CR,function(o,s){(!n||!n.include||lt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=tf[n.brushType](0,i,a);n.__rangeOffset={offset:jg[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&M(i.coordSyses,function(o){var s=tf[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=tf[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?jg[n.brushType](i.values,o.offset,DR(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return G(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:aP(a),isTargetByCursor:oP(a,t,n.coordSysModel),getLinearBrushOtherExtent:iP(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&lt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=Zg(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<qg.length;l++)if(qg[l](a,o))return o}return!0},r}();function _h(r){return r[0]>r[1]&&r.reverse(),r}function Zg(r,t){return Ii(r,t,{includeMainTypes:TR})}var CR={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=q(),o={},s={};!e&&!n&&!a||(M(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(h,c){(lt(e,h.getAxis("x").model)>=0||lt(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Kg.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Kg.geo})})}},qg=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Kg={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(rv(r)),t}},tf={lineX:ct(Qg,0),lineY:ct(Qg,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[_h([a[0],i[0]]),_h([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=G(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Qg(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=_h(G([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var jg={lineX:ct(Jg,0),lineY:ct(Jg,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return G(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function Jg(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function DR(r,t){var e=tm(r),n=tm(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function tm(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Sh=M,AR=ob("toolbox-dataZoom_"),MR=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new qL(a.getZr()),this._brushController.on("brush",mt(this._onBrush,this)).mount()),PR(e,n,this,i,a),LR(e,n)},t.prototype.onclick=function(e,n,a){IR[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new pS(Xv(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),_R(i,a),this._dispatchZoomAction(a);function s(u,f,h){var c=f.getAxis(u),v=c.model,d=l(u,v,i),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=V1(0,h.slice(),c.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Sh(e,function(a,i){n.push(et(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Oe),IR={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(SR(this.ecModel))}};function Xv(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function LR(r,t){r.setIconStatus("back",wR(t)>1?"emphasis":"normal")}function PR(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new pS(Xv(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}YC("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=Xv(n),o=Ii(r,i);Sh(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Sh(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:AR+u+h};c[f]=h,a.push(c)}return a});function RR(r){r.registerComponentModel(rR),r.registerComponentView(aR),vi("saveAsImage",oR),vi("magicType",lR),vi("dataView",mR),vi("dataZoom",MR),vi("restore",bR),Fe(eR)}var kR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(vt);function gS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function mS(r){if(tt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var yS=mS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ER=mS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function _S(r,t){if(!r)return t;t=m0(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function OR(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var NR=_S(ER,"transition"),$v=_S(yS,"transform"),BR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tt.transform3dSupported?"will-change:transform;":"");function FR(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function zR(r,t,e){if(!U(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=On(t);var i=FR(e),o=Math.max(Math.round(a)*1.5,6),s="",l=$v+":",u;lt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*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;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function VR(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=tt.transformSupported?","+$v+n:",left"+n+",top"+n),NR+":"+a}function em(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!tt.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=tt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+$v+":"+o+";":[["top",0],["left",0],[yS,o]]}function GR(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function HR(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Z0(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&a&&n.push(VR(a,e)),i&&n.push("background-color:"+i),M(["width","color","radius"],function(v){var d="border-"+v,g=m0(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(GR(f)),h!=null&&n.push("padding:"+_l(h).join("px ")+"px"),n.join(";")+";"}function rm(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&Wx(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var WR=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(U(i)?document.querySelector(i):Aa(i)?i:K(i)&&i(t.getDom()));rm(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();me(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=OR(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=BR+HR(t,!this._firstShow,this._longHide)+em(i[0],i[1],!0)+("border-color:"+On(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(U(i)&&n.get("trigger")==="item"&&!gS(n)&&(s=zR(n,a,i)),U(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)Aa(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(rm(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=em(n[0],n[1]);M(i,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",tt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(mt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),UR=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),am(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,a,i){var o=this;X(t)&&ht(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new At({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Z0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=nm(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var a=this._styleCoord;am(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=zr(i.borderWidth||0),s=nm(i);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(mt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function zr(r){return Math.max(0,r)}function nm(r){var t=zr(r.shadowBlur||0),e=zr(r.shadowOffsetX||0),n=zr(r.shadowOffsetY||0);return{left:zr(t-e),right:zr(t+e),top:zr(t-n),bottom:zr(t+n)}}function am(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var YR=new bt({shape:{x:-1,y:-1,width:2,height:2}}),XR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(tt.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=vb(a.get("renderMode"));this._tooltipContent=i==="richText"?new UR(n):new WR(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,n,a){if(!(tt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?K0(this,"_updatePosition",50,"fixRate"):qf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");sS("itemTooltip",this._api,mt(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 e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.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(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||tt.node||!a.getDom())){var o=im(i,a);this._ticket="";var s=i.dataByCoordSys,l=KR(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=YR;f.x=i.x,f.y=i.y,f.update(),st(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(e,n,a,i))return;var h=lS(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(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(im(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ci([f.getItemModel(s),u,(u.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(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=st(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xi(a,function(f){if(st(f).dataIndex!=null)return l=f,!0;if(st(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=mt(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ci([n.tooltipOption],i),l=this._renderMode,u=[],f=Nn("section",{blocks:[],noHeader:!0}),h=[],c=new Tu;M(e,function(y){M(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=iS(w,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),b=Nn("section",{header:x,noHeader:!rr(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Lv(S.axis,{value:w}),A.axisValueLabel=x,A.marker=c.makeTooltipMarker("item",On(A.color),l);var I=Hd(C.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=ci([C],i).get("valueFormatter");b.blocks.push(P?F({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Zd(f,c,l,d,a.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?`

`:"<br/>",m=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=st(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=ci([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(f,h),y=new Tu;m.marker=y.makeTooltipMarker("item",On(m.color),v);var _=Hd(u.formatTooltip(f,!1,h)),S=g.get("order"),w=g.get("valueFormatter"),x=_.frag,b=x?Zd(w?F({valueFormatter:w},x):x,y,v,S,i.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=st(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(U(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=et(l),l.content=he(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=ci(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new Tu;this._showOrMove(d,function(){var y=et(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,e.offsetX,e.offsetY,e.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(U(c)){var p=e.ecModel.get("useUTC"),m=V(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=c,y&&(v=dl(m.axisValue,v,p)),v=y0(v,a,!0)}else if(K(c)){var _=mt(function(S,w){S===this._ticket&&(h.setContent(w,f,e,g,l),this._updatePosition(e,l,o,s,h,a,u))},this);this._ticket=i,v=c(a,i,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||V(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),K(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),V(n))a=Z(n[0],u),i=Z(n[1],f);else if(X(n)){var g=n;g.width=h[0],g.height=h[1];var p=Qr(g,{width:u,height:f});a=p.x,i=p.y,c=null,v=null}else if(U(n)&&l){var m=qR(n,d,h,e.get("borderWidth"));a=m[0],i=m[1]}else{var m=$R(a,i,o,u,f,c?null:20,v?null:20);a=m[0],i=m[1]}if(c&&(a-=om(c)?h[0]/2:c==="right"?h[0]:0),v&&(i-=om(v)?h[1]/2:v==="bottom"?h[1]:0),gS(e)){var m=ZR(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&M(u,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(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&M(c.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){tt.node||!n.getDom()||(qf(this,"_updatePosition"),this._tooltipContent.dispose(),mh("itemTooltip",n))},t.type="tooltip",t}(re);function ci(r,t,e){var n=t.ecModel,a;e?(a=new Ct(e,n,n),a=new Ct(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Ct&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(a=new Ct(o,a,n)))}return a}function im(r,t){return r.dispatchAction||mt(t.dispatchAction,t)}function $R(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function ZR(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function qR(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function om(r){return r==="center"||r==="middle"}function KR(r,t,e){var n=Uh(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=ao(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=st(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function QR(r){Fe(uS),r.registerComponentModel(kR),r.registerComponentView(XR),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jt)}var jR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}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}(vt),JR=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=at(e.get("textBaseline"),e.get("textVerticalAlign")),f=new At({style:we(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new At({style:we(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Td(d,"_"+e.get("target"))}),g&&v.on("click",function(){Td(g,"_"+e.get("subtarget"))}),st(f).eventData=st(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),c&&i.add(v);var m=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Qr(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),m=i.getBoundingRect();var w=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new bt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(re);function tk(r){r.registerComponentModel(jR),r.registerComponentView(JR)}var ek=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},xh=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),V(n)&&M(n,function(i,o){U(i)&&(i={type:i}),n[o]=nt(i,ek(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&Wh(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=q(),s=G(i,function(l){return(U(l)||dt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ct(l,this,this.ecModel))},this);this._data=Rt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){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[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;M(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;M(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&lt(this._availableNames,e)>=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}(vt),aa=ct,wh=M,Qo=St,SS=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Qo),this.group.add(this._selectorGroup=new Qo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=e.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),v=Qr(f,h,c),d=this.layoutInner(e,o,v,i,l,u),g=Qr(j({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=vS(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this.getContentGroup(),f=q(),h=n.get("selectedMode"),c=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),wh(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var p=new Qo;p.newline=!0,u.add(p);return}var m=a.getSeriesByName(g)[0];if(!f.get(g))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),w=y.getVisual("style"),x=this._createItem(m,g,d,v,n,e,_,w,S,h,i);x.on("click",aa(sm,g,null,i,c)).on("mouseover",aa(bh,m.name,null,i,c)).on("mouseout",aa(Th,m.name,null,i,c)),a.ssr&&x.eachChild(function(b){var T=st(b);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),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),D=T.getItemVisual(C,"style"),A=T.getItemVisual(C,"legendIcon"),I=xr(D.fill);I&&I[3]===0&&(I[3]=.2,D=F(F({},D),{fill:Qs(I,"rgba")}));var L=this._createItem(b,g,d,v,n,e,{},D,A,h,i);L.on("click",aa(sm,null,g,i,c)).on("mouseover",aa(bh,null,g,i,c)).on("mouseout",aa(Th,null,g,i,c)),a.ssr&&L.eachChild(function(P){var R=st(P);R.seriesIndex=b.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();wh(e,function(u){var f=u.type,h=new At({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"]);Vn(h,{normal:c,emphasis:v},{defaultText:u.title}),Of(h)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=rk(f,i,l,u,v,p,c),w=new Qo,x=i.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;w.add(nk({itemWidth:d,itemHeight:g,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,C=s,D=o.get("formatter"),A=n;U(D)&&D?A=D.replace("{name}",n??""):K(D)&&(A=D(n));var I=p?x.getTextColor():i.get("inactiveColor");w.add(new At({style:we(x,{text:A,x:T,y:g/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new bt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&fl({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),Of(w),w.__legendDataIndex=a,w},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ta(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ta("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[m]/2-c[m]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[m]=Math.max(f[m],c[m]),_[y]=Math.min(0,c[y]+v[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(re);function rk(r,t,e,n,a,i,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),wh(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:th(h,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function nk(r){var t=r.icon||"roundRect",e=Be(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function sm(r,t,e,n){Th(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),bh(r,t,e,n)}function xS(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;n<a&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function bh(r,t,e,n){xS(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Th(r,t,e,n){xS(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function ak(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function di(r,t,e){var n={},a=r==="toggleSelected",i;return e.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();M(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ik(r){r.registerAction("legendToggleSelect","legendselectchanged",ct(di,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ct(di,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ct(di,"inverseSelect")),r.registerAction("legendSelect","legendselected",ct(di,"select")),r.registerAction("legendUnSelect","legendunselected",ct(di,"unSelect"))}function wS(r){r.registerComponentModel(xh),r.registerComponentView(SS),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,ak),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ik(r)}var ok=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,a){var i=Sl(e);r.prototype.init.call(this,e,n,a),lm(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),lm(this,this.option,e)},t.type="legend.scroll",t.defaultOption=av(xh.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}(xh);function lm(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Pa(t,e,{type:"box",ignoreSize:!!a})}var um=St,ef=["width","height"],rf=["x","y"],sk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new um),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new um)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=V(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new At({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 m=g+"DataIndex",y=ul(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:mt(u._pageGo,u,m,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=g,f.add(y)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=ef[u],h=rf[u],c=ef[1-u],v=rf[1-u];o&&Ta("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=et(a);o&&(m[f]=a[f]-g[f]-d);var y=this._layoutContentAndController(e,i,m,u,f,c,v,h);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=g[f]+d;p[u]-=_,y[h]-=_}y[f]+=g[f]+d,p[1-u]+=y[v]+y[c]/2-g[c]/2,y[c]=Math.max(y[c],g[c]),y[v]=Math.min(y[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Ta(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),Ta("horizontal",c,e.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[u]);var m=[0,0],y=[-d.x,-d.y],_=at(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?y[i]+=a[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(m),c.setPosition(y);var w={x:0,y:0};if(w[o]=g?a[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+y[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 bt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Dt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},g?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,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?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=ef[o],l=rf[o],u=this._findTargetItemIndex(n),f=a.children(),h=f[u],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=u+1,m=g,y=g,_=null;p<=c;++p)_=S(f[p]),(!_&&y.e>m.s+i||_&&!w(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!w(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(x){if(x){var b=x.getBoundingRect(),T=b[l]+x[l];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(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(SS);function lk(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function uk(r){Fe(wS),r.registerComponentModel(ok),r.registerComponentView(sk),lk(r)}function fk(r){Fe(wS),Fe(uk)}var fm={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},hk=function(){function r(t){var e=this._condVal=U(t)?new RegExp(t):Ix(t)?t:null;if(e==null){var n="";ht(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return U(e)?this._condVal.test(t):dt(e)?this._condVal.test(t+""):!1},r}(),vk=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),ck=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),dk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),pk=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),gk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(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},r}();function Zv(r,t){if(r===!0||r===!1){var e=new vk;return e.value=r,e}var n="";return bS(r)||ht(n),r.and?hm("and",r,t):r.or?hm("or",r,t):r.not?mk(r,t):yk(r,t)}function hm(r,t,e){var n=t[r],a="";V(n)||ht(a),n.length||ht(a);var i=r==="and"?new ck:new dk;return i.children=G(n,function(o){return Zv(o,e)}),i.children.length||ht(a),i}function mk(r,t){var e=r.not,n="";bS(e)||ht(n);var a=new pk;return a.child=Zv(e,t),a.child||ht(n),a}function yk(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=xt(r),o=r.parser,s=o?O0(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=br(fm,u)?fm[u]:u,h=r[u],c=s?s(h):h,v=AD(f,c)||f==="reg"&&new hk(c);v||ht(e),a.push(v)}}a.length||ht(e);var d=new gk;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function bS(r){return X(r)&&!te(r)}var _k=function(){function r(t,e){this._cond=Zv(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function Sk(r,t){return new _k(r,t)}var xk={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=Sk(r.config,{valueGetterAttrMap:q({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;br(s,"dimension")||ht(l);var f=t.getDimensionInfo(u);return f||ht(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},wk={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=Et(e);a.length||ht(n);var i=[];M(a,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&ht(n),c!=="asc"&&c!=="desc"&&ht(n),d&&d!=="min"&&d!=="max"){var g="";ht(g)}if(c!=="asc"&&c!=="desc"){var p="";ht(p)}var m=t.getDimensionInfo(h);m||ht(n);var y=v?O0(v):null;v&&!y&&ht(n),i.push({dimIdx:m.index,parser:y,comparator:new B0(c,d)})});var o=t.sourceFormat;o!==ee&&o!==Ae&&ht(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));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 bk(r){r.registerTransform(xk),r.registerTransform(wk)}var Tk=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new G0(this),Xd(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Xd(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:or},t}(vt),Ck=function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(re);function Dk(r){r.registerComponentModel(Tk),r.registerComponentView(Ck)}var Ze=Cr.CMD;function pa(r,t){return Math.abs(r-t)<1e-5}function Ch(r){var t=r.data,e=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(L,P){a&&a.length>2&&n.push(a),a=[L,P]}function f(L,P,R,k){pa(L,R)&&pa(P,k)||a.push(L,P,R,k,R,k)}function h(L,P,R,k,O,E){var N=Math.abs(P-L),z=Math.tan(N/4)*4/3,H=P<L?-1:1,Y=Math.cos(L),J=Math.sin(L),rt=Math.cos(P),_t=Math.sin(P),pt=Y*O+R,Gt=J*E+k,Ht=rt*O+R,Ot=_t*E+k,Tt=O*z*H,Q=E*z*H;a.push(pt-Tt*J,Gt+Q*Y,Ht+Tt*_t,Ot-Q*rt,Ht,Ot)}for(var c,v,d,g,p=0;p<e;){var m=t[p++],y=p===1;switch(y&&(i=t[p],o=t[p+1],s=i,l=o,(m===Ze.L||m===Ze.C||m===Ze.Q)&&(a=[s,l])),m){case Ze.M:i=s=t[p++],o=l=t[p++],u(s,l);break;case Ze.L:c=t[p++],v=t[p++],f(i,o,c,v),i=c,o=v;break;case Ze.C:a.push(t[p++],t[p++],t[p++],t[p++],i=t[p++],o=t[p++]);break;case Ze.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 Ze.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,y?(s=c,l=v,u(s,l)):f(i,o,c,v),i=Math.cos(T)*w+_,o=Math.sin(T)*x+S;for(var D=(C?-1:1)*Math.PI/2,A=b;C?A>T:A<T;A+=D){var I=C?Math.max(A+D,T):Math.min(A+D,T);h(A,I,_,S,w,x)}break;case Ze.R:s=i=t[p++],l=o=t[p++],c=s+t[p++],v=l+t[p++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case Ze.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function Dh(r,t,e,n,a,i,o,s,l,u){if(pa(r,e)&&pa(t,n)&&pa(a,o)&&pa(i,s)){l.push(o,s);return}var f=2/u,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=n-t,m=a-o,y=i-s,_=g*g+p*p,S=m*m+y*y;if(_<h&&S<h){l.push(o,s);return}var w=c*g+v*p,x=-c*m-v*y,b=_-w*w,T=S-x*x;if(b<h&&w>=0&&T<h&&x>=0){l.push(o,s);return}var C=[],D=[];$r(r,e,a,o,.5,C),$r(t,n,i,s,.5,D),Dh(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),Dh(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}function Ak(r,t){var e=Ch(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],c=i[u++],v=i[u++],d=i[u++],g=i[u++];Dh(s,l,f,h,c,v,d,g,o,t),s=d,l=g}n.push(o)}return n}function TS(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=e-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function vm(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),h=TS([l,u],f?0:1,t),c=(f?s:u)/h.length,v=0;v<h.length;v++)for(var d=(f?u: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=r.clockwise,p.cx=r.cx,p.cy=r.cy,e.push(p)}}function Mk(r,t,e){for(var n=r.width,a=r.height,i=n>a,o=TS([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],d=0;d<o[c];d++){var g={};g[u]=c*h,g[f]=d*v,g[s]=h,g[l]=v,g.x+=r.x,g.y+=r.y,e.push(g)}}function cm(r,t,e,n){return r*n-e*t}function Ik(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,h=s-i,c=cm(f,h,l,u);if(Math.abs(c)<1e-6)return null;var v=r-a,d=t-i,g=cm(v,d,f,h)/c;return g<0||g>1?null:new $(g*l+r,g*u+t)}function Lk(r,t,e){var n=new $;$.sub(n,e,t),n.normalize();var a=new $;$.sub(a,r,t);var i=a.dot(n);return i}function ia(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Pk(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=Ik(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&a.push({projPt:Lk(l,t,e),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(p,m){return p.projPt-m.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[c],g=[v],i=u.idx+1;i<=f.idx;i++)ia(d,r[i].slice());ia(d,v),ia(d,c);for(var i=f.idx+1;i<=u.idx+n;i++)ia(g,r[i%n].slice());return ia(g,c),ia(g,v),[{points:d},{points:g}]}function dm(r){var t=r.points,e=[],n=[];by(t,e,n);var a=new ft(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new $,f=new $;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),Pk(t,u,f)}function Hs(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);Hs(r,i[0],a,n),Hs(r,i[1],e-a,n)}return n}function Rk(r,t){for(var e=[],n=0;n<t;n++)e.push(Qh(r));return e}function kk(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Ek(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Ok(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":Mk(n,t,e),a=bt;break;case"sector":vm(n,t,e),a=Ce;break;case"circle":vm({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=Ce;break;default:var i=r.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(Ak(r.getUpdatedPathProxy(),o),function(m){return Ek(m)}),l=s.length;if(l===0)Hs(dm,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,h=G(s,function(m){var y=[],_=[];by(m,y,_);var S=(_[1]-y[1])*(_[0]-y[0]);return f+=S,{poly:m,area:S}});h.sort(function(m,y){return y.area-m.area});for(var c=t,u=0;u<l;u++){var v=h[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(v.area/f*t);d<0||(Hs(dm,{points:v.poly},d,e),c-=d)}}a=zn;break}if(!a)return Rk(r,t);for(var g=[],u=0;u<e.length;u++){var p=new a;p.setShape(e[u]),kk(r,p),g.push(p)}return g}function Nk(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],c=l,v=2;v<s;){var d=o[v-2],g=o[v-1],p=o[v++],m=o[v++],y=o[v++],_=o[v++],S=o[v++],w=o[v++];if(c<=0){h.push(p,m,y,_,S,w);continue}for(var x=Math.min(c,f-1)+1,b=1;b<=x;b++){var T=b/x;$r(d,p,y,S,T,a),$r(g,m,_,w,T,i),d=a[3],g=i[3],h.push(a[1],i[1],a[2],i[2],d,g),p=a[5],m=i[5],y=a[6],_=i[6]}c-=x-1}return o===r?[h,t]:[r,h]}function pm(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function Bk(r,t){for(var e,n,a,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,h=void 0;l?u?(e=Nk(l,u),f=e[0],h=e[1],n=f,a=h):(h=pm(a||l,l),f=l):(f=pm(n||u,u),h=u),i.push(f),o.push(h)}return[i,o]}function gm(r){for(var t=0,e=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],h=s*f-u*l;t+=h,e+=(s+u)*h,n+=(l+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function Fk(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,d=r[v]-e[0],g=r[v+1]-e[1],p=t[c]-n[0],m=t[c+1]-n[1],y=p-d,_=m-g;h+=y*y+_*_}h<i&&(i=h,o=u)}return o}function zk(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function Vk(r,t,e,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=gm(s),f=gm(l);i==null&&(i=u[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,g=[],p=s.length;i&&(s=zk(s));for(var m=Fk(s,l,u,f)*6,y=p-2,_=0;_<y;_+=2){var S=(m+_)%y+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}h[0]=s[m]-u[0],h[1]=s[m+1]-u[1];for(var w=n/e,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 D=h[_],A=h[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*b,R=I*b+L*T;g[_]=P,g[_+1]=R;var k=P-D,O=R-A;C+=k*k+O*O}if(C<d){d=C,v=x;for(var E=0;E<g.length;E++)c[E]=g[E]}}a.push({from:h,to:c,fromCp:u,toCp:f,rotation:-v})}return a}function Ws(r){return r.__isCombineMorphing}var CS="__mOriginal_";function Us(r,t,e){var n=CS+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Fi(r,t){var e=CS+t;r[e]&&(r[t]=r[e],r[e]=null)}function mm(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],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 DS(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=Bk(Ch(e),Ch(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&mm(i,s),l&&mm(o,l),Us(t,"updateTransform",{replace:u}),t.transform=null;var f=Vk(i,o,10,Math.PI),h=[];Us(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,g=[],p=0;p<f.length;p++){var m=f[p],y=m.from,_=m.to,S=m.rotation*v,w=m.fromCp,x=m.toCp,b=Math.sin(S),T=Math.cos(S);Jo(g,w,x,v);for(var C=0;C<y.length;C+=2){var D=y[C],A=y[C+1],I=_[C],L=_[C+1],P=D*d+I*v,R=A*d+L*v;h[C]=P*T-R*b+g[0],h[C+1]=P*b+R*T+g[1]}var k=h[0],O=h[1];c.moveTo(k,O);for(var C=2;C<y.length;){var I=h[C++],L=h[C++],E=h[C++],N=h[C++],z=h[C++],H=h[C++];k===I&&O===L&&E===z&&N===H?c.lineTo(z,H):c.bezierCurveTo(I,L,E,N,z,H),k=z,O=H}}}})}function qv(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;DS(r,t),t.__morphT=0;function i(){Fi(t,"buildPath"),Fi(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},j({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},e)),t}function Gk(r,t,e,n,a,i){var o=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Ys(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),a=Math.max(h,a),[f,h]}),o=G(i,function(s,l){return{cp:s,z:Gk(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function AS(r){return Ok(r.path,r.count)}function Ah(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Hk(r,t,e){var n=[];function a(w){for(var x=0;x<w.length;x++){var b=w[x];Ws(b)?a(b.childrenRef()):b instanceof it&&n.push(b)}}a(r);var i=n.length;if(!i)return Ah();var o=e.dividePath||AS,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ah();n=Ys(n),s=Ys(s);for(var l=e.done,u=e.during,f=e.individualDelay,h=new ro,c=0;c<i;c++){var v=n[c],d=s[c];d.parent=t,d.copyTransform(h),f||DS(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)}Us(t,"addSelfToZr",{after:function(w){g(w)}}),Us(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,Fi(t,"addSelfToZr"),Fi(t,"removeSelfFromZr")}var m=s.length;if(f)for(var y=m,_=function(){y--,y===0&&(p(),l&&l())},c=0;c<m;c++){var S=f?j({delay:(e.delay||0)+f(c,m,n[c],s[c]),done:_},e):e;qv(n[c],s[c],S)}else t.__morphT=0,t.animateTo({__morphT:1},j({during:function(w){for(var x=0;x<m;x++){var b=s[x];b.__morphT=t.__morphT,b.dirtyShape()}u&&u(w)},done:function(){p();for(var w=0;w<r.length;w++)Fi(r[w],"updateTransform");l&&l()}},e));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function Wk(r,t,e){var n=t.length,a=[],i=e.dividePath||AS;function o(v){for(var d=0;d<v.length;d++){var g=v[d];Ws(g)?o(g.childrenRef()):g instanceof it&&a.push(g)}}if(Ws(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Qh(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Ah()}a=Ys(a),t=Ys(t);for(var h=e.individualDelay,u=0;u<n;u++){var c=h?j({delay:(e.delay||0)+h(u,n,a[u],t[u])},e):e;qv(a[u],t[u],c)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function ym(r){return V(r[0])}function _m(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Uk={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Qh(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function nf(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=ll("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;ym(r)&&(u=r,f=t),ym(t)&&(u=t,f=r);function h(m,y,_,S,w){var x=m.many,b=m.one;if(x.length===1&&!w){var T=y?x[0]:b,C=y?b:x[0];if(Ws(T))h({many:[T],one:C},!0,_,S,!0);else{var D=s?j({delay:s(_,S)},l):l;qv(T,C,D),i(T,C,T,C,D)}}else for(var A=j({dividePath:Uk[e],individualDelay:s&&function(O,E,N,z){return s(O+_,S)}},l),I=y?Hk(x,b,A):Wk(b,x,A),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,k=0;k<R;k++){var D=s?j({delay:s(k,R)},l):l;i(L[k],P[k],y?x[k]:m.one,y?m.one:x[k],D)}}for(var c=u?u===r:r.length>t.length,v=u?_m(f,u):_m(c?t:r,[c?r: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 Cn(r){if(!r)return[];if(V(r)){for(var t=[],e=0;e<r.length;e++)t.push(Cn(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof it&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var MS=1e4,Yk=0,Sm=1,xm=2,Xk=wt();function $k(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var a=r.getDimensionInfo(e[n]);if(a&&a.otherDims[t]===0)return e[n]}}function Zk(r,t,e){var n=r.getDimensionInfo(e),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,t);return a&&a.categories[i]||i+""}}function wm(r,t,e,n){var a=n?"itemChildGroupId":"itemGroupId",i=$k(r,a);if(i){var o=Zk(r,t,i);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function bm(r){var t=[];return M(r,function(e){var n=e.data,a=e.dataGroupId;if(!(n.count()>MS))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:wm(n,o,a,!1),childGroupId:wm(n,o,a,!0),divide:e.divide,dataIndex:o})}),t}function af(r,t,e){r.traverse(function(n){n instanceof it&&Nt(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function of(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function oa(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function qk(r,t,e){var n=ll("update",e,t);n&&r.traverse(function(a){if(a instanceof za){var i=nC(a);i&&a.animateFrom({style:i},n)}})}function Kk(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function IS(r,t,e){var n=bm(r),a=bm(t);function i(_,S,w,x,b){(w||_)&&S.animateFrom({style:w&&w!==_?F(F({},w.style),_.style):_.style},b)}var o=!1,s=Yk,l=q(),u=q();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var h=a[f].groupId;if(u.get(h)){s=Sm;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=xm;break}}function v(_,S){return function(w){var x=w.data,b=w.dataIndex;return S?x.getId(b):_?s===Sm?w.childGroupId:w.groupId:s===xm?w.childGroupId:w.groupId}}var d=Kk(n,a),g={};if(!d)for(var f=0;f<a.length;f++){var p=a[f],m=p.data.getItemGraphicEl(p.dataIndex);m&&(g[m.id]=!0)}function y(_,S){var w=n[S],x=a[_],b=x.data.hostModel,T=w.data.getItemGraphicEl(w.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&qk(C,x.dataIndex,b);return}T&&g[T.id]||C&&(oa(C),T?(oa(T),of(T),o=!0,nf(Cn(T),Cn(C),x.divide,b,_,i)):af(C,b,_))}new Ki(n,a,v(!0,d),v(!1,d),null,"multiple").update(y).updateManyToOne(function(_,S){var w=a[_],x=w.data,b=x.hostModel,T=x.getItemGraphicEl(w.dataIndex),C=Rt(G(S,function(D){return n[D].data.getItemGraphicEl(n[D].dataIndex)}),function(D){return D&&D!==T&&!g[D.id]});T&&(oa(T),C.length?(M(C,function(D){oa(D),of(D)}),o=!0,nf(Cn(C),Cn(T),w.divide,b,_,i)):af(T,b,w.dataIndex))}).updateOneToMany(function(_,S){var w=n[S],x=w.data.getItemGraphicEl(w.dataIndex);if(!(x&&g[x.id])){var b=Rt(G(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==x}),T=a[_[0]].data.hostModel;b.length&&(M(b,function(C){return oa(C)}),x?(oa(x),of(x),o=!0,nf(Cn(x),Cn(b),w.divide,T,_[0],i)):M(b,function(C){return af(C,T,_[0])}))}}).updateManyToMany(function(_,S){new Ki(S,_,function(w){return n[w].data.getId(n[w].dataIndex)},function(w){return a[w].data.getId(a[w].dataIndex)}).update(function(w,x){y(_[w],S[x])}).execute()}).execute(),o&&M(t,function(_){var S=_.data,w=S.hostModel,x=w&&e.getViewOfSeriesModel(w),b=ll("update",w,0);x&&w.isAnimationEnabled()&&b&&b.duration>0&&x.group.traverse(function(T){T instanceof it&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function Tm(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Cm(r){return V(r)?r.sort().join(","):r}function Vr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Qk(r,t){var e=q(),n=q(),a=q();return M(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Tm(i),f=Cm(u);n.set(f,{dataGroupId:s,data:l}),V(u)&&M(u,function(h){a.set(h,{key:f,dataGroupId:s,data:l})})}),M(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=Tm(i),u=Cm(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Vr(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Vr(s),data:s}]});else if(V(l)){var h=[];M(l,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Vr(g.data),data:g.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Vr(s)}]})}else{var c=a.get(l);if(c){var v=e.get(c.key);v||(v={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Vr(c.data)}],newSeries:[]},e.set(c.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Vr(s)})}}}}),e}function Dm(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function jk(r,t,e,n){var a=[],i=[];M(Et(r.from),function(o){var s=Dm(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Vr(t.oldData[s]),groupIdDim:o.dimension})}),M(Et(r.to),function(o){var s=Dm(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Vr(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&IS(a,i,n)}function Jk(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(Et(n.seriesTransition),function(a){M(Et(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][hs]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=Xk(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(Et(i),function(v){jk(v,a,n,e)});else{var o=Qk(a,n);M(o.keys(),function(v){var d=o.get(v);IS(d.oldSeries,d.newSeries,e)})}M(n.updatedSeries,function(v){v[hs]&&(v[hs]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],h=0;h<s.length;h++){var c=s[h].getData();c.count()<MS&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(c))}})}function Am(r,t,e){var n=Na.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",r)),n.width=a*e,n.height=i*e,n}var sf=function(r){B(t,r);function t(e,n,a){var i=r.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||ws,typeof e=="string"?o=Am(e,n,a):X(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(Fm(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 e=this.dpr;this.domBack=Am("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ft(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new ft(0,0,0,0);_.copy(y),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(y)){var C=new ft(0,0,0,0);C.copy(T),C.union(y),o[b]=C,S=!0;break}else if(l){u.copy(y),u.union(T);var D=y.width*y.height,A=T.width*T.height,I=u.width*u.height,L=I-D-A;L<w&&(w=L,x=b)}}if(l&&(o[x].union(y),S=!0),!S){var _=new ft(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(a,i,!0,!0),d=c.__isRendered&&(c.__dirty&ve||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&ve||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&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 m=h+1;m<o.length;)o[h].intersect(o[m])?(p=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),i.width=e*a,i.height=n*a,s&&(s.width=e*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var v=this.domBack;function d(g,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(Zs(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||jf(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else Mx(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Jf(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,m,y),o.restore())}!a||u?d(0,0,s,l):a.length&&M(a,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}(Ve),Mm=1e5,Tn=314159,jo=.01,tE=.001;function eE(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function rE(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var nE=function(){function r(t,e,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=F({},n||{}),this.dpr=n.devicePixelRatio||ws,this._singleCanvas=i,this.root=t;var o=t.style;o&&(Fm(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=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 sf(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Tn]=v,v.zlevel=Tn,s.push(Tn),this._domRoot=t}else{this._width=Eo(t,0,n),this._height=Eo(t,1,n);var u=this._domRoot=rE(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,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 l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Mm)),i||(i=n.ctx,i.save()),In(i,s,a,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Mm)},r.prototype.paintOne=function(t,e){l_(t,e)},r.prototype._paintList=function(t,e,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;ms(function(){l._paintList(t,e,n,a)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Tn).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var f=!0,h=!1,c=function(g){var p=i[g],m=p.ctx,y=o&&p.createRepaintRects(t,e,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,y);else if(_===p.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&p.clear(!1,x,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(L){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,L,P,T===p.__endIndex-1),S){var k=Date.now()-w;if(k>15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var D=v.dpr,A=0;A<y.length;++A){var I=y[A];m.save(),m.beginPath(),m.rect(I.x*D,I.y*D,I.width*D,I.height*D),m.clip(),C(I),m.restore()}else m.save(),C(),m.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<i.length;d++)c(d);return tt.wxa&&M(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,a,i,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(In(s,t,i,o),t.setPrevPaintRect(l))}else In(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Tn);var n=this._layers[t];return n||(n=new sf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?nt(n,this._layerConfig[t],!0):this._layerConfig[t-jo]&&nt(n,this._layerConfig[t-jo],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&eE(e)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(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,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+tE,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?jo:0),this._needsManuallyCompositing),f.__builtin__||Oh("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),a.__dirty&ve&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),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)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?nt(n[t],e,!0):n[t]=e;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+jo){var o=this._layers[i];nt(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,a=e[t];a&&(a.dom.parentNode.removeChild(a.dom),delete e[t],n.splice(lt(n,t),1))},r.prototype.resize=function(t,e){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),e!=null&&(a.height=e),t=Eo(i,0,a),e=Eo(i,1,a),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Tn).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Tn].dom;var e=new sf("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=e.dom.width,i=e.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),l=0,u=s.length;l<u;l++){var f=s[l];In(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function aE(r){r.registerPainter("canvas",nE)}Fe([tk,fk,QR,HP,Dk,bk,RR,II,dI,zI,SL,mP,PL,GL,$2,Jk,aE]);function Kv(r,t={}){const e=OS(),n=Ih(),a=Da(()=>n.darkMode),i=Ke(null),o={width:0,height:0},{width:s,height:l}=NS(i,o);let u=null;const f=r(),{onRender:h=b=>{const T=a.value?"rgb(224, 224, 224)":"rgb(31, 31, 31)";b.showLoading({color:n.themeColor,textColor:T,fontSize:0,maskColor:"rgba(255, 255, 255, 0)"})},onUpdated:c=b=>{b.hideLoading()},onDestroy:v}=t;function d(){return i.value&&o.width>0&&o.height>0}function g(){return!!(i.value&&u)}async function p(b=()=>f){if(!g())return;const T=b(f,r);Object.assign(f,T),g()&&(u==null||u.clear()),u==null||u.setOption({...T,backgroundColor:"transparent"}),await(c==null?void 0:c(u))}function m(b){u==null||u.setOption(b)}async function y(){if(!g()){const b=a.value?"dark":"light";await Mh(),u=yM(i.value,b),u.setOption({...f,backgroundColor:"transparent"}),await(h==null?void 0:h(u))}}function _(){u==null||u.resize()}async function S(){u&&(await(v==null?void 0:v(u)),u==null||u.dispose(),u=null)}async function w(){await S(),await y(),await(c==null?void 0:c(u))}async function x(b,T){if(o.width=b,o.height=T,!d()){await S();return}g()&&_(),await y()}return e.run(()=>{tr([s,l],([b,T])=>{x(b,T)}),tr(a,()=>{w()})}),BS(()=>{S(),e.stop()}),{domRef:i,updateOptions:p,setOptions:m}}const iE=Jr({name:"CardRetryChart",__name:"card-retry-chart",props:{modelValue:{}},setup(r){const t=r,{domRef:e,updateOptions:n}=Kv(()=>({tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"shadow"}},grid:{top:"21px",height:"40px",containLabel:!0},xAxis:{axisLine:!1,type:"category",data:[],axisTick:{alignWithLabel:!0}},yAxis:{type:"value",axisLine:!1,scale:!0,show:!1},series:[{name:"Task Count",type:"bar",barWidth:"60%",data:[]}]})),a=async()=>{if(await new Promise(i=>{setTimeout(i,100)}),!t.modelValue){await a();return}n(i=>(i.xAxis.data=t.modelValue.map(o=>o.x),i.series[0].data=t.modelValue.map(o=>o.taskTotal),i))};return a(),(i,o)=>(Lt(),er("div",{ref_key:"domRef",ref:e,class:"h-42px overflow-hidden"},null,512))}}),oE=["onClick"],sE={class:"flex justify-between"},lE={class:"align-center flex"},uE={class:"ml-2 text-18px"},fE={class:"flex"},hE={key:3,class:"mb-12px h-32px"},vE=["onClick"],cE=Jr({name:"CardData",__name:"card-data",props:{modelValue:{default:()=>({jobTask:{successNum:0,failNum:0,cancelNum:0,stopNum:0,totalNum:0,successRate:0},workFlowTask:{successNum:0,failNum:0,cancelNum:0,stopNum:0,totalNum:0,successRate:0},retryTask:{totalNum:0,runningNum:0,finishNum:0,maxCountNum:0,suspendNum:0},retryTaskBarList:[],onLineService:{total:0,clientTotal:0,serverTotal:0}})}},setup(r){const{routerPushByKey:t}=FS(),e=Ih(),n=zS({width:0}),a=Da(()=>n.width>=1600?4:n.width>=1024?2:1),i=()=>{n.width=document.documentElement.clientWidth};Mh(()=>{i(),window.addEventListener("resize",i)}),VS(()=>{window.removeEventListener("resize",i)});const o=r,s=Da(()=>{var h,c,v,d,g,p,m,y,_,S,w,x,b,T,C,D,A,I;return[{key:"job_task",title:W("page.home.jobTask"),tip:W("page.home.jobTaskTip"),value:((h=o.modelValue)==null?void 0:h.jobTask.totalNum)??0,click:()=>t("job_task"),color:{start:"#f5b386",end:"#FFD6BA"},icon:"ant-design:profile-outlined",bottom:[{label:W("common.success"),value:((c=o.modelValue)==null?void 0:c.jobTask.successNum)??0,click:()=>t("job_batch",{state:{taskBatchStatus:3}})},{label:W("common.fail"),value:((v=o.modelValue)==null?void 0:v.jobTask.failNum)??0,click:()=>t("job_batch",{state:{taskBatchStatus:4}})},{label:W("common.stop"),value:((d=o.modelValue)==null?void 0:d.jobTask.stopNum)??0,click:()=>t("job_batch",{state:{taskBatchStatus:5}})},{label:W("common.cancel"),value:((g=o.modelValue)==null?void 0:g.jobTask.cancelNum)??0,click:()=>t("job_batch",{state:{taskBatchStatus:6}})}]},{key:"retry_task",title:W("page.home.retryTask.title"),tip:W("page.home.retryTaskTip"),value:((p=o.modelValue)==null?void 0:p.retryTask.totalNum)??0,click:()=>t("retry_task"),unit:"",color:{start:"#40e9c5",end:"#BEE3DB"},icon:"ant-design:schedule-outlined",bottom:[{label:W("common.success"),value:((m=o.modelValue)==null?void 0:m.retryTask.finishNum)??0,click:()=>t("retry_log",{state:{retryStatus:1}})},{label:W("common.running"),value:((y=o.modelValue)==null?void 0:y.retryTask.runningNum)??0,click:()=>t("retry_log",{state:{retryStatus:0}})},{label:W("page.home.retryTask.status.maxRetryTimes"),value:((_=o.modelValue)==null?void 0:_.retryTask.maxCountNum)??0,click:()=>t("retry_log",{state:{retryStatus:2}})},{label:W("page.home.retryTask.status.pauseRetry"),value:((S=o.modelValue)==null?void 0:S.retryTask.suspendNum)??0,click:()=>t("retry_log",{state:{retryStatus:3}})}]},{key:"workflow_task",title:W("page.home.workflow"),tip:W("page.home.workflowTip"),value:(w=o.modelValue)==null?void 0:w.workFlowTask.totalNum,click:()=>t("workflow_task"),unit:"",color:{start:"#ec6f6f",end:"#f99797"},icon:"typcn:flow-merge",bottom:[{label:W("common.success"),value:((x=o.modelValue)==null?void 0:x.workFlowTask.successNum)??0,click:()=>t("workflow_batch",{state:{taskBatchStatus:3}})},{label:W("common.fail"),value:((b=o.modelValue)==null?void 0:b.workFlowTask.failNum)??0,click:()=>t("workflow_batch",{state:{taskBatchStatus:4}})},{label:W("common.stop"),value:((T=o.modelValue)==null?void 0:T.workFlowTask.stopNum)??0,click:()=>t("workflow_batch",{state:{taskBatchStatus:5}})},{label:W("common.cancel"),value:((C=o.modelValue)==null?void 0:C.workFlowTask.cancelNum)??0,click:()=>t("workflow_batch",{state:{taskBatchStatus:6}})}]},{key:"pods",title:W("page.home.onlineServiceCount"),tip:W("page.home.onlineServiceTip"),value:((D=o.modelValue)==null?void 0:D.onLineService.total)??0,click:()=>t("pods"),unit:"",color:{start:"#b686d4",end:"#c5a5d8"},icon:"ant-design:database-outlined",bottom:[{label:W("page.home.machine.type.client"),value:((A=o.modelValue)==null?void 0:A.onLineService.clientTotal)??0,click:()=>t("pods")},{label:W("page.home.machine.type.server"),value:((I=o.modelValue)==null?void 0:I.onLineService.serverTotal)??0,click:()=>t("pods")}]}]}),[l,u]=GS();function f(h){const c=e.darkMode?lf(h.start,700):h.start,v=e.darkMode?lf(h.end,700):h.end;return`linear-gradient(to bottom right, ${c}, ${v})`}return(h,c)=>{const v=YS,d=XS,g=$S,p=fx,m=nx,y=Im,_=ZS,S=Pm,w=Lm,x=Xs;return Lt(),Ee(x,{bordered:!1,size:"small",class:"card-wrapper"},{default:Mt(()=>[ut(qe(l),null,{default:Mt(({$slots:b,gradientColor:T})=>[Bt("div",{class:"rd-8px px-16px pb-4px pt-8px text-white",style:WS({backgroundImage:T})},[(Lt(),Ee(HS(b.default)))],4)]),_:1}),ut(w,{cols:a.value,responsive:"screen","x-gap":16,"y-gap":16},{default:Mt(()=>[(Lt(!0),er(bi,null,ds(s.value,b=>(Lt(),Ee(S,{key:b.key,class:"home-card"},{default:Mt(()=>[ut(_,{show:!1},{default:Mt(()=>[ut(qe(u),{"gradient-color":f(b.color),class:"h-165px flex-1"},{default:Mt(()=>{var T,C,D;return[Bt("div",{class:jv(b.click?"cursor-pointer":null),onClick:b.click},[Bt("div",sE,[Bt("div",lE,[ut(v,{icon:b.icon,class:"text-26px"},null,8,["icon"]),Bt("h3",uE,Qe(b.title),1)]),ut(g,{trigger:"hover"},{trigger:Mt(()=>[ut(d,{text:""},{default:Mt(()=>[ut(v,{icon:"ant-design:info-circle-outlined",class:"text-20px color-white"})]),_:1})]),default:Mt(()=>[Jv(" "+Qe(b.tip),1)]),_:2},1024)]),Bt("div",fE,[ut(p,{"start-value":0,"end-value":b.value,class:"text-30px text-white"},null,8,["end-value"])])],10,oE),b.key==="job_task"?(Lt(),Ee(m,{key:0,class:"mb-24px h-20px pt-18px",type:"line",color:"#728bf9","rail-color":"#ebebeb",percentage:((T=o.modelValue)==null?void 0:T.jobTask.successRate)??0,"indicator-text-color":"#fff"},null,8,["percentage"])):b.key==="workflow_task"?(Lt(),Ee(m,{key:1,class:"mb-24px h-20px pt-18px",type:"line",color:"#728bf9","rail-color":"#ebebeb",percentage:((C=o.modelValue)==null?void 0:C.workFlowTask.successRate)??0,"indicator-text-color":"#fff"},null,8,["percentage"])):b.key==="retry_task"?(Lt(),Ee(iE,{key:2,"model-value":(D=o.modelValue)==null?void 0:D.retryTaskBarList},null,8,["model-value"])):(Lt(),er("div",hE)),ut(y),(Lt(!0),er(bi,null,ds(b.bottom,(A,I)=>(Lt(),er(bi,{key:I},[I!==0?(Lt(),Ee(y,{key:0,vertical:""})):US("",!0),Bt("span",{class:jv(A.click?"cursor-pointer home-card-footer":null),onClick:A.click},[Jv(Qe(A.label)+" ",1),ut(p,{"start-value":0,"end-value":A.value},null,8,["end-value"])],10,vE)],64))),128))]}),_:2},1032,["gradient-color"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["cols"])]),_:1})}}}),dE=Lh(cE,[["__scopeId","data-v-d223fa0b"]]),pE=Jr({name:"TaskLineChart",__name:"task-line-chart",props:{type:{default:"JOB"},modelValue:{}},setup(r){const t=r,e=Ph(),{domRef:n,updateOptions:a}=Kv(()=>({tabIndex:t.type,tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:t.type==="RETRY"?[W("common.success"),W("common.running"),W("page.home.retryTask.status.maxRetryTimes"),W("page.home.retryTask.status.pauseRetry")]:[W("common.success"),W("common.fail"),W("common.stop"),W("common.cancel")]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[{color:"#f5b386",name:W("common.success"),type:"line",smooth:!0,stack:"Total",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:.25,color:"#f5b386"},{offset:1,color:"#fff"}]}},emphasis:{focus:"series"},data:[]},{color:"#40e9c5",name:t.type==="RETRY"?W("common.running"):W("common.fail"),type:"line",smooth:!0,stack:"Total",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:.25,color:"#40e9c5"},{offset:1,color:"#fff"}]}},emphasis:{focus:"series"},data:[]},{color:"#b686d4",name:t.type==="RETRY"?W("page.home.retryTask.status.maxRetryTimes"):W("common.stop"),type:"line",smooth:!0,stack:"Total",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:.25,color:"#b686d4"},{offset:1,color:"#fff"}]}},emphasis:{focus:"series"},data:[]},{color:"#ec6f6f",name:t.type==="RETRY"?W("page.home.retryTask.status.pauseRetry"):W("common.cancel"),type:"line",smooth:!0,stack:"Total",areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:.25,color:"#ec6f6f"},{offset:1,color:"#fff"}]}},emphasis:{focus:"series"},data:[]}]})),i=()=>{a((o,s)=>{var u,f,h,c,v;const l=s();return o.legend.data=l.legend.data,o.series[0].name=l.series[0].name,o.series[1].name=l.series[1].name,o.series[2].name=l.series[2].name,o.series[3].name=l.series[3].name,o.xAxis.data=(u=t.modelValue)==null?void 0:u.dashboardLineResponseDOList.map(d=>d.createDt),o.series[0].data=(f=t.modelValue)==null?void 0:f.dashboardLineResponseDOList.map(d=>o.tabIndex==="RETRY"?d.successNum:d.success),o.series[1].data=(h=t.modelValue)==null?void 0:h.dashboardLineResponseDOList.map(d=>o.tabIndex==="RETRY"?d.runningNum:d.fail),o.series[2].data=(c=t.modelValue)==null?void 0:c.dashboardLineResponseDOList.map(d=>o.tabIndex==="RETRY"?d.maxCountNum:d.stop),o.series[3].data=(v=t.modelValue)==null?void 0:v.dashboardLineResponseDOList.map(d=>o.tabIndex==="RETRY"?d.suspendNum:d.cancel),o})};return tr([()=>e.locale,t],()=>{i()},{immediate:!0}),(o,s)=>{const l=Xs;return Lt(),Ee(l,{bordered:!1,class:"card-wrapper"},{default:Mt(()=>[Bt("div",{ref_key:"domRef",ref:n,class:"h-360px overflow-hidden"},null,512)]),_:1})}}}),gE=Jr({name:"TaskPieChart",__name:"task-pie-chart",props:{type:{default:"JOB"},modelValue:{}},setup(r){const t=r,e=Ph(),n=Ih(),{domRef:a,updateOptions:i}=Kv(()=>({tooltip:{trigger:"item",textStyle:{color:n.darkMode?"#dededf":"#333639"},backgroundColor:n.darkMode?"#48484e":"#fff",formatter:"{a} <br/>{b}: {d}%"},legend:{bottom:"1%",left:"center",itemStyle:{borderWidth:0}},series:[{color:[o("#5da8ff"),o("#8e9dff"),o("#fedc69"),o("#26deca")],name:W("page.home.retryTab.pie.title"),type:"pie",radius:["45%","75%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:n.darkMode?"#18181c":"#fff",borderWidth:1},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"12"}},labelLine:{show:!1},data:[]}]}));function o(u){return n.darkMode?lf(u,700):u}const s=async()=>{if(await new Promise(u=>{setTimeout(u,1)}),!t.modelValue){await s();return}l()};function l(){i((u,f)=>{const h=f();if(u.series[0].name=h.series[0].name,u.series[0].color=h.series[0].color,u.series[0].itemStyle.borderColor=h.series[0].itemStyle.borderColor,u.tooltip.textStyle.color=h.tooltip.textStyle.color,u.tooltip.backgroundColor=h.tooltip.backgroundColor,t.type==="JOB"){const c=t.modelValue.jobTask;u.series[0].data=[{name:W("common.success"),value:c.successNum/c.totalNum},{name:W("common.fail"),value:c.failNum/c.totalNum},{name:W("common.stop"),value:c.stopNum/c.totalNum},{name:W("common.cancel"),value:c.cancelNum/c.totalNum}]}if(t.type==="RETRY"){const c=t.modelValue.retryTask;u.series[0].data=[{name:W("common.success"),value:c.finishNum/c.totalNum},{name:W("common.running"),value:c.runningNum/c.totalNum},{name:W("page.home.retryTask.status.maxRetryTimes"),value:c.maxCountNum/c.totalNum},{name:W("page.home.retryTask.status.pauseRetry"),value:c.suspendNum/c.totalNum}]}if(t.type==="WORKFLOW"){const c=t.modelValue.workFlowTask;u.series[0].data=[{name:W("common.success"),value:c.successNum/c.totalNum},{name:W("common.fail"),value:c.failNum/c.totalNum},{name:W("common.stop"),value:c.stopNum/c.totalNum},{name:W("common.cancel"),value:c.cancelNum/c.totalNum}]}return u})}return tr(()=>e.locale,()=>{l()}),tr(()=>n.darkMode,()=>{l()}),tr(()=>t.type,()=>{s()},{immediate:!0}),tr(()=>t.modelValue,()=>{s()}),(u,f)=>{const h=Xs;return Lt(),Ee(h,{bordered:!1,class:"card-wrapper"},{default:Mt(()=>[Bt("div",{ref_key:"domRef",ref:a,class:"h-360px overflow-hidden"},null,512)]),_:1})}}}),mE={class:"relative"},yE={class:"task-tab-rank"},_E={class:"task-tab-title"},SE={class:"task-tab-rank__list"},xE={class:"task-tab-rank__list--index"},wE={class:"task-tab-badge"},bE={class:"task-tab-title"},TE={class:"task-tab-title"},CE={class:"absolute top--136px flex flex-col flex-wrap gap-16px 2xl:right-40px 2xl:top-0 lg:top--36px md:top--90px md:flex-row 2xl:flex-nowrap"},DE=Jr({name:"TaskTab",__name:"task-tab",props:{modelValue:{}},setup(r){var y;const t=Ke("JOB"),e=Ph(),n=Da(()=>e.isMobile?0:16),a=Ke(),i=Ke(),o=Ke({type:"WEEK",page:1,size:6,mode:"JOB",datetimeRange:null}),s=async()=>{const{data:_,error:S}=t.value==="RETRY"?await JS(o.value):await tx(o.value);S||(a.value=_)},l=async()=>{const{data:_,error:S}=await ex();S||(i.value=_.map(w=>({label:w,value:w})))},u=_=>{_==="jobTask"&&(t.value="JOB",o.value.mode="JOB"),_==="retryTask"&&(t.value="RETRY",o.value.mode=void 0),_==="workflow"&&(t.value="WORKFLOW",o.value.mode="WORKFLOW")},f=_=>{_&&(o.value.type="OTHERS")},h=()=>{o.value.type="WEEK"},c=_=>{_!=="OTHERS"&&(o.value.datetimeRange=null)},v=Ke({page:o.value.page,pageSize:o.value.size,itemCount:(y=a.value)==null?void 0:y.taskList.total}),d=()=>[{name:"jobTask",tab:W("page.home.jobTask")},{name:"retryTask",tab:W("page.home.retryTask.title")},{name:"workflow",tab:W("page.home.workflow")}],g=Ke(d()),p=()=>[{title:W("page.home.retryTab.task.groupName"),key:"groupName"},{title:W("page.home.retryTab.task.run"),key:"run",align:"center",render:_=>ut("span",{class:"task-table-number"},[_.run])},{title:W("page.home.retryTab.task.total"),key:"total",align:"center",render:_=>ut("span",{class:"task-table-number"},[_.total])}],m=Ke(p());return tr(()=>e.locale,()=>{g.value=d(),m.value=p()}),tr(()=>o.value,()=>{s()},{deep:!0}),s(),l(),(_,S)=>{const w=Pm,x=Lm,b=Im,T=sx,C=QS,D=qS,A=ux,I=ox,L=KS;return Lt(),er("div",mE,[ut(D,{type:"line",animated:"","onUpdate:value":u},{default:Mt(()=>[(Lt(!0),er(bi,null,ds(g.value,P=>(Lt(),Ee(C,{key:P.name,tab:P.tab,name:P.name},{default:Mt(()=>[ut(x,{"x-gap":n.value,"y-gap":16,responsive:"screen","item-responsive":""},{default:Mt(()=>[ut(w,{span:"24 s:24 m:16"},{default:Mt(()=>[ut(pE,{modelValue:a.value,"onUpdate:modelValue":S[0]||(S[0]=R=>a.value=R),type:t.value},null,8,["modelValue","type"])]),_:1}),ut(w,{span:"24 s:24 m:8"},{default:Mt(()=>{var R;return[Bt("div",yE,[Bt("h4",_E,Qe(t.value==="RETRY"?qe(W)("page.home.retryTab.rank.titleRetry"):qe(W)("page.home.retryTab.rank.title")),1),Bt("ul",SE,[(Lt(!0),er(bi,null,ds((R=a.value)==null?void 0:R.rankList,(k,O)=>(Lt(),er("li",{key:O,class:"task-tab-rank__list--item"},[Bt("span",null,[Bt("span",xE,Qe(O+1),1),Bt("span",null,Qe(k.name),1)]),Bt("span",wE,Qe(k.total),1)]))),128))])])]}),_:1})]),_:1},8,["x-gap"]),ut(x,{"x-gap":n.value,"y-gap":16,responsive:"screen","item-responsive":"",class:"p-t-16px"},{default:Mt(()=>[ut(w,{span:"24 s:24 m:16"},{default:Mt(()=>{var R;return[Bt("h4",bE,Qe(qe(W)("page.home.retryTab.task.title")),1),ut(b),ut(T,{"min-height":"300px","max-height":"300px",columns:m.value,data:(R=a.value)==null?void 0:R.taskList.data,bordered:!1,pagination:v.value},null,8,["columns","data","pagination"])]}),_:1}),ut(w,{span:"24 s:24 m:8"},{default:Mt(()=>[Bt("h4",TE,Qe(qe(W)("page.home.retryTab.pie.title")),1),ut(b),ut(gE,{modelValue:_.modelValue,"onUpdate:modelValue":S[1]||(S[1]=R=>_.modelValue=R),type:t.value},null,8,["modelValue","type"])]),_:1})]),_:1},8,["x-gap"])]),_:2},1032,["tab","name"]))),128))]),_:1}),Bt("div",CE,[ut(I,{value:o.value.type,"onUpdate:value":[S[2]||(S[2]=P=>o.value.type=P),c]},{default:Mt(()=>[ut(A,{value:"DAY",label:qe(W)("page.home.retryTab.params.day")},null,8,["label"]),ut(A,{value:"WEEK",label:qe(W)("page.home.retryTab.params.week")},null,8,["label"]),ut(A,{value:"MONTH",label:qe(W)("page.home.retryTab.params.month")},null,8,["label"]),ut(A,{value:"YEAR",label:qe(W)("page.home.retryTab.params.year")},null,8,["label"])]),_:1},8,["value"]),ut(lx,{value:o.value.datetimeRange,"onUpdate:value":[S[3]||(S[3]=P=>o.value.datetimeRange=P),f],class:"w-300px lg:w-250px md:w-275px sm:w-300px xl:w-400px",onClear:h},null,8,["value"]),ut(L,{value:o.value.groupName,"onUpdate:value":S[4]||(S[4]=P=>o.value.groupName=P),options:i.value,class:"w-200px lg:w-150px md:w-170px"},null,8,["value","options"])])])}}}),AE=Lh(DE,[["__scopeId","data-v-62784a1f"]]),ME=Jr({name:"home",__name:"index",setup(r){const t=Ke();return(async()=>{const{data:n,error:a}=await rx();a||(t.value=n)})(),(n,a)=>{const i=Xs,o=jS;return Lt(),Ee(o,{vertical:"",size:16,class:"home-main"},{default:Mt(()=>[ut(dE,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s)},null,8,["modelValue"]),ut(i,{bordered:!1,class:"card-wrapper p-t-136px 2xl:p-t-0 lg:p-t-36px md:p-t-90px"},{default:Mt(()=>[ut(AE,{modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=s=>t.value=s)},null,8,["modelValue"])]),_:1})]),_:1})}}}),EE=Lh(ME,[["__scopeId","data-v-a25bac41"]]);export{EE as default};
