Files
cloud-mail/mail-worker/dist/assets/index-Ce8u1iy5.js
2025-08-28 22:28:00 +08:00

54 lines
546 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{b as J0,d as av,_ as t_,a as zp,u as e_,k as zf,ac as r_,aQ as n_,c as Kn,o as cn,e as Do,f as W,n as En,g as Vt,r as ol,h as or,t as pt,i as i_,w as a_,cp as o_,c7 as s_,z as sr,F as Wo,cq as pe,aB as l_,aj as u_,ag as f_,al as h_,D as ov,I as v_,bN as c_,ck as d_,m as p_,ab as nr,p as g_}from"./index-BtzXKQwE.js";import{E as y_}from"./el-scrollbar-CKPMF6AL.js";import{E as m_,b as __}from"./el-radio-group-Do0U2-9Y.js";/* empty css */import{d as S_,I as Ba}from"./iconify-py6I6n_h.js";import{d as sv}from"./dayjs.min--KgWQ631.js";import{l as w_}from"./index-EFTyCj7O.js";import{_ as b_}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-DeJUs09x.js";import"./event-BB_Ol6Sd.js";import"./index-CBgbCWze.js";const x_=J0({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:av([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:av([String,Object,Array])}}),T_=zp({name:"ElStatistic"}),C_=zp({...T_,props:x_,setup(r,{expose:t}){const e=r,n=e_("statistic"),i=zf(()=>{const{value:a,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=e;if(r_(o))return o(a);if(!n_(a)||Number.isNaN(a))return a;let[f,h=""]=String(a).split(".");return h=h.padEnd(s,"0").slice(0,s>0?s:0),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,u),[f,h].join(h?l:"")});return t({displayValue:i}),(a,o)=>(cn(),Kn("div",{class:En(Vt(n).b())},[a.$slots.title||a.title?(cn(),Kn("div",{key:0,class:En(Vt(n).e("head"))},[ol(a.$slots,"title",{},()=>[or(pt(a.title),1)])],2)):Do("v-if",!0),W("div",{class:En(Vt(n).e("content"))},[a.$slots.prefix||a.prefix?(cn(),Kn("div",{key:0,class:En(Vt(n).e("prefix"))},[ol(a.$slots,"prefix",{},()=>[W("span",null,pt(a.prefix),1)])],2)):Do("v-if",!0),W("span",{class:En(Vt(n).e("number")),style:i_(a.valueStyle)},pt(Vt(i)),7),a.$slots.suffix||a.suffix?(cn(),Kn("div",{key:1,class:En(Vt(n).e("suffix"))},[ol(a.$slots,"suffix",{},()=>[W("span",null,pt(a.suffix),1)])],2)):Do("v-if",!0)],2)],2))}});var D_=t_(C_,[["__file","statistic.vue"]]);const M_=a_(D_);function A_(r){return o_()?(s_(r),!0):!1}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function L_(r,t=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(t?()=>i(e):n,r)})}function P_(r){return r}function I_([r,t,e,n]){const i=(f,h)=>1-3*h+3*f,a=(f,h)=>3*h-6*f,o=f=>3*f,s=(f,h,c)=>((i(h,c)*f+a(h,c))*f+o(h))*f,l=(f,h,c)=>3*i(h,c)*f*f+2*a(h,c)*f+o(h),u=f=>{let h=f;for(let c=0;c<4;++c){const v=l(h,r,e);if(v===0)return h;const d=s(h,r,e)-f;h-=d/v}return h};return f=>r===t&&e===n?f:s(u(f),t,n)}function lv(r,t,e){return r+e*(t-r)}function sl(r){return(typeof r=="number"?[r]:r)||[]}function R_(r,t,e,n={}){var i,a;const o=pe(t),s=pe(e),l=sl(o),u=sl(s),f=(i=pe(n.duration))!=null?i:1e3,h=Date.now(),c=Date.now()+f,v=typeof n.transition=="function"?n.transition:(a=pe(n.transition))!=null?a:P_,d=typeof v=="function"?v:I_(v);return new Promise(g=>{r.value=o;const p=()=>{var y;if((y=n.abort)!=null&&y.call(n)){g();return}const m=Date.now(),_=d((m-h)/f),S=sl(r.value).map((b,w)=>lv(l[w],u[w],_));Array.isArray(r.value)?r.value=S.map((b,w)=>{var x,T;return lv((x=l[w])!=null?x:0,(T=u[w])!=null?T:0,_)}):typeof r.value=="number"&&(r.value=S[0]),m<c?requestAnimationFrame(p):(r.value=s,g())};p()})}function Na(r,t={}){let e=0;const n=()=>{const a=pe(r);return typeof a=="number"?a:a.map(pe)},i=sr(n());return Wo(n,async a=>{var o,s;if(pe(t.disabled))return;const l=++e;if(t.delay&&await L_(pe(t.delay)),l!==e)return;const u=Array.isArray(a)?a.map(pe):pe(a);(o=t.onStarted)==null||o.call(t),await R_(i,i.value,u,{...t,abort:()=>{var f;return l!==e||((f=t.abort)==null?void 0:f.call(t))}}),(s=t.onFinished)==null||s.call(t)},{deep:!0}),Wo(()=>pe(t.disabled),a=>{a&&(e++,i.value=n())}),A_(()=>{e++}),zf(()=>pe(t.disabled)?n():i.value)}/*! *****************************************************************************
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 Lu=function(r,t){return Lu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Lu(r,t)};function q(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var E_=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),k_=(function(){function r(){this.browser=new E_,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})(),K=new k_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(K.wxa=!0,K.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?K.worker=!0:!K.hasGlobalWindow||"Deno"in window?(K.node=!0,K.svgSupported=!0):O_(navigator.userAgent,K);function O_(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[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 Gf=12,B_="sans-serif",Tn=Gf+"px "+B_,N_=20,F_=100,z_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function G_(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-N_)/F_;t[n]=i}return t}var V_=G_(z_),cr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,n){if(!r){var i=cr.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Tn),r.measureText(e);e=e||"",n=n||Tn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Gf,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=V_[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}};function Gp(r){for(var t in cr)r[t]&&(cr[t]=r[t])}var Vp=Ke(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Hp=Ke(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),hi=Object.prototype.toString,bs=Array.prototype,H_=bs.forEach,W_=bs.filter,Vf=bs.slice,U_=bs.map,uv=function(){}.constructor,Fa=uv?uv.prototype:null,Hf="__proto__",Y_=2311;function Wf(){return Y_++}function xs(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function it(r){if(r==null||typeof r!="object")return r;var t=r,e=hi.call(r);if(e==="[object Array]"){if(!ti(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=it(r[n])}}else if(Hp[e]){if(!ti(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!Vp[e]&&!ti(r)&&!ai(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Hf&&(t[o]=it(r[o]))}return t}function at(r,t,e){if(!X(t)||!X(r))return e?it(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Hf){var i=r[n],a=t[n];X(a)&&X(i)&&!H(a)&&!H(i)&&!ai(a)&&!ai(i)&&!Pu(a)&&!Pu(i)&&!ti(a)&&!ti(i)?at(i,a,e):(e||!(n in r))&&(r[n]=it(t[n]))}return r}function $_(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=at(e,r[n],t);return e}function z(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Hf&&(r[e]=t[e]);return r}function lt(r,t,e){for(var n=_t(t),i=0,a=n.length;i<a;i++){var o=n[i];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var X_=cr.createCanvas;function ht(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 Uf(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function xe(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),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else lt(r,t,e)}function jt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===H_)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function $(r,t,e){if(!r)return[];if(!t)return Ts(r);if(r.map&&r.map===U_)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Ke(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function At(r,t,e){if(!r)return[];if(!t)return Ts(r);if(r.filter&&r.filter===W_)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function Z_(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function _t(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 q_(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Vf.call(arguments)))}}var gt=Fa&&j(Fa.bind)?Fa.call.bind(Fa.bind):q_;function St(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Vf.call(arguments)))}}function H(r){return Array.isArray?Array.isArray(r):hi.call(r)==="[object Array]"}function j(r){return typeof r=="function"}function Y(r){return typeof r=="string"}function Uo(r){return hi.call(r)==="[object String]"}function ct(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Pu(r){return!!Vp[hi.call(r)]}function Jt(r){return!!Hp[hi.call(r)]}function ai(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function wa(r){return r.colorStops!=null}function Wp(r){return r.image!=null}function K_(r){return hi.call(r)==="[object RegExp]"}function ia(r){return r!==r}function oi(){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 et(r,t){return r??t}function Jn(r,t,e){return r??t??e}function Ts(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Vf.apply(r,t)}function Yf(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 Qe(r,t){if(!r)throw new Error(t)}function Re(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Up="__ec_primitive__";function Yo(r){r[Up]=!0}function ti(r){return r[Up]}var Q_=(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 _t(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r})(),Yp=typeof Map=="function";function j_(){return Yp?new Map:new Q_}var $p=(function(){function r(t){var e=H(t);this.data=j_();var n=this;t instanceof r?t.each(i):t&&A(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}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,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Yp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function rt(r){return new $p(r)}function Xp(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function ba(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&z(e,t),e}function $f(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Gr(r,t){return r.hasOwnProperty(t)}function qt(){}var Zp=180/Math.PI;const J_=Object.freeze(Object.defineProperty({__proto__:null,HashMap:$p,RADIAN_TO_DEGREE:Zp,assert:Qe,bind:gt,clone:it,concatArray:Xp,createCanvas:X_,createHashMap:rt,createObject:ba,curry:St,defaults:lt,disableUserSelect:$f,each:A,eqNaN:ia,extend:z,filter:At,find:Z_,guid:Wf,hasOwn:Gr,indexOf:ht,inherits:Uf,isArray:H,isArrayLike:jt,isBuiltInObject:Pu,isDom:ai,isFunction:j,isGradientObject:wa,isImagePatternObject:Wp,isNumber:ct,isObject:X,isPrimitive:ti,isRegExp:K_,isString:Y,isStringSafe:Uo,isTypedArray:Jt,keys:_t,logError:xs,map:$,merge:at,mergeAll:$_,mixin:xe,noop:qt,normalizeCssArray:Yf,reduce:Ke,retrieve:oi,retrieve2:et,retrieve3:Jn,setAsPrimitive:Yo,slice:Ts,trim:Re},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
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 Iu=function(r,t){return Iu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Iu(r,t)};function yt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Iu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Pn(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function t1(r,t){return r[0]=t[0],r[1]=t[1],r}function qp(r){return[r[0],r[1]]}function e1(r,t,e){return r[0]=t,r[1]=e,r}function Ru(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function r1(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Kp(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Xf(r){return Math.sqrt(Zf(r))}var n1=Xf;function Zf(r){return r[0]*r[0]+r[1]*r[1]}var i1=Zf;function a1(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function o1(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function s1(r,t){return r[0]*t[0]+r[1]*t[1]}function Mo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Qp(r,t){var e=Xf(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function $o(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Xo=$o;function jp(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var mn=jp;function l1(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Ao(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 Kt(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Ar(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Lr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const u1=Object.freeze(Object.defineProperty({__proto__:null,add:Ru,applyTransform:Kt,clone:qp,copy:t1,create:Pn,dist:Xo,distSquare:mn,distance:$o,distanceSquare:jp,div:o1,dot:s1,len:Xf,lenSquare:Zf,length:n1,lengthSquare:i1,lerp:Ao,max:Lr,min:Ar,mul:a1,negate:l1,normalize:Qp,scale:Mo,scaleAndAdd:r1,set:e1,sub:Kp},Symbol.toStringTag,{value:"Module"}));var kn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),f1=(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 kn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new kn(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new kn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new kn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new kn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new kn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),je=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[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 i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}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 i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.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 a&&a.afterTrigger&&a.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 i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.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 a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),h1=Math.log(2);function Eu(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/h1);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&i||(h+=(v%2?-1:1)*r[e][c]*Eu(r,t-1,f,u,i|d,a),v++)}return a[o]=h,h}function fv(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={},i=Eu(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Eu(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var hv="___zrEVENTSAVED",ll=[];function v1(r,t,e,n,i){return ku(ll,t,n,i,!0)&&ku(r,e,ll[0],ll[1])}function ku(r,t,e,n,i){if(t.getBoundingClientRect&&K.domSupported&&!Jp(t)){var a=t[hv]||(t[hv]={}),o=c1(t,a),s=d1(o,a,i);if(s)return s(r,e,n),!0}return!1}function c1(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function d1(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=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&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?fv(s,o):fv(o,s))}function Jp(r){return r.nodeName.toUpperCase()==="CANVAS"}var p1=/([&<>"'])/g,g1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Zt(r){return r==null?"":(r+"").replace(p1,function(t,e){return g1[e]})}var y1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ul=[],m1=K.browser.firefox&&+K.browser.version.split(".")[0]<39;function Ou(r,t,e,n){return e=e||{},n?vv(r,t,e):m1&&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):vv(r,t,e),e}function vv(r,t,e){if(K.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Jp(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(ku(ul,r,n,i)){e.zrX=ul[0],e.zrY=ul[1];return}}e.zrX=e.zrY=0}function qf(r){return r||window.event}function ce(r,t,e){if(t=qf(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ou(r,o,t,e)}else{Ou(r,t,t,e);var a=_1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&y1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function S1(r,t,e,n){r.addEventListener(t,e,n)}function w1(r,t,e,n){r.removeEventListener(t,e,n)}var tg=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},b1=(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 i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Ou(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in fl)if(fl.hasOwnProperty(e)){var n=fl[e](this._track,t);if(n)return n}},r})();function cv(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function x1(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var fl={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=cv(n)/cv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=x1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Or(){return[1,0,0,1,0,0]}function xa(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Kf(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 Br(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=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]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Zo(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 Cs(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=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]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+l*f,r[3]=-a*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 eg(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Ta(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function T1(r){var t=Or();return Kf(t,r),t}const C1=Object.freeze(Object.defineProperty({__proto__:null,clone:T1,copy:Kf,create:Or,identity:xa,invert:Ta,mul:Br,rotate:Cs,scale:eg,translate:Zo},Symbol.toStringTag,{value:"Module"}));var J=(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,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r})(),za=Math.min,Ga=Math.max,Ur=new J,Yr=new J,$r=new J,Xr=new J,mi=new J,_i=new J,ot=(function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=za(t.x,this.x),n=za(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ga(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ga(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,i=t.height/e.height,a=Or();return Zo(a,a,[-e.x,-e.y]),eg(a,a,[n,i]),Zo(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=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=!(a<l||u<i||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),S=Math.min(y,m);a<l||u<i?_>d&&(d=_,g<p?J.set(_i,-g,0):J.set(_i,p,0)):_<v&&(v=_,g<p?J.set(mi,g,0):J.set(mi,-p,0)),s<f||h<o?S>d&&(d=S,y<m?J.set(_i,0,-y):J.set(_i,0,m)):_<v&&(v=_,y<m?J.set(mi,0,y):J.set(mi,0,-m))}return e&&J.copy(e,c?mi:_i),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 i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ur.x=$r.x=e.x,Ur.y=Xr.y=e.y,Yr.x=Xr.x=e.x+e.width,Yr.y=$r.y=e.y+e.height,Ur.transform(n),Xr.transform(n),Yr.transform(n),$r.transform(n),t.x=za(Ur.x,Yr.x,$r.x,Xr.x),t.y=za(Ur.y,Yr.y,$r.y,Xr.y);var l=Ga(Ur.x,Yr.x,$r.x,Xr.x),u=Ga(Ur.y,Yr.y,$r.y,Xr.y);t.width=l-t.x,t.height=u-t.y},r})(),rg="silent";function D1(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:M1}}function M1(){tg(this.event)}var A1=(function(r){yt(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})(je),Si=(function(){function r(t,e){this.x=t,this.y=e}return r})(),L1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hl=new ot(0,0,0,0),ng=(function(r){yt(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Si(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new A1,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new f1(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(L1,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,i=e.zrY,a=ig(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Si(n,i):this.findHover(n,i),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 Si(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.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,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=D1(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.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,i){var a=this.storage.getDisplayList(),o=new Si(e,n);if(dv(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ot(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(hl.copy(c.getBoundingRect()),c.transform&&hl.applyTransform(c.transform),hl.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 y=0;y<g;y+=d){var m=e+p*Math.cos(y),_=n+p*Math.sin(y);if(dv(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new b1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Si;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(je);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){ng.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=ig(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.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||Xo(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function P1(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?rg:!0}return!1}function dv(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=P1(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==rg)){t.target=o;break}}}function ig(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var ag=32,wi=7;function I1(r){for(var t=0;r>=ag;)t|=r&1,r>>=1;return r+t}function pv(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;R1(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function R1(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function gv(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,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]=a}}function vl(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function cl(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function E1(r,t){var e=wi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],y=i[v+1];i[v]=g+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=cl(r[p],r,d,g,0,t);d+=m,g-=m,g!==0&&(y=vl(r[d+g-1],r,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=g,S=v;if(r[S++]=r[_++],--p===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m];return}for(var b=e,w,x,T;;){w=0,x=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],x++,w=0,--p===0){T=!0;break}}else if(r[S++]=o[m++],w++,x=0,--d===1){T=!0;break}while((w|x)<b);if(T)break;do{if(w=cl(r[_],o,m,d,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=o[m+y];if(S+=w,m+=w,d-=w,d<=1){T=!0;break}}if(r[S++]=r[_++],--p===0){T=!0;break}if(x=vl(o[m],r,_,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,p-=x,p===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}b--}while(w>=wi||x>=wi);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=r[g+y];var m=v+d-1,_=p-1,S=g+p-1,b=0,w=0;if(r[S--]=r[m--],--d===0){for(b=S-(p-1),y=0;y<p;y++)r[b+y]=o[y];return}if(p===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_];return}for(var x=e;;){var T=0,M=0,C=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){C=!0;break}}else if(r[S--]=o[_--],M++,T=0,--p===1){C=!0;break}while((T|M)<x);if(C)break;do{if(T=d-cl(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,w=S+1,b=m+1,y=T-1;y>=0;y--)r[w+y]=r[b+y];if(d===0){C=!0;break}}if(r[S--]=o[_--],--p===1){C=!0;break}if(M=p-vl(r[m],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,w=S+1,b=_+1,y=0;y<M;y++)r[w+y]=o[b+y];if(p<=1){C=!0;break}}if(r[S--]=r[m--],--d===0){C=!0;break}x--}while(T>=wi||M>=wi);if(C)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),y=0;y<p;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Lo(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<ag){a=pv(r,e,n,t),gv(r,e,n,e+a,t);return}var o=E1(r,t),s=I1(i);do{if(a=pv(r,e,n,t),a<s){var l=i;l>s&&(l=s),gv(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var Ze=1,Po=2,zi=4,yv=!1;function dl(){yv||(yv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var k1=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mv}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,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Lo(n,mv)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ze),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)&&(dl(),f.z=0),isNaN(f.z2)&&(dl(),f.z2=0),isNaN(f.zlevel)&&(dl(),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 i=ht(this._roots,t);i>=0&&this._roots.splice(i,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})(),qo;qo=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Xi={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-Xi.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?Xi.bounceIn(r*2)*.5:Xi.bounceOut(r*2-1)*.5+.5}},Va=Math.pow,Nr=Math.sqrt,og=1e-8,sg=1e-4,_v=Nr(3),Ha=1/3,Ue=Pn(),ye=Pn(),ei=Pn();function Pr(r){return r>-1e-8&&r<og}function lg(r){return r>og||r<-1e-8}function Nt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Sv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Ko(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Pr(f)&&Pr(h))if(Pr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Pr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=Nr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Va(-_,Ha):_=Va(_,Ha),S<0?S=-Va(-S,Ha):S=Va(S,Ha);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*Nr(f*f*f)),w=Math.acos(b)/3,x=Nr(f),T=Math.cos(w),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+_v*Math.sin(w)))/(3*o),M=(-s+x*(T-_v*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),M>=0&&M<=1&&(a[v++]=M)}}return v}function ug(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Pr(o)){if(lg(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Pr(f))i[0]=-a/(2*o);else if(f>0){var h=Nr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function Qo(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function O1(r,t,e,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,g,p,y;Ue[0]=l,Ue[1]=u;for(var m=0;m<1;m+=.05)ye[0]=Nt(r,e,i,o,m),ye[1]=Nt(t,n,a,s,m),p=mn(Ue,ye),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<sg);_++)d=h-c,g=h+c,ye[0]=Nt(r,e,i,o,d),ye[1]=Nt(t,n,a,s,d),p=mn(ye,Ue),d>=0&&p<v?(h=d,v=p):(ei[0]=Nt(r,e,i,o,g),ei[1]=Nt(t,n,a,s,g),y=mn(ei,Ue),g<=1&&y<v?(h=g,v=y):c*=.5);return Nr(v)}function B1(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,g=Nt(r,e,i,o,d),p=Nt(t,n,a,s,d),y=g-u,m=p-f;h+=Math.sqrt(y*y+m*m),u=g,f=p}return h}function ne(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function wv(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function N1(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Pr(a)){if(lg(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Pr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Nr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function fg(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function jo(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function F1(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;Ue[0]=o,Ue[1]=s;for(var c=0;c<1;c+=.05){ye[0]=ne(r,e,i,c),ye[1]=ne(t,n,a,c);var v=mn(Ue,ye);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<sg);d++){var g=u-f,p=u+f;ye[0]=ne(r,e,i,g),ye[1]=ne(t,n,a,g);var v=mn(ye,Ue);if(g>=0&&v<h)u=g,h=v;else{ei[0]=ne(r,e,i,p),ei[1]=ne(t,n,a,p);var y=mn(ei,Ue);p<=1&&y<h?(u=p,h=y):f*=.5}}return Nr(h)}function z1(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=ne(r,e,i,c),d=ne(t,n,a,c),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var G1=/cubic-bezier\(([0-9,\.e ]+)\)/;function hg(r){var t=r&&G1.exec(r);if(t){var e=t[1].split(","),n=+Re(e[0]),i=+Re(e[1]),a=+Re(e[2]),o=+Re(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ko(0,n,a,1,l,s)&&Nt(0,i,o,1,s[0])}}}var V1=(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||qt,this.ondestroy=t.ondestroy||qt,this.onrestart=t.onrestart||qt,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,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%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=j(t)?t:Xi[t]||hg(t)},r})(),vg=(function(){function r(t){this.value=t}return r})(),H1=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new vg(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})(),Ca=(function(){function r(t){this._list=new H1,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new vg(e),s.key=t,n.insertEntry(s),i[t]=s}return a},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})(),bv={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 Oe(r){return r=Math.round(r),r<0?0:r>255?255:r}function W1(r){return r=Math.round(r),r<0?0:r>360?360:r}function aa(r){return r<0?0:r>1?1:r}function pl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Oe(parseFloat(t)/100*255):Oe(parseInt(t,10))}function _n(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?aa(parseFloat(t)/100):aa(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 Ir(r,t,e){return r+(t-r)*e}function ve(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Bu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var cg=new Ca(20),Wa=null;function On(r,t){Wa&&Bu(Wa,t),Wa=cg.put(r,Wa||t.slice())}function se(r,t){if(r){t=t||[];var e=cg.get(r);if(e)return Bu(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in bv)return Bu(t,bv[n]),On(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ve(t,0,0,0,1);return}return ve(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),On(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ve(t,0,0,0,1);return}return ve(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),On(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){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?ve(t,+u[0],+u[1],+u[2],1):ve(t,0,0,0,1);f=_n(u.pop());case"rgb":if(u.length>=3)return ve(t,pl(u[0]),pl(u[1]),pl(u[2]),u.length===3?f:_n(u[3])),On(r,t),t;ve(t,0,0,0,1);return;case"hsla":if(u.length!==4){ve(t,0,0,0,1);return}return u[3]=_n(u[3]),Nu(u,t),On(r,t),t;case"hsl":if(u.length!==3){ve(t,0,0,0,1);return}return Nu(u,t),On(r,t),t;default:return}}ve(t,0,0,0,1)}}function Nu(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=_n(r[1]),i=_n(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ve(t,Oe(gl(o,a,e+1/3)*255),Oe(gl(o,a,e)*255),Oe(gl(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function U1(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Fu(r,t){var e=se(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Hr(e,e.length===4?"rgba":"rgb")}}function Y1(r){var t=se(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function dg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=Oe(Ir(o[0],s[0],l)),e[1]=Oe(Ir(o[1],s[1],l)),e[2]=Oe(Ir(o[2],s[2],l)),e[3]=aa(Ir(o[3],s[3],l)),e}}var $1=dg;function Qf(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=se(t[i]),s=se(t[a]),l=n-i,u=Hr([Oe(Ir(o[0],s[0],l)),Oe(Ir(o[1],s[1],l)),Oe(Ir(o[2],s[2],l)),aa(Ir(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var X1=Qf;function Z1(r,t,e,n){var i=se(r);if(r)return i=U1(i),t!=null&&(i[0]=W1(t)),e!=null&&(i[1]=_n(e)),n!=null&&(i[2]=_n(n)),Hr(Nu(i),"rgba")}function q1(r,t){var e=se(r);if(e&&t!=null)return e[3]=aa(t),Hr(e,"rgba")}function Hr(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 oa(r,t){var e=se(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function K1(){return Hr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var xv=new Ca(100);function zu(r){if(Y(r)){var t=xv.get(r);return t||(t=Fu(r,-.1),xv.put(r,t)),t}else if(wa(r)){var e=z({},r);return e.colorStops=$(r.colorStops,function(n){return{offset:n.offset,color:Fu(n.color,-.1)}}),e}return r}const Q1=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:dg,fastMapToColor:$1,lerp:Qf,lift:Fu,liftColor:zu,lum:oa,mapToColor:X1,modifyAlpha:q1,modifyHSL:Z1,parse:se,random:K1,stringify:Hr,toHex:Y1},Symbol.toStringTag,{value:"Module"}));function j1(r){return r.type==="linear"}function J1(r){return r.type==="radial"}(function(){return K.hasGlobalWindow&&j(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 Gu=Array.prototype.slice;function lr(r,t,e){return(t-r)*e+r}function yl(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=lr(t[a],e[a],n);return r}function tS(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=lr(t[o][s],e[o][s],n)}return r}function Ua(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function Tv(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function eS(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function rS(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:Gu.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Io(r){if(jt(r)){var t=r.length;if(jt(r[0])){for(var e=[],n=0;n<t;n++)e.push(Gu.call(r[n]));return e}return Gu.call(r)}return r}function Ro(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 nS(r){return jt(r&&r[0])?2:1}var Ya=0,Eo=1,pg=2,Gi=3,Vu=4,Hu=5,Cv=6;function Dv(r){return r===Vu||r===Hu}function $a(r){return r===Eo||r===pg}var bi=[0,0,0,0],iS=(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 i=this.keyframes,a=i.length,o=!1,s=Cv,l=e;if(jt(e)){var u=nS(e);s=u,(u===1&&!ct(e[0])||u===2&&!ct(e[0][0]))&&(o=!0)}else if(ct(e)&&!ia(e))s=Ya;else if(Y(e))if(!isNaN(+e))s=Ya;else{var f=se(e);f&&(l=f,s=Gi)}else if(wa(e)){var h=z({},l);h.colorStops=$(e.colorStops,function(v){return{offset:v.offset,color:se(v.color)}}),j1(e)?s=Vu:J1(e)&&(s=Hu),l=h}a===0?this.valType=s:(s!==this.valType||s===Cv)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=j(n)?n:Xi[n]||hg(n)),i.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 i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=$a(i),u=Dv(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?rS(c,v,i):u&&eS(c.colorStops,v.colorStops))}if(!s&&i!==Hu&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===Ya?n[f].additiveValue=n[f].value-d:i===Gi?n[f].additiveValue=Ua([],n[f].value,d,-1):$a(i)&&(n[f].additiveValue=i===Eo?Ua([],n[f].value,d,-1):Tv([],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,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===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,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?bi:t[l];if(($a(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if($a(a))a===Eo?yl(m,v[i],d[i],y):tS(m,v[i],d[i],y);else if(Dv(a)){var _=v[i],S=d[i],b=a===Vu;t[l]={type:b?"linear":"radial",x:lr(_.x,S.x,y),y:lr(_.y,S.y,y),colorStops:$(_.colorStops,function(x,T){var M=S.colorStops[T];return{offset:lr(x.offset,M.offset,y),color:Ro(yl([],x.color,M.color,y))}}),global:S.global},b?(t[l].x2=lr(_.x2,S.x2,y),t[l].y2=lr(_.y2,S.y2,y)):t[l].r=lr(_.r,S.r,y)}else if(u)yl(m,v[i],d[i],y),n||(t[l]=Ro(m));else{var w=lr(v[i],d[i],y);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Ya?t[n]=t[n]+i:e===Gi?(se(t[n],bi),Ua(bi,bi,i,1),t[n]=Ro(bi)):e===Eo?Ua(t[n],t[n],i,1):e===pg&&Tv(t[n],t[n],i,1)},r})(),jf=(function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){xs("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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,_t(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new iS(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=Ro(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Io(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Io(e[s]),i)}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 i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,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 V1({life:i,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 y=e._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[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 $(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,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Io(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||_t(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function Qn(){return new Date().getTime()}var aS=(function(r){yt(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,i=e.next;n?n.next=i:this._head=i,i?i.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=Qn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(qo(n),!e._paused&&e.update())}qo(n)},t.prototype.start=function(){this._running||(this._time=Qn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Qn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Qn()-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 i=new jf(e,n.loop);return this.addAnimator(i),i},t})(je),oS=300,ml=K.domSupported,_l=(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=$(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}})(),Mv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Av=!1;function Wu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function sS(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 Sl(r){r&&(r.zrByTouch=!0)}function lS(r,t){return ce(r.dom,new uS(r,t),!0)}function gg(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 uS=(function(){function r(t,e){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),Le={mousedown:function(r){r=ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ce(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=ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ce(this.dom,r);var t=r.toElement||r.relatedTarget;gg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Av=!0,r=ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Av||(r=ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ce(this.dom,r),Sl(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Le.mousemove.call(this,r),Le.mousedown.call(this,r)},touchmove:function(r){r=ce(this.dom,r),Sl(r),this.handler.processGesture(r,"change"),Le.mousemove.call(this,r)},touchend:function(r){r=ce(this.dom,r),Sl(r),this.handler.processGesture(r,"end"),Le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<oS&&Le.click.call(this,r)},pointerdown:function(r){Le.mousedown.call(this,r)},pointermove:function(r){Wu(r)||Le.mousemove.call(this,r)},pointerup:function(r){Le.mouseup.call(this,r)},pointerout:function(r){Wu(r)||Le.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Le[r]=function(t){t=ce(this.dom,t),this.trigger(r,t)}});var Uu={pointermove:function(r){Wu(r)||Uu.mousemove.call(this,r)},pointerup:function(r){Uu.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 fS(r,t){var e=t.domHandlers;K.pointerEventsSupported?A(_l.pointer,function(n){ko(t,n,function(i){e[n].call(r,i)})}):(K.touchEventsSupported&&A(_l.touch,function(n){ko(t,n,function(i){e[n].call(r,i),sS(t)})}),A(_l.mouse,function(n){ko(t,n,function(i){i=qf(i),t.touching||e[n].call(r,i)})}))}function hS(r,t){K.pointerEventsSupported?A(Mv.pointer,e):K.touchEventsSupported||A(Mv.mouse,e);function e(n){function i(a){a=qf(a),gg(r,a.target)||(a=lS(r,a),t.domHandlers[n].call(r,a))}ko(t,n,i,{capture:!0})}}function ko(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,S1(r.domTarget,t,e,n)}function wl(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&w1(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Lv=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),vS=(function(r){yt(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Lv(e,Le),ml&&(i._globalHandlerScope=new Lv(document,Uu)),fS(i,i._localHandlerScope),i}return t.prototype.dispose=function(){wl(this._localHandlerScope),ml&&wl(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,ml&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?hS(this,n):wl(n)}},t})(je),yg=1;K.hasGlobalWindow&&(yg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Jo=yg,Yu=.4,$u="#333",Xu="#ccc",cS="#eee",Pv=xa,dS=5e-5;function Zr(r){return r>dS||r<-5e-5}var qr=[],Bn=[],bl=Or(),xl=Math.abs,Jf=(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 Zr(this.rotation)||Zr(this.x)||Zr(this.y)||Zr(this.scaleX-1)||Zr(this.scaleY-1)||Zr(this.skewX)||Zr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Pv(n),this.invTransform=null);return}n=n||Or(),e?this.getLocalTransform(n):Pv(n),t&&(e?Br(n,t,n):Kf(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(qr);var n=qr[0]<0?-1:1,i=qr[1]<0?-1:1,a=((qr[0]-n)*e+n)/qr[0]||0,o=((qr[1]-i)*e+i)/qr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Or(),Ta(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],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Or(),Br(Bn,t.invTransform,e),e=Bn);var n=this.originX,i=this.originY;(n||i)&&(bl[4]=n,bl[5]=i,Br(Bn,e,bl),Bn[4]-=n,Bn[5]-=i,e=Bn),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],i=this.invTransform;return i&&Kt(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Kt(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&xl(t[0]-1)>1e-10&&xl(t[3]-1)>1e-10?Math.sqrt(xl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){pS(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=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||i||s||l){var d=n+s,g=i+l;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Cs(e,e,u),e[4]+=n+f,e[5]+=i+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})(),sa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function pS(r,t){for(var e=0;e<sa.length;e++){var n=sa[e];r[n]=t[n]}}var Iv={};function le(r,t){t=t||Tn;var e=Iv[t];e||(e=Iv[t]=new Ca(500));var n=e.get(r);return n==null&&(n=cr.measureText(r,t).width,e.put(r,n)),n}function Rv(r,t,e,n){var i=le(r,t),a=eh(t),o=Vi(0,i,e),s=qn(0,a,n),l=new ot(o,s,i,a);return l}function th(r,t,e,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return Rv(i[0],t,e,n);for(var o=new ot(0,0,0,0),s=0;s<i.length;s++){var l=Rv(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Vi(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function qn(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function eh(r){return le("国",r)}function Vr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function ts(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Vr(n[0],e.width),u+=Vr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Tl="__zr_normal__",Cl=sa.concat(["ignore"]),gS=Ke(sa,function(r,t){return r[t]=!0,r},{ignore:!1}),Nn={},yS=new ot(0,0,0,0),Ds=(function(){function r(t){this.id=Wf(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=yS;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Nn,n,f):ts(Nn,n,f),a.x=Nn.x,a.y=Nn.y,o=Nn.align,s=Nn.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=Vr(h[0],f.width),v=Vr(h[1],f.height)),u=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=Ze,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()?Xu:$u},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&se(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Hr(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||{},z(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,i=_t(n),a=0;a<i.length;a++){var o=i[a];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 i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Tl)){var o=i.targetName,s=o?e[o]:e;i.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,Cl)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},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(Tl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===Tl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ht(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){xs("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);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),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[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&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),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&=-2)}},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=ht(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 i=this.currentStates.slice(),a=ht(i,t),o=ht(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];z(e,a),a.textConfig&&(n=n||{},z(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=z({},i?this.textConfig:n.textConfig),z(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Cl.length;f++){var h=Cl[f],c=a&&gS[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(!a)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 Jf,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),z(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|=Ze;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 i=t?this[t]:this,a=new jf(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=ht(a,t);o>=0&&a.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,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){Dl(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Dl(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=Dl(this,e,n,i),o=0;o<a.length;o++)a[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=Ze;function e(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=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})();xe(Ds,je);xe(Ds,Jf);function Dl(r,t,e,n,i){e=e||{};var a=[];mg(r,"",r,t,e,n,a,i);var o=a.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(),a.length>0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function Ml(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function mS(r){return jt(r[0])}function _S(r,t,e){if(jt(t[e]))if(jt(r[e])||(r[e]=[]),Jt(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Ml(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(mS(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Ml(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Ml(a,i,o);a.length=i.length}else r[e]=t[e]}function SS(r,t){return r===t||jt(r)&&jt(t)&&wS(r,t)}function wS(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 mg(r,t,e,n,i,a,o,s){for(var l=_t(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!X(a),d=r.animators,g=[],p=0;p<l.length;p++){var y=l[p],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(X(m)&&!jt(m)&&!wa(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}mg(r,y,e[y],m,i,a&&a[y],o,s)}else g.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(g);if(w){var x=ht(d,b);d.splice(x,1)}}}if(i.force||(g=At(g,function(D){return!SS(n[D],e[D])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,M=void 0,C=void 0;if(s){M={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];M[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){C={};for(var S=0;S<_;S++){var y=g[S];C[y]=Io(e[y]),_S(e,n,y)}}var b=new jf(e,!1,!1,h?At(d,function(L){return L.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),c&&T&&b.whenWithKeys(0,T,g),C&&b.whenWithKeys(0,C,g),b.whenWithKeys(u??500,s?M:n,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}var Pt=(function(r){yt(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,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},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 i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=ht(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.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,i=this._children,a=ht(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.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 i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new ot(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ot.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t})(Ds);Pt.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 Oo={},dn={};function bS(r){delete dn[r]}function xS(r){if(!r)return!1;if(typeof r=="string")return oa(r,1)<Yu;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=oa(t[i].color,1);return e/=n,e<Yu}return!1}var TS=(function(){function r(t,e,n){var i=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 a=new k1,o=n.renderer||"canvas";Oo[o]||(o=_t(Oo)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Oo[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!K.node&&!K.worker&&!l?new vS(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?K.touchEventsSupported:!!f,c=44,v;h&&(v=et(n.pointerSize,c)),this.handler=new ng(a,s,u,s.root,v),this.animation=new aS({stage:{update:l?null:function(){return i._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=xS(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=Qn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Qn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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 Pt&&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,bS(this.id))},r})();function Zu(r,t){var e=new TS(Wf(),r,t);return dn[e.id]=e,e}function CS(r){r.dispose()}function DS(){for(var r in dn)dn.hasOwnProperty(r)&&dn[r].dispose();dn={}}function MS(r){return dn[r]}function _g(r,t){Oo[r]=t}var qu;function AS(r){if(typeof qu=="function")return qu(r)}function Sg(r){qu=r}var LS="5.6.1";const PS=Object.freeze(Object.defineProperty({__proto__:null,dispose:CS,disposeAll:DS,getElementSSRData:AS,getInstance:MS,init:Zu,registerPainter:_g,registerSSRDataGetter:Sg,version:LS},Symbol.toStringTag,{value:"Module"}));var IS=1e-4,wg=20;function RS(r){return r.replace(/^\s+|\s+$/g,"")}function Ie(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function tt(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 Y(r)?RS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function xt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),wg),r=(+r).toFixed(t),e?r:+r}function ES(r){return r.sort(function(t,e){return t-e}),r}function $e(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 bg(r)}function bg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function xg(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function kS(r,t,e){if(!r[t])return 0;var n=Tg(r,e);return n[t]||0}function Tg(r,t){var e=Ke(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=$(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=$(i,function(v){return Math.floor(v)}),s=Ke(o,function(v,d){return v+d},0),l=$(i,function(v,d){return v-o[d]});s<a;){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 $(o,function(v){return v/n})}function OS(r,t){var e=Math.max($e(r),$e(t)),n=r+t;return e>wg?n:xt(n,e)}var BS=9007199254740991;function rh(r){var t=Math.PI*2;return(r%t+t)%t}function la(r){return r>-1e-4&&r<IS}var NS=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function we(r){if(r instanceof Date)return r;if(Y(r)){var t=NS.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 Cg(r){return Math.pow(10,Ms(r))}function Ms(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 nh(r,t){var e=Ms(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function FS(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function zS(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ua(r){var t=parseFloat(r);return t==r&&(t!==0||!Y(r)||r.indexOf("x")<=0)?t:NaN}function Dg(r){return!isNaN(ua(r))}function Mg(){return Math.round(Math.random()*9)}function Ag(r,t){return t===0?r:Ag(t,r%t)}function Ev(r,t){return r==null?t:t==null?r:r*t/Ag(r,t)}function ie(r){throw new Error(r)}function kv(r,t,e){return(t-r)*e+r}var Lg="series\0",GS="\0_ec_\0";function Qt(r){return r instanceof Array?r:r==null?[]:[r]}function Ku(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Ov=["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 Da(r){return X(r)&&!H(r)&&!(r instanceof Date)?r.value:r}function VS(r){return X(r)&&!(r instanceof Array)}function HS(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=rt();A(t,function(l,u){if(!X(l)){t[u]=null;return}});var s=WS(r,o,e);return(n||i)&&US(s,r,o,t),n&&YS(s,t),n||i?$S(s,t,i):a&&XS(s,t),ZS(s),s}function WS(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||fa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function US(r,t,e,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Zi(i.id),s=e.get(o);if(s!=null){var l=r[s];Qe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function YS(r,t){A(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!fa(e)&&!fa(a)&&Pg("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function $S(r,t,e){A(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||fa(i.existing)||i.existing&&n.id!=null&&!Pg("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function XS(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function ZS(r){var t=rt();A(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),A(r,function(e){var n=e.newOption;Qe(!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={})}),A(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(X(a)){if(o.name=a.name!=null?Zi(a.name):i?i.name:Lg+n,i)o.id=Zi(i.id);else if(a.id!=null)o.id=Zi(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Pg(r,t,e){var n=qe(t[r],null),i=qe(e[r],null);return n!=null&&i!=null&&n===i}function Zi(r){return qe(r,"")}function qe(r,t){return r==null?t:Y(r)?r:ct(r)||Uo(r)?r+"":t}function ih(r){var t=r.name;return!!(t&&t.indexOf(Lg))}function fa(r){return r&&r.id!=null&&Zi(r.id).indexOf(GS)===0}function qS(r,t,e){A(r,function(n){var i=n.newOption;X(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=KS(t,i,n.existing,e))})}function KS(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function Cn(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?$(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?$(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Mt(){var r="__ec_inner_"+QS++;return function(t){return t[r]||(t[r]={})}}var QS=Mg();function Al(r,t,e){var n=ah(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=Ma(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 ah(r,t){var e;if(Y(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=rt(),a={},o=!1;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ht(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ee={useDefault:!0,enableAll:!1,enableNone:!1};function Ma(r,t,e,n){n=n||Ee;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(Qe(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Qe(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Ig(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function jS(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function JS(r){return r==="auto"?K.domSupported?"html":"richText":r||"html"}function Rg(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(ct(n)){var o=kv(e||0,n,i);return xt(o,a?Math.max($e(e||0),$e(n)):t)}else{if(Y(n))return i<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]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=kv(v,d,i);s[h]=xt(o,a?Math.max($e(v),$e(d)):t)}}return s}}var tw=".",Kr="___EC__COMPONENT__CONTAINER___",Eg="___EC__EXTENDED_CLASS___";function Xe(r){var t={main:"",sub:""};if(r){var e=r.split(tw);t.main=e[0]||"",t.sub=e[1]||""}return t}function ew(r){Qe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function rw(r){return!!(r&&r[Eg])}function oh(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return nw(n)?i=(function(a){q(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Uf(i,this)),z(i.prototype,e),i[Eg]=!0,i.extend=this.extend,i.superCall=ow,i.superApply=sw,i.superClass=n,i}}function nw(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function kg(r,t){r.extend=t.extend}var iw=Math.round(Math.random()*10);function aw(r){var t=["__\0is_clz",iw++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function ow(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 sw(r,t,e){return this.superClass.prototype[t].apply(r,e)}function As(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){ew(i),n.prototype.type=i;var a=Xe(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Kr){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[Kr]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=Xe(n),a=[],o=t[i.main];return o&&o[Kr]?A(o,function(s,l){l!==Kr&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Xe(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Xe(n),a=t[i.main];return a&&a[Kr]};function e(n){var i=t[n.main];return(!i||!i[Kr])&&(i=t[n.main]={},i[Kr]=!0),i}}function ha(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,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&ht(i,l)>=0||a&&ht(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var lw=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],uw=ha(lw),fw=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return uw(this,t,e)},r})(),Qu=new Ca(50);function hw(r){if(typeof r=="string"){var t=Qu.get(r);return t&&t.image}else return r}function Og(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Qu.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Ls(t)&&a.pending.push(o)):(t=cr.loadImage(r,Bv,Bv),t.__zrImageSrc=r,Qu.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Bv(){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 Ls(r){return r&&r.width&&r.height}var Ll=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function vw(r,t,e,n,i){var a={};return Bg(a,r,t,e,n,i),a.text}function Bg(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);a=Ng(e,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Fg(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function Ng(r,t,e,n){n=n||{};var i=z({},n);i.font=t,e=et(e,"..."),i.maxIterations=et(n.maxIterations,2);var a=i.minChar=et(n.minChar,0);i.cnCharWidth=le("国",t);var o=i.ascCharWidth=le("a",t);i.placeholder=et(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=le(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function Fg(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=le(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?cw(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=le(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function cw(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function dw(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=eh(i),s=et(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(e==="break"||e==="breakAll")?c=r?zg(r,t.font,h,e==="breakAll",0).lines:[]:c=r?r.split(`
`):[];var v=c.length*s,d=et(t.height,v);if(v>d&&u){var g=Math.floor(d/s);f=f||c.length>g,c=c.slice(0,g)}if(r&&a&&h!=null)for(var p=Ng(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<c.length;m++)Fg(y,c[m],p),c[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<c.length;m++)S=Math.max(le(c[m],i),S);h==null&&(h=S);var b=S;return n&&(_+=n[0]+n[2],b+=n[1]+n[3],h+=n[1]+n[3]),l&&(b=h),{lines:c,height:d,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:h,isTruncated:f}}var pw=(function(){function r(){}return r})(),Nv=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),gw=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function yw(r,t){var e=new gw;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Ll.lastIndex=0,l;(l=Ll.exec(r))!=null;){var u=l.index;u>s&&Pl(e,r.substring(s,u),t,o),Pl(e,l[2],t,o,l[1]),s=Ll.lastIndex}s<r.length&&Pl(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate",p={};function y(G,V,N){G.width=V,G.lineHeight=N,h+=N,c=Math.max(c,V)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,b=0,w=0;w<_.tokens.length;w++){var x=_.tokens[w],T=x.styleName&&t.rich[x.styleName]||{},M=x.textPadding=T.padding,C=M?M[1]+M[3]:0,D=x.font=T.font||t.font;x.contentHeight=eh(D);var L=et(T.height,x.contentHeight);if(x.innerHeight=L,M&&(L+=M[0]+M[2]),x.height=L,x.lineHeight=Jn(T.lineHeight,t.lineHeight,L),x.align=T&&T.align||t.align,x.verticalAlign=T&&T.verticalAlign||"middle",g&&i!=null&&h+x.lineHeight>i){var P=e.lines.length;w>0?(_.tokens=_.tokens.slice(0,w),y(_,b,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<P;break t}var I=T.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=le(x.text,D);else{if(R){var E=T.backgroundColor,B=E&&E.image;B&&(B=hw(B),Ls(B)&&(x.width=Math.max(x.width,B.width*L/B.height)))}var k=d&&n!=null?n-b:null;k!=null&&k<x.width?!R||k<C?(x.text="",x.width=x.contentWidth=0):(Bg(p,x.text,k-C,D,t.ellipsis,{minChar:t.truncateMinChar}),x.text=p.text,e.isTruncated=e.isTruncated||p.isTruncated,x.width=x.contentWidth=le(x.text,D)):x.contentWidth=le(x.text,D)}x.width+=C,b+=x.width,T&&(S=Math.max(S,x.lineHeight))}y(_,b,S)}e.outerWidth=e.width=et(n,c),e.outerHeight=e.height=et(i,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 Pl(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},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=Vr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var g=zg(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 y=f[p],m=new pw;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:le(y,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new Nv)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Nv([m]))}}function mw(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var _w=Ke(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Sw(r){return mw(r)?!!_w[r]:!0}function zg(r,t,e,n,i){for(var a=[],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),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=le(c,t),d=n?!1:!Sw(c);if(a.length?f+v>e:i+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var ju="__zr_style_"+Math.round(Math.random()*10),Sn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ps={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Sn[ju]=!0;var Fv=["z","z2","invisible"],ww=["invisible"],Aa=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=_t(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}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,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&bw(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},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 i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ot(0,0,0,0)),n?ot.applyTransform(e,i,n):e.copy(i),(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 ot(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:z(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Po,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Po)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return ba(Sn,e)},t.prototype.useStyle=function(e){e[ju]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[ju]},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,Fv)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=_t(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=_t(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?ww:Fv,c=0;c<g.length;c++){var v=g[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return z(e,n),e},t.prototype.getAnimationStyleProps=function(){return Ps},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=Ze|Po})(),t})(Ds),Il=new ot(0,0,0,0),Rl=new ot(0,0,0,0);function bw(r,t,e){return Il.copy(r.getBoundingRect()),r.transform&&Il.applyTransform(r.transform),Rl.width=t,Rl.height=e,!Il.intersect(Rl)}var me=Math.min,_e=Math.max,El=Math.sin,kl=Math.cos,Qr=Math.PI*2,Xa=Pn(),Za=Pn(),qa=Pn();function zv(r,t,e,n,i,a){i[0]=me(r,e),i[1]=me(t,n),a[0]=_e(r,e),a[1]=_e(t,n)}var Gv=[],Vv=[];function xw(r,t,e,n,i,a,o,s,l,u){var f=ug,h=Nt,c=f(r,e,i,o,Gv);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,i,o,Gv[v]);l[0]=me(d,l[0]),u[0]=_e(d,u[0])}c=f(t,n,a,s,Vv);for(var v=0;v<c;v++){var g=h(t,n,a,s,Vv[v]);l[1]=me(g,l[1]),u[1]=_e(g,u[1])}l[0]=me(r,l[0]),u[0]=_e(r,u[0]),l[0]=me(o,l[0]),u[0]=_e(o,u[0]),l[1]=me(t,l[1]),u[1]=_e(t,u[1]),l[1]=me(s,l[1]),u[1]=_e(s,u[1])}function Tw(r,t,e,n,i,a,o,s){var l=fg,u=ne,f=_e(me(l(r,e,i),1),0),h=_e(me(l(t,n,a),1),0),c=u(r,e,i,f),v=u(t,n,a,h);o[0]=me(r,i,c),o[1]=me(t,a,v),s[0]=_e(r,i,c),s[1]=_e(t,a,v)}function Cw(r,t,e,n,i,a,o,s,l){var u=Ar,f=Lr,h=Math.abs(i-a);if(h%Qr<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Xa[0]=kl(i)*e+r,Xa[1]=El(i)*n+t,Za[0]=kl(a)*e+r,Za[1]=El(a)*n+t,u(s,Xa,Za),f(l,Xa,Za),i=i%Qr,i<0&&(i=i+Qr),a=a%Qr,a<0&&(a=a+Qr),i>a&&!o?a+=Qr:i<a&&o&&(i+=Qr),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(qa[0]=kl(v)*e+r,qa[1]=El(v)*n+t,u(s,qa,s),f(l,qa,l))}var ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},jr=[],Jr=[],Ge=[],mr=[],Ve=[],He=[],Ol=Math.min,Bl=Math.max,tn=Math.cos,en=Math.sin,ir=Math.abs,Ju=Math.PI,Dr=Ju*2,Nl=typeof Float32Array<"u",xi=[];function Fl(r){var t=Math.round(r/Ju*1e8)/1e8;return t%2*Ju}function sh(r,t){var e=Fl(r[0]);e<0&&(e+=Dr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Dr?i=e+Dr:t&&e-i>=Dr?i=e-Dr:!t&&e>i?i=e+(Dr-Fl(e-i)):t&&e<i&&(i=e-(Dr-Fl(i-e))),r[0]=e,r[1]=i}var Dn=(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=ir(n/Jo/t)||0,this._uy=ir(n/Jo/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(ft.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=ir(t-this._xi),i=ir(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ft.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(ft.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ft.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),xi[0]=i,xi[1]=a,sh(xi,o),i=xi[0],a=xi[1];var s=a-i;return this.addData(ft.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=tn(a)*n+t,this._yi=en(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ft.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ft.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)&&Nl&&(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,i=this._len,a=0;a<e;a++)n+=t[a].len();Nl&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var 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,Nl&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ge[0]=Ge[1]=Ve[0]=Ve[1]=Number.MAX_VALUE,mr[0]=mr[1]=He[0]=He[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case ft.M:e=i=t[o++],n=a=t[o++],Ve[0]=i,Ve[1]=a,He[0]=i,He[1]=a;break;case ft.L:zv(e,n,t[o],t[o+1],Ve,He),e=t[o++],n=t[o++];break;case ft.C:xw(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ve,He),e=t[o++],n=t[o++];break;case ft.Q:Tw(e,n,t[o++],t[o++],t[o],t[o+1],Ve,He),e=t[o++],n=t[o++];break;case ft.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&&(i=tn(v)*h+u,a=en(v)*c+f),Cw(u,f,h,c,v,d,g,Ve,He),e=tn(d)*h+u,n=en(d)*c+f;break;case ft.R:i=e=t[o++],a=n=t[o++];var p=t[o++],y=t[o++];zv(i,a,i+p,a+y,Ve,He);break;case ft.Z:e=i,n=a;break}Ar(Ge,Ge,Ve),Lr(mr,mr,He)}return o===0&&(Ge[0]=Ge[1]=mr[0]=mr[1]=0),new ot(Ge[0],Ge[1],mr[0]-Ge[0],mr[1]-Ge[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=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&&(a=t[c],o=t[c+1],s=a,l=o);var g=-1;switch(v){case ft.M:a=s=t[c++],o=l=t[c++];break;case ft.L:{var p=t[c++],y=t[c++],m=p-a,_=y-o;(ir(m)>n||ir(_)>i||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case ft.C:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++],w=t[c++],x=t[c++];g=B1(a,o,S,b,p,y,w,x,10),a=w,o=x;break}case ft.Q:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++];g=z1(a,o,S,b,p,y,10),a=p,o=y;break}case ft.A:var T=t[c++],M=t[c++],C=t[c++],D=t[c++],L=t[c++],P=t[c++],I=P+L;c+=1,d&&(s=tn(L)*C+T,l=en(L)*D+M),g=Bl(C,D)*Ol(Dr,Math.abs(P)),a=tn(I)*C+T,o=en(I)*D+M;break;case ft.R:{s=a=t[c++],l=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case ft.Z:{var m=s-a,_=l-o;g=Math.sqrt(m*m+_*_),a=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,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m)))t:for(var w=0;w<o;){var x=n[w++],T=w===1;switch(T&&(u=n[w],f=n[w+1],s=u,l=f),x!==ft.L&&_>0&&(t.lineTo(S,b),_=0),x){case ft.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case ft.L:{h=n[w++],c=n[w++];var M=ir(h-u),C=ir(c-f);if(M>i||C>a){if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;t.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}p+=D}t.lineTo(h,c),u=h,f=c,_=0}else{var P=M*M+C*C;P>_&&(S=h,b=c,_=P)}break}case ft.C:{var I=n[w++],R=n[w++],E=n[w++],B=n[w++],k=n[w++],O=n[w++];if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;Qo(u,I,E,k,L,jr),Qo(f,R,B,O,L,Jr),t.bezierCurveTo(jr[1],Jr[1],jr[2],Jr[2],jr[3],Jr[3]);break t}p+=D}t.bezierCurveTo(I,R,E,B,k,O),u=k,f=O;break}case ft.Q:{var I=n[w++],R=n[w++],E=n[w++],B=n[w++];if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;jo(u,I,E,L,jr),jo(f,R,B,L,Jr),t.quadraticCurveTo(jr[1],Jr[1],jr[2],Jr[2]);break t}p+=D}t.quadraticCurveTo(I,R,E,B),u=E,f=B;break}case ft.A:var G=n[w++],V=n[w++],N=n[w++],F=n[w++],U=n[w++],Z=n[w++],dt=n[w++],Et=!n[w++],wt=N>F?N:F,kt=ir(N-F)>.001,Tt=U+Z,Q=!1;if(v){var D=d[y++];p+D>m&&(Tt=U+Z*(m-p)/D,Q=!0),p+=D}if(kt&&t.ellipse?t.ellipse(G,V,N,F,dt,U,Tt,Et):t.arc(G,V,wt,U,Tt,Et),Q)break t;T&&(s=tn(U)*N+G,l=en(U)*F+V),u=tn(Tt)*N+G,f=en(Tt)*F+V;break;case ft.R:s=u=n[w],l=f=n[w+1],h=n[w++],c=n[w++];var nt=n[w++],ze=n[w++];if(v){var D=d[y++];if(p+D>m){var Rt=m-p;t.moveTo(h,c),t.lineTo(h+Ol(Rt,nt),c),Rt-=nt,Rt>0&&t.lineTo(h+nt,c+Ol(Rt,ze)),Rt-=ze,Rt>0&&t.lineTo(h+Bl(nt-Rt,0),c+ze),Rt-=nt,Rt>0&&t.lineTo(h,c+Bl(ze-Rt,0));break t}p+=D}t.rect(h,c,nt,ze);break;case ft.Z:if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=D}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=ft,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Fn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function Dw(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>i+h&&u>o+h||u<r-h&&u<e-h&&u<i-h&&u<o-h)return!1;var c=O1(r,t,e,n,i,a,o,s,u,f);return c<=h/2}function Mw(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=F1(r,t,e,n,i,a,s,l);return f<=u/2}var Hv=Math.PI*2;function Ka(r){return r%=Hv,r<0&&(r+=Hv),r}var Ti=Math.PI*2;function Aw(r,t,e,n,i,a,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-i)%Ti<1e-4)return!0;if(a){var h=n;n=Ka(i),i=Ka(h)}else n=Ka(n),i=Ka(i);n>i&&(i+=Ti);var c=Math.atan2(l,s);return c<0&&(c+=Ti),c>=n&&c<=i||c+Ti>=n&&c+Ti<=i}function ur(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-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===i?1/0:l>i?s:0}var _r=Dn.CMD,rn=Math.PI*2,Lw=1e-4;function Pw(r,t){return Math.abs(r-t)<Lw}var Yt=[-1,-1,-1],ge=[-1,-1];function Iw(){var r=ge[0];ge[0]=ge[1],ge[1]=r}function Rw(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Ko(t,n,a,s,u,Yt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Yt[g],y=p===0||p===1?.5:1,m=Nt(r,e,i,o,p);m<l||(c<0&&(c=ug(t,n,a,s,ge),ge[1]<ge[0]&&c>1&&Iw(),v=Nt(t,n,a,s,ge[0]),c>1&&(d=Nt(t,n,a,s,ge[1]))),c===2?p<ge[0]?h+=v<t?y:-y:p<ge[1]?h+=d<v?y:-y:h+=s<d?y:-y:p<ge[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function Ew(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=N1(t,n,a,s,Yt);if(l===0)return 0;var u=fg(t,n,a);if(u>=0&&u<=1){for(var f=0,h=ne(t,n,a,u),c=0;c<l;c++){var v=Yt[c]===0||Yt[c]===1?.5:1,d=ne(r,e,i,Yt[c]);d<o||(Yt[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Yt[0]===0||Yt[0]===1?.5:1,d=ne(r,e,i,Yt[0]);return d<o?0:a<t?v:-v}}function kw(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Yt[0]=-l,Yt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=rn-1e-4){n=0,i=rn;var f=a?1:-1;return o>=Yt[0]+r&&o<=Yt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=rn,i+=rn);for(var c=0,v=0;v<2;v++){var d=Yt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=rn+g),(g>=n&&g<=i||g+rn>=n&&g+rn<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Gg(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===_r.M&&d>1&&(e||(s+=ur(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),g){case _r.M:f=a[d++],h=a[d++],l=f,u=h;break;case _r.L:if(e){if(Fn(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ur(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _r.C:if(e){if(Dw(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Rw(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _r.Q:if(e){if(Mw(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Ew(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case _r.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,p?(f=c,h=v):s+=ur(l,u,c,v,n,i);var T=(n-y)*S/_+y;if(e){if(Aw(y,m,S,b,b+w,x,t,T,i))return!0}else s+=kw(y,m,S,b,b+w,x,T,i);l=Math.cos(b+w)*_+y,u=Math.sin(b+w)*S+m;break;case _r.R:f=l=a[d++],h=u=a[d++];var M=a[d++],C=a[d++];if(c=f+M,v=h+C,e){if(Fn(f,h,c,h,t,n,i)||Fn(c,h,c,v,t,n,i)||Fn(c,v,f,v,t,n,i)||Fn(f,v,f,h,t,n,i))return!0}else s+=ur(c,h,c,v,n,i),s+=ur(f,v,f,h,n,i);break;case _r.Z:if(e){if(Fn(l,u,f,h,t,n,i))return!0}else s+=ur(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!Pw(u,h)&&(s+=ur(l,u,f,h,n,i)||0),s!==0}function Ow(r,t,e){return Gg(r,0,!1,t,e)}function Bw(r,t,e,n){return Gg(r,t,!0,e,n)}var Vg=lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Sn),Nw={style:lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ps.style)},zl=sa.concat(["invisible","culling","z","z2","zlevel","parent"]),vt=(function(r){yt(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 i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<zl.length;++s)i[zl[s]]=this[zl[s]];i.__dirty|=Ze}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=_t(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(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(Y(e)){var n=oa(e,0);return n>.5?$u:n>.2?cS:Xu}else if(e)return Xu}return $u},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(Y(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=oa(e,0)<Yu;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},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 Dn(!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,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&zi)&&(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||i){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 i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.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)),Bw(s,l/u,e,n)))return!0}if(this.hasFill())return Ow(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=zi,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 i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:z(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&zi)},t.prototype.createStyle=function(e){return ba(Vg,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=z({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var f={},h=_t(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),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Nw},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=(function(a){yt(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return it(e.style)},o.prototype.getDefaultShape=function(){return it(e.shape)},o})(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);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=Ze|Po|zi})(),t})(Aa),Fw=lt({strokeFirst:!0,font:Tn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Vg),es=(function(r){yt(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 ba(Fw,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 i=th(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Aa);es.prototype.type="tspan";var zw=lt({x:0,y:0},Sn),Gw={style:lt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ps.style)};function Vw(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Je=(function(r){yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ba(zw,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=Vw(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Gw},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Aa);Je.prototype.type="image";function Hw(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-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 jn=Math.round;function Hg(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(jn(n*2)===jn(i*2)&&(r.x1=r.x2=pn(n,s,!0)),jn(a*2)===jn(o*2)&&(r.y1=r.y2=pn(a,s,!0))),r}}function Wg(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=pn(n,s,!0),r.y=pn(i,s,!0),r.width=Math.max(pn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(pn(i+o,s,!1)-r.y,o===0?0:1)),r}}function pn(r,t,e){if(!t)return r;var n=jn(r*2);return(n+jn(t))%2===0?n/2:(n+(e?1:-1))/2}var Ww=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Uw={},Lt=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ww},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=Wg(Uw,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Hw(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(vt);Lt.prototype.type="rect";var Wv={fill:"#000"},Uv=2,Yw={style:lt({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},Ps.style)},Dt=(function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Wv,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,Kw(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 ot(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Wv},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return z(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=_t(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},z(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Yw},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||Tn,i=e.padding,a=Qv(e),o=dw(a,e),s=Gl(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=e.x||0,p=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=g,S=qn(p,o.contentHeight,m);if(s||i){var b=Vi(g,f,y),w=qn(p,u,m);s&&this._renderBackground(e,e,b,w,f,u)}S+=v/2,i&&(_=Kv(g,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var x=0,T=!1,M=qv("fill"in e?e.fill:(T=!0,d.fill)),C=Zv("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(x=Uv,d.stroke):null),D=e.textShadowBlur>0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),P=o.calculatedLineHeight,I=0;I<c.length;I++){var R=this._getOrCreateChild(es),E=R.createStyle();R.useStyle(E),E.text=c[I],E.x=_,E.y=S,E.textAlign=y,E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=C,E.fill=M,C&&(E.lineWidth=e.lineWidth||x,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=n,$v(E,e),S+=v,L&&R.setBoundingRect(new ot(Vi(E.x,h,E.textAlign),qn(E.y,P,E.textBaseline),h,P))}},t.prototype._updateRichTexts=function(){var e=this.style,n=Qv(e),i=yw(n,e),a=i.width,o=i.outerWidth,s=i.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;this.isTruncated=!!i.isTruncated;var d=Vi(u,o,c),g=qn(f,s,v),p=d,y=g;l&&(p+=l[3],y+=l[0]);var m=p+a;Gl(e)&&this._renderBackground(e,e,d,g,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var b=i.lines[S],w=b.tokens,x=w.length,T=b.lineHeight,M=b.width,C=0,D=p,L=m,P=x-1,I=void 0;C<x&&(I=w[C],!I.align||I.align==="left");)this._placeToken(I,e,T,y,D,"left",_),M-=I.width,D+=I.width,C++;for(;P>=0&&(I=w[P],I.align==="right");)this._placeToken(I,e,T,y,L,"right",_),M-=I.width,L-=I.width,P--;for(D+=(a-(D-p)-(m-L)-M)/2;C<=P;)I=w[C],this._placeToken(I,e,T,y,D+I.width/2,"center",_),D+=I.width,C++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Gl(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=Kv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(es),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=qv("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=Zv("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Uv,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,w&&(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||Tn,p.opacity=Jn(u.opacity,n.opacity,1),$v(p,u),b&&(p.lineWidth=Jn(u.lineWidth,n.lineWidth,_),p.lineDash=et(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var x=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ot(Vi(p.x,x,p.textAlign),qn(p.y,T,p.textBaseline),x,T))},t.prototype._renderBackground=function(e,n,i,a,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(Lt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=l||null,m.fillOpacity=et(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Je),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=g.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=et(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.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=Jn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return qw(e)&&(n=[e.fontStyle,e.fontWeight,Zw(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Re(n)||e.textFont||e.font},t})(Aa),$w={left:!0,right:1,center:1},Xw={top:1,bottom:1,middle:1},Yv=["fontStyle","fontWeight","fontSize","fontFamily"];function Zw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Gf+"px":r+"px"}function $v(r,t){for(var e=0;e<Yv.length;e++){var n=Yv[e],i=t[n];i!=null&&(r[n]=i)}}function qw(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Kw(r){return Xv(r),A(r.rich,Xv),r}function Xv(r){if(r){r.font=Dt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||$w[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Xw[e]?e:"top";var n=r.padding;n&&(r.padding=Yf(r.padding))}}function Zv(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function qv(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Kv(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Qv(r){var t=r.text;return t!=null&&(t+=""),t}function Gl(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var st=Mt(),tf=function(r,t,e,n){if(n){var i=st(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=st(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},jv=1,Jv={},Ug=Mt(),lh=Mt(),uh=0,Is=1,Rs=2,be=["emphasis","blur","select"],rs=["normal","emphasis","blur","select"],Qw=10,jw=9,wn="highlight",Bo="downplay",qi="select",No="unselect",Ki="toggleSelect";function zn(r){return r!=null&&r!=="none"}function Es(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Yg(r){Es(r,"emphasis",Rs)}function $g(r){r.hoverState===Rs&&Es(r,"normal",uh)}function fh(r){Es(r,"blur",Is)}function Xg(r){r.hoverState===Is&&Es(r,"normal",uh)}function Jw(r){r.selected=!0}function tb(r){r.selected=!1}function tc(r,t,e){t(r,e)}function gr(r,t,e){tc(r,t,e),r.isGroup&&r.traverse(function(n){tc(n,t,e)})}function ec(r,t){switch(t){case"emphasis":r.hoverState=Rs;break;case"normal":r.hoverState=uh;break;case"blur":r.hoverState=Is;break;case"select":r.selected=!0}}function eb(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[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(a,t)}return a}function rb(r,t,e,n){var i=e&&ht(e,"select")>=0,a=!1;if(r instanceof vt){var o=Ug(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(zn(s)||zn(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!zn(u.fill)&&zn(s)?(a=!0,n=z({},n),u=z({},u),u.fill=zu(s)):!zn(u.stroke)&&zn(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=zu(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Qw)}return n}function nb(r,t,e){if(e&&e.z2==null){e=z({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??jw)}return e}function ib(r,t,e){var n=ht(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:eb(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=z({},e),o=z({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Vl(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return rb(this,r,t,e);if(r==="blur")return ib(this,r,e);if(r==="select")return nb(this,r,e)}return e}function ab(r){r.stateProxy=Vl;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Vl),e&&(e.stateProxy=Vl)}function rc(r,t){!Qg(r,t)&&!r.__highByOuter&&gr(r,Yg)}function nc(r,t){!Qg(r,t)&&!r.__highByOuter&&gr(r,$g)}function ns(r,t){r.__highByOuter|=1<<(t||0),gr(r,Yg)}function is(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&gr(r,$g)}function ob(r){gr(r,fh)}function Zg(r){gr(r,Xg)}function qg(r){gr(r,Jw)}function Kg(r){gr(r,tb)}function Qg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function jg(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=lh(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Xg(u)}),s&&e.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function ef(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&Zg(c)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.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"||fh(p)}),jt(t))a(u.getData(),t);else if(X(t))for(var d=_t(t),g=0;g<d.length;g++)a(u.getData(d[g]),t[d[g]]);l.push(u),lh(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function rf(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){lh(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){fh(a)})}}}function sb(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=Cn(i,t);a=(H(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=st(o);ef(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ef(n,f,h,e)}}}function hh(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;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 lb(r,t,e){var n=st(r),i=hh(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&rf(n.componentMainType,n.componentIndex,e),A(a,function(s){return rc(s,t)})):(ef(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&rf(n.componentMainType,n.componentIndex,e),rc(r,t))}function ub(r,t,e){jg(e);var n=st(r),i=hh(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?A(i,function(a){return nc(a,t)}):nc(r,t)}function fb(r,t,e){if(af(t)){var n=t.dataType,i=r.getData(n),a=Cn(i,t);H(a)||(a=[a]),r[t.type===Ki?"toggleSelect":t.type===qi?"select":"unselect"](a,n)}}function ic(r){var t=r.getAllData();A(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?qg(a):Kg(a)})})}function hb(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();A(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function as(r,t,e){Jg(r,!0),gr(r,ab),cb(r,t,e)}function vb(r){Jg(r,!1)}function Mn(r,t,e,n){n?vb(r):as(r,t,e)}function cb(r,t,e){var n=st(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var ac=["emphasis","blur","select"],db={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function si(r,t,e,n){e=e||"itemStyle";for(var i=0;i<ac.length;i++){var a=ac[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[db[e]]()}}function Jg(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 pb(r){var t=Jv[r];return t==null&&jv<=32&&(t=Jv[r]=jv++),t}function af(r){var t=r.type;return t===qi||t===No||t===Ki}function oc(r){var t=r.type;return t===wn||t===Bo}function gb(r){var t=Ug(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 Gn=Dn.CMD,yb=[[],[],[]],sc=Math.sqrt,mb=Math.atan2;function _b(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=Gn.M,h=Gn.C,c=Gn.L,v=Gn.R,d=Gn.A,g=Gn.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var p=t[4],y=t[5],m=sc(t[0]*t[0]+t[1]*t[1]),_=sc(t[2]*t[2]+t[3]*t[3]),S=mb(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=p,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Kt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Kt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=yb[l];b[0]=e[o++],b[1]=e[o++],Kt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Hl=Math.sqrt,Qa=Math.sin,ja=Math.cos,Ci=Math.PI;function lc(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function of(r,t){return(r[0]*t[0]+r[1]*t[1])/(lc(r)*lc(t))}function uc(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(of(r,t))}function fc(r,t,e,n,i,a,o,s,l,u,f){var h=l*(Ci/180),c=ja(h)*(r-e)/2+Qa(h)*(t-n)/2,v=-1*Qa(h)*(r-e)/2+ja(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Hl(d),s*=Hl(d));var g=(i===a?-1:1)*Hl((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+ja(h)*p-Qa(h)*y,_=(t+n)/2+Qa(h)*p+ja(h)*y,S=uc([1,0],[(c-p)/o,(v-y)/s]),b=[(c-p)/o,(v-y)/s],w=[(-1*c-p)/o,(-1*v-y)/s],x=uc(b,w);if(of(b,w)<=-1&&(x=Ci),of(b,w)>=1&&(x=0),x<0){var T=Math.round(x/Ci*1e6)/1e6;x=Ci*2+T%2*Ci}f.addData(u,m,_,o,s,S,x,h,a)}var Sb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bb(r){var t=new Dn;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Dn.CMD,l=r.match(Sb);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(wb)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=e,M=n,C=void 0,D=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),i=e,a=n,h="l";break;case"M":e=v[p++],n=v[p++],c=s.M,t.addData(c,e,n),i=e,a=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":y=e,m=n,C=t.len(),D=t.data,o===s.C&&(y+=e-D[C-4],m+=n-D[C-3]),c=s.C,T=v[p++],M=v[p++],e=v[p++],n=v[p++],t.addData(c,y,m,T,M,e,n);break;case"s":y=e,m=n,C=t.len(),D=t.data,o===s.C&&(y+=e-D[C-4],m+=n-D[C-3]),c=s.C,T=e+v[p++],M=n+v[p++],e+=v[p++],n+=v[p++],t.addData(c,y,m,T,M,e,n);break;case"Q":T=v[p++],M=v[p++],e=v[p++],n=v[p++],c=s.Q,t.addData(c,T,M,e,n);break;case"q":T=v[p++]+e,M=v[p++]+n,e+=v[p++],n+=v[p++],c=s.Q,t.addData(c,T,M,e,n);break;case"T":y=e,m=n,C=t.len(),D=t.data,o===s.Q&&(y+=e-D[C-4],m+=n-D[C-3]),e=v[p++],n=v[p++],c=s.Q,t.addData(c,y,m,e,n);break;case"t":y=e,m=n,C=t.len(),D=t.data,o===s.Q&&(y+=e-D[C-4],m+=n-D[C-3]),e+=v[p++],n+=v[p++],c=s.Q,t.addData(c,y,m,e,n);break;case"A":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],T=e,M=n,e=v[p++],n=v[p++],c=s.A,fc(T,M,e,n,w,x,_,S,b,c,t);break;case"a":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],T=e,M=n,e+=v[p++],n+=v[p++],c=s.A,fc(T,M,e,n,w,x,_,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=i,n=a),o=c}return t.toStatic(),t}var ty=(function(r){yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(vt);function ey(r){return r.setData!=null}function ry(r,t){var e=bb(r),n=z({},t);return n.buildPath=function(i){if(ey(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){_b(e,i),this.dirtyShape()},n}function xb(r,t){return new ty(ry(r,t))}function Tb(r,t){var e=ry(r,t),n=(function(i){yt(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(ty);return n}function Cb(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new vt(t);return o.createPathProxy(),o.buildPath=function(s){if(ey(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var Db=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),La=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Db},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})(vt);La.prototype.type="circle";var Mb=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),ks=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Mb},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t})(vt);ks.prototype.type="ellipse";var ny=Math.PI,Wl=ny*2,nn=Math.sin,Vn=Math.cos,Ab=Math.acos,Ft=Math.atan2,hc=Math.abs,Qi=Math.sqrt,Hi=Math.max,We=Math.min,Ae=1e-4;function Lb(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<Ae))return c=(f*(t-a)-h*(r-i))/c,[r+c*l,t+c*u]}function Ja(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/Qi(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,y=(v+g)/2,m=d-c,_=g-v,S=m*m+_*_,b=i-a,w=c*g-d*v,x=(_<0?-1:1)*Qi(Hi(0,b*b*S-w*w)),T=(w*_-m*x)/S,M=(-w*m-_*x)/S,C=(w*_+m*x)/S,D=(-w*m+_*x)/S,L=T-p,P=M-y,I=C-p,R=D-y;return L*L+P*P>I*I+R*R&&(T=C,M=D),{cx:T,cy:M,x0:-f,y0:-h,x1:T*(i/b-1),y1:M*(i/b-1)}}function Pb(r){var t;if(H(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 Ib(r,t){var e,n=Hi(t.r,0),i=Hi(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=hc(u-l),d=v>Wl&&v%Wl;if(d>Ae&&(v=d),!(n>Ae))r.moveTo(f,h);else if(v>Wl-Ae)r.moveTo(f+n*Vn(l),h+n*nn(l)),r.arc(f,h,n,l,u,!c),i>Ae&&(r.moveTo(f+i*Vn(u),h+i*nn(u)),r.arc(f,h,i,u,l,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=void 0,M=void 0,C=void 0,D=void 0,L=void 0,P=void 0,I=void 0,R=n*Vn(l),E=n*nn(l),B=i*Vn(u),k=i*nn(u),O=v>Ae;if(O){var G=t.cornerRadius;G&&(e=Pb(G),g=e[0],p=e[1],y=e[2],m=e[3]);var V=hc(n-i)/2;if(_=We(V,y),S=We(V,m),b=We(V,g),w=We(V,p),M=x=Hi(_,S),C=T=Hi(b,w),(x>Ae||T>Ae)&&(D=n*Vn(u),L=n*nn(u),P=i*Vn(l),I=i*nn(l),v<ny)){var N=Lb(R,E,P,I,D,L,B,k);if(N){var F=R-N[0],U=E-N[1],Z=D-N[0],dt=L-N[1],Et=1/nn(Ab((F*Z+U*dt)/(Qi(F*F+U*U)*Qi(Z*Z+dt*dt)))/2),wt=Qi(N[0]*N[0]+N[1]*N[1]);M=We(x,(n-wt)/(Et+1)),C=We(T,(i-wt)/(Et-1))}}}if(!O)r.moveTo(f+R,h+E);else if(M>Ae){var kt=We(y,M),Tt=We(m,M),Q=Ja(P,I,R,E,n,kt,c),nt=Ja(D,L,B,k,n,Tt,c);r.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),M<x&&kt===Tt?r.arc(f+Q.cx,h+Q.cy,M,Ft(Q.y0,Q.x0),Ft(nt.y0,nt.x0),!c):(kt>0&&r.arc(f+Q.cx,h+Q.cy,kt,Ft(Q.y0,Q.x0),Ft(Q.y1,Q.x1),!c),r.arc(f,h,n,Ft(Q.cy+Q.y1,Q.cx+Q.x1),Ft(nt.cy+nt.y1,nt.cx+nt.x1),!c),Tt>0&&r.arc(f+nt.cx,h+nt.cy,Tt,Ft(nt.y1,nt.x1),Ft(nt.y0,nt.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,l,u,!c);if(!(i>Ae)||!O)r.lineTo(f+B,h+k);else if(C>Ae){var kt=We(g,C),Tt=We(p,C),Q=Ja(B,k,D,L,i,-Tt,c),nt=Ja(R,E,P,I,i,-kt,c);r.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C<T&&kt===Tt?r.arc(f+Q.cx,h+Q.cy,C,Ft(Q.y0,Q.x0),Ft(nt.y0,nt.x0),!c):(Tt>0&&r.arc(f+Q.cx,h+Q.cy,Tt,Ft(Q.y0,Q.x0),Ft(Q.y1,Q.x1),!c),r.arc(f,h,i,Ft(Q.cy+Q.y1,Q.cx+Q.x1),Ft(nt.cy+nt.y1,nt.cx+nt.x1),c),kt>0&&r.arc(f+nt.cx,h+nt.cy,kt,Ft(nt.y1,nt.x1),Ft(nt.y0,nt.x0),!c))}else r.lineTo(f+B,h+k),r.arc(f,h,i,u,l,c)}r.closePath()}}}var Rb=(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})(),Be=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Rb},t.prototype.buildPath=function(e,n){Ib(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(vt);Be.prototype.type="sector";var Eb=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Os=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Eb},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t})(vt);Os.prototype.type="ring";function kb(r,t,e,n){var i=[],a=[],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++)Ar(f,f,r[c]),Lr(h,h,r[c]);Ar(f,f,n[0]),Lr(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){i.push(qp(r[c]));continue}else l=r[c-1],u=r[c+1];Kp(a,u,l),Mo(a,a,t);var g=$o(d,l),p=$o(d,u),y=g+p;y!==0&&(g/=y,p/=y),Mo(o,a,-g),Mo(s,a,p);var m=Ru([],d,o),_=Ru([],d,s);n&&(Lr(m,m,f),Ar(m,m,h),Lr(_,_,f),Ar(_,_,h)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function iy(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=kb(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var Ob=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Bs=(function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ob},t.prototype.buildPath=function(e,n){iy(e,n,!0)},t})(vt);Bs.prototype.type="polygon";var Bb=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),vi=(function(r){yt(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 Bb},t.prototype.buildPath=function(e,n){iy(e,n,!1)},t})(vt);vi.prototype.type="polyline";var Nb={},Fb=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Ne=(function(r){yt(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 Fb},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=Hg(Nb,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(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})(vt);Ne.prototype.type="line";var ee=[],zb=(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 vc(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Sv:Nt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Sv:Nt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?wv:ne)(r.x1,r.cpx1,r.x2,t),(e?wv:ne)(r.y1,r.cpy1,r.y2,t)]}var Ns=(function(r){yt(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 zb},t.prototype.buildPath=function(e,n){var i=n.x1,a=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(i,a),f==null||h==null?(c<1&&(jo(i,l,o,c,ee),l=ee[1],o=ee[2],jo(a,u,s,c,ee),u=ee[1],s=ee[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(Qo(i,l,f,o,c,ee),l=ee[1],f=ee[2],o=ee[3],Qo(a,u,h,s,c,ee),u=ee[1],h=ee[2],s=ee[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return vc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=vc(this.shape,e,!0);return Qp(n,n)},t})(vt);Ns.prototype.type="bezier-curve";var Gb=(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})(),Pa=(function(r){yt(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 Gb},t.prototype.buildPath=function(e,n){var i=n.cx,a=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+i,h*o+a),e.arc(i,a,o,s,l,!u)},t})(vt);Pa.prototype.type="arc";var ay=(function(r){yt(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(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].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),vt.prototype.getBoundingRect.call(this)},t})(vt),oy=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),vh=(function(r){yt(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(oy),sy=(function(r){yt(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(oy),an=[0,0],on=[0,0],to=new J,eo=new J,os=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new J;for(var n=0;n<2;n++)this._axes[n]=new J;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);J.sub(i[0],n[1],n[0]),J.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return to.set(1/0,1/0),eo.set(0,0),!this._intersectCheckOneSide(this,t,to,eo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,to,eo,i,-1)&&(n=!1,i)||i||J.copy(e,n?to:eo),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,an),this._getProjMinMaxOnAxis(l,e._corners,on),an[1]<on[0]||an[0]>on[1]){if(s=!1,a)return s;var f=Math.abs(on[0]-an[1]),h=Math.abs(an[0]-on[1]);Math.min(f,h)>i.len()&&(f<h?J.scale(i,u,-f*o):J.scale(i,u,h*o))}else if(n){var f=Math.abs(on[0]-an[1]),h=Math.abs(an[0]-on[1]);Math.min(f,h)<n.len()&&(f<h?J.scale(n,u,f*o):J.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r})(),Vb=[],ly=(function(r){yt(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 i=0;i<e.length;i++)this.addDisplayable(e[i],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 ot(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(Vb)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[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})(Aa),Hb=Mt();function Wb(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=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=et(n.duration,200),f=et(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),j(h)&&(h=h(e,i)),j(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function ch(r,t,e,n,i,a,o){var s=!1,l;j(i)?(o=a,a=i,i=null):X(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Wb(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):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:a,force:!!a||!!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),a&&a()}function It(r,t,e,n,i,a){ch("update",r,t,e,n,i,a)}function Wt(r,t,e,n,i,a){ch("enter",r,t,e,n,i,a)}function ji(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 ss(r,t,e,n,i,a){ji(r)||ch("leave",r,t,e,n,i,a)}function cc(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),ss(r,{style:{opacity:0}},t,e,n)}function ls(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||cc(i,t,e,n)}):cc(r,t,e,n)}function dh(r){Hb(r).oldStyle=r.style}var us=Math.max,fs=Math.min,sf={};function uy(r){return vt.extend(r)}var Ub=Tb;function fy(r,t){return Ub(r,t)}function Te(r,t){sf[r]=t}function hy(r){if(sf.hasOwnProperty(r))return sf[r]}function Fs(r,t,e,n){var i=xb(r,t);return e&&(n==="center"&&(e=vy(e,i.getBoundingRect())),gh(i,e)),i}function ph(r,t,e){var n=new Je({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(vy(t,a))}}});return n}function vy(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var cy=Cb;function gh(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function va(r,t){return Hg(r,r,{lineWidth:t}),r}function Yb(r){return Wg(r.shape,r.shape,r.style),r}var $b=pn;function dy(r,t){for(var e=xa([]);r&&r!==t;)Br(e,r.getLocalTransform(),e),r=r.parent;return e}function yh(r,t,e){return t&&!jt(t)&&(t=Jf.getLocalTransform(t)),e&&(t=Ta([],t)),Kt([],r,t)}function Xb(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=yh(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function dc(r){return!r.isGroup}function Zb(r){return r.shape!=null}function py(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){dc(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Zb(o)&&(s.shape=z({},o.shape)),s}var a=n(r);t.traverse(function(o){if(dc(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),It(o,l,e,st(o).dataIndex)}}})}function gy(r,t){return $(r,function(e){var n=e[0];n=us(n,t.x),n=fs(n,t.x+t.width);var i=e[1];return i=us(i,t.y),i=fs(i,t.y+t.height),[n,i]})}function yy(r,t){var e=us(r.x,t.x),n=fs(r.x+r.width,t.x+t.width),i=us(r.y,t.y),a=fs(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function zs(r,t,e){var n=z({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),lt(i,e),new Je(n)):Fs(r.replace("path://",""),n,e,"center")}function qb(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(my(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function my(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=Ul(f,h,l,u);if(Kb(c))return!1;var v=r-i,d=t-a,g=Ul(v,d,l,u)/c;if(g<0||g>1)return!1;var p=Ul(v,d,f,h)/c;return!(p<0||p>1)}function Ul(r,t,e,n){return r*n-e*t}function Kb(r){return r<=1e-6&&r>=-1e-6}function Gs(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=Y(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&A(_t(l),function(f){Gr(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=st(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:lt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function pc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Vs(r,t){if(r)if(H(r))for(var e=0;e<r.length;e++)pc(r[e],t);else pc(r,t)}Te("circle",La);Te("ellipse",ks);Te("sector",Be);Te("ring",Os);Te("polygon",Bs);Te("polyline",vi);Te("rect",Lt);Te("line",Ne);Te("bezierCurve",Ns);Te("arc",Pa);const Qb=Object.freeze(Object.defineProperty({__proto__:null,Arc:Pa,BezierCurve:Ns,BoundingRect:ot,Circle:La,CompoundPath:ay,Ellipse:ks,Group:Pt,Image:Je,IncrementalDisplayable:ly,Line:Ne,LinearGradient:vh,OrientedBoundingRect:os,Path:vt,Point:J,Polygon:Bs,Polyline:vi,RadialGradient:sy,Rect:Lt,Ring:Os,Sector:Be,Text:Dt,applyTransform:yh,clipPointsByRect:gy,clipRectByRect:yy,createIcon:zs,extendPath:fy,extendShape:uy,getShapeClass:hy,getTransform:dy,groupTransition:py,initProps:Wt,isElementRemoved:ji,lineLineIntersect:my,linePolygonIntersect:qb,makeImage:ph,makePath:Fs,mergePath:cy,registerShape:Te,removeElement:ss,removeElementWithFadeOut:ls,resizePath:gh,setTooltipConfig:Gs,subPixelOptimize:$b,subPixelOptimizeLine:va,subPixelOptimizeRect:Yb,transformDirection:Xb,traverseElements:Vs,updateProps:It},Symbol.toStringTag,{value:"Module"}));var Hs={};function _y(r,t){for(var e=0;e<be.length;e++){var n=be[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function lf(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=j(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<be.length;u++){var f=be[u],h=t[f];l[f]=et(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Ia(r,t,e,n){e=e||Hs;for(var i=r instanceof Dt,a=!1,o=0;o<rs.length;o++){var s=t[rs[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new Dt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=lf(e,t),f=t.normal,h=!!f.getShallow("show"),c=ke(f,n&&n.normal,e,!1,!i);c.text=u.normal,i||r.setTextConfig(gc(f,e,!1));for(var o=0;o<be.length;o++){var v=be[o],s=t[v];if(s){var d=l.ensureState(v),g=!!et(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=ke(s,n&&n[v],e,!0,!i),d.style.text=u[v],!i){var p=r.ensureState(v);p.textConfig=gc(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&&(Ea(l).setLabelText=function(y){var m=lf(e,t,y);_y(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ra(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<be.length;n++){var i=be[n];e[i]=r.getModel([i,t])}return e}function ke(r,t,e,n,i){var a={};return jb(a,r,e,n,i),t&&z(a,t),a}function gc(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=et(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function jb(r,t,e,n,i){e=e||Hs;var a=t.ecModel,o=a&&a.option.textStyle,s=Jb(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Sc(l[u]={},f,o,e,n,i,!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),Sc(r,t,o,e,n,i,!0,!1)}function Jb(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Hs).rich;if(e){t=t||{};for(var n=_t(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var yc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],mc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_c=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Sc(r,t,e,n,i,a,o,s){e=!i&&e||Hs;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=et(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=et(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=et(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=et(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var g=0;g<yc.length;g++){var p=yc[g],y=et(t.getShallow(p),e[p]);y!=null&&(r[p]=y)}for(var g=0;g<mc.length;g++){var p=mc[g],y=t.getShallow(p);y!=null&&(r[p]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var g=0;g<_c.length;g++){var p=_c[g],y=t.getShallow(p);y!=null&&(r[p]=y)}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 tx(r,t){var e=t&&t.getModel("textStyle");return Re([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 Ea=Mt();function Sy(r,t,e,n){if(r){var i=Ea(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function ex(r,t,e,n,i){var a=Ea(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=et(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var h=Rg(e,a.precision,s,l,f);a.interpolatedValue=f===1?null:h;var c=lf({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);_y(r,c)}r.percent=0,(a.prevValue==null?Wt:It)(r,{percent:1},n,t,null,u)}var rx=["textStyle","color"],Yl=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$l=new Dt,nx=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(rx):null)},r.prototype.getFont=function(){return tx({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<Yl.length;n++)e[Yl[n]]=this.getShallow(Yl[n]);return $l.useStyle(e),$l.update(),$l.getBoundingRect()},r})(),wy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ix=ha(wy),ax=(function(){function r(){}return r.prototype.getLineStyle=function(t){return ix(this,t)},r})(),by=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ox=ha(by),sx=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return ox(this,t,e)},r})(),mt=(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){at(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,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,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(it(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(!K.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 i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r})();oh(mt);aw(mt);xe(mt,ax);xe(mt,sx);xe(mt,fw);xe(mt,nx);var lx=Math.round(Math.random()*10);function Ws(r){return[r||"",lx++].join("_")}function ux(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=Xe(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=Xe(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function fx(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(A(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,g?y:p)}A(c,function(){var m="";throw new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,p(m)}};function e(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){ht(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);ht(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){ht(o,l)>=0&&s.push(l)}),s}}function xy(r,t){return at(at({},r,!0),t,!0)}const hx={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:". "}}}},vx={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 hs="ZH",mh="EN",ri=mh,Fo={},_h={},Ty=K.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ri).toUpperCase();return r.indexOf(hs)>-1?hs:ri})():ri;function Sh(r,t){r=r.toUpperCase(),_h[r]=new mt(t),Fo[r]=t}function cx(r){if(Y(r)){var t=Fo[r.toUpperCase()]||{};return r===hs||r===mh?it(t):at(it(t),it(Fo[ri]),!1)}else return at(it(r),it(Fo[ri]),!1)}function dx(r){return _h[r]}function px(){return _h[ri]}Sh(mh,hx);Sh(hs,vx);var wh=1e3,bh=wh*60,Ji=bh*60,Se=Ji*24,wc=Se*365,Wi={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}"},ro="{yyyy}-{MM}-{dd}",bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:ro,hour:ro+" "+Wi.hour,minute:ro+" "+Wi.minute,second:ro+" "+Wi.second,millisecond:Wi.none},Xl=["year","month","day","hour","minute","second","millisecond"],Cy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $t(r,t){return r+="","0000".substr(0,t-r.length)+r}function ni(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 gx(r){return r===ni(r)}function yx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ka(r,t,e,n){var i=we(r),a=i[xh(e)](),o=i[ii(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[Us(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[ca(e)](),h=(f-1)%12+1,c=i[Ys(e)](),v=i[$s(e)](),d=i[Xs(e)](),g=f>=12?"pm":"am",p=g.toUpperCase(),y=n instanceof mt?n:dx(n||Ty)||px(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,$t(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,$t(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$t(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$t(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,$t(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,$t(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,$t(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,$t(d,3)).replace(/{S}/g,d+"")}function mx(r,t,e,n,i){var a=null;if(Y(e))a=e;else if(j(e))a=e(r.value,t,{level:r.level});else{var o=z({},Wi);if(r.level>0)for(var s=0;s<Xl.length;++s)o[Xl[s]]="{primary|"+o[Xl[s]]+"}";var l=e?e.inherit===!1?e:lt(e,o):o,u=Dy(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=Cy.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(H(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return ka(new Date(r.value),a,i,n)}function Dy(r,t){var e=we(r),n=e[ii(t)]()+1,i=e[Us(t)](),a=e[ca(t)](),o=e[Ys(t)](),s=e[$s(t)](),l=e[Xs(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function xc(r,t,e){var n=ct(r)?we(r):r;switch(t=t||Dy(r,e),t){case"year":return n[xh(e)]();case"half-year":return n[ii(e)]()>=6?1:0;case"quarter":return Math.floor((n[ii(e)]()+1)/4);case"month":return n[ii(e)]();case"day":return n[Us(e)]();case"half-day":return n[ca(e)]()/24;case"hour":return n[ca(e)]();case"minute":return n[Ys(e)]();case"second":return n[$s(e)]();case"millisecond":return n[Xs(e)]()}}function xh(r){return r?"getUTCFullYear":"getFullYear"}function ii(r){return r?"getUTCMonth":"getMonth"}function Us(r){return r?"getUTCDate":"getDate"}function ca(r){return r?"getUTCHours":"getHours"}function Ys(r){return r?"getUTCMinutes":"getMinutes"}function $s(r){return r?"getUTCSeconds":"getSeconds"}function Xs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function _x(r){return r?"setUTCFullYear":"setFullYear"}function My(r){return r?"setUTCMonth":"setMonth"}function Ay(r){return r?"setUTCDate":"setDate"}function Ly(r){return r?"setUTCHours":"setHours"}function Py(r){return r?"setUTCMinutes":"setMinutes"}function Iy(r){return r?"setUTCSeconds":"setSeconds"}function Ry(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Sx(r,t,e,n,i,a,o,s){var l=new Dt({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Th(r){if(!Dg(r))return Y(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Ch(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 Oa=Yf;function uf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Re(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?we(r):r;if(isNaN(+l)){if(s)return"-"}else return ka(l,n,e)}if(t==="ordinal")return Uo(r)?i(r):ct(r)&&a(r)?r+"":"-";var u=ua(r);return a(u)?Th(u):Uo(r)?i(r):typeof r=="boolean"?r+"":"-"}var Tc=["a","b","c","d","e","f","g"],Zl=function(r,t){return"{"+r+(t??"")+"}"};function Dh(r,t,e){H(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Tc[a];r=r.replace(Zl(o),Zl(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Zl(Tc[l],s),e?Zt(u):u)}return r}function Ey(r,t){var e=Y(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Zt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zt(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function bx(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var n=we(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",$t(o,2)).replace("M",o).replace("yyyy",a).replace("yy",$t(a%100+"",2)).replace("dd",$t(s,2)).replace("d",s).replace("hh",$t(l,2)).replace("h",l).replace("mm",$t(u,2)).replace("m",u).replace("ss",$t(f,2)).replace("s",f).replace("SSS",$t(h,3)),r}function xx(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function An(r,t){return t=t||"transparent",Y(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var zo=A,Tx=["left","right","top","bottom","width","height"],no=[["width","left","right"],["height","top","bottom"]];function Mh(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=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=a+g,v>n||l.newline?(a=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>i||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var ta=Mh;St(Mh,"vertical");St(Mh,"horizontal");function li(r,t,e){e=Oa(e||0);var n=t.width,i=t.height,a=tt(r.left,n),o=tt(r.top,i),s=tt(r.right,n),l=tt(r.bottom,i),u=tt(r.width,n),f=tt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ot(a+e[3],o+e[0],u,f);return d.margin=e,d}function da(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function ui(r,t,e){var n=e&&e.ignoreSize;!H(n)&&(n=[n,n]);var i=o(no[0],0),a=o(no[1],1);u(no[0],r,i),u(no[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(zo(f,function(_){d[_]=r[_]}),zo(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 y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];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){zo(f,function(v){h[v]=c[v]})}}function Zs(r){return Cx({},r)}function Cx(r,t){return t&&r&&zo(Tx,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Dx=Mt(),ut=(function(r){q(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Ws("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=da(this),a=i?Zs(e):{},o=n.getTheme();at(e,o.get(this.mainType)),at(e,this.getDefaultOption()),i&&ui(e,a,i)},t.prototype.mergeOption=function(e,n){at(this.option,e,!0);var i=da(this);i&&ui(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!rw(e))return e.defaultOption;var n=Dx(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=at(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ma(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!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})(mt);kg(ut,mt);As(ut);ux(ut);fx(ut,Mx);function Mx(r){var t=[];return A(ut.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=$(t,function(e){return Xe(e).main}),r!=="dataset"&&ht(t,"dataset")<=0&&t.unshift("dataset"),t}var ky="";typeof navigator<"u"&&(ky=navigator.platform||"");var Hn="rgba(0, 0, 0, 0.2)";const Ax={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Hn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Hn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Hn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Hn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Hn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Hn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ky.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 Oy=rt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ce="original",oe="arrayRows",Fe="objectRows",tr="keyedColumns",Fr="typedArray",By="unknown",vr="column",ci="row",Ot={Must:1,Might:2,Not:3},Ny=Mt();function Lx(r){Ny(r).datasetMap=rt()}function Px(r,t,e){var n={},i=Ah(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=Ny(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(g,p){var y=X(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Ix(r,t,e){var n={},i=Ah(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Fe||a===tr)&&A(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=zy(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Ot.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Ot.Not)&&(f.n=v),y(f)&&c[f.n]!==Ot.Not)return f;p||(g===Ot.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Ah(r){var t=r.get("data",!0);if(!t)return Ma(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ee).models[0]}function Rx(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ma(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ee).models}function Fy(r,t){return zy(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function zy(r,t,e,n,i,a){var o,s=5;if(Jt(r))return Ot.Not;var l,u;if(n){var f=n[a];X(f)?(l=f.name,u=f.type):Y(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ot.Must:Ot.Not;if(t===oe){var h=r;if(e===ci){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Fe){var g=r;if(!l)return Ot.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===tr){var y=r;if(!l)return Ot.Not;var c=y[l];if(!c||Jt(c))return Ot.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===Ce)for(var m=r,v=0;v<m.length&&v<s;v++){var p=m[v],_=Da(p);if(!H(_))return Ot.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=Y(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return w?Ot.Might:Ot.Not;if(w&&b!=="-")return Ot.Must}return Ot.Not}var Ex=rt();function kx(r,t,e){var n=Ex.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var Cc=Mt();Mt();var Lh=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Qt(this.get("color",!0)),a=this.get("colorLayer",!0);return Bx(this,Cc,i,a,t,e,n)},r.prototype.clearColorPalette=function(){Nx(this,Cc)},r})();function Ox(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 Bx(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:Ox(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function Nx(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var io,Di,Dc,Mc="\0_ec_inner",Fx=1,Ph=(function(r){q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new mt(a),this._locale=new mt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Pc(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Pc(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Dc(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=rt(),u=n&&n.replaceMergeMainTypeMap;Lx(this),A(e,function(h,c){h!=null&&(ut.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?it(h):at(i[c],h,!0))}),u&&u.each(function(h,c){ut.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),f,this);function f(h){var c=kx(this,h,Qt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=HS(v,c,d);qS(g,h,ut),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;A(g,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=h==="series",M=ut.getClass(h,S.keyInfo.subType,!T);if(!M)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var C=z({componentIndex:b},S.keyInfo);w=new M(x,this,this,C),z(w,C),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),y.push(w),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&io(this)}this._seriesIndices||io(this)},t.prototype.getOption=function(){var e=it(this.option);return A(e,function(n,i){if(ut.hasClass(i)){for(var a=Qt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!fa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Mc],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 i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(Qt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ac("id",a,s):o!=null?l=Ac("name",o,s):l=At(s,function(u){return!!u}),Lc(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):At(this._componentsMap.get(i),function(u){return!!u});return l(Lc(o,e));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?At(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(j(e)){var o=n,s=e;a.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=Y(e)?a.get(e):X(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=qe(e,null);return At(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return At(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return At(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Di(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){A(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Di(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return A(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Di(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Di(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=rt(i)},t.prototype.restoreData=function(e){io(this);var n=this._componentsMap,i=[];n.each(function(a,o){ut.hasClass(o)&&i.push(o)}),ut.topologicalTravel(i,ut.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!zx(o,e))&&o.restoreData()})})},t.internalField=(function(){io=function(e){var n=e._seriesIndices=[];A(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=rt(n)},Di=function(e){},Dc=function(e,n){e.option={},e.option[Mc]=Fx,e._componentsMap=rt({series:[]}),e._componentsCount=rt();var i=n.aria;X(i)&&i.enabled==null&&(i.enabled=!0),Gx(n,e._theme.option),at(n,Ax,!1),e._mergeOption(n,null)}})(),t})(mt);function zx(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function Gx(r,t){var e=r.color&&!r.colorLayer;A(t,function(n,i){i==="colorLayer"&&e||ut.hasClass(i)||(typeof n=="object"?r[i]=r[i]?at(r[i],n,!1):it(n):r[i]==null&&(r[i]=n))})}function Ac(r,t,e){if(H(t)){var n=rt();return A(t,function(a){if(a!=null){var o=qe(a,null);o!=null&&n.set(a,!0)}}),At(e,function(a){return a&&n.get(a[r])})}else{var i=qe(t,null);return At(e,function(a){return a&&i!=null&&a[r]===i})}}function Lc(r,t){return t.hasOwnProperty("subType")?At(r,function(e){return e&&e.subType===t.subType}):r}function Pc(r){var t=rt();return r&&A(Qt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}xe(Ph,Lh);var Vx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Gy=(function(){function r(t){A(Vx,function(e){this[e]=gt(t[e],t)},this)}return r})(),ql={},qs=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];A(ql,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){A(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){ql[t]=e},r.get=function(t){return ql[t]},r})(),Hx=/^(min|max)?(.+)$/,Wx=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(A(Qt(t.series),function(o){o&&o.data&&Jt(o.data)&&Yo(o.data)}),A(Qt(t.dataset),function(o){o&&o.source&&Jt(o.source)&&Yo(o.source)})),t=it(t);var i=this._optionBackup,a=Ux(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],it(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=it(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Yx(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Xx(o,this._currentMediaIndices)&&(s=$(o,function(f){return it(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r})();function Ux(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&H(u)&&A(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),A(l,function(v){return c(v)}),A(n,function(v){return c(v.option)});function c(v){A(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Yx(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return A(r,function(a,o){var s=o.match(Hx);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();$x(n[u],a,l)||(i=!1)}}),i}function $x(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function Xx(r,t){return r.join(",")===t.join(",")}var De=A,pa=X,Ic=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kl(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Ic.length;e<n;e++){var i=Ic[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?at(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?at(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Ht(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,lt(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function Ui(r){Ht(r,"itemStyle"),Ht(r,"lineStyle"),Ht(r,"areaStyle"),Ht(r,"label"),Ht(r,"labelLine"),Ht(r,"upperLabel"),Ht(r,"edgeLabel")}function Ct(r,t){var e=pa(r)&&r[t],n=pa(e)&&e.textStyle;if(n)for(var i=0,a=Ov.length;i<a;i++){var o=Ov[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function de(r){r&&(Ui(r),Ct(r,"label"),r.emphasis&&Ct(r.emphasis,"label"))}function Zx(r){if(pa(r)){Kl(r),Ui(r),Ct(r,"label"),Ct(r,"upperLabel"),Ct(r,"edgeLabel"),r.emphasis&&(Ct(r.emphasis,"label"),Ct(r.emphasis,"upperLabel"),Ct(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Kl(t),de(t));var e=r.markLine;e&&(Kl(e),de(e));var n=r.markArea;n&&de(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!Jt(a))for(var o=0;o<a.length;o++)de(a[o]);A(r.categories,function(u){Ui(u)})}if(i&&!Jt(i))for(var o=0;o<i.length;o++)de(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)de(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)H(l[o])?(de(l[o][0]),de(l[o][1])):de(l[o]);r.type==="gauge"?(Ct(r,"axisLabel"),Ct(r,"title"),Ct(r,"detail")):r.type==="treemap"?(Ht(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Ui(u)})):r.type==="tree"&&Ui(r.leaves)}}function ar(r){return H(r)?r:r?[r]:[]}function Rc(r){return(H(r)?r[0]:r)||{}}function qx(r,t){De(ar(r.series),function(n){pa(n)&&Zx(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),De(e,function(n){De(ar(r[n]),function(i){i&&(Ct(i,"axisLabel"),Ct(i.axisPointer,"label"))})}),De(ar(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Ct(i,"axisLabel"),Ct(i&&i.axisPointer,"label")}),De(ar(r.calendar),function(n){Ht(n,"itemStyle"),Ct(n,"dayLabel"),Ct(n,"monthLabel"),Ct(n,"yearLabel")}),De(ar(r.radar),function(n){Ct(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)}),De(ar(r.geo),function(n){pa(n)&&(de(n),De(ar(n.regions),function(i){de(i)}))}),De(ar(r.timeline),function(n){de(n),Ht(n,"label"),Ht(n,"itemStyle"),Ht(n,"controlStyle",!0);var i=n.data;H(i)&&A(i,function(a){X(a)&&(Ht(a,"label"),Ht(a,"itemStyle"))})}),De(ar(r.toolbox),function(n){Ht(n,"iconStyle"),De(n.feature,function(i){Ht(i,"iconStyle")})}),Ct(Rc(r.axisPointer),"label"),Ct(Rc(r.tooltip).axisPointer,"label")}function Kx(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function Qx(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=e)}function Ec(r){r&&A(jx,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var jx=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Jx=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ql=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Mi(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Ql.length;e++){var n=Ql[e][1],i=Ql[e][0];t[n]!=null&&(t[i]=t[n])}}function kc(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Oc(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function tT(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Vy(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Vy(r[e].children,t)}function Hy(r,t){qx(r,t),r.series=Qt(r.series),A(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),kc(e.label);var i=e.data;if(i&&!Jt(i))for(var a=0;a<i.length;a++)kc(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=Kx(e,"pointer.color");o!=null&&Qx(e,"itemStyle.color",o)}else if(n==="bar"){Mi(e),Mi(e.backgroundStyle),Mi(e.emphasis);var i=e.data;if(i&&!Jt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Mi(i[a]),Mi(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Oc(e),Vy(e.data,Oc)}else n==="graph"||n==="sankey"?tT(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&lt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Ec(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(Jx,function(e){var n=r[e];n&&(H(n)||(n=[n]),A(n,function(i){Ec(i)}))})}function eT(r){var t=rt();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(rT)}function rT(r){A(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;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 y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=OS(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Ks=(function(){function r(t){this.data=t.data||(t.sourceFormat===tr?{}:[]),this.sourceFormat=t.sourceFormat||By,this.seriesLayoutBy=t.seriesLayoutBy||vr,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 i=e[n];i.type==null&&Fy(this,n)===Ot.Must&&(i.type="ordinal")}}return r})();function Ih(r){return r instanceof Ks}function ff(r,t,e){e=e||Uy(r);var n=t.seriesLayoutBy,i=iT(r,e,n,t.sourceHeader,t.dimensions),a=new Ks({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:it(t)});return a}function Wy(r){return new Ks({data:r,sourceFormat:Jt(r)?Fr:Ce})}function nT(r){return new Ks({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:it(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Uy(r){var t=By;if(Jt(r))t=Fr;else if(H(r)){r.length===0&&(t=oe);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(H(i)||Jt(i)){t=oe;break}else if(X(i)){t=Fe;break}}}}else if(X(r)){for(var a in r)if(Gr(r,a)&&jt(r[a])){t=tr;break}}return t}function iT(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:Bc(i),startIndex:o,dimensionsDetectedCount:a};if(t===oe){var s=r;n==="auto"||n==null?Nc(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},e,s,10):o=ct(n)?n:n?1:0,!i&&o===1&&(i=[],Nc(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===ci?s.length:s[0]?s[0].length:null}else if(t===Fe)i||(i=aT(r));else if(t===tr)i||(i=[],A(r,function(u,f){i.push(f)}));else if(t===Ce){var l=Da(r[0]);a=H(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Bc(i),dimensionsDetectedCount:a}}function aT(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return _t(e)}function Bc(r){if(r){var t=rt();return $(r,function(e,n){e=X(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Nc(r,t,e,n){if(t===ci)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function Yy(r){var t=r.sourceFormat;return t===Fe||t===tr}var sn,ln,un,Fc,zc,$y=(function(){function r(t,e){var n=Ih(t)?t:Wy(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Fr&&(this._offset=0,this._dimSize=e,this._data=i),zc(this,i,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;zc=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Fc[Rh(u,f)];if(z(o,v),u===Fr)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=Xy(u,f);o.getItem=gt(d,null,s,h,c);var g=Zy(u,f);o.count=gt(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,y=l[c],m=0;m<p;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Fc=(t={},t[oe+"_"+vr]={pure:!0,appendData:a},t[oe+"_"+ci]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Fe]={pure:!0,appendData:a},t[tr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Ce]={appendData:a},t[Fr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Gc=function(r,t,e,n){return r[n]},oT=(sn={},sn[oe+"_"+vr]=function(r,t,e,n){return r[n+t]},sn[oe+"_"+ci]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},sn[Fe]=Gc,sn[tr]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[n]:null}return a},sn[Ce]=Gc,sn);function Xy(r,t){var e=oT[Rh(r,t)];return e}var Vc=function(r,t,e){return r.length},sT=(ln={},ln[oe+"_"+vr]=function(r,t,e){return Math.max(0,r.length-t)},ln[oe+"_"+ci]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},ln[Fe]=Vc,ln[tr]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},ln[Ce]=Vc,ln);function Zy(r,t){var e=sT[Rh(r,t)];return e}var jl=function(r,t,e){return r[t]},lT=(un={},un[oe]=jl,un[Fe]=function(r,t,e){return r[e]},un[tr]=jl,un[Ce]=function(r,t,e){var n=Da(r);return n instanceof Array?n[t]:n},un[Fr]=jl,un);function qy(r){var t=lT[r];return t}function Rh(r,t){return r===oe?r+"_"+t:r}function fi(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return qy(a)(n,o,s)}else{var l=n;return a===Ce&&(l=Da(n)),l}}}}var uT=/\{@(.+?)\}/g,fT=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=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:a,data:s,dataType:e,value:i,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,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&H(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(j(a))return l.status=e,l.dimensionIndex=i,a(l);if(Y(a)){var f=Dh(a,l);return f.replace(uT,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=fi(s,t,d);if(o&&H(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return fi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r})();function Hc(r){var t,e;return X(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ea(r){return new hT(r)}var hT=(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 i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=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)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="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(H(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 y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){Wc.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Wc.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),H(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.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})(),Wc=(function(){var r,t,e,n,i,a={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}})();function Go(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ct(r)&&r!=null&&r!=="-"&&(r=+we(r)),r==null||r===""?NaN:Number(r))}rt({number:function(r){return parseFloat(r)},time:function(r){return+we(r)},trim:function(r){return Y(r)?Re(r):r}});var vT=(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=ct(t)?t:ua(t),i=ct(e)?e:ua(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Y(t),l=Y(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r})(),cT=(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 Go(t,e)},r})();function dT(r,t){var e=new cT,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==vr&&ie(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";Gr(l,y)&&ie(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Xy(i,vr);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(n,a,s,g)},e.getRawData=gt(pT,null,r)),e.cloneRawData=gt(gT,null,r);var c=Zy(i,vr);e.count=gt(c,null,n,a,s);var v=qy(i);e.retrieveValue=function(g,p){var y=h(n,a,s,g);return d(y,p)};var d=e.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return v(g,p,y.name)}};return e.getDimensionInfo=gt(yT,null,s,l),e.cloneAllDimensionInfo=gt(mT,null,s),e}function pT(r){var t=r.sourceFormat;if(!Eh(t)){var e="";ie(e)}return r.data}function gT(r){var t=r.sourceFormat,e=r.data;if(!Eh(t)){var n="";ie(n)}if(t===oe){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===Fe){for(var i=[],a=0,o=e.length;a<o;a++)i.push(z({},e[a]));return i}}function yT(r,t,e){if(e!=null){if(ct(e)||!isNaN(e)&&!Gr(t,e))return r[e];if(Gr(t,e))return t[e]}}function mT(r){return it(r)}var Ky=rt();function _T(r){r=it(r);var t=r.type,e="";t||ie(e);var n=t.split(":");n.length!==2&&ie(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,Ky.set(t,r)}function ST(r,t,e){var n=Qt(r),i=n.length,a="";i||ie(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=wT(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function wT(r,t,e,n){var i="";t.length||ie(i),X(r)||ie(i);var a=r.type,o=Ky.get(a);o||ie(i);var s=$(t,function(u){return dT(u,o)}),l=Qt(o.transform({upstream:s[0],upstreamList:s,config:it(r.config)}));return $(l,function(u,f){var h="";X(u)||ie(h),u.data||ie(h);var c=Uy(u.data);Eh(c)||ie(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:vr,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:vr,sourceHeader:0,dimensions:u.dimensions};return ff(u.data,v,null)})}function Eh(r){return r===oe||r===Fe}var Qs="undefined",bT=typeof Uint32Array===Qs?Array:Uint32Array,xT=typeof Uint16Array===Qs?Array:Uint16Array,Qy=typeof Int32Array===Qs?Array:Int32Array,Uc=typeof Float64Array===Qs?Array:Float64Array,jy={float:Uc,int:Qy,ordinal:Array,number:Array,time:Uc},Jl;function Wn(r){return r>65535?bT:xT}function Un(){return[1/0,-1/0]}function TT(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Yc(r,t,e,n,i){var a=jy[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var hf=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=rt()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Jl[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Yy(i),this._dimensions=$(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,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new jy[e||"float"](this._rawCount),this._rawExtent[a]=Un(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Un());for(var l=a[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]))}i.ordinalMeta=e,i.ordinalOffset=s,i.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 i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];Yc(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],g=Jl.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 i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Un()),Yc(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(c,u[d],v,d);g[v]=p;var y=l[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.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=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],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 i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/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 i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)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-a[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,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=Wn(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Wn(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,c=0;c<i;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<i&&(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 i=_t(t),a=i.length;if(!a)return this;var o=e.count(),s=Wn(e._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var g=0;if(a===1){for(var p=v[i[0]],y=0;y<n;y++){var m=p[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],b=t[i[1]][1],y=0;y<n;y++){var m=p[y],w=_[y];(m>=h&&m<=c||isNaN(m))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var x=e.getRawIndex(y),m=v[i[0]][x];(m>=h&&m<=c||isNaN(m))&&(l[u++]=x)}else for(var y=0;y<o;y++){for(var T=!0,x=e.getRawIndex(y),M=0;M<a;M++){var C=i[M],m=v[C][x];(m<t[C][0]||m>t[C][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}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 i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Un();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=i[e[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=e[f],p=d[f],y=u[g],m=i[g];m&&(m[c]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(Wn(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),y=(p+g)/2,m=0,_=g;_<p;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(m+=b)}m/=p-g;var w=d,x=Math.min(d+l,o),T=d-1,M=a[u];f=-1,c=w;for(var C=-1,D=0,_=w;_<x;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){D++,C<0&&(C=S);continue}h=Math.abs((T-y)*(b-M)-(T-_)*(m-M)),h>f&&(f=h,c=S)}D>0&&D<x-w&&(v[s++]=Math.min(C,c),c=Math.max(C,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.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/e),o=i[t],s=this.count(),l=new(Wn(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var y=this.getRawIndex(f+p),m=o[y];m<c&&(c=m,h=f+p),m>d&&(d=m,v=f+p)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=Un(),c=new(Wn(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 y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Un();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)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<i;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=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&Ke(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?TT(i[o]):i[o];else n._chunks=i;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=it(this._extent),t._rawExtent=it(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 i=0;i<n;i++)e[i]=this._indices[i]}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,i,a){return Go(e[a],this._dimensions[a])}Jl={arrayRows:t,objectRows:function(e,n,i,a){return Go(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return Go(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}})(),r})(),CT=(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,i,a;if(ao(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,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Jt(s)?Fr:Ce,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=et(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=et(h.sourceHeader,c.sourceHeader),g=et(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[ff(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[ff(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&$c(a)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&$c(h),s.push(f),l.push(u._getVersionSign())}),n?o=ST(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[nT(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 i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];ao(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new hf,s.initData(new $y(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ao(t)){var e=Ah(t);return e?[e.getSourceManager()]:[]}else return $(Rx(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(ao(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r})();function ao(r){return r.mainType==="series"}function $c(r){throw new Error(r)}var DT="line-height:1";function Jy(r){var t=r.lineHeight;return t==null?DT:"line-height:"+Zt(t+"")+"px"}function tm(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Zt(n+"")+"px;color:"+Zt(e)+";font-weight:"+Zt(i+""),valueStyle:"font-size:"+Zt(o+"")+"px;color:"+Zt(a)+";font-weight:"+Zt(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var MT=[0,10,20,30],AT=["",`
`,`
`,`
`];function ga(r,t){return t.type=r,t}function vf(r){return r.type==="section"}function em(r){return vf(r)?LT:PT}function rm(r){if(vf(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return A(r.blocks,function(i){var a=rm(i);a>=t&&(t=a+ +(n&&(!a||vf(i)&&!i.noHeader)))}),t}return 0}function LT(r,t,e,n){var i=t.noHeader,a=IT(rm(t)),o=[],s=t.blocks||[];Qe(!s||H(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Gr(u,l)){var f=new vT(u[l],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(g,p){var y=t.valueFormatter,m=em(g)(y?z(z({},r),{valueFormatter:y}):r,g,p>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):cf(n,o.join(""),i?e:a.html);if(i)return h;var c=uf(t.header,"ordinal",r.useUTC),v=tm(n,r.renderMode).nameStyle,d=Jy(n);return r.renderMode==="richText"?nm(r,c,v)+a.richText+h:cf(n,'<div style="'+v+";"+d+';">'+Zt(c)+"</div>"+h,e)}function PT(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=H(S)?S:[S],$(S,function(b,w){return uf(b,H(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":uf(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,y=tm(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":nm(r,c,m))+(o?"":kT(r,d,g,p,_)):cf(n,(s?"":h)+(a?"":RT(c,!s,m))+(o?"":ET(d,g,p,_)),e)}}function Xc(r,t,e,n,i,a){if(r){var o=em(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function IT(r){return{html:MT[r],richText:AT[r]}}function cf(r,t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",a=Jy(r);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function RT(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+Zt(r)+"</span>"}function ET(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=H(r)?r:[r],'<span style="'+a+";"+n+'">'+$(r,function(o){return Zt(o)}).join("&nbsp;&nbsp;")+"</span>"}function nm(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function kT(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(" "):t,a)}function OT(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return An(n)}function im(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var tu=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Mg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=Ey({color:e,type:t,renderMode:n,markerId:i});return Y(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};H(e)?A(e,function(a){return z(n,a)}):z(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r})();function BT(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=H(s),u=OT(t,e),f,h,c,v;if(o>1||l&&!o){var d=NT(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=fi(i,e,a[0]),h=g.type}else v=f=l?s[0]:s;var p=ih(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return ga("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[ga("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Re(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function NT(r,t,e,n,i){var a=t.getData(),o=Ke(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(h){f(fi(a,e,h),h)}):A(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(ga("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sr=Mt();function oo(r,t){return r.getName(t)||r.getId(t)}var FT="__universalTransitionEnabled",te=(function(r){q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ea({count:GT,reset:VT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Sr(this).sourceManager=new CT(this);a.prepareSource();var o=this.getInitialData(e,i);qc(o,this),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,Zc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=da(this),a=i?Zs(e):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),at(e,n.getTheme().get(this.subType)),at(e,this.getDefaultOption()),Ku(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&ui(e,a,i)},t.prototype.mergeOption=function(e,n){e=at(this.option,e,!0),this.fillDataTextStyle(e.data);var i=da(this);i&&ui(this.option,e,i);var a=Sr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);qc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sr(this).dataBeforeProcessed=o,Zc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Jt(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Ku(e[i],"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=df(this);if(n){var i=n.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return Sr(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=df(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Sr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return rt(e)},t.prototype.getSourceManager=function(){return Sr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Sr(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,i){return BT({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(K.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,i){var a=this.ecModel,o=Lh.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),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 i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=oo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=_t(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[oo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[FT])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,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=oo(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=oo(e,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ut.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})(ut);xe(te,fT);xe(te,Lh);kg(te,ut);function Zc(r){var t=r.name;ih(r)||(r.name=zT(r)||t)}function zT(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return A(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function GT(r){return r.model.getRawData().count()}function VT(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),HT}function HT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function qc(r,t){A(Xp(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,St(WT,t))})}function WT(r,t){var e=df(r);return e&&e.setOutputEnd((t||this).count()),t}function df(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var ue=(function(){function r(){this.group=new Pt,this.uid=Ws("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();oh(ue);As(ue);function kh(){var r=Mt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var am=Mt(),UT=kh(),Ut=(function(){function r(){this.group=new Pt,this.uid=Ws("viewChart"),this.renderTask=ea({plan:YT,reset:$T}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Qc(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Qc(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Vs(this.group,t)},r.markUpdateMethod=function(t,e){am(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Kc(r,t,e){r&&nf(r)&&(t==="emphasis"?ns:is)(r,e)}function Qc(r,t,e){var n=Cn(r,t),i=t&&t.highlightKey!=null?pb(t.highlightKey):null;n!=null?A(Qt(n),function(a){Kc(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Kc(a,e,i)})}oh(Ut);As(Ut);function YT(r){return UT(r.model)}function $T(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&am(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),XT[l]}var XT={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)}}},vs="\0__throttleOriginMethod",jc="\0__throttleRate",Jc="\0__throttleType";function js(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=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?i:a)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function om(r,t,e,n){var i=r[t];if(i){var a=i[vs]||i,o=i[Jc],s=i[jc];if(s!==e||o!==n){if(e==null)return r[t]=a;i=r[t]=js(a,e,n==="debounce"),i[vs]=a,i[Jc]=n,i[jc]=e}return i}}function pf(r,t){var e=r[t];e&&e[vs]&&(e.clear&&e.clear(),r[t]=e[vs])}var td=Mt(),ed={itemStyle:ha(by,!0),lineStyle:ha(wy,!0)},ZT={lineStyle:"stroke",itemStyle:"fill"};function sm(r,t){var e=r.visualStyleMapper||ed[t];return e||(console.warn("Unknown style type '"+t+"'."),ed.itemStyle)}function lm(r,t){var e=r.visualDrawType||ZT[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var qT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=sm(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=lm(r,n),u=o[l],f=j(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"||j(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||j(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=z({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},Ai=new mt,KT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=sm(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ai.option=l[n];var u=i(Ai),f=o.ensureUniqueItemVisual(s,"style");z(f,u),Ai.option.decal&&(o.setItemVisual(s,"decal",Ai.option.decal),Ai.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},QT={performRawSeries:!0,overallReset:function(r){var t=rt();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),td(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=td(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=lm(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},so=Math.PI;function jT(r,t){t=t||{},lt(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 Pt,n=new Lt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Dt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Lt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Pa({shape:{startAngle:-so/2,endAngle:-so/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:so*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:so*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.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}),a.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 um=(function(){function r(t,e,n,i){this._stageTaskMap=rt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.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),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=rt();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Qe(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},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,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.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(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(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,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ea({plan:nC,reset:iC,count:oC}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ea({reset:JT});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=rt(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Qe(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(g){var p=g.uid,y=l.set(p,s&&s.get(p)||(c=!0,ea({reset:tC,onDirty:rC})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return j(t)&&(t={overallReset:t,seriesType:sC(t)}),t.uid=Ws("stageHandler"),e&&(t.visualType=e),t},r})();function JT(r){r.overallReset(r.ecModel,r.api,r.payload)}function tC(r){return r.overallProgress&&eC}function eC(){this.agent.dirty(),this.getDownstream().dirty()}function rC(){this.agent&&this.agent.dirty()}function nC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function iC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?$(t,function(e,n){return fm(n)}):aC}var aC=fm(0);function fm(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function oC(r){return r.data.count()}function sC(r){cs=null;try{r(ya,hm)}catch{}return cs}var ya={},hm={},cs;vm(ya,Ph);vm(hm,Gy);ya.eachSeriesByType=ya.eachRawSeriesByType=function(r){cs=r};ya.eachComponent=function(r){r.mainType==="series"&&r.subType&&(cs=r.subType)};function vm(r,t){for(var e in t.prototype)r[e]=qt}var rd=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lC={color:rd,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],rd]};var Gt="#B9B8CE",nd="#100C2A",lo=function(){return{axisLine:{lineStyle:{color:Gt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},id=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],cm={darkMode:!0,color:id,backgroundColor:nd,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Gt},pageTextStyle:{color:Gt}},textStyle:{color:Gt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Gt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Gt},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:Gt}},timeline:{lineStyle:{color:Gt},label:{color:Gt},controlStyle:{color:Gt,borderColor:Gt}},calendar:{itemStyle:{color:nd},dayLabel:{color:Gt},monthLabel:{color:Gt},yearLabel:{color:Gt}},timeAxis:lo(),logAxis:lo(),valueAxis:lo(),categoryAxis:lo(),line:{symbol:"circle"},graph:{color:id},gauge:{title:{color:Gt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Gt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};cm.categoryAxis.splitLine.show=!1;var uC=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(Y(t)){var a=Xe(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(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||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),gf=["symbol","symbolSize","symbolRotate","symbolOffset"],ad=gf.concat(["symbolKeepAspect"]),fC={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={},i={},a=!1,o=0;o<gf.length;o++){var s=gf[o],l=r.get(s);j(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(z({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=_t(i);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,i[p](v,d))}}return{dataEach:a?f:null}}},hC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<ad.length;s++){var l=ad[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function vC(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 cC(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 dC(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=z({},i),o.dispatchAction(z(i,{type:n[1],seriesIndex:e(a,i)}))})})}function Yn(r,t,e,n,i){var a=r+t;e.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=Cn(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:H(c)?h.getName(c[0]):h.getName(c),selected:Y(l)?l:z({},l)})}})}function pC(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Yn("map","selectchanged",t,i,n),Yn("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Yn("map","selected",t,i,n),Yn("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Yn("map","unselected",t,i,n),Yn("pie","unselected",t,i,n))})}function Yi(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var gC=Math.round(Math.random()*9),yC=typeof Object.defineProperty=="function",mC=(function(){function r(){this._id="__ec_inner_"+gC++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return yC?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})(),_C=vt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),SC=vt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),wC=vt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+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()}}),bC=vt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),xC={line:Ne,rect:Lt,roundRect:Lt,square:Lt,circle:La,diamond:SC,pin:wC,arrow:bC,triangle:_C},TC={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},yf={};A(xC,function(r,t){yf[t]=new r});var CC=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=ts(r,t,e),i=this.shape;return i&&i.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 i=yf[n];i||(n="rect",i=yf[n]),TC[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function DC(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 dr(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=ph(r.slice(8),new ot(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=Fs(r.slice(7),{},new ot(t,e,n,i),o?"center":"cover"):l=new CC({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=DC,a&&l.setColor(a),l}function MC(r){return H(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function dm(r,t){if(r!=null)return H(r)||(r=[r,r]),[tt(r[0],t[0])||0,tt(et(r[1],r[0]),t[1])||0]}function gn(r){return isFinite(r)}function AC(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=gn(n)?n:0,i=gn(i)?i:1,a=gn(a)?a:0,o=gn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function LC(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),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*i+e.y,l=l*a),o=gn(o)?o:.5,s=gn(s)?s:.5,l=l>=0&&gn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function mf(r,t,e){for(var n=t.type==="radial"?LC(r,t,e):AC(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function PC(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 uo(r){return parseInt(r,10)}function fo(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["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[i]||uo(s[n])||uo(r.style[n]))-(uo(s[a])||0)-(uo(s[o])||0)|0}function IC(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ct(r)?[r]:H(r)?r:null}function pm(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&IC(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=$(e,function(a){return a/i}),n/=i)}return[e,n]}var RC=new Dn(!0);function ds(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function od(r){return typeof r=="string"&&r!=="none"}function ps(r){var t=r.fill;return t!=null&&t!=="none"}function sd(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 ld(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 _f(r,t,e){var n=Og(t.image,t.__image,e);if(Ls(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Zp),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function EC(r,t,e,n){var i,a=ds(e),o=ps(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||RC,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||g)&&(w=t.getBoundingRect()),d&&(m=h?mf(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?mf(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?_f(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?_f(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,M;r.setLineDash&&e.lineDash&&(i=pm(t),T=i[0],M=i[1]);var C=!0;(u||h&zi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),C=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=M),n||(e.strokeFirst?(a&&ld(r,e),o&&sd(r,e)):(o&&sd(r,e),a&&ld(r,e))),T&&r.setLineDash([])}function kC(r,t,e){var n=t.__image=Og(e.image,t.__image,t,t.onload);if(!(!n||!Ls(n))){var i=e.x||0,a=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,i,a,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,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function OC(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Tn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=pm(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ds(e)&&r.strokeText(i,e.x,e.y),ps(e)&&r.fillText(i,e.x,e.y)):(ps(e)&&r.fillText(i,e.x,e.y),ds(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var ud=["shadowBlur","shadowOffsetX","shadowOffsetY"],fd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function gm(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){ae(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Sn.opacity:o}(n||t.blend!==e.blend)&&(a||(ae(r,i),a=!0),r.globalCompositeOperation=t.blend||Sn.blend);for(var s=0;s<ud.length;s++){var l=ud[s];(n||t[l]!==e[l])&&(a||(ae(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(ae(r,i),a=!0),r.shadowColor=t.shadowColor||Sn.shadowColor),a}function hd(r,t,e,n,i){var a=ma(t,i.inHover),o=n?null:e&&ma(e,i.inHover)||{};if(a===o)return!1;var s=gm(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ae(r,i),s=!0),od(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ae(r,i),s=!0),od(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ae(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(ae(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<fd.length;f++){var h=fd[f],c=h[0];(n||a[c]!==o[c])&&(s||(ae(r,i),s=!0),r[c]=a[c]||h[1])}return s}function BC(r,t,e,n,i){return gm(r,ma(t,i.inHover),e&&ma(e,i.inHover),n,i)}function ym(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 NC(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),ym(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function FC(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 vd=1,cd=2,dd=3,pd=4;function zC(r){var t=ps(r),e=ds(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 ae(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ma(r,t){return t&&r.__hoverStyle||r.style}function Oh(r,t){yn(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function yn(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||PC(a,o))&&(o&&o.length&&(ae(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(ae(r,e),r.save(),NC(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof vt&&t.autoBatch&&zC(t.style);s||FC(i,u.transform)?(ae(r,e),ym(r,t)):f||ae(r,e);var h=ma(t,e.inHover);t instanceof vt?(e.lastDrawType!==vd&&(l=!0,e.lastDrawType=vd),hd(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),EC(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof es?(e.lastDrawType!==dd&&(l=!0,e.lastDrawType=dd),hd(r,t,u,l,e),OC(r,t,h)):t instanceof Je?(e.lastDrawType!==cd&&(l=!0,e.lastDrawType=cd),BC(r,t,u,l,e),kC(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==pd&&(l=!0,e.lastDrawType=pd),GC(r,t,e)),f&&n&&ae(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function GC(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={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(),yn(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),yn(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var eu=new mC,gd=new Ca(100),yd=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Sf(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&eu.delete(r);var a=eu.get(r);if(a)return a;var o=lt(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=i?1:1/e,eu.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<yd.length;++c){var v=o[yd[c]];if(v!=null&&!H(v)&&!Y(v)&&!ct(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var g=gd.get(d);g&&(i?u.svgElement=g:u.image=g)}var p=_m(o.dashArrayX),y=VC(o.dashArrayY),m=mm(o.symbol),_=HC(p),S=Sm(y),b=!i&&cr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),T;b&&(b.width=x.width*e,b.height=x.height*e,T=b.getContext("2d")),C(),h&&gd.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var D=1,L=0,P=_.length;L<P;++L)D=Ev(D,_[L]);for(var I=1,L=0,P=m.length;L<P;++L)I=Ev(I,m[L].length);D*=I;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var P=-S,I=0,R=0,E=0;P<x.height;){if(I%2===0){for(var B=R/2%m.length,k=0,O=0,G=0;k<x.width*2;){for(var V=0,L=0;L<p[E].length;++L)V+=p[E][L];if(V<=0)break;if(O%2===0){var N=(1-o.symbolSize)*.5,F=k+p[E][O]*N,U=P+y[I]*N,Z=p[E][O]*o.symbolSize,dt=y[I]*o.symbolSize,Et=G/2%m[B].length;wt(F,U,Z,dt,m[B][Et])}k+=p[E][O],++G,++O,O===p[E].length&&(O=0)}++E,E===p.length&&(E=0)}P+=y[I],++R,++I,I===y.length&&(I=0)}function wt(kt,Tt,Q,nt,ze){var Rt=i?1:e,yr=dr(ze,kt*Rt,Tt*Rt,Q*Rt,nt*Rt,o.color,o.symbolKeepAspect);if(i){var rr=n.painter.renderOneToVNode(yr);rr&&w.children.push(rr)}else Oh(T,yr)}}}}function mm(r){if(!r||r.length===0)return[["rect"]];if(Y(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!Y(r[e])){t=!1;break}if(t)return mm([r]);for(var n=[],e=0;e<r.length;++e)Y(r[e])?n.push([r[e]]):n.push(r[e]);return n}function _m(r){if(!r||r.length===0)return[[0,0]];if(ct(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!ct(r[n])){e=!1;break}if(e)return _m([r]);for(var i=[],n=0;n<r.length;++n)if(ct(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=$(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function VC(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ct(r)){var t=Math.ceil(r);return[t,t]}var e=$(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function HC(r){return $(r,function(t){return Sm(t)})}function Sm(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function WC(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=Sf(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Sf(i,t)}}})}var Pe=new je,wm={};function UC(r,t){wm[r]=t}function bm(r){return wm[r]}var YC="5.6.0",$C={zrender:"5.6.1"},XC=1,ZC=800,qC=900,KC=1e3,QC=2e3,jC=5e3,xm=1e3,JC=1100,Bh=2e3,Tm=3e3,tD=4e3,Js=4500,eD=4600,rD=5e3,nD=6e3,Cm=7e3,Dm={PROCESSOR:{FILTER:KC,SERIES_FILTER:ZC,STATISTIC:jC},VISUAL:{LAYOUT:xm,PROGRESSIVE_LAYOUT:JC,GLOBAL:Bh,CHART:Tm,POST_CHART_LAYOUT:eD,COMPONENT:tD,BRUSH:rD,CHART_ITEM:Js,ARIA:nD,DECAL:Cm}},zt="__flagInMainProcess",re="__pendingUpdate",ru="__needsUpdateStatus",md=/^[a-zA-Z0-9_]+$/,nu="__connectUpdateStatus",_d=0,iD=1,aD=2;function Mm(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Lm(this,r,t)}}function Am(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Lm(this,r,t)}}function Lm(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),je.prototype[t].apply(r,e)}var Pm=(function(r){q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(je),Im=Pm.prototype;Im.on=Am("on");Im.off=Am("off");var $n,iu,ho,wr,au,ou,su,Li,Pi,Sd,wd,lu,bd,vo,xd,Rm,fe,Td,gs=(function(r){q(t,r);function t(e,n,i){var a=r.call(this,new uC)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Y(n)&&(n=Em[n]),a._dom=e;var o="canvas",s="auto",l=!1;i.ssr&&Sg(function(c){var v=st(c),d=v.dataIndex;if(d!=null){var g=rt();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var u=a._zr=Zu(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:et(i.useDirtyRect,l),useCoarsePointer:et(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=js(gt(u.flush,u),17),n=it(n),n&&Hy(n,!0),a._theme=n,a._locale=cx(i.locale||Ty),a._coordSysMgr=new qs;var f=a._api=xd(a);function h(c,v){return c.__prio-v.__prio}return Lo(ms,h),Lo(wf,h),a._scheduler=new um(a,f,wf,ms),a._messageCenter=new Pm,a._initEvents(),a.resize=gt(a.resize,a),u.animation.on("frame",a._onframe,a),Sd(u,a),wd(u,a),Yo(a),a}return t.prototype._onframe=function(){if(!this._disposed){Td(this);var e=this._scheduler;if(this[re]){var n=this[re].silent;this[zt]=!0;try{$n(this),wr.update.call(this,null,this[re].updateParams)}catch(l){throw this[zt]=!1,this[re]=null,l}this._zr.flush(),this[zt]=!1,this[re]=null,Li.call(this,n),Pi.call(this,n)}else if(e.unfinished){var i=XC,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),ou(this,a),e.performVisualTasks(a),vo(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>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,i){if(!this[zt]){if(this._disposed){this.id;return}var a,o,s;if(X(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[zt]=!0,!this._model||n){var l=new Wx(this._api),u=this._theme,f=this._model=new Ph;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},bf);var h={seriesTransition:s,optionChanged:!0};if(i)this[re]={silent:a,updateParams:h},this[zt]=!1,this.getZr().wakeUp();else{try{$n(this),wr.update.call(this,null,h)}catch(c){throw this[re]=null,this[zt]=!1,c}this._ssr||this._zr.flush(),this[re]=null,this[zt]=!1,Li.call(this,a),Pi.call(this,a)}}},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||K.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(K.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(_s[i]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();A(bn,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(it(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,g=h-u,p=cr.createCanvas(),y=Zu(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return A(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Lt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new Je({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return au(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return au(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=Al(i,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=Al(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?vC(s,l,n):cC(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;A(oD,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Yi(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=z({},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=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),A(ra,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),A(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),pC(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&&Ig(this.getDom(),Fh,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),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 bn[n.id]},t.prototype.resize=function(e){if(!this[zt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[re]&&(a==null&&(a=this[re].silent),i=!0,this[re]=null),this[zt]=!0;try{i&&$n(this),wr.update.call(this,{type:"resize",animation:z({duration:0},e&&e.animation)})}catch(o){throw this[zt]=!1,o}this[zt]=!1,Li.call(this,a),Pi.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(X(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!xf[e]){var i=xf[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},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=z({},e);return n.type=ra[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!ys[e.type]&&this._model){if(this[zt]){this._pendingActions.push(e);return}var i=n.silent;su.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&K.browser.weChat&&this._throttledZrFlush(),Li.call(this,i),Pi.call(this,i)}},t.prototype.updateLabelLayout=function(){Pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){$n=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),iu(h,!0),iu(h,!1),c.plan()},iu=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,M=!x&&p[T];if(!M){var C=Xe(w.type),D=c?ue.getClass(C.main,C.sub):Ut.getClass(C.sub);M=new D,M.init(v,m),p[T]=M,g.push(M),y.add(M.group)}w.__viewId=M.__id=T,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(M,w,v,m)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),g.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ho=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=rt(),A(Qt(_),function(w){var x=qe(w,null);x!=null&&S.set(x,!0)})),p&&p.eachComponent(m,function(w){var x=S&&S.get(w.id)!=null;if(!x)if(oc(v))if(w instanceof te)v.type===wn&&!v.notBlur&&!w.get(["emphasis","disabled"])&&sb(w,v,h._api);else{var T=hh(w.mainType,w.componentIndex,v.name,h._api),M=T.focusSelf,C=T.dispatchers;v.type===wn&&M&&!v.notBlur&&rf(w.mainType,w.componentIndex,h._api),C&&A(C,function(D){v.type===wn?ns(D):is(D)})}else af(v)&&w instanceof te&&(fb(w,v,h._api),ic(w),fe(h))},h),p&&p.eachComponent(m,function(w){var x=S&&S.get(w.id)!=null;x||b(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function b(w){w&&w.__alive&&w[c]&&w[c](w.__model,p,h._api,v)}},wr={prepareAndUpdate:function(h){$n(this),wr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),p.create(v,d),y.performDataProcessorTasks(v,h),ou(this,v),p.update(v,d),e(v),y.performVisualTasks(v,h),lu(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),Pe.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var p=rt();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),vo(this,v,d,h,{},p),Pe.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Ut.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),lu(this,c,this._api,h,{}),Pe.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()}),Ut.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)}),Pe.trigger("afterupdate",v,this._api))},updateLayout:function(h){wr.update.call(this,h)}},au=function(h,c,v,d){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,m=Al(g,v),_=0;_<p.length;_++){var S=p[_];if(S[c]&&(y=S[c](g,m,d))!=null)return y}},ou=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},su=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,y=ys[g],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&Xe(_[0]);this[zt]=!0;var w=[h],x=!1;h.batch&&(x=!0,w=$(h.batch,function(I){return I=lt(z({},I),h),I.batch=null,I}));var T=[],M,C=af(h),D=oc(h);if(D&&jg(this._api),A(w,function(I){if(M=y.action(I,v._model,v._api),M=M||z({},I),M.type=m.event||M.type,T.push(M),D){var R=ah(h),E=R.queryOptionMap,B=R.mainTypeSpecified,k=B?E.keys()[0]:"series";ho(v,S,I,k),fe(v)}else C?(ho(v,S,I,"series"),fe(v)):b&&ho(v,S,I,b.main,b.sub)}),S!=="none"&&!D&&!C&&!b)try{this[re]?($n(this),wr.update.call(this,h),this[re]=null):wr[S].call(this,h)}catch(I){throw this[zt]=!1,I}if(x?M={type:m.event||g,escapeConnect:p,batch:T}:M=T[0],this[zt]=!1,!c){var L=this._messageCenter;if(L.trigger(M.type,M),C){var P={type:"selectchanged",escapeConnect:p,selected:hb(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(P.type,P)}}},Li=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();su.call(this,v,h)}},Pi=function(h){!h&&this.trigger("updated")},Sd=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[re]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},wd=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Yi(d,nf);g&&(lb(g,v,c._api),fe(c))}).on("mouseout",function(v){var d=v.target,g=Yi(d,nf);g&&(ub(g,v,c._api),fe(c))}).on("click",function(v){var d=v.target,g=Yi(d,function(m){return st(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=st(g);c._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.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(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:w})}),d){var g=c.concat(v),p,y;Lo(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(g,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;p!=null&&(S=Math.max(p,S)),b?(S===p&&b!==y&&S++,y=b):y&&(S===p&&S++,y=""),p=S,_.setZLevel(S)})}}lu=function(h,c,v,d,g){n(c),bd(h,c,v,d,g),A(h._chartsViews,function(p){p.__alive=!1}),vo(h,c,v,d,g),A(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},bd=function(h,c,v,d,g,p){A(p||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},vo=function(h,c,v,d,g,p){var y=h._scheduler;g=z(g||{},{updatedSeries:c.getSeries()}),Pe.trigger("series:beforeupdate",c,v,g);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),p&&p.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),ic(_)}),y.unfinished=m||y.unfinished,Pe.trigger("series:layoutlabels",c,v,g),Pe.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),Pe.trigger("series:afterupdate",c,v,g)},fe=function(h){h[ru]=!0,h.getZr().wakeUp()},Td=function(h){h[ru]&&(h.getZr().storage.traverse(function(c){ji(c)||i(c)}),h[ru]=!1)};function i(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===Rs&&h.states.emphasis?c.push("emphasis"):h.hoverState===Is&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!K.node&&!K.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(g&&(g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var S=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!ji(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ji(y))return;if(y instanceof vt&&gb(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}xd=function(h){return new((function(c){q(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){ns(d,g),fe(h)},v.prototype.leaveEmphasis=function(d,g){is(d,g),fe(h)},v.prototype.enterBlur=function(d){ob(d),fe(h)},v.prototype.leaveBlur=function(d){Zg(d),fe(h)},v.prototype.enterSelect=function(d){qg(d),fe(h)},v.prototype.leaveSelect=function(d){Kg(d),fe(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})(Gy))(h)},Rm=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[nu]=d}}A(ra,function(v,d){h._messageCenter.on(d,function(g){if(_s[h.group]&&h[nu]!==_d){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),y=[];A(bn,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,_d),A(y,function(m){m[nu]!==iD&&m.dispatchAction(p)}),c(y,aD)}})})}})(),t})(je),Nh=gs.prototype;Nh.on=Mm("on");Nh.off=Mm("off");Nh.one=function(r,t,e){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var oD=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ys={},ra={},wf=[],bf=[],ms=[],Em={},xf={},bn={},_s={},sD=+new Date-0,lD=+new Date-0,Fh="_echarts_instance_";function uD(r,t,e){var n=!(e&&e.ssr);if(n){var i=zh(r);if(i)return i}var a=new gs(r,t,e);return a.id="ec_"+sD++,bn[a.id]=a,n&&Ig(r,Fh,a.id),Rm(a),Pe.trigger("afterinit",a),a}function fD(r){if(H(r)){var t=r;r=null,A(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+lD++,A(t,function(e){e.group=r})}return _s[r]=!0,r}function km(r){_s[r]=!1}var hD=km;function vD(r){Y(r)?r=bn[r]:r instanceof gs||(r=zh(r)),r instanceof gs&&!r.isDisposed()&&r.dispose()}function zh(r){return bn[jS(r,Fh)]}function cD(r){return bn[r]}function Gh(r,t){Em[r]=t}function Vh(r){ht(bf,r)<0&&bf.push(r)}function Hh(r,t){Wh(wf,r,t,QC)}function Om(r){tl("afterinit",r)}function Bm(r){tl("afterupdate",r)}function tl(r,t){Pe.on(r,t)}function In(r,t,e){j(t)&&(e=t,t="");var n=X(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!ra[t]&&(Qe(md.test(n)&&md.test(t)),ys[n]||(ys[n]={action:e,actionInfo:r}),ra[t]=n)}function Nm(r,t){qs.register(r,t)}function dD(r){var t=qs.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Fm(r,t){Wh(ms,r,t,xm,"layout")}function Wr(r,t){Wh(ms,r,t,Tm,"visual")}var Cd=[];function Wh(r,t,e,n,i){if((j(t)||X(t))&&(e=t,t=n),!(ht(Cd,e)>=0)){Cd.push(e);var a=um.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Uh(r,t){xf[r]=t}function pD(r){Gp({createCanvas:r})}function zm(r,t,e){var n=bm("registerMap");n&&n(r,t,e)}function gD(r){var t=bm("getMap");return t&&t(r)}var Gm=_T;Wr(Bh,qT);Wr(Js,KT);Wr(Js,QT);Wr(Bh,fC);Wr(Js,hC);Wr(Cm,WC);Vh(Hy);Hh(qC,eT);Uh("default",jT);In({type:wn,event:wn,update:wn},qt);In({type:Bo,event:Bo,update:Bo},qt);In({type:qi,event:qi,update:qi},qt);In({type:No,event:No,update:No},qt);In({type:Ki,event:Ki,update:Ki},qt);Gh("light",lC);Gh("dark",cm);var yD={};function Ii(r){return r==null?0:r.length||1}function Dd(r){return r}var mD=(function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Dd,this._newKeyGetter=i||Dd,this.context=a,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={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Ii(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(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Ii(u),c=Ii(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[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,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=Ii(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=Ii(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),_D=(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 SD(r,t){var e={},n=e.encode={},i=rt(),a=[],o=[],s={};A(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;uu(n,d)[g]=c,v.isExtraCoord||(i.set(d,1),bD(v.type)&&(a[0]=c),uu(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Oy.each(function(p,y){var m=uu(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=$(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new _D(s,t),e}function uu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function wD(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function bD(r){return!(r==="ordinal"||r==="time")}var Vo=(function(){function r(t){this.otherDims={},t!=null&&z(this,t)}return r})(),xD=Mt(),TD={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Vm=(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=Um(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return et(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=Yy(this.source),n=!Ym(t),i="",a=[],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)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=TD[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Hm(r){return r instanceof Vm}function Wm(r){for(var t=rt(),e=0;e<(r||[]).length;e++){var n=r[e],i=X(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function Um(r){var t=xD(r);return t.dimNameMap||(t.dimNameMap=Wm(r.dimensionsDefine))}function Ym(r){return r>30}var Ri=X,br=$,CD=typeof Int32Array>"u"?Array:Int32Array,DD="e\0\0",Md=-1,MD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AD=["_approximateExtent"],Ad,co,Ei,ki,fu,Oi,hu,Yh=(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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Hm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=Y(h)?new Vo({name:h}):h instanceof Vo?h:new Vo(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),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=rt();A(o,function(p){g.set(a[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 i=this._schema.getSourceDimension(e);if(i)return i.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(ct(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 i=n.encode[t];return i?i[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 i=this,a;if(t instanceof hf&&(a=t),!a){var o=this.dimensions,s=Ih(t)||jt(t)?new $y(t,o.length):t;a=new hf;var l=br(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=SD(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&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&hu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Fr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ce;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&VS(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=qe(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=qe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)hu(this,f);Ad(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){Ri(t)?z(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=Ei(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return co(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.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,i=this._store;return H(t)?i.getValues(br(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;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],i=n&&n[e];return i==null||isNaN(i)?Md:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){j(t)&&(n=e,e=t,t=[]);var i=n||this,a=br(ki(t),this._getStoreDimIndex,this);this._store.each(a,i?gt(e,i):e)},r.prototype.filterSelf=function(t,e,n){j(t)&&(n=e,e=t,t=[]);var i=n||this,a=br(ki(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?gt(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=_t(t);return A(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){j(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=br(ki(t),this._getStoreDimIndex,this),s=Oi(this);return s._store=this._store.map(o,a?gt(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=br(ki(t),this._getStoreDimIndex,this);this._store.modify(o,a?gt(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=Oi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=Oi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Oi(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 mt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new mD(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return co(t,n)},function(n){return co(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||{},Ri(t)?z(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),H(a)?a=a.slice():Ri(a)&&(a=z({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ri(e)?z(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ri(t)?z(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?z(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;tf(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:br(this.dimensions,this._getDimInfo,this),this.hostModel)),fu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];j(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Ts(arguments)))})},r.internalField=(function(){Ad=function(t){var e=t._invertedIndicesMap;A(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new CD(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Md;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Ei=function(t,e,n){return qe(t._getCategory(e,n),null)},co=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Ei(t,t._idDimIdx,e)),n==null&&(n=DD+e),n},ki=function(t){return H(t)||(t=t!=null?[t]:[]),t},Oi=function(t){var e=new r(t._schema?t._schema:br(t.dimensions,t._getDimInfo,t),t.hostModel);return fu(e,t),e},fu=function(t,e){A(MD.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,A(AD,function(n){t[n]=it(e[n])}),t._calculationInfo=z({},e._calculationInfo)},hu=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=Ei(t,a,e)),l==null&&o!=null&&(i[e]=l=Ei(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),i[e]=l}}})(),r})();function LD(r,t){return $h(r,t).dimensions}function $h(r,t){Ih(r)||(r=Wy(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=rt(),a=[],o=ID(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ym(o),l=n===r.dimensionsDefine,u=l?Um(r):Wm(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=rt(f),c=new Qy(o),v=0;v<c.length;v++)c[v]=-1;function d(M){var C=c[M];if(C<0){var D=n[M],L=X(D)?D:{name:D},P=new Vo,I=L.name;I!=null&&u.get(I)!=null&&(P.name=P.displayName=I),L.type!=null&&(P.type=L.type),L.displayName!=null&&(P.displayName=L.displayName);var R=a.length;return c[M]=R,P.storeDimIndex=M,a.push(P),P}return a[C]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(M,C){var D=Qt(M).slice();if(D.length===1&&!Y(D[0])&&D[0]<0){h.set(C,!1);return}var L=h.set(C,[]);A(D,function(P,I){var R=Y(P)?u.get(P):P;R!=null&&R<o&&(L[I]=R,p(d(R),C,I))})});var g=0;A(e,function(M){var C,D,L,P;if(Y(M))C=M,P={};else{P=M,C=P.name;var I=P.ordinalMeta;P.ordinalMeta=null,P=z({},P),P.ordinalMeta=I,D=P.dimsDef,L=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var R=h.get(C);if(R!==!1){if(R=Qt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&R.push(g++)}A(R,function(B,k){var O=d(B);if(l&&P.type!=null&&(O.type=P.type),p(lt(O,P),C,k),O.name==null&&D){var G=D[k];!X(G)&&(G={name:G}),O.name=O.displayName=G.name,O.defaultTooltip=G.defaultTooltip}L&&lt(O.otherDims,L)})}});function p(M,C,D){Oy.get(C)!=null?M.otherDims[C]=D:(M.coordDim=C,M.coordDimIndex=D,i.set(C,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)A(a,function(M){b(M)}),a.sort(function(M,C){return M.storeDimIndex-C.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),T=x.coordDim;T==null&&(x.coordDim=RD(S,i,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),b(x),x.type==null&&(Fy(r,w)===Ot.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return PD(a),new Vm({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function PD(r){for(var t=rt(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function ID(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return A(t,function(a){var o;X(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function RD(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 ED=(function(){function r(t){this.coordSysDims=[],this.axisMap=rt(),this.categoryAxisMap=rt(),this.coordSysName=t}return r})();function kD(r){var t=r.get("coordinateSystem"),e=new ED(t),n=OD[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var OD={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Ee).models[0],a=r.getReferringComponents("yAxis",Ee).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Xn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Xn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Ee).models[0];t.coordSysDims=["single"],e.set("single",i),Xn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Ee).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Xn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Xn(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 i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Xn(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Xn(r){return r.get("type")==="category"}function $m(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;BD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(A(a,function(m,_){Y(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),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;A(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function BD(r){return!Hm(r.schema)}function Ln(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Xm(r,t){return Ln(r,t)?r.getCalculationInfo("stackResultDimension"):t}function ND(r,t){var e=r.get("coordinateSystem"),n=qs.get(e),i;return t&&t.coordSysDims&&(i=$(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=wD(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function FD(r,t,e){var n,i;return e&&A(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function el(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Ce;var o=kD(t),s=ND(t,o),l=e.useEncodeDefaulter,u=j(l)?l:l?St(Px,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=$h(i,f),c=FD(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=$m(t,{schema:h,store:v}),g=new Yh(h,t);g.setCalculationInfo(d);var p=c!=null&&zD(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function zD(r){if(r.sourceFormat===Ce){var t=GD(r.data||[]);return!H(Da(t))}}function GD(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var er=(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})();As(er);var VD=0,Tf=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++VD}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&$(n,HD);return new r({categories:i,needCollect:!i,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(!Y(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=rt(this.categories))},r})();function HD(r){return X(r)&&r.value!=null?r.value:r+""}function Cf(r){return r.type==="interval"||r.type==="log"}function WD(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=nh(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=Zm(o),l=i.niceTickExtent=[xt(Math.ceil(r[0]/o)*o,s),xt(Math.floor(r[1]/o)*o,s)];return UD(l,r),i}function vu(r){var t=Math.pow(10,Ms(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,xt(e*t)}function Zm(r){return $e(r)+2}function Ld(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function UD(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Ld(r,0,t),Ld(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function rl(r,t){return r>=t[0]&&r<=t[1]}function nl(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function il(r,t){return r*(t[1]-t[0])+t[0]}var Xh=(function(r){q(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Tf({})),H(i)&&(i=new Tf({categories:$(i,function(a){return X(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:Y(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),rl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),nl(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(il(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;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,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[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),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},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})(er);er.registerClass(Xh);var fn=xt,di=(function(r){q(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 rl(e,this._extent)},t.prototype.normalize=function(e){return nl(e,this._extent)},t.prototype.scale=function(e){return il(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[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=Zm(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:fn(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=fn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:fn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=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=fn(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=$e(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=fn(e.value,i,!0);return Th(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=WD(a,e,n,i);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 i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=fn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=fn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t})(er);er.registerClass(di);var qm=typeof Float32Array<"u",YD=qm?Float32Array:Array;function fr(r){return H(r)?qm?new Float32Array(r):r:new YD(r)}var $D="__ec_stack_";function Km(r){return r.get("stack")||$D+r.seriesIndex}function Zh(r){return r.dim+r.index}function Qm(r,t){var e=[];return t.eachSeriesByType(r,function(n){Jm(n)&&e.push(n)}),e}function XD(r){var t={};A(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 y=d.get(v,g);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function jm(r){var t=XD(r),e=[];return A(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.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=tt(n.get("barWidth"),s),g=tt(n.get("barMaxWidth"),s),p=tt(n.get("barMinWidth")||(t0(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:Zh(a),stackId:Km(n)})}),ZD(e)}function ZD(r){var t={};A(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=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 A(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=_t(a).length;s=Math.max(35-l*4,15)+"%"}var u=tt(s,o),f=tt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;A(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function qD(r,t,e){if(r&&t){var n=r[Zh(t)];return n}}function KD(r,t){var e=Qm(r,t),n=jm(e);A(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Km(i),u=n[Zh(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function QD(r){return{seriesType:r,plan:kh(),reset:function(t){if(Jm(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Ln(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=jD(i,a),d=t0(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&fr(b*3),x=d&&l&&fr(b*3),T=d&&fr(b),M=n.master.getRect(),C=c?M.width:M.height,D,L=S.getStore(),P=0;(D=_.next())!=null;){var I=L.get(h?p:o,D),R=L.get(s,D),E=v,B=void 0;h&&(B=+I-L.get(o,D));var k=void 0,O=void 0,G=void 0,V=void 0;if(c){var N=n.dataToPoint([I,R]);if(h){var F=n.dataToPoint([B,R]);E=F[0]}k=E,O=N[1]+m,G=N[0]-E,V=y,Math.abs(G)<g&&(G=(G<0?-1:1)*g)}else{var N=n.dataToPoint([R,I]);if(h){var F=n.dataToPoint([R,B]);E=F[1]}k=N[0]+m,O=E,G=y,V=N[1]-E,Math.abs(V)<g&&(V=(V<=0?-1:1)*g)}d?(w[P]=k,w[P+1]=O,w[P+2]=c?G:V,x&&(x[P]=c?M.x:k,x[P+1]=c?O:M.y,x[P+2]=C),T[D]=D):S.setItemLayout(D,{x:k,y:O,width:G,height:V}),P+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function Jm(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function t0(r){return r.pipelineContext&&r.pipelineContext.large}function jD(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 JD=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},e0=(function(r){q(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 ka(e.value,bc[yx(ni(this._minLevelUnit))]||bc.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return mx(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=oM(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Se,n[1]+=Se),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Se}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=po.length,l=Math.min(JD(po,this._approxInterval,0,s),s-1);this._interval=po[l][1],this._minLevelUnit=po[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ct(e)?e:+we(e)},t.prototype.contain=function(e){return rl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return nl(this.parse(e),this._extent)},t.prototype.scale=function(e){return il(e,this._extent)},t.type="time",t})(di),po=[["second",wh],["minute",bh],["hour",Ji],["quarter-day",Ji*6],["half-day",Ji*12],["day",Se*1.2],["half-week",Se*3.5],["week",Se*7],["month",Se*31],["quarter",Se*95],["half-year",wc/2],["year",wc]];function tM(r,t,e,n){var i=we(t),a=we(e),o=function(d){return xc(i,d,n)===xc(a,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 eM(r,t){return r/=Se,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function rM(r){var t=30*Se;return r/=t,r>6?6:r>3?3:r>2?2:1}function nM(r){return r/=Ji,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Pd(r,t){return r/=t?bh:wh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function iM(r){return nh(r,!0)}function aM(r,t,e){var n=new Date(r);switch(ni(t)){case"year":case"month":n[My(e)](0);case"day":n[Ay(e)](1);case"hour":n[Ly(e)](0);case"minute":n[Py(e)](0);case"second":n[Iy(e)](0),n[Ry(e)](0)}return n.getTime()}function oM(r,t,e,n){var i=1e4,a=Cy,o=0;function s(C,D,L,P,I,R,E){for(var B=new Date(D),k=D,O=B[P]();k<L&&k<=n[1];)E.push({value:k}),O+=C,B[I](O),k=B.getTime();E.push({value:k,notAdd:!0})}function l(C,D,L){var P=[],I=!D.length;if(!tM(ni(C),n[0],n[1],e)){I&&(D=[{value:aM(new Date(n[0]),C,e)},{value:n[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,B=D[R+1].value;if(E!==B){var k=void 0,O=void 0,G=void 0,V=!1;switch(C){case"year":k=Math.max(1,Math.round(t/Se/365)),O=xh(e),G=_x(e);break;case"half-year":case"quarter":case"month":k=rM(t),O=ii(e),G=My(e);break;case"week":case"half-week":case"day":k=eM(t),O=Us(e),G=Ay(e),V=!0;break;case"half-day":case"quarter-day":case"hour":k=nM(t),O=ca(e),G=Ly(e);break;case"minute":k=Pd(t,!0),O=Ys(e),G=Py(e);break;case"second":k=Pd(t,!1),O=$s(e),G=Iy(e);break;case"millisecond":k=iM(t),O=Xs(e),G=Ry(e);break}s(k,E,B,O,G,V,P),C==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-k})}}for(var R=0;R<P.length;R++)L.push(P[R]);return P}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var d=ni(a[v]);if(gx(a[v])){l(a[v],u[u.length-1]||[],f);var g=a[v+1]?ni(a[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(C,D){return C.value-D.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=At($(u,function(C){return At(C,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(C){return C.length>0}),b=[],w=S.length-1,v=0;v<S.length;++v)for(var x=S[v],T=0;T<x.length;++T)b.push({value:x[T].value,level:w-v});b.sort(function(C,D){return C.value-D.value});for(var M=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&M.push(b[v]);return M}er.registerClass(e0);var Id=er.prototype,na=di.prototype,sM=xt,lM=Math.floor,uM=Math.ceil,go=Math.pow,Me=Math.log,qh=(function(r){q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new di,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=na.getTicks.call(this,e);return $(o,function(s){var l=s.value,u=xt(go(this.base,l));return u=l===i[0]&&this._fixMin?yo(u,a[0]):u,u=l===i[1]&&this._fixMax?yo(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=Me(this.base);e=Me(Math.max(0,e))/i,n=Me(Math.max(0,n))/i,na.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Id.getExtent.call(this);n[0]=go(e,n[0]),n[1]=go(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=yo(n[0],a[0])),this._fixMax&&(n[1]=yo(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Me(e[0])/Me(n),e[1]=Me(e[1])/Me(n),Id.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,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=Cg(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[xt(uM(n[0]/a)*a),xt(lM(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){na.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=Me(e)/Me(this.base),rl(e,this._extent)},t.prototype.normalize=function(e){return e=Me(e)/Me(this.base),nl(e,this._extent)},t.prototype.scale=function(e){return e=il(e,this._extent),go(this.base,e)},t.type="log",t})(er),r0=qh.prototype;r0.getMinorTicks=na.getMinorTicks;r0.getLabel=na.getLabel;function yo(r,t){return sM(r,$e(t))}er.registerClass(qh);var fM=(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 i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;j(o)?this._modelMinNum=mo(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=mo(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(j(s)?this._modelMaxNum=mo(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=mo(t,s)),i)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=H(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Vr(u[0],1),Vr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=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?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=ia(s)||ia(l)||t&&!i;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[vM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=hM[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),hM={min:"_determinedMin",max:"_determinedMax"},vM={min:"_dataMin",max:"_dataMax"};function cM(r,t,e){var n=r.rawExtentInfo;return n||(n=new fM(r,t,e),r.rawExtentInfo=n,n)}function mo(r,t){return t==null?null:ia(t)?NaN:r.parse(t)}function n0(r,t){var e=r.type,n=cM(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=Qm("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=jm(s),f=dM(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function dM(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=qD(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(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)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function Df(r,t){var e=t,n=n0(r,e),i=n.extent,a=e.get("splitNumber");r instanceof qh&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,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 i0(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Xh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new e0({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(er.getClass(t)||di)}}function pM(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function pi(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(i,a){return r.scale.getFormattedLabel(i,a,n)}})(t):Y(t)?(function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}})(t):j(t)?(function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Kh(r,i),a,i.level!=null?{level:i.level}:null)}})(t):function(n){return r.scale.getLabel(n)}}function Kh(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function gM(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Xh?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=pi(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=yM(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function yM(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new ot(r.x,r.y,a,o);return s}function Qh(r){var t=r.get("interval");return t??"auto"}function a0(r){return r.type==="category"&&Qh(r.getLabelModel())===0}function mM(r,t){var e={};return A(r.mapDimensionsAll(t),function(n){e[Xm(r,n)]=!0}),_t(e)}var o0=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function _M(r){return el(null,r)}var SM={isDimensionStacked:Ln,enableDataStack:$m,getStackedDimension:Xm};function wM(r,t){var e=t;t instanceof mt||(e=new mt(t));var n=i0(e);return n.setExtent(r[0],r[1]),Df(n,e),n}function bM(r){xe(r,o0)}function xM(r,t){return t=t||{},ke(r,null,null,t.state!=="normal")}const TM=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:LD,createList:_M,createScale:wM,createSymbol:dr,createTextStyle:xM,dataStack:SM,enableHoverEmphasis:as,getECData:st,getLayoutRect:li,mixinAxisModelCommonMethods:bM},Symbol.toStringTag,{value:"Module"}));var Rd=[],CM={registerPreprocessor:Vh,registerProcessor:Hh,registerPostInit:Om,registerPostUpdate:Bm,registerUpdateLifecycle:tl,registerAction:In,registerCoordinateSystem:Nm,registerLayout:Fm,registerVisual:Wr,registerTransform:Gm,registerLoading:Uh,registerMap:zm,registerImpl:UC,PRIORITY:Dm,ComponentModel:ut,ComponentView:ue,SeriesModel:te,ChartView:Ut,registerComponentModel:function(r){ut.registerClass(r)},registerComponentView:function(r){ue.registerClass(r)},registerSeriesModel:function(r){te.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerSubTypeDefaulter:function(r,t){ut.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){_g(r,t)}};function pr(r){if(H(r)){A(r,function(t){pr(t)});return}ht(Rd,r)>=0||(Rd.push(r),j(r)&&(r={install:r}),r.install(CM))}var DM=1e-8;function Ed(r,t){return Math.abs(r-t)<DM}function kd(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=ur(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!Ed(i[0],s[0])||!Ed(i[1],s[1]))&&(n+=ur(i[0],i[1],s[0],s[1],t,e)),n!==0}var MM=[];function cu(r,t){for(var e=0;e<r.length;e++)Kt(r[e],r[e],t)}function Od(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ar(t,t,a),Lr(e,e,a))}}function AM(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var s0=(function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r})(),Bd=(function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r})(),Nd=(function(){function r(t){this.type="linestring",this.points=t}return r})(),LM=(function(r){q(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return AM(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Od(s.exterior,i,a,e):A(s.points,function(l){Od(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(kd(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(kd(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new ot(e,n,i,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(cu(c.exterior,u),A(c.interiors,function(v){cu(v,u)})):A(c.points,function(v){cu(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t})(s0);(function(r){q(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=xa(MM),o=e;o&&!o.isGeoSVGGraphicRoot;)Br(a,o.getLocalTransform(),a),o=o.parent;return Ta(a,a),Kt(i,i,a),i},t})(s0);function PM(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return A(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=l0(s,o,e);break;case"Polygon":du(s,o,e);break;case"MultiLineString":du(s,o,e);break;case"MultiPolygon":A(s,function(l,u){return du(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function du(r,t,e){for(var n=0;n<r.length;n++)r[n]=l0(r[n],t[n],e)}function l0(r,t,e){for(var n=[],i=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function Fd(r,t){return r=PM(r),$(At(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Bd(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new Bd(l[0],l.slice(1)))});break;case"LineString":a.push(new Nd([i.coordinates]));break;case"MultiLineString":a.push(new Nd(i.coordinates))}var s=new LM(n[t||"name"],a,n.cp);return s.properties=n,s})}const IM=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:BS,asc:ES,getPercentWithPrecision:kS,getPixelPrecision:xg,getPrecision:$e,getPrecisionSafe:bg,isNumeric:Dg,isRadianAroundZero:la,linearMap:Ie,nice:nh,numericToNumber:ua,parseDate:we,quantile:FS,quantity:Cg,quantityExponent:Ms,reformIntervals:zS,remRadian:rh,round:xt},Symbol.toStringTag,{value:"Module"})),RM=Object.freeze(Object.defineProperty({__proto__:null,format:ka,parse:we},Symbol.toStringTag,{value:"Module"})),EM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Pa,BezierCurve:Ns,BoundingRect:ot,Circle:La,CompoundPath:ay,Ellipse:ks,Group:Pt,Image:Je,IncrementalDisplayable:ly,Line:Ne,LinearGradient:vh,Polygon:Bs,Polyline:vi,RadialGradient:sy,Rect:Lt,Ring:Os,Sector:Be,Text:Dt,clipPointsByRect:gy,clipRectByRect:yy,createIcon:zs,extendPath:fy,extendShape:uy,getShapeClass:hy,getTransform:dy,initProps:Wt,makeImage:ph,makePath:Fs,mergePath:cy,registerShape:Te,resizePath:gh,updateProps:It},Symbol.toStringTag,{value:"Module"})),kM=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Th,capitalFirst:xx,encodeHTML:Zt,formatTime:bx,formatTpl:Dh,getTextRect:Sx,getTooltipMarker:Ey,normalizeCssArray:Oa,toCamelCase:Ch,truncateText:vw},Symbol.toStringTag,{value:"Module"})),OM=Object.freeze(Object.defineProperty({__proto__:null,bind:gt,clone:it,curry:St,defaults:lt,each:A,extend:z,filter:At,indexOf:ht,inherits:Uf,isArray:H,isFunction:j,isObject:X,isString:Y,map:$,merge:at,reduce:Ke},Symbol.toStringTag,{value:"Module"}));var _a=Mt();function u0(r,t){var e=$(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 BM(r){var t=r.getLabelModel().get("customValues");if(t){var e=pi(r),n=r.scale.getExtent(),i=u0(r,t),a=At(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:$(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?FM(r):GM(r)}function NM(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=u0(r,e);return{ticks:At(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?zM(r,t):{ticks:$(r.scale.getTicks(),function(a){return a.value})}}function FM(r){var t=r.getLabelModel(),e=f0(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function f0(r,t){var e=h0(r,"labels"),n=Qh(t),i=v0(e,n);if(i)return i;var a,o;return j(n)?a=p0(r,n):(o=n==="auto"?VM(r):n,a=d0(r,o)),c0(e,n,{labels:a,labelCategoryInterval:o})}function zM(r,t){var e=h0(r,"ticks"),n=Qh(t),i=v0(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),j(n))a=p0(r,n,!0);else if(n==="auto"){var s=f0(r,r.getLabelModel());o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tickValue})}else o=n,a=d0(r,o,!0);return c0(e,n,{ticks:a,tickCategoryInterval:o})}function GM(r){var t=r.scale.getTicks(),e=pi(r);return{labels:$(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function h0(r,t){return _a(r)[t]||(_a(r)[t]=[])}function v0(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function c0(r,t,e){return r.push({key:t,value:e}),e}function VM(r){var t=_a(r).autoInterval;return t??(_a(r).autoInterval=r.calculateCategoryInterval())}function HM(r){var t=WM(r),e=pi(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[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<=a[1];l+=s){var d=0,g=0,p=th(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 y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=_a(r.model),b=r.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function WM(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 d0(r,t,e){var n=pi(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=a0(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function p0(r,t,e){var n=r.scale,i=pi(r),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var zd=[0,1],g0=(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]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return xg(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,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Gd(n,i.count())),Ie(t,zd,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Gd(n,i.count()));var a=Ie(t,n,zd,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=NM(this,e),i=n.ticks,a=$(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return UM(this,a,o,t.clamp),a},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),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return BM(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 i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return HM(this)},r})();function Gd(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function UM(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=xt(v),d=xt(d),h?v>d:v<d}}function YM(r){var t=ut.extend(r);return ut.registerClass(t),t}function $M(r){var t=ue.extend(r);return ue.registerClass(t),t}function XM(r){var t=te.extend(r);return te.registerClass(t),t}function ZM(r){var t=Ut.extend(r);return Ut.registerClass(t),t}function y0(r,t,e,n,i,a,o,s){var l=i-r,u=a-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;d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}var Rr=new J,bt=new J,Bt=new J,Er=new J,Ye=new J,Ss=[],Xt=new J;function qM(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Rr.fromArray(r[0]),bt.fromArray(r[1]),Bt.fromArray(r[2]),J.sub(Er,Rr,bt),J.sub(Ye,Bt,bt);var e=Er.len(),n=Ye.len();if(!(e<.001||n<.001)){Er.scale(1/e),Ye.scale(1/n);var i=Er.dot(Ye),a=Math.cos(t);if(a<i){var o=y0(bt.x,bt.y,Bt.x,Bt.y,Rr.x,Rr.y,Ss);Xt.fromArray(Ss),Xt.scaleAndAdd(Ye,o/Math.tan(Math.PI-t));var s=Bt.x!==bt.x?(Xt.x-bt.x)/(Bt.x-bt.x):(Xt.y-bt.y)/(Bt.y-bt.y);if(isNaN(s))return;s<0?J.copy(Xt,bt):s>1&&J.copy(Xt,Bt),Xt.toArray(r[1])}}}}function KM(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Rr.fromArray(r[0]),bt.fromArray(r[1]),Bt.fromArray(r[2]),J.sub(Er,bt,Rr),J.sub(Ye,Bt,bt);var n=Er.len(),i=Ye.len();if(!(n<.001||i<.001)){Er.scale(1/n),Ye.scale(1/i);var a=Er.dot(t),o=Math.cos(e);if(a<o){var s=y0(bt.x,bt.y,Bt.x,Bt.y,Rr.x,Rr.y,Ss);Xt.fromArray(Ss);var l=Math.PI/2,u=Math.acos(Ye.dot(t)),f=l+u-e;if(f>=l)J.copy(Xt,Bt);else{Xt.scaleAndAdd(Ye,s/Math.tan(Math.PI/2-f));var h=Bt.x!==bt.x?(Xt.x-bt.x)/(Bt.x-bt.x):(Xt.y-bt.y)/(Bt.y-bt.y);if(isNaN(h))return;h<0?J.copy(Xt,bt):h>1&&J.copy(Xt,Bt)}Xt.toArray(r[1])}}}}function pu(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function QM(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 i=Xo(n[0],n[1]),a=Xo(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=Ao([],n[1],n[0],o/i),l=Ao([],n[1],n[2],o/a),u=Ao([],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 jM(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<rs.length;l++){var u=rs[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:et(i.states[u]&&i.states[u].ignore,s);if(v||!et(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&pu(n,!0,u,f);continue}n||(n=new vi,r.setTextGuideLine(n),!h&&(s||!o)&&pu(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),pu(n,!1,u,f)}}if(n){lt(n.style,e),n.style.fill=null;var g=a.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=QM}}function JM(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<be.length;n++){var i=be[n];e[i]=r.getModel([i,t])}return e}function tA(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new os(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function eA(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(w,x){return w.rect[t]-x.rect[t]});for(var s=0,l,u=!1,f=0;f<o;f++){var h=r[f],c=h.rect;l=c[t]-s,l<0&&(c[t]-=l,h.label[t]-=l,u=!0),s=c[t]+c[e]}var v=r[0],d=r[o-1],g,p;y(),g<0&&S(-g,.8),p<0&&S(p,.8),y(),m(g,p,1),m(p,g,-1),y(),g<0&&b(-g),p<0&&b(p);function y(){g=v.rect[t]-n,p=i-d.rect[t]-d.rect[e]}function m(w,x,T){if(w<0){var M=Math.min(x,-w);if(M>0){_(M*T,0,o);var C=M+w;C<0&&S(-C*T,1)}else S(-w*T,1)}}function _(w,x,T){w!==0&&(u=!0);for(var M=x;M<T;M++){var C=r[M],D=C.rect;D[t]+=w,C.label[t]+=w}}function S(w,x){for(var T=[],M=0,C=1;C<o;C++){var D=r[C-1].rect,L=Math.max(r[C].rect[t]-D[t]-D[e],0);T.push(L),M+=L}if(M){var P=Math.min(Math.abs(w)/M,x);if(w>0)for(var C=0;C<o-1;C++){var I=T[C]*P;_(I,0,C+1)}else for(var C=o-1;C>0;C--){var I=T[C-1]*P;_(-I,C,o)}}}function b(w){var x=w<0?-1:1;w=Math.abs(w);for(var T=Math.ceil(w/(o-1)),M=0;M<o-1;M++)if(x>0?_(T,0,M+1):_(-T,o-M-1,o),w-=T,w<=0)return}return u}function rA(r,t,e,n){return eA(r,"y","height",t,e)}function nA(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ot(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 i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.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 os(d.localRect,d.transform)),h||(h=new os(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}const Bi=Object.freeze(Object.defineProperty({__proto__:null,Axis:g0,ChartView:Ut,ComponentModel:ut,ComponentView:ue,List:Yh,Model:mt,PRIORITY:Dm,SeriesModel:te,color:Q1,connect:fD,dataTool:yD,dependencies:$C,disConnect:hD,disconnect:km,dispose:vD,env:K,extendChartView:ZM,extendComponentModel:YM,extendComponentView:$M,extendSeriesModel:XM,format:kM,getCoordinateSystemDimensions:dD,getInstanceByDom:zh,getInstanceById:cD,getMap:gD,graphic:EM,helper:TM,init:uD,innerDrawElementOnCanvas:Oh,matrix:C1,number:IM,parseGeoJSON:Fd,parseGeoJson:Fd,registerAction:In,registerCoordinateSystem:Nm,registerLayout:Fm,registerLoading:Uh,registerLocale:Sh,registerMap:zm,registerPostInit:Om,registerPostUpdate:Bm,registerPreprocessor:Vh,registerProcessor:Hh,registerTheme:Gh,registerTransform:Gm,registerUpdateLifecycle:tl,registerVisual:Wr,setCanvasCreator:pD,setPlatformAPI:Gp,throttle:js,time:RM,use:pr,util:OM,vector:u1,version:YC,zrUtil:J_,zrender:PS},Symbol.toStringTag,{value:"Module"}));var iA=(function(r){q(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 el(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Pt,i=dr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=dr(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})(te);function jh(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=fi(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(fi(r,t,e[o]));return a.join(" ")}}function m0(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!H(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Jh=(function(r){q(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=dr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=aA,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(){ns(this.childAt(0))},t.prototype.downplay=function(){is(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.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):It(c,v,s,n),dh(c)}if(this._updateCommon(e,n,l,i,a),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,Wt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,g,p,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Ra(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=dm(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var w=e.getItemVisual(n,"style"),x=w.fill;if(s instanceof Je){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(z({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(n,"liftZ"),C=this._z2;M!=null?C==null&&(this._z2=s.z2,s.z2+=M):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Ia(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(R){return D?e.getName(R):jh(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;P.scaleX=this._sizeX*I,P.scaleY=this._sizeY*I,this.setSymbolScale(1),Mn(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=st(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ss(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ss(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return MC(e.getItemVisual(n,"symbolSize"))},t})(Pt);function aA(r,t){this.parent.drift(r,t)}function gu(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 Vd(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Hd(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:Ra(t),cursorStyle:t.get("cursor")}}var oA=(function(){function r(t){this.group=new Pt,this._SymbolCtor=t||Jh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vd(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Hd(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(gu(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=a.getItemGraphicEl(c),d=f(h);if(!gu(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 y={x:d[0],y:d[1]};s?v.attr(y):It(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Hd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Vd(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(gu(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Vs(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r})();function _0(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=sA(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=$(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return Ln(t,h[0])&&(c=!0,h[0]=v),Ln(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function sA(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ct(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function S0(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function lA(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function uA(r,t,e,n,i,a,o,s){for(var l=lA(r,t),u=[],f=[],h=[],c=[],v=[],d=[],g=[],p=_0(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,x=void 0;switch(S.cmd){case"=":w=S.idx*2,x=S.idx1*2;var T=y[w],M=y[w+1],C=m[x],D=m[x+1];(isNaN(T)||isNaN(M))&&(T=C,M=D),u.push(T,M),f.push(C,D),h.push(e[w],e[w+1]),c.push(n[x],n[x+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,P=p.dataDimsForPoint,I=i.dataToPoint([t.get(P[0],L),t.get(P[1],L)]);x=L*2,u.push(I[0],I[1]),f.push(m[x],m[x+1]);var R=S0(p,i,t,L);h.push(R[0],R[1]),c.push(n[x],n[x+1]),g.push(t.getRawIndex(L));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(Z,dt){return g[Z]-g[dt]});for(var E=u.length,B=fr(E),k=fr(E),O=fr(E),G=fr(E),V=[],_=0;_<d.length;_++){var N=d[_],F=_*2,U=N*2;B[F]=u[U],B[F+1]=u[U+1],k[F]=f[U],k[F+1]=f[U+1],O[F]=h[U],O[F+1]=h[U+1],G[F]=c[U],G[F+1]=c[U+1],V[_]=v[N]}return{current:B,next:k,stackedOnCurrent:O,stackedOnNext:G,status:V}}var xr=Math.min,Tr=Math.max;function xn(r,t){return isNaN(r)||isNaN(t)}function Mf(r,t,e,n,i,a,o,s,l){for(var u,f,h,c,v,d,g=e,p=0;p<n;p++){var y=t[g*2],m=t[g*2+1];if(g>=i||g<0)break;if(xn(y,m)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var b=g+a,w=t[b*2],x=t[b*2+1];w===y&&x===m&&p<n;)p++,b+=a,g+=a,w=t[b*2],x=t[b*2+1],y=t[g*2],m=t[g*2+1],_=y-u,S=m-f;var T=p+1;if(l)for(;xn(w,x)&&T<n;)T++,b+=a,w=t[b*2],x=t[b*2+1];var M=.5,C=0,D=0,L=void 0,P=void 0;if(T>=n||xn(w,x))v=y,d=m;else{C=w-u,D=x-f;var I=y-u,R=w-y,E=m-f,B=x-m,k=void 0,O=void 0;if(s==="x"){k=Math.abs(I),O=Math.abs(R);var G=C>0?1:-1;v=y-G*k*o,d=m,L=y+G*O*o,P=m}else if(s==="y"){k=Math.abs(E),O=Math.abs(B);var V=D>0?1:-1;v=y,d=m-V*k*o,L=y,P=m+V*O*o}else k=Math.sqrt(I*I+E*E),O=Math.sqrt(R*R+B*B),M=O/(O+k),v=y-C*o*(1-M),d=m-D*o*(1-M),L=y+C*o*M,P=m+D*o*M,L=xr(L,Tr(w,y)),P=xr(P,Tr(x,m)),L=Tr(L,xr(w,y)),P=Tr(P,xr(x,m)),C=L-y,D=P-m,v=y-C*k/O,d=m-D*k/O,v=xr(v,Tr(u,y)),d=xr(d,Tr(f,m)),v=Tr(v,xr(u,y)),d=Tr(d,xr(f,m)),C=y-v,D=m-d,L=y+C*O/k,P=m+D*O/k}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=P}else r.lineTo(y,m)}u=y,f=m,g+=a}return p}var w0=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),fA=(function(r){q(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 w0},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&xn(i[o*2-2],i[o*2-1]);o--);for(;a<o&&xn(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Mf(e,i,a,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 i=this.path,a=i.data,o=Dn.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,g=void 0,p=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],d=a[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=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var b=u?Ko(s,v,g,y,e,f):Ko(l,d,p,m,e,f);if(b>0)for(var w=0;w<b;w++){var x=f[w];if(x<=1&&x>=0){var S=u?Nt(l,d,p,m,x):Nt(s,v,g,y,x);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t})(vt),hA=(function(r){q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(w0),vA=(function(r){q(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 hA},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&xn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&xn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Mf(e,i,o,s,s,1,n.smooth,l,n.connectNulls);Mf(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t})(vt);function b0(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Lt({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=j(i)?function(p){i(p,h)}:null;Wt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,g)}return h}function x0(r,t,e){var n=r.getArea(),i=xt(n.r0,1),a=xt(n.r,1),o=new Be({shape:{cx:xt(r.cx,1),cy:xt(r.cy,1),r0:i,r:a,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=i,Wt(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function cA(r,t,e,n,i){if(r){if(r.type==="polar")return x0(r,t,e);if(r.type==="cartesian2d")return b0(r,t,e,n,i)}else return null;return null}function tv(r,t){return r.type===t}function Wd(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Ud(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function Yd(r,t){var e=Ud(r),n=e[0],i=e[1],a=Ud(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function $d(r){return ct(r)?r:r?.5:0}function dA(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=fr(n*2),a=0;a<n;a++){var o=S0(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Cr(r,t,e,n,i){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],c=[];if(i){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,g=[];u[o]=g[o]=d,u[1-o]=f[1-o],g[1-o]=h[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function pA(r,t){var e=[],n=r.length,i,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=Qf(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)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function gA(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=$(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=pA(u,i==="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,y=p-g;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-g)/y}),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 m=new vh(0,0,0,0,c,!0);return m[i]=g,m[i+"2"]=p,m}}}function yA(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&mA(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function mA(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Jh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function _A(r,t){return isNaN(r)||isNaN(t)}function SA(r){for(var t=r.length/2;t>0&&_A(r[t*2-2],r[t*2-1]);t--);return t-1}function Xd(r,t){return[r[t*2],r[t*2+1]]}function wA(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function T0(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<be.length;t++)if(r.get([be[t],"endLabel","show"]))return!0;return!1}function yu(r,t,e,n){if(tv(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=T0(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=b0(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 x0(t,e,n)}function bA(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var xA=(function(r){q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Pt,n=new oA;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=gt(this._changePolyState,this)},t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,g=this._polygon,p=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=_0(a,s,_),b=m&&dA(a,s,S),w=e.get("showSymbol"),x=e.get("connectNulls"),T=w&&!h&&yA(e,s,a),M=this._data;M&&M.eachItemGraphicEl(function(Z,dt){Z.__temp&&(o.remove(Z),M.setItemGraphicEl(dt,null))}),w||v.remove(),o.add(p);var C=h?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=gA(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&C===this._step))w&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Z){return[f[Z*2],f[Z*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),C&&(b&&(b=Cr(b,f,a,C,x)),f=Cr(f,null,a,C,x)),d=this._newPolyline(f),m?g=this._newPolygon(f,b):g&&(p.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,An(L)),p.setClipPath(yu(this,a,!0,e));else{m&&!g?g=this._newPolygon(f,b):g&&!m&&(p.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,An(L));var P=p.getClipPath();if(P){var I=yu(this,a,!1,e);Wt(P,{shape:I.shape},e)}else p.setClipPath(yu(this,a,!0,e));w&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Z){return[f[Z*2],f[Z*2+1]]}}),(!Wd(this._stackedOnPoints,b)||!Wd(this._points,f))&&(y?this._doUpdateAnimation(s,b,a,i,C,_,x):(C&&(b&&(b=Cr(b,f,a,C,x)),f=Cr(f,null,a,C,x)),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))}var R=e.getModel("emphasis"),E=R.get("focus"),B=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(lt(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),si(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}st(d).seriesIndex=e.seriesIndex,Mn(d,E,B,k);var G=$d(e.get("smooth")),V=e.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:V,connectNulls:x}),g){var N=s.getCalculationInfo("stackedOnSeries"),F=0;g.useStyle(lt(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),N&&(F=$d(N.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:F,smoothMonotone:V,connectNulls:x}),si(g,e,"areaStyle"),st(g).seriesIndex=e.seriesIndex,Mn(g,E,B,k)}var U=this._changePolyState;s.eachItemGraphicEl(function(Z){Z&&(Z.onHoverStateChange=U)}),this._polyline.onHoverStateChange=U,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),g&&this.packEventData(e,g))},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,i,a){var o=e.getData(),s=Cn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],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 Jh(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 Ut.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Cn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ut.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;ec(this._polyline,e),n&&ec(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new fA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new vA({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=j(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(p);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var w=i;a?(y=w.x,m=w.x+w.width,_=v.x):(y=w.y+w.height,m=w.y,_=v.y)}var x=m===y?0:(_-y)/(m-y);l&&(x=1-x);var T=j(h)?h(d):f*x+c,M=g.getSymbolPath(),C=M.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(T0(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 Dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=SA(l);f>=0&&(Ia(s,Ra(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?m0(o,v):jh(o,h)},enableTextSetter:!0},bA(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),w=(y?0:-g)*(m?-1:1),x=y?"x":"y",T=wA(h,S,x),M=T.range,C=M[1]-M[0],D=void 0;if(C>=1){if(C>1&&!v){var L=Xd(h,M[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(D=c.getRawValue(M[0]))}else{var L=f.getPointOn(S,x);L&&u.attr({x:L[0]+b,y:L[1]+w});var P=c.getRawValue(M[0]),I=c.getRawValue(M[1]);o&&(D=Rg(i,d,P,I,T.t))}a.lastFrameIndex=M[0]}else{var R=e===1||a.lastFrameIndex>0?M[0]:0,L=Xd(h,R);o&&(D=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var E=Ea(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=uA(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(d=Cr(c.stackedOnCurrent,c.current,i,o,l),v=Cr(c.current,null,i,o,l),p=Cr(c.stackedOnNext,c.next,i,o,l),g=Cr(c.next,null,i,o,l)),Yd(v,g)>3e3||f&&Yd(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 y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),It(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),It(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;T<m.length;T++){var M=m[T].el,C=m[T].ptIdx*2;M.x=x[C],M.y=x[C+1],M.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ut);function TA(r,t){return{seriesType:r,plan:kh(),reset:function(e){var n=e.getData(),i=e.coordinateSystem;if(e.pipelineContext,!!i){var a=$(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Ln(n,a[0])&&(a[0]=s),Ln(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,c){for(var v=h.end-h.start,d=fr(v*o),g=[],p=[],y=h.start,m=0;y<h.end;y++){var _=void 0;if(o===1){var S=l.get(u,y);_=i.dataToPoint(S,null,p)}else g[0]=l.get(u,y),g[1]=l.get(f,y),_=i.dataToPoint(g,null,p);d[m++]=_[0],d[m++]=_[1]}c.setLayout("points",d)}}}}}}var CA={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},nearest:function(r){return r[0]}},DA=function(r){return Math.round(r.length/2)};function C0(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){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){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Y(a)?d=CA[a]:j(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,DA))}}}}}function MA(r){r.registerChartView(xA),r.registerSeriesModel(iA),r.registerLayout(TA("line")),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,C0("line"))}var Af=(function(r){q(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 el(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),p=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,x=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(x===p){_=w;break}else if(x<p)m=w;else if(m!=null&&x>p){_=(w+m)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(m?m&&(_=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=a.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})(te);te.registerClass(Af);var AA=(function(r){q(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 el(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,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=xy(Af.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})(Af),LA=(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})(),ws=(function(r){q(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new LA},t.prototype.buildPath=function(e,n){var i=n.cx,a=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),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(g*o+i,p*o+a),e.arc(g*u+i,p*u+a,l,-Math.PI+f,f,!c)):e.moveTo(g*s+i,p*s+a),e.arc(i,a,s,f,h,!c),e.arc(y*u+i,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(i,a,o,h,f,c)},t})(vt);function PA(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return ts(n,i,a);var s=r(o),l=i.distance!=null?i.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,y=(g+p)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(g),w=h+c*S(g),x="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),w=h+(v-l)*S(y),x="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),w=h+(v+l)*S(y),x="center",T="bottom";break;case"startAngle":b=f+d*_(g)+_o(g,l+m,!1),w=h+d*S(g)+So(g,l+m,!1),x="right",T="middle";break;case"insideStartAngle":b=f+d*_(g)+_o(g,-l+m,!1),w=h+d*S(g)+So(g,-l+m,!1),x="left",T="middle";break;case"middle":b=f+d*_(y),w=h+d*S(y),x="center",T="middle";break;case"endArc":b=f+(c+l)*_(y),w=h+(c+l)*S(y),x="center",T="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),w=h+(c-l)*S(y),x="center",T="top";break;case"endAngle":b=f+d*_(p)+_o(p,l+m,!0),w=h+d*S(p)+So(p,l+m,!0),x="left",T="middle";break;case"insideEndAngle":b=f+d*_(p)+_o(p,-l+m,!0),w=h+d*S(p)+So(p,-l+m,!0),x="right",T="middle";break;default:return ts(n,i,a)}return n=n||{},n.x=b,n.y=w,n.align=x,n.verticalAlign=T,n}}function IA(r,t,e,n){if(ct(n)){r.setTextConfig({rotation:n});return}else if(H(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+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=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function _o(r,t,e){return t*Math.sin(r)*(e?-1:1)}function So(r,t,e){return t*Math.cos(r)*(e?1:-1)}function $i(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;H(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:$(n,function(a){return Vr(a,i)})}}var mu=Math.max,_u=Math.min;function RA(r,t){var e=r.getArea&&r.getArea();if(tv(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var EA=(function(r){q(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,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},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){Vs(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,i,a){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=kA(e,u);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,g=RA(u,s);o.removeClipPath();var p=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T(D){var L=wo[u.type](s,D),P=VA(u,h,L);return P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[D]=P,P}s.diff(l).add(function(D){var L=s.getItemModel(D),P=wo[u.type](s,D,L);if(y&&T(D),!(!s.hasValue(D)||!jd[u.type](P))){var I=!1;d&&(I=Zd[u.type](g,P));var R=qd[u.type](e,s,D,P,h,c,f.model,!1,p);v&&(R.forceLabelAnimation=!0),Jd(R,s,D,L,P,e,h,u.type==="polar"),w?R.attr({shape:P}):v?Kd(v,c,R,P,D,h,!1,!1):Wt(R,{shape:P},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=I}}).update(function(D,L){var P=s.getItemModel(D),I=wo[u.type](s,D,P);if(y){var R=void 0;b.length===0?R=T(L):(R=b[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=wo[u.type](s,D),B=M0(h,E,u);It(R,{shape:B},c,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!jd[u.type](I)){o.remove(k);return}var O=!1;if(d&&(O=Zd[u.type](g,I),O&&o.remove(k)),k?dh(k):k=qd[u.type](e,s,D,I,h,c,f.model,!!k,p),v&&(k.forceLabelAnimation=!0),x){var G=k.getTextContent();if(G){var V=Ea(G);V.prevValue!=null&&(V.prevValue=V.value)}}else Jd(k,s,D,P,I,e,h,u.type==="polar");w?k.attr({shape:I}):v?Kd(v,c,k,I,D,h,!0,x):It(k,{shape:I},e,D,null),s.setItemGraphicEl(D,k),k.ignore=O,o.add(k)}).remove(function(D){var L=l.getItemGraphicEl(D);L&&ls(L,e,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Pt);M.removeAll();for(var C=0;C<S.length;++C)M.add(S[C]);o.add(M),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),ep(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),ep(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&cA(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),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(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.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 i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.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,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ls(a,e,st(a).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})(Ut),Zd={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 i=r.x+r.width,a=r.y+r.height,o=mu(t.x,r.x),s=_u(t.x+t.width,i),l=mu(t.y,r.y),u=_u(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?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 i=_u(t.r,r.r),a=mu(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},qd={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Lt({shape:z({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?ws:Be,f=new u({shape:n,z2:1});f.name="item";var h=D0(i);if(f.calculateTextPosition=PA(h,{isRoundCap:u===ws}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?It:Wt)(f,{shape:d},a)}return f}};function kA(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 Kd(r,t,e,n,i,a,o,s){var l,u;a?(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?It:Wt)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?It:Wt)(e,{shape:u},f,i)}function Qd(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var OA=["x","y","width","height"],BA=["cx","cy","r","startAngle","endAngle"],jd={cartesian2d:function(r){return!Qd(r,OA)},polar:function(r){return!Qd(r,BA)}},wo={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?FA(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},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 NA(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function D0(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 Jd(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=$i(n.getModel("itemStyle"),f,!0);z(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?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ra(n);Ia(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:jh(a.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,IA(r,p==="outside"?v:p,D0(o),n.get(["label","rotate"]))}Sy(g,d,a.getRawValue(e),function(m){return m0(t,m)});var y=n.getModel(["emphasis"]);Mn(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),si(r,n),NA(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function FA(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var zA=(function(){function r(){}return r})(),tp=(function(r){q(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new zA},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(vt);function ep(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new tp({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new tp({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,st(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",rp),h.on("mousemove",rp)),e&&e.push(h)}var rp=js(function(r){var t=this,e=GA(t,r.offsetX,r.offsetY);st(t).dataIndex=e>=0?e:null},30,!1);function GA(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function M0(r,t,e){if(tv(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function VA(r,t,e){var n=r.type==="polar"?Be:Lt;return new n({shape:M0(t,e,r),silent:!0,z2:0})}function HA(r){r.registerChartView(EA),r.registerSeriesModel(AA),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,St(KD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,QD("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,C0("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var np=Math.PI*2,bo=Math.PI/180;function A0(r,t){return li(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function L0(r,t){var e=A0(r,t),n=r.get("center"),i=r.get("radius");H(i)||(i=[0,i]);var a=tt(e.width,t.getWidth()),o=tt(e.height,t.getHeight()),s=Math.min(a,o),l=tt(i[0],s/2),u=tt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else H(n)||(n=[n,n]),f=tt(n[0],a)+e.x,h=tt(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function WA(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=A0(n,e),s=L0(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*bo,v=n.get("endAngle"),d=n.get("padAngle")*bo;v=v==="auto"?c-np:-v*bo;var g=n.get("minAngle")*bo,p=g+d,y=0;i.each(a,function(B){!isNaN(B)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),b=n.get("roseType"),w=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var T=S?1:-1,M=[c,v],C=T*d/2;sh(M,!S),c=M[0],v=M[1];var D=P0(n);D.startAngle=c,D.endAngle=v,D.clockwise=S;var L=Math.abs(v-c),P=L,I=0,R=c;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(B,k){var O;if(isNaN(B)){i.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?O=m===0&&w?_:B*_:O=L/y,O<p?(O=p,P-=p):I+=B;var G=R+T*O,V=0,N=0;d>O?(V=R+T*O/2,N=V):(V=R+C,N=G-C),i.setItemLayout(k,{angle:O,startAngle:V,endAngle:N,clockwise:S,cx:l,cy:u,r0:h,r:b?Ie(B,x,[h,f]):f}),R=G}),P<np&&y)if(P<=.001){var E=L/y;i.each(a,function(B,k){if(!isNaN(B)){var O=i.getItemLayout(k);O.angle=E;var G=0,V=0;E<d?(G=c+T*(k+1/2)*E,V=G):(G=c+T*k*E+C,V=c+T*(k+1)*E-C),O.startAngle=G,O.endAngle=V}})}else _=P/I,R=c,i.each(a,function(B,k){if(!isNaN(B)){var O=i.getItemLayout(k),G=O.angle===p?p:B*_,V=0,N=0;G<d?(V=R+T*G/2,N=V):(V=R+C,N=R+T*G-C),O.startAngle=V,O.endAngle=N,R+=T*G}})})}var P0=Mt();function UA(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var YA=Math.PI/180;function ip(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],S=Math.abs(_.label.y-e),b=n+_.len,w=b*b,x=Math.sqrt(Math.abs((1-S*S/y)*w)),T=t+(x+_.len2)*i,M=T-_.label.x,C=_.targetTextWidth-M*i;I0(_,C,!0),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],S=_.label.y>e?y:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var w=_.label.x-t-_.len2*i,x=n+_.len,T=Math.abs(w)<x?Math.sqrt(b*b/(1-w*w/x/x)):x;S.rB=T,S.maxY=b}S.list.push(_)}f(p),f(y)}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}rA(r,l,l+o)&&h(r)}function $A(r,t,e,n,i,a,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;Su(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(!Su(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+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,I0(d,p)}}ip(u,t,e,n,1,i,a,o,s,h),ip(l,t,e,n,-1,i,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Su(d)&&d.linePoints){var v=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,w=g[1][0]-g[2][0];y?v.x<t?g[2][0]=o+d.edgeDistance+b+d.labelDistance:g[2][0]=o+i-d.edgeDistance-b-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]+w),g[1][1]=g[2][1]=v.y}}}function I0(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.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();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function Su(r){return r.position==="center"}function XA(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*YA,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),T=x.shape,M=x.getTextContent(),C=x.getTextGuideLine(),D=t.getItemModel(w),L=D.getModel("label"),P=L.get("position")||D.get(["emphasis","label","position"]),I=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=tt(L.get("edgeDistance"),u),B=L.get("bleedMargin"),k=D.getModel("labelLine"),O=k.get("length");O=tt(O,u);var G=k.get("length2");if(G=tt(G,u),Math.abs(T.endAngle-T.startAngle)<o){A(M.states,v),M.ignore=!0,C&&(A(C.states,v),C.ignore=!0);return}if(d(M)){var V=(T.startAngle+T.endAngle)/2,N=Math.cos(V),F=Math.sin(V),U,Z,dt,Et;n=T.cx,i=T.cy;var wt=P==="inside"||P==="inner";if(P==="center")U=T.cx,Z=T.cy,Et="center";else{var kt=(wt?(T.r+T.r0)/2*N:T.r*N)+n,Tt=(wt?(T.r+T.r0)/2*F:T.r*F)+i;if(U=kt+N*3,Z=Tt+F*3,!wt){var Q=kt+N*(O+l-T.r),nt=Tt+F*(O+l-T.r),ze=Q+(N<0?-1:1)*G,Rt=nt;R==="edge"?U=N<0?f+E:f+u-E:U=ze+(N<0?-I:I),Z=Rt,dt=[[kt,Tt],[Q,nt],[ze,Rt]]}Et=wt?"center":R==="edge"?N>0?"right":"left":N>0?"left":"right"}var yr=Math.PI,rr=0,gi=L.get("rotate");if(ct(gi))rr=gi*(yr/180);else if(P==="center")rr=0;else if(gi==="radial"||gi===!0){var Q0=N<0?-V+yr:-V;rr=Q0}else if(gi==="tangential"&&P!=="outside"&&P!=="outer"){var Rn=Math.atan2(N,F);Rn<0&&(Rn=yr*2+Rn);var j0=F>0;j0&&(Rn=yr+Rn),rr=Rn-yr}if(a=!!rr,M.x=U,M.y=Z,M.rotation=rr,M.setStyle({verticalAlign:"middle"}),wt){M.setStyle({align:Et});var al=M.states.select;al&&(al.x+=M.x,al.y+=M.y)}else{var yi=M.getBoundingRect().clone();yi.applyTransform(M.getComputedTransform());var iv=(M.style.margin||0)+2.1;yi.y-=iv/2,yi.height+=iv,e.push({label:M,labelLine:C,position:P,len:O,len2:G,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new J(N,F),linePoints:dt,textAlign:Et,labelDistance:I,labelAlignTo:R,edgeDistance:E,bleedMargin:B,rect:yi,unconstrainedWidth:yi.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:wt})}}),!a&&r.get("avoidLabelOverlap")&&$A(e,n,i,l,u,c,f,h);for(var g=0;g<e.length;g++){var p=e[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(A(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=p.linePoints;_||!b?(A(m.states,v),m.ignore=!0):(qM(b,p.minTurnAngle),KM(b,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new J(b[0][0],b[0][1])})}}}var ZA=(function(r){q(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Dt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=z($i(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Wt(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,Wt(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Wt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,It(o,{shape:{endAngle:f.endAngle}},s,n))}else dh(o),It(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),si(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=z({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},$i(u.getModel("itemStyle"),f)),z(o.ensureState("select"),{x:g,y:p,shape:$i(l.getModel(["select","itemStyle"]),f)}),z(o.ensureState("blur"),{shape:$i(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&z(m.ensureState("select"),{x:g,y:p}),z(_.ensureState("select"),{x:g,y:p}),Mn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Ia(a,Ra(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new vi,this.setTextGuideLine(v)),jM(this,JM(o),{stroke:u,opacity:Jn(s.get(["lineStyle","opacity"]),f,1)})}},t})(Be),qA=(function(r){q(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,i,a){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=P0(e),v=new Be({shape:z(L0(e,i),c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var g=new ZA(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);ls(g,e,d)}).execute(),XA(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t})(Ut);function R0(r,t,e){t=H(t)&&{coordDimensions:t}||z({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=$h(n,t).dimensions,a=new Yh(i,r);return a.initData(n,e),a}var KA=(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})(),QA=Mt(),jA=(function(r){q(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 KA(gt(this.getData,this),gt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return R0(this,{coordDimensions:["value"],encodeDefaulter:St(Ix,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=QA(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Tg(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ku(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.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})(te);function JA(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ct(o)&&!isNaN(o)&&o<0)})}}}function t2(r){r.registerChartView(qA),r.registerSeriesModel(jA),dC("pie",r.registerAction),r.registerLayout(St(WA,"pie")),r.registerProcessor(UA("pie")),r.registerProcessor(JA("pie"))}var e2=(function(r){q(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})(ut),Lf=(function(r){q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ee).models[0]},t.type="cartesian2dAxis",t})(ut);xe(Lf,o0);var E0={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,showMinLine:!0,showMaxLine:!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)"]}}},r2=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E0),ev=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},E0),n2=at({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ev),i2=lt({logBase:10},ev);const a2={category:r2,value:ev,time:n2,log:i2};var o2={value:1,category:1,time:1,log:1};function ap(r,t,e,n){A(o2,function(i,a){var o=at(at({},a2[a],!0),n,!0),s=(function(l){q(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=da(this),v=c?Zs(f):{},d=h.getTheme();at(f,d.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=op(f),c&&ui(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Tf.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."+a,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",op)}function op(r){return r.type||(r.data?"category":"value")}var s2=(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 $(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),At(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})(),Pf=["x","y"];function sp(r){return r.type==="interval"||r.type==="time"}var l2=(function(r){q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Pf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!sp(e)||!sp(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Ta([],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"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.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 i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Kt(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.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 i=[];if(this._invTransform)return Kt(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},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(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new ot(a,o,s,l)},t})(s2),u2=(function(r){q(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"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})(g0);function If(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.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])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),oi(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function lp(r){return r.get("coordinateSystem")==="cartesian2d"}function up(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ee).models[0];t[n]=a}),t}var wu=Math.log;function f2(r,t,e){var n=di.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=n0(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=wu(r.base);u=[wu(u[0])/c,wu(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=vu(d),p=u[0]+d*o;else if(h)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=vu(d),g=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=vu(d));var m=d*o;p=Math.ceil(u[1]/d)*d,g=xt(p-m),g<0&&u[0]>=0?(g=0,p=xt(m)):p>0&&u[1]<=0&&(p=0,g=-xt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[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 h2=(function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Pf,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 i(o){var s,l=_t(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;Cf(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Df(g,d),Cf(g)&&(s=v))}f.length&&(s||(s=f.pop(),Df(s.scale,s.model)),A(f,function(p){f2(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){fp(n,"y",o,a)}),A(n.y,function(o){fp(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=li(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=gM(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()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(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]),v2(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 i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ee).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ee).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ht(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.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 i=this,a=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,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,g=new l2(d);g.master=i,g.model=t,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function u(f){return function(h,c){if(bu(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 u2(f,i0(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=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(lp(i)){var a=up(i),o=a.xAxisModel,s=a.yAxisModel;if(!bu(o,e)||!bu(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){A(mM(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ht(e,a)<0&&e.push(a),ht(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(lp(i)){var a=up(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Pf,r})();function bu(r,t){return r.getCoordSysModel()===t}function fp(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)hp(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&hp(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function hp(r){return r&&r.type!=="category"&&r.type!=="time"&&pM(r)}function v2(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var kr=Math.PI,zr=(function(){function r(t,e){this.group=new Pt,this.opt=e,this.axisModel=t,lt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Pt({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!vp[t]},r.prototype.add=function(t){vp[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=rh(e-t),a,o;return la(i)?(o=n>0?"top":"bottom",a="center"):la(i-kr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<kr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,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})(),vp={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Kt(s,s,o),Kt(l,l,o));var f=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ne({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});va(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"]);Y(c)&&(c=[c,c]),(Y(v)||ct(v))&&(v=[v,v]);var d=dm(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{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(y,m){if(c[m]!=="none"&&c[m]!=null){var _=dr(c[m],-g/2,-p/2,g,p,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=p2(e,n,t,r),a=y2(e,n,t,r);if(d2(t,a,i),g2(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=tA($(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));nA(o)}},axisName:function(r,t,e,n){var i=oi(r.axisName,t.get("name"));if(i){var a=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=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,dp(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*kr/180);var d;dp(a)?c=zr.innerTextLayout(r.rotation,v??r.rotation,o):(c=c2(r.rotation,a,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)||{},y=p.ellipsis,m=oi(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Dt({x:h[0],y:h[1],rotation:c.rotation,silent:zr.isLabelSilent(t),style:ke(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Gs({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=zr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,st(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function c2(r,t,e,n){var i=rh(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return la(i-kr/2)?(o=l?"bottom":"top",a="center"):la(i-kr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<kr*1.5&&i>kr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function d2(r,t,e){if(!a0(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=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?(he(a),he(u)):cp(a,o)&&(n?(he(o),he(f)):(he(a),he(u))),i===!1?(he(s),he(h)):cp(l,s)&&(i?(he(l),he(c)):(he(s),he(h)))}}function he(r){r&&(r.ignore=!0)}function cp(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=xa([]);return Cs(i,i,-r.rotation),e.applyTransform(Br([],i,r.getLocalTransform())),n.applyTransform(Br([],i,t.getLocalTransform())),e.intersect(n)}}function dp(r){return r==="middle"||r==="center"}function k0(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Kt(o,o,t),Kt(s,s,t));var f=new Ne({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});va(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function p2(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=k0(u,t.transform,l,lt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function g2(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=lt(s.getLineStyle(),lt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=k0(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function y2(r,t,e,n){var i=e.axis,a=oi(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(oi(n.labelRotate,o.get("rotate"))||0)*kr/180,f=zr.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=zr.isLabelSilent(e),d=e.get("triggerEvent");return A(l,function(g,p){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,S=o;if(h&&h[y]){var b=h[y];X(b)&&b.textStyle&&(S=new mt(b.textStyle,o,e.ecModel))}var w=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,M=et(S.getShallow("alignMinLabel",!0),T),C=et(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,L=et(S.getShallow("verticalAlignMinLabel",!0),D),P=et(S.getShallow("verticalAlignMaxLabel",!0),D),I=new Dt({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:ke(S,{text:m,align:p===0?M:p===l.length-1?C:T,verticalAlign:p===0?L:p===l.length-1?P:D,fill:j(w)?w(i.type==="category"?_:i.type==="value"?y+"":y,p):w})});if(I.anid="label_"+y,Gs({el:I,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:_,tickIndex:p}}),d){var R=zr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=p,i.type==="category"&&(R.dataIndex=y),st(I).eventData=R}t.add(I),I.updateTransform(),c.push(I),r.add(I),I.decomposeTransform()}),c}}function m2(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return _2(e,r,t),e.seriesInvolved&&w2(e,r),e}function _2(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Sa(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(A(s.getAxes(),St(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)&&A(d.baseAxes,St(g,v?"cross":!0,c)),v&&A(d.otherAxes,St(g,"cross",!1))}function g(p,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!p&&!Rf(_))){y==null&&(y=_.get("triggerTooltip")),_=p?S2(m,h,i,t,p,y):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),x=Sa(m.model),T=y||b||m.type==="category",M=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:T,snap:b,useHandle:Rf(_),seriesModels:[],linkGroup:null};u[x]=M,r.seriesInvolved=r.seriesInvolved||T;var C=b2(a,m);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[x]=M,D.mapper=a[C].mapper,M.linkGroup=D}}}})}function S2(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=it(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&lt(u,h.textStyle)}}return r.model.getModel("axisPointer",new mt(l,e,n))}function w2(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Sa(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 b2(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(xu(a[n+"AxisId"],e.id)||xu(a[n+"AxisIndex"],e.componentIndex)||xu(a[n+"AxisName"],e.name))return i}}function xu(r,t){return r==="all"||H(r)&&ht(r,t)>=0||r===t}function x2(r){var t=rv(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Rf(e);a==null&&(i.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]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function rv(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Sa(r)]}function T2(r){var t=rv(r);return t&&t.axisPointerModel}function Rf(r){return!!r.get(["handle","show"])}function Sa(r){return r.type+"||"+r.id}var pp={},O0=(function(r){q(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,i,a){this.axisPointerClass&&x2(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=T2(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){pp[e]=n},t.getAxisPointerClass=function(e){return e&&pp[e]},t.type="axis",t})(ue),Ef=Mt();function C2(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Ef(r).splitAreaColors,c=rt(),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=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=H(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;i.isHorizontal()?(_=p,S=l.y,b=m-_,w=l.height,p=_+b):(_=l.x,S=p,b=l.width,w=m-S,p=S+w);var x=u[d-1].tickValue;x!=null&&c.set(x,v),t.add(new Lt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:b,height:w},style:lt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Ef(r).splitAreaColors=c}}}function D2(r){Ef(r).splitAreaColors=null}var M2=["axisLine","axisTickLabel","axisName"],A2=["splitArea","splitLine","minorSplitLine"],B0=(function(r){q(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,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Pt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=If(s,e),u=new zr(e,z({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Cf(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));A(M2,u.add,u),this._axisGroup.add(u.getGroup()),A(A2,function(h){e.get([h,"show"])&&L2[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||py(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){D2(this)},t.type="cartesianAxis",t})(O0),L2={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=H(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=i.isHorizontal(),c=0,v=i.getTicksCoords({tickModel:a}),d=[],g=[],p=o.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var _=v[y].tickValue;h?(d[0]=m,d[1]=f.y,g[0]=m,g[1]=f.y+f.height):(d[0]=f.x,d[1]=m,g[0]=f.x+f.width,g[1]=m);var S=c++%s.length,b=new Ne({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:lt({stroke:s[S]},p),silent:!0});va(b.shape,p.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.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=i.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 Ne({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});va(p.shape,c.lineWidth),t.add(p)}},splitArea:function(r,t,e,n){C2(r,t,e,n)}},N0=(function(r){q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(B0),P2=(function(r){q(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=N0.type,e}return t.type="yAxis",t})(B0),I2=(function(r){q(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 Lt({shape:e.coordinateSystem.getRect(),style:lt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(ue),gp={offset:0};function R2(r){r.registerComponentView(I2),r.registerComponentModel(e2),r.registerCoordinateSystem("cartesian2d",h2),ap(r,"x",Lf,gp),ap(r,"y",Lf,gp),r.registerComponentView(N0),r.registerComponentView(P2),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var E2=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),k2=(function(r){q(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new E2},t.prototype.buildPath=function(e,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),f=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+i(l)*s,n.y+a(l)*s),e.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),e.lineTo(n.x-i(l)*s,n.y-a(l)*s),e.lineTo(u,f)},t})(vt);function O2(r,t){var e=r.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=tt(e[0],t.getWidth()),s=tt(e[1],t.getHeight()),l=tt(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function xo(r,t){var e=r==null?"":r+"";return t&&(Y(t)?e=t.replace("{value}",e):j(t)&&(e=t(r))),e}var B2=(function(r){q(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,i){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),o=O2(e,i);this._renderMain(e,n,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,i,a,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?ws:Be,d=h.get("show"),g=h.getModel("lineStyle"),p=g.get("width"),y=[u,f];sh(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<a.length;b++){var w=Math.min(Math.max(a[b][0],0),1);f=u+m*w;var x=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});x.setStyle({fill:a[b][1]}),x.setStyle(g.getLineStyle(["color","width"])),S.push(x),_=f}S.reverse(),A(S,function(M){return s.add(M)});var T=function(M){if(M<=0)return a[0][1];var C;for(C=0;C<a.length;C++)if(a[C][0]>=M&&(C===0?0:a[C-1][0])<M)return a[C][1];return a[C-1][1]};this._renderTicks(e,n,i,T,o,u,f,l,p),this._renderTitleAndDetail(e,n,i,T,o),this._renderAnchor(e,o),this._renderPointer(e,n,i,T,o,u,f,l,p)},t.prototype._renderTicks=function(e,n,i,a,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"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),b=m.get("splitNumber"),w=tt(y.get("length"),d),x=tt(m.get("length"),d),T=s,M=(l-s)/S,C=M/b,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),P=y.get("distance"),I,R,E=0;E<=S;E++){if(I=Math.cos(T),R=Math.sin(T),y.get("show")){var B=P?P+f:f,k=new Ne({shape:{x1:I*(d-B)+c,y1:R*(d-B)+v,x2:I*(d-w-B)+c,y2:R*(d-w-B)+v},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:a(E/S)}),h.add(k)}if(_.get("show")){var B=_.get("distance")+P,O=xo(xt(E/S*(p-g)+g),_.get("formatter")),G=a(E/S),V=I*(d-w-B)+c,N=R*(d-w-B)+v,F=_.get("rotate"),U=0;F==="radial"?(U=-T+2*Math.PI,U>Math.PI/2&&(U+=Math.PI)):F==="tangential"?U=-T-Math.PI/2:ct(F)&&(U=F*Math.PI/180),U===0?h.add(new Dt({style:ke(_,{text:O,x:V,y:N,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:I<-.4?"left":I>.4?"right":"center"},{inheritColor:G}),silent:!0})):h.add(new Dt({style:ke(_,{text:O,x:V,y:N,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:V,originY:N,rotation:U}))}if(m.get("show")&&E!==S){var B=m.get("distance");B=B?B+f:f;for(var Z=0;Z<=b;Z++){I=Math.cos(T),R=Math.sin(T);var dt=new Ne({shape:{x1:I*(d-B)+c,y1:R*(d-B)+v,x2:I*(d-x-B)+c,y2:R*(d-x-B)+v},silent:!0,style:L});L.stroke==="auto"&&dt.setStyle({stroke:a((E+Z/b)/S)}),h.add(dt),T+=C}T-=C}else T+=M}},t.prototype._renderPointer=function(e,n,i,a,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"),y=p.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),w=[S,b],x=[s,l];function T(C,D){var L=m.getItemModel(C),P=L.getModel("pointer"),I=tt(P.get("width"),o.r),R=tt(P.get("length"),o.r),E=e.get(["pointer","icon"]),B=P.get("offsetCenter"),k=tt(B[0],o.r),O=tt(B[1],o.r),G=P.get("keepAspect"),V;return E?V=dr(E,k-I/2,O-R,I,R,null,G):V=new k2({shape:{angle:-Math.PI/2,width:I,r:R,x:k,y:O}}),V.rotation=-(D+Math.PI/2),V.x=o.cx,V.y=o.cy,V}function M(C,D){var L=p.get("roundCap"),P=L?ws:Be,I=p.get("overlap"),R=I?p.get("width"):f/m.count(),E=I?o.r-R:o.r-(C+1)*R,B=I?o.r:o.r-C*R,k=new P({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:B}});return I&&(k.z2=Ie(m.get(_,C),[S,b],[100,0],!0)),k}(y||g)&&(m.diff(c).add(function(C){var D=m.get(_,C);if(g){var L=T(C,s);Wt(L,{rotation:-((isNaN(+D)?x[0]:Ie(D,w,x,!0))+Math.PI/2)},e),h.add(L),m.setItemGraphicEl(C,L)}if(y){var P=M(C,s),I=p.get("clip");Wt(P,{shape:{endAngle:Ie(D,w,x,I)}},e),h.add(P),tf(e.seriesIndex,m.dataType,C,P),d[C]=P}}).update(function(C,D){var L=m.get(_,C);if(g){var P=c.getItemGraphicEl(D),I=P?P.rotation:s,R=T(C,I);R.rotation=I,It(R,{rotation:-((isNaN(+L)?x[0]:Ie(L,w,x,!0))+Math.PI/2)},e),h.add(R),m.setItemGraphicEl(C,R)}if(y){var E=v[D],B=E?E.shape.endAngle:s,k=M(C,B),O=p.get("clip");It(k,{shape:{endAngle:Ie(L,w,x,O)}},e),h.add(k),tf(e.seriesIndex,m.dataType,C,k),d[C]=k}}).execute(),m.each(function(C){var D=m.getItemModel(C),L=D.getModel("emphasis"),P=L.get("focus"),I=L.get("blurScope"),R=L.get("disabled");if(g){var E=m.getItemGraphicEl(C),B=m.getItemVisual(C,"style"),k=B.fill;if(E instanceof Je){var O=E.style;E.useStyle(z({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},B))}else E.useStyle(B),E.type!=="pointer"&&E.setColor(k);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",a(Ie(m.get(_,C),w,[0,1],!0))),E.z2EmphasisLift=0,si(E,D),Mn(E,P,I,R)}if(y){var G=d[C];G.useStyle(m.getItemVisual(C,"style")),G.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,si(G,D),Mn(G,P,I,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var i=e.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),f=dr(s,n.cx-o/2+tt(l[0],n.r),n.cy-o/2+tt(l[1],n.r),o,o,null,u);f.z2=i.get("showAbove")?1:0,f.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,i,a,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),h=+e.get("max"),c=new Pt,v=[],d=[],g=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Dt({silent:!0}),d[y]=new Dt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new Pt,b=a(Ie(_,[f,h],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var x=w.get("offsetCenter"),T=o.cx+tt(x[0],o.r),M=o.cy+tt(x[1],o.r),C=v[y];C.attr({z2:p?0:2,style:ke(w,{x:T,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(C)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),P=o.cx+tt(L[0],o.r),I=o.cy+tt(L[1],o.r),R=tt(D.get("width"),o.r),E=tt(D.get("height"),o.r),B=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,C=d[y],k=D.get("formatter");C.attr({z2:p?0:2,style:ke(D,{x:P,y:I,text:xo(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:B})}),Sy(C,{normal:D},_,function(G){return xo(G,k)}),g&&ex(C,y,l,e,{getFormattedLabel:function(G,V,N,F,U,Z){return xo(Z?Z.interpolatedValue:_,k)}}),S.add(C)}c.add(S)}),this.group.add(c),this._titleEls=v,this._detailEls=d},t.type="gauge",t})(Ut),N2=(function(r){q(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 R0(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})(te);function F2(r){r.registerChartView(B2),r.registerSeriesModel(N2)}var vn=Mt(),yp=it,Tu=gt,z2=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,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 Pt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var c=St(mp,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}Sp(s,e,!0),this._renderHandle(a)}},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"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=rv(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=vn(t).pointerEl=new Qb[a.type](yp(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=vn(t).labelEl=new Dt(yp(e.label));t.add(a),_p(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=vn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=vn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),_p(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=zs(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){tg(u.event)},onmousedown:Tu(this._onHandleDragMove,this,0,0),drift:Tu(this._onHandleDragMove,this),ondragend:Tu(this._onHandleDragEnd,this)}),n.add(i)),Sp(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");H(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,om(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){mp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Cu(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Cu(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Cu(i)),vn(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,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),pf(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 mp(r,t,e,n){F0(vn(e).lastProp,n)||(vn(e).lastProp=n,t?It(e,n,r):(e.stopAnimation(),e.attr(n)))}function F0(r,t){if(X(r)&&X(t)){var e=!0;return A(t,function(n,i){e=e&&F0(r[i],n)}),!!e}else return r===t}function _p(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Cu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Sp(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}function G2(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 V2(r,t,e,n,i){var a=e.get("value"),o=z0(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Oa(s.get("padding")||0),u=s.getFont(),f=th(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),H2(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:ke(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function H2(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function z0(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Kh(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Y(o)?a=o.replace("{value}",a):j(o)&&(a=o(s))}return a}function G0(r,t,e){var n=Or();return Cs(n,n,e.rotation),Zo(n,n,e.position),yh([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function W2(r,t,e,n,i,a){var o=zr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),V2(t,n,i,a,{position:G0(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function U2(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function Y2(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var $2=(function(r){q(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=wp(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=G2(a),v=X2[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=If(l.model,i);W2(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=If(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=G0(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=wp(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})(z2);function wp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var X2={line:function(r,t,e){var n=U2([t,e[0]],[t,e[1]],bp(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:Y2([t-n/2,e[0]],[n,i],bp(r))}}};function bp(r){return r.dim==="x"?0:1}var Z2=(function(r){q(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})(ut),hr=Mt(),q2=A;function V0(r,t,e){if(!K.node){var n=t.getZr();hr(n).records||(hr(n).records={}),K2(n,t);var i=hr(n).records[r]||(hr(n).records[r]={});i.handler=e}}function K2(r,t){if(hr(r).initialized)return;hr(r).initialized=!0,e("click",St(xp,"click")),e("mousemove",St(xp,"mousemove")),e("globalout",j2);function e(n,i){r.on(n,function(a){var o=J2(t);q2(hr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),Q2(o.pendings,t)})}}function Q2(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function j2(r,t,e){r.handler("leave",null,e)}function xp(r,t,e,n){t.handler(r,e,n)}function J2(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function kf(r,t){if(!K.node){var e=t.getZr(),n=(hr(e).records||{})[r];n&&(hr(e).records[r]=null)}}var tL=(function(r){q(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,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";V0("axisPointer",i,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){kf("axisPointer",n)},t.prototype.dispose=function(e,n){kf("axisPointer",n)},t.type="axisPointer",t})(ue);function H0(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Cn(a,r);if(o==null||o<0||H(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.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=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues($(l.dimensions,function(y){return a.mapDimension(y)}),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 Tp=Mt();function eL(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||gt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ho(i)&&(i=H0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Ho(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||Ho(i),c={},v={},d={list:[],map:{}},g={showPointer:St(nL,v),showTooltip:St(iL,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,b){var w=S.axis,x=lL(u,S);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=w.pointToData(i)),T!=null&&Cp(S,T,g,!1,c)}})});var p={};return A(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&A(_.axesInfo,function(S,b){var w=v[b];if(S!==y&&w){var x=w.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,Dp(S),Dp(y)))),p[y.key]=x}})}),A(p,function(y,m){Cp(f[m],y,g,!0,c)}),aL(v,f,c),oL(d,i,r,o),sL(f,o,e),c}}function Cp(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=rL(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function rL(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(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,i=h,a.length=0),A(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function nL(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function iL(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Sa(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function aL(r,t,e){var n=e.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function oL(r,t,e,n){if(Ho(t)||!r.list.length){n({type:"hideTip"});return}var i=((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:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function sL(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Tp(n)[i]||{},o=Tp(n)[i]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[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 lL(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 Dp(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 Ho(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function W0(r){O0.registerAxisPointerClass("CartesianAxisPointer",$2),r.registerComponentModel(Z2),r.registerComponentView(tL),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!H(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=m2(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},eL)}function uL(r){pr(R2),pr(W0)}function fL(r,t){var e=Oa(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Lt({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 hL=(function(r){q(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})(ut);function U0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Y0(r){if(K.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var $0=Y0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),vL=Y0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function X0(r,t){if(!r)return t;t=Ch(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function cL(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var dL=X0(vL,"transition"),nv=X0($0,"transform"),pL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(K.transform3dSupported?"will-change:transform;":"");function gL(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function yL(r,t,e){if(!Y(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=An(t);var a=gL(e),o=Math.max(Math.round(i)*1.5,6),s="",l=nv+":",u;ht(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"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 mL(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=K.transformSupported?","+nv+n:",left"+n+",top"+n),dL+":"+i}function Mp(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!K.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=K.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+nv+":"+o+";":[["top",0],["left",0],[$0,o]]}function _L(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=et(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function SL(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=im(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(mL(i,e)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,g=Ch(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(_L(f)),h!=null&&n.push("padding:"+Oa(h).join("px ")+"px"),n.join(";")+";"}function Ap(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&v1(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var wL=(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,K.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(Y(a)?document.querySelector(a):ai(a)?a:j(a)&&a(t.getDom()));Ap(this._styleCoord,i,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=i.handler,f=i.painter.getViewportRoot();ce(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=cL(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=pL+SL(t,!this._firstShow,this._longHide)+Mp(a[0],a[1],!0)+("border-color:"+An(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Y(a)&&n.get("trigger")==="item"&&!U0(n)&&(s=yL(n,i,a)),Y(t))o.innerHTML=t+s;else if(t){o.innerHTML="",H(t)||(t=[t]);for(var l=0;l<t.length;l++)ai(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?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(Ap(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Mp(n[0],n[1]);A(a,function(o){i[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",K.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(gt(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})(),bL=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Pp(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,i,a){var o=this;X(t)&&ie(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Dt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:im(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["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=Lp(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 i=this._styleCoord;Pp(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=Mr(a.borderWidth||0),s=Lp(a);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(gt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Mr(r){return Math.max(0,r)}function Lp(r){var t=Mr(r.shadowBlur||0),e=Mr(r.shadowOffsetX||0),n=Mr(r.shadowOffsetY||0);return{left:Mr(t-e),right:Mr(t+e),top:Mr(t-n),bottom:Mr(t+n)}}function Pp(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var xL=new Lt({shape:{x:-1,y:-1,width:2,height:2}}),TL=(function(r){q(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(!(K.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=JS(i.get("renderMode"));this._tooltipContent=a==="richText"?new bL(n):new wL(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!(K.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?om(this,"_updatePosition",50,"fixRate"):pf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");V0("itemTooltip",this._api,gt(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||K.node||!i.getDom())){var o=Ip(a,i);this._ticket="";var s=a.dataByCoordSys,l=AL(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=xL;f.x=a.x,f.y=a.y,f.update(),st(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=H0(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Ip(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.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=Ni([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=st(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Yi(i,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 i=e.get("showDelay");n=gt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ni([n.tooltipOption],a),l=this._renderMode,u=[],f=ga("section",{blocks:[],noHeader:!0}),h=[],c=new tu;A(e,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=z0(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=ga("section",{header:w,noHeader:!Re(w),sortBlocks:!0,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var M=i.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,D=M.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Kh(S.axis,{value:b}),D.axisValueLabel=w,D.marker=c.makeTooltipMarker("item",An(D.color),l);var L=Hc(M.formatTooltip(C,!0,null)),P=L.frag;if(P){var I=Ni([M],a).get("valueFormatter");x.blocks.push(I?z({valueFormatter:I},P):P)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Xc(f,c,l,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?`
`:"<br/>",y=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,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=st(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=Ni([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,h),m=new tu;y.marker=m.makeTooltipMarker("item",An(y.color),v);var _=Hc(u.formatTooltip(f,!1,h)),S=g.get("order"),b=g.get("valueFormatter"),w=_.frag,x=w?Xc(b?z({valueFormatter:b},w):w,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=st(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=it(l),l.content=Zt(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=Ni(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",y=new tu;this._showOrMove(d,function(){var m=it(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,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],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(Y(c)){var p=e.ecModel.get("useUTC"),y=H(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=ka(y.axisValue,v,p)),v=Dh(v,i,!0)}else if(j(c)){var _=gt(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||H(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!H(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,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),j(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),H(n))i=tt(n[0],u),a=tt(n[1],f);else if(X(n)){var g=n;g.width=h[0],g.height=h[1];var p=li(g,{width:u,height:f});i=p.x,a=p.y,c=null,v=null}else if(Y(n)&&l){var y=ML(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=CL(i,a,o,u,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=Rp(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Rp(v)?h[1]/2:v==="bottom"?h[1]:0),U0(e)){var y=DL(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(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&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&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){K.node||!n.getDom()||(pf(this,"_updatePosition"),this._tooltipContent.dispose(),kf("itemTooltip",n))},t.type="tooltip",t})(ue);function Ni(r,t,e){var n=t.ecModel,i;e?(i=new mt(e,n,n),i=new mt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof mt&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(i=new mt(o,i,n)))}return i}function Ip(r,t){return r.dispatchAction||gt(t.dispatchAction,t)}function CL(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function DL(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ML(r,t,e,n){var i=e[0],a=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-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Rp(r){return r==="center"||r==="middle"}function AL(r,t,e){var n=ah(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ma(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.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:i,componentIndex:o.componentIndex,el:l}}}}function LL(r){pr(W0),r.registerComponentModel(hL),r.registerComponentView(TL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qt)}var PL=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"])}},Of=(function(r){q(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,i){this.mergeDefaultAndTheme(e,i),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,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),H(n)&&A(n,function(a,o){Y(a)&&(a={type:a}),n[o]=at(a,PL(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&ih(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=rt(),s=$(a,function(l){return(Y(l)||ct(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new mt(l,this,this.ecModel))},this);this._data=At(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,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;A(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;A(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&ht(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})(ut),Zn=St,Bf=A,To=Pt,Z0=(function(r){q(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 To),this.group.add(this._selectorGroup=new To),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=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,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=li(f,h,c),d=this.layoutInner(e,o,v,a,l,u),g=li(lt({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=fL(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,i,a,o,s,l){var u=this.getContentGroup(),f=rt(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Bf(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var p=new To;p.newline=!0,u.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),w=this._createItem(y,g,d,v,n,e,_,b,S,h,a);w.on("click",Zn(Ep,g,null,a,c)).on("mouseover",Zn(Nf,y.name,null,a,c)).on("mouseout",Zn(Ff,y.name,null,a,c)),i.ssr&&w.eachChild(function(x){var T=st(x);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(g,!0)}else i.eachRawSeries(function(x){if(!f.get(g)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(g))return;var M=T.indexOfName(g),C=T.getItemVisual(M,"style"),D=T.getItemVisual(M,"legendIcon"),L=se(C.fill);L&&L[3]===0&&(L[3]=.2,C=z(z({},C),{fill:Hr(L,"rgba")}));var P=this._createItem(x,g,d,v,n,e,{},C,D,h,a);P.on("click",Zn(Ep,null,g,a,c)).on("mouseover",Zn(Nf,null,g,a,c)).on("mouseout",Zn(Ff,null,g,a,c)),i.ssr&&P.eachChild(function(I){var R=st(I);R.seriesIndex=x.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Bf(e,function(u){var f=u.type,h=new Dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ia(h,{normal:c,emphasis:v},{defaultText:u.title}),as(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=IL(f,a,l,u,v,p,c),b=new To,w=a.getModel("textStyle");if(j(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(RL({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,M=s,C=o.get("formatter"),D=n;Y(C)&&C?D=C.replace("{name}",n??""):j(C)&&(D=C(n));var L=p?w.getTextColor():a.get("inactiveColor");b.add(new Dt({style:ke(w,{text:D,x:T,y:g/2,fill:L,align:M,verticalAlign:"middle"},{inheritColor:L})}));var P=new Lt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Gs({el:P,componentModel:o,itemName:n,itemTooltipOption:I.option}),b.add(P),b.eachChild(function(R){R.silent=!0}),P.silent=!h,this.getContentGroup().add(b),as(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ta(e.get("orient"),l,e.get("itemGap"),i.width,i.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",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,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],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+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})(ue);function IL(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Bf(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}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:Sf(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="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),!a){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 RL(r){var t=r.icon||"roundRect",e=dr(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 Ep(r,t,e,n){Ff(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Nf(r,t,e,n)}function q0(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Nf(r,t,e,n){q0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Ff(r,t,e,n){q0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function EL(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 Fi(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),kp(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){A(i,function(l,u){s[l?"select":"unSelect"](u)}),kp(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function kp(r,t){var e=t||{};return A(r.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=r.isSelected(i);Gr(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function kL(r){r.registerAction("legendToggleSelect","legendselectchanged",St(Fi,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",St(Fi,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",St(Fi,"inverseSelect")),r.registerAction("legendSelect","legendselected",St(Fi,"select")),r.registerAction("legendUnSelect","legendunselected",St(Fi,"unSelect"))}function K0(r){r.registerComponentModel(Of),r.registerComponentView(Z0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,EL),r.registerSubTypeDefaulter("legend",function(){return"plain"}),kL(r)}var OL=(function(r){q(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,i){var a=Zs(e);r.prototype.init.call(this,e,n,i),Op(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Op(this,this.option,e)},t.type="legend.scroll",t.defaultOption=xy(Of.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})(Of);function Op(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,ui(t,e,{type:"box",ignoreSize:!!i})}var Bp=Pt,Du=["width","height"],Mu=["x","y"],BL=(function(r){q(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 Bp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Bp)},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,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=H(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Dt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=zs(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:gt(u._pageGo,u,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Du[u],h=Mu[u],c=Du[1-u],v=Mu[1-u];o&&ta("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],y=it(i);o&&(y[f]=i[f]-g[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,c,v,h);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=g[f]+d;p[u]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-u]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;ta(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),ta("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=et(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=g?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=i[o],g){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new Lt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&It(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Y(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),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Du[o],l=Mu[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.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,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=u-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(w){if(w){var x=w.getBoundingRect(),T=x[l]+w[l];return{s:T,e:T+x[s],i:w.__legendDataIndex}}}function b(w,x){return w.e>=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n??a},t.type="legend.scroll",t})(Z0);function NL(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function FL(r){pr(K0),r.registerComponentModel(OL),r.registerComponentView(BL),NL(r)}function zL(r){pr(K0),pr(FL)}function Np(r,t,e){var n=cr.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var Au=(function(r){yt(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Jo,typeof e=="string"?o=Np(e,n,i):X(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&($f(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}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=Np("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,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ot(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,w=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(m)){var M=new ot(0,0,0,0);M.copy(T),M.union(m),o[x]=M,S=!0;break}else if(l){u.copy(m),u.union(T);var C=m.width*m.height,D=T.width*T.height,L=u.width*u.height,P=L-C-D;P<b&&(b=P,w=x)}}if(l&&(o[w].union(m),S=!0),!S){var _=new ot(0,0,0,0);_.copy(m),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(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&Ze||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&Ze||!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(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.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(a,0,0,s/h,l/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;if(wa(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||mf(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Wp(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=_f(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(je),Fp=1e5,hn=314159,Co=.01,GL=.001;function VL(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function HL(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 WL=(function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=z({},n||{}),this.dpr=n.devicePixelRatio||Jo,this._singleCanvas=a,this.root=t;var o=t.style;o&&($f(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){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 Au(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[hn]=v,v.zlevel=hn,s.push(hn),this._domRoot=t}else{this._width=fo(t,0,n),this._height=fo(t,1,n);var u=this._domRoot=HL(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,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===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 i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Fp)),a||(a=n.ctx,a.save()),yn(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Fp)},r.prototype.paintOne=function(t,e){Oh(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;qo(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(hn).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],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)&&a.push(u)}for(var f=!0,h=!1,c=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,e,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,S=!n&&p.incremental&&Date.now,b=S&&Date.now(),w=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,w,m);else if(_===p.__startIndex){var x=t[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,w,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,M=function(P){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=!0),i._doPaintEl(R,p,o,P,I,T===p.__endIndex-1),S){var E=Date.now()-b;if(E>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var C=v.dpr,D=0;D<m.length;++D){var L=m[D];y.save(),y.beginPath(),y.rect(L.x*C,L.y*C,L.width*C,L.height*C),y.clip(),M(L),y.restore()}else y.save(),M(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return K.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(yn(s,t,a,o),t.setPrevPaintRect(l))}else yn(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=hn);var n=this._layers[t];return n||(n=new Au("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?at(n,this._layerConfig[t],!0):this._layerConfig[t-Co]&&at(n,this._layerConfig[t-Co],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&VL(e)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.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,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},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){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+GL,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Co:0),this._needsManuallyCompositing),f.__builtin__||xs("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&Ze&&!i.__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,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?at(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Co){var o=this._layers[a];at(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(ht(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=fo(a,0,i),e=fo(a,1,i),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(hn).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[hn].dom;var e=new Au("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 i=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):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];yn(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 UL(r){r.registerPainter("canvas",WL)}pr([F2,zL,t2,LL,uL,HA,MA,UL]);function YL(r){return l_.get("/analysis/echarts",{params:{timeZone:r}})}const $L={key:0,class:"analysis-loading"},XL={class:"number"},ZL={class:"number-item"},qL={class:"top"},KL={class:"left"},QL={class:"right"},jL={class:"count-icon"},JL={class:"delete-ratio"},tP={class:"normal"},eP={class:"deleted"},rP={class:"number-item"},nP={class:"top"},iP={class:"left"},aP={class:"right"},oP={class:"count-icon"},sP={class:"delete-ratio"},lP={class:"normal"},uP={class:"deleted"},fP={class:"number-item"},hP={class:"top"},vP={class:"left"},cP={class:"right"},dP={class:"count-icon"},pP={class:"delete-ratio"},gP={class:"normal"},yP={class:"deleted"},mP={class:"number-item"},_P={class:"top"},SP={class:"left"},wP={class:"right"},bP={class:"count-icon"},xP={class:"delete-ratio"},TP={class:"normal"},CP={class:"deleted"},DP={class:"picture"},MP={class:"picture-item"},AP={class:"title",style:{display:"flex","justify-content":"space-between"}};const LP={class:"picture-item"},PP={class:"title"},IP={class:"picture-cs"},RP={class:"picture-cs-item"},EP={class:"title"},kP={class:"picture-cs-item"},OP={class:"title"},BP=Object.assign({name:"analysis"},{__name:"index",setup(r){const{t}=u_(),e=f_(),n=h_(),i=sr("sender"),a=sr(0),o=sr(0),s=sr(0),l=sr(0),u=sr(!0),f=ov({normalReceiveTotal:0,normalSendTotal:0,normalAccountTotal:0,normalUserTotal:0,delReceiveTotal:0,delSendTotal:0,delAccountTotal:0,delUserTotal:0}),h=Na(a,{duration:1500}),c=Na(o,{duration:1500}),v=Na(s,{duration:1500}),d=Na(l,{duration:1500}),g=sr(null),p=ov({xdata:[],sdata:[]}),y={receiveData:[],sendData:[],daysData:[]},m=zf(()=>({color:n.dark?"#E5EAF3":"#303133",background:n.dark?"#141414":"#FFFFFF",borderColor:n.dark?"#141414":"#FFFFFF",scaleLineColor:n.dark?"#636466":"#CDD0D6",crossColor:n.dark?"#8D9095":"#A8ABB2",axisColor:n.dark?"#A3A6AD":"#909399",splitLineColor:n.dark?"#58585B":"#D4D7DE",gaugeSplitLine:n.dark?"#CFD3DC":"#606266",containerBackground:n.dark?"#6C6E72":"#E6EBF8"}));let _=0,S=0,b=null,w=null,x=null,T=null,M=!0,C=sr(0),D=window.innerWidth<500?`${window.innerWidth-110}`:"72%",L=n.dark;v_(()=>{const N=Intl.DateTimeFormat().resolvedOptions().timeZone;YL(N).then(F=>{a.value=F.numberCount.receiveTotal,o.value=F.numberCount.sendTotal,s.value=F.numberCount.accountTotal,l.value=F.numberCount.userTotal,f.normalReceiveTotal=F.numberCount.normalReceiveTotal,f.normalSendTotal=F.numberCount.normalSendTotal,f.normalAccountTotal=F.numberCount.normalAccountTotal,f.normalUserTotal=F.numberCount.normalUserTotal,f.delReceiveTotal=F.numberCount.delReceiveTotal,f.delSendTotal=F.numberCount.delSendTotal,f.delAccountTotal=F.numberCount.delAccountTotal,f.delUserTotal=F.numberCount.delUserTotal,g.value=F.receiveRatio.nameRatio.map(U=>({name:U.name||" ",value:U.total})),p.xdata=F.userDayCount.map(U=>sv(U.date).format("M.D")),p.sdata=F.userDayCount.map(U=>U.total),y.daysData=F.emailDayCount.receiveDayCount.map(U=>sv(U.date).format("M.D")),y.receiveData=F.emailDayCount.receiveDayCount.map(U=>U.total),y.sendData=F.emailDayCount.sendDayCount.map(U=>U.total),_=F.daySendTotal,u.value=!1,I(),M=!1})});const P=S_(I,500,{leading:!1,trailing:!0});Wo(()=>n.asideShow,()=>{window.innerWidth>1024&&P()}),c_(()=>{M||(window.innerWidth!==S&&S!==0?P():b?L!==n.dark&&(I(),L=n.dark):P())}),d_(()=>{S=window.innerWidth}),window.onresize=()=>{R(),P()},Wo(()=>n.dark,()=>{e.name==="analysis"&&(L=n.dark,I())});function I(){e.name==="analysis"&&(C.value++,setTimeout(()=>{k(),O(),G(),V()}))}function R(){D=window.innerWidth<500?`${window.innerWidth-110}`:"72%",y.barWidth=window.innerWidth>767?"40%":"60%"}const E=document.createElement("canvas").getContext("2d");E.font="12px sans-serif";function B(N,F=140){if(E.measureText(N).width<=F)return N;let Z="";for(let dt=0;dt<N.length;dt++)if(Z+=N[dt],E.measureText(Z+"…").width>F)return Z.slice(0,-1)+"…";return N}function k(){b&&b.dispose(),b=Bi.init(document.querySelector(".sender-pie"));let N={tooltip:{trigger:"item",textStyle:{color:m.value.color},backgroundColor:m.value.background,formatter:F=>`${F.marker} ${F.name} ${F.value} (${F.percent}%)`},legend:{type:"scroll",orient:"vertical",left:"10",top:"20",textStyle:{color:m.value.color},formatter:function(F){return B(F)}},series:[{data:g.value,name:"",type:"pie",radius:["40%","65%"],center:[D,"45%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:4,borderColor:m.value.borderColor,borderWidth:2},label:{show:!1,position:"outside",formatter:"{d}%",color:"#333",fontSize:14},emphasis:{label:{show:!1,fontSize:40,fontWeight:"bold"}},labelLine:{show:!0},color:["#3CB2FF","#13DEB9","#FBBF24","#FF7F50","#BAE6FD","#C084FC"]}]};b.setOption(N)}function O(){w&&w.dispose(),w=Bi.init(document.querySelector(".increase-line"));let N={tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:m.value.crossColor},lineStyle:{color:m.value.crossColor},axis:"x"},formatter:function(Z){let dt="";return Z.forEach(Et=>{dt=`${Et.marker} ${t("growthTotalUsers")} ${Et.value}`}),dt},backgroundColor:m.value.background,borderColor:m.value.splitLineColor,borderWidth:1,padding:10,textStyle:{color:m.value.color}},grid:{top:"8%",right:"20",left:"35",bottom:"35"},xAxis:{type:"category",data:p.xdata,axisTick:{show:!1,alignWithLabel:!1,lineStyle:{color:m.value.axisColor}},axisPointer:{label:{show:!1}},axisLine:{lineStyle:{color:m.value.axisColor,width:1,type:"solid"}},axisLabel:{formatter:function(Z,dt){return dt===0?" "+Z:dt===p.xdata.length-1?Z+" ":Z}},boundaryGap:!1},yAxis:{type:"value",axisLabel:{margin:5},boundaryGap:[0,.1],max:Z=>{if(Z.max<8)return 10},axisLine:{show:!0,lineStyle:{color:m.value.axisColor,width:1}},axisPointer:{label:{show:!0,formatter:Z=>Math.round(Z.value)}},splitLine:{show:!0,lineStyle:{type:"dashed",color:m.value.scaleLineColor}}},series:[{data:p.sdata,type:"line",smooth:.1,symbol:"none",lineStyle:{color:"#1D84FF",width:2.5},areaStyle:{color:new Bi.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(29, 132, 255, 0.3)"},{offset:1,color:"rgba(29, 132, 255, 0.03)"}])},color:["#1D84FF"]}]};w.setOption(N);let F=w.getModel().getComponent("yAxis",0).axis.scale.getExtent()[1],U=35;F>99&&(U=42),F>999&&(U=51),F>9999&&(U=58),F>99999&&(U=66),w.setOption({grid:{left:U}})}function G(){x&&x.dispose(),x=Bi.init(document.querySelector(".email-column"));const N={tooltip:{textStyle:{color:m.value.color},backgroundColor:m.value.background,formatter:function(F){return F.marker,`${F.marker} ${F.seriesName}: ${F.value}`}},legend:{data:[t("emailReceived"),t("emailSent")],top:"0",textStyle:{color:m.value.color}},grid:{left:"18",right:"18",bottom:"15",top:"50",containLabel:!0},xAxis:{type:"category",data:y.daysData,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:m.value.axisColor,width:1}}},yAxis:{max:F=>{if(F.max<8)return 10},splitLine:{show:!0,lineStyle:{color:m.value.splitLineColor,type:"solid",width:1}},axisLine:{show:!0,lineStyle:{color:m.value.axisColor,width:0}},type:"value",boundaryGap:[0,.1]},series:[{name:t("emailReceived"),type:"bar",stack:"total",barWidth:"60%",barMaxWidth:30,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}},data:y.receiveData,itemStyle:{color:"#3CB2FF"}},{name:t("emailSent"),type:"bar",stack:"total",emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}},data:y.sendData,itemStyle:{color:"#13deb9"}}]};x.setOption(N)}function V(){T&&T.dispose(),T=Bi.init(document.querySelector(".send-count"));let N={tooltip:{textStyle:{color:m.value.color},backgroundColor:m.value.background},series:[{name:t("sentToday"),type:"gauge",max:100,progress:{show:!0,roundCap:!0,itemStyle:{color:"#3CB2FF"}},pointer:{itemStyle:{color:"#3CB2FF"}},axisLabel:{color:m.value.gaugeSplitLine},axisLine:{roundCap:!0,lineStyle:{color:[[1,m.value.containerBackground]]}},splitLine:{lineStyle:{color:m.value.gaugeSplitLine}},axisTick:{lineStyle:{color:m.value.axisColor}},detail:{valueAnimation:!0,formatter:"{value}",color:m.value.color},data:[{value:_,name:t("total"),title:{color:m.value.color}}]}],color:["#3CB2FF"]};T.setOption(N)}return(N,F)=>{const U=M_,Z=__,dt=m_,Et=y_;return u.value?(cn(),Kn("div",$L,[nr(w_)])):(cn(),p_(Et,{key:1,style:{height:"100%"}},{default:g_(()=>[(cn(),Kn("div",{class:"analysis",key:Vt(C)},[W("div",XL,[W("div",ZL,[W("div",qL,[W("div",KL,[W("div",null,pt(N.$t("totalReceived")),1),W("div",null,[nr(U,{formatter:wt=>Math.round(wt),value:Vt(h)},null,8,["formatter","value"])])]),W("div",QL,[W("div",jL,[nr(Vt(Ba),{icon:"hugeicons:mailbox-01",width:"25",height:"25"})])])]),W("div",JL,[W("div",null,[or(pt(N.$t("active"))+" ",1),W("span",tP,pt(f.normalReceiveTotal),1)]),W("div",null,[or(pt(N.$t("deleted"))+" ",1),W("span",eP,pt(f.delReceiveTotal),1)])])]),W("div",rP,[W("div",nP,[W("div",iP,[W("div",null,pt(N.$t("totalSent")),1),W("div",null,[nr(U,{formatter:wt=>Math.round(wt),value:Vt(c)},null,8,["formatter","value"])])]),W("div",aP,[W("div",oP,[nr(Vt(Ba),{icon:"cil:send",width:"25",height:"25"})])])]),W("div",sP,[W("div",null,[or(pt(N.$t("active"))+" ",1),W("span",lP,pt(f.normalSendTotal),1)]),W("div",null,[or(pt(N.$t("deleted"))+" ",1),W("span",uP,pt(f.delSendTotal),1)])])]),W("div",fP,[W("div",hP,[W("div",vP,[W("div",null,pt(N.$t("totalMailboxes")),1),W("div",null,[nr(U,{formatter:wt=>Math.round(wt),value:Vt(v)},null,8,["formatter","value"])])]),W("div",cP,[W("div",dP,[nr(Vt(Ba),{icon:"lets-icons:e-mail",width:"23",height:"23"})])])]),W("div",pP,[W("div",null,[or(pt(N.$t("active"))+" ",1),W("span",gP,pt(f.normalAccountTotal),1)]),W("div",null,[or(pt(N.$t("deleted"))+" ",1),W("span",yP,pt(f.delAccountTotal),1)])])]),W("div",mP,[W("div",_P,[W("div",SP,[W("div",null,pt(N.$t("totalUsers")),1),W("div",null,[nr(U,{formatter:wt=>Math.round(wt),value:Vt(d)},null,8,["formatter","value"])])]),W("div",wP,[W("div",bP,[nr(Vt(Ba),{icon:"iconoir:user",width:"25",height:"25"})])])]),W("div",xP,[W("div",null,[or(pt(N.$t("active"))+" ",1),W("span",TP,pt(f.normalUserTotal),1)]),W("div",null,[or(pt(N.$t("deleted"))+" ",1),W("span",CP,pt(f.delUserTotal),1)])])])]),W("div",DP,[W("div",MP,[W("div",AP,[W("span",null,pt(N.$t("emailSource")),1),Do("",!0)]),F[1]||(F[1]=W("div",{class:"sender-pie"},null,-1))]),W("div",LP,[W("div",PP,pt(N.$t("userGrowth")),1),F[2]||(F[2]=W("div",{class:"increase-line"},null,-1))])]),W("div",IP,[W("div",RP,[W("div",EP,pt(N.$t("emailGrowth")),1),F[3]||(F[3]=W("div",{class:"email-column"},null,-1))]),W("div",kP,[W("div",OP,pt(N.$t("sentToday")),1),F[4]||(F[4]=W("div",{class:"send-count"},null,-1))])])]))]),_:1}))}}}),ZP=b_(BP,[["__scopeId","data-v-ea7871c0"]]);export{ZP as default};